记录字段
@@ -406,69 +440,6 @@
-
@@ -556,7 +527,7 @@
const defaultfield = {};
let preDrawAry = [];
export default {
- components: {Pagination, vueJsonEditor, Treeselect, customForm,faceLogin},
+ components: {Pagination, vueJsonEditor, Treeselect, customForm, faceLogin},
data() {
return {
step: defaultstep,
@@ -677,12 +648,31 @@
label: "绘图模板",
},
],
- typeoptions: [
+ typeOptions: [
{
- value: 1,
- label: "生产记录",
+ value: 10,
+ label: "生产记录表",
+ }, {
+ value: 20,
+ label: "工序检查表",
+ }, {
+ value: 30,
+ label: "入场检验表",
+ }, {
+ value: 40,
+ label: "成品检验表",
+ }, {
+ value: 50,
+ label: "首件检查表",
},
],
+ typeOptions_:{
+ 10 : "生产记录表",
+ 20 : "工序检查表",
+ 30 : "入场检验表",
+ 40 : "成品检验表",
+ 50 : "首件检查表",
+ },
canvas: null,
ctx: null,
myCanvas_rect: null,
@@ -696,8 +686,8 @@
imgData: '',
canvasImg: '',
judgeList: [],
- limitedPhoto:false,
- isDisabled:true,
+ limitedPhoto: false,
+ isDisabled: true,
};
},
computed: {},
@@ -850,7 +840,7 @@
},
recordformLists() {
this.listQueryrecordform.material = this.material;
- this.listQueryrecordform.type = 2;
+ // this.listQueryrecordform.type = 2;
getrecordformList(this.listQueryrecordform).then((response) => {
if (response.data) {
this.recordformList = response.data;
@@ -895,21 +885,20 @@
//新增字段
handlefieldCreate() {
this.field_choice = [""];
- // this.field = Object.assign({}, defaultfield);
this.dialogType1 = "new";
this.dialogVisible1 = true;
// this.$refs["Form"].resetFields();
this.$nextTick(() => {
- this.field.field_type= null;
- this.field.field_key= null;
- this.field.field_name= null;
- this.field.sort= null;
- this.field.parent= null;
- this.field.help_text= null;
- this.field.draw_template= null;
- this.field.field_choice= null;
- this.field.rule_expression= null;
- this.field.display_expression= null;
+ this.field.field_type = null;
+ this.field.field_key = null;
+ this.field.field_name = null;
+ this.field.sort = null;
+ this.field.parent = null;
+ this.field.help_text = null;
+ this.field.draw_template = null;
+ this.field.field_choice = null;
+ this.field.rule_expression = null;
+ this.field.display_expression = null;
this.$refs["Form"].clearValidate();
});
},
@@ -965,10 +954,12 @@
this.$refs[form].validate((valid) => {
if (valid) {
const isEdit = this.dialogType === "edit";
+ let obj = new Object();
+ obj.name=this.recordform.name;
+ obj.type=this.recordform.type;
+ obj.enabled=this.recordform.enabled;
if (isEdit) {
- this.recordform.material = this.material;
- this.recordform.type = 2;
- updaterecordform(this.recordform.id, this.recordform).then(
+ updaterecordform(this.recordform.id, obj).then(
(res) => {
if (res.code >= 200) {
this.recordformLists();
@@ -978,9 +969,8 @@
}
);
} else {
- this.recordform.material = this.material;
- this.recordform.type = 2;
- createrecordform(this.recordform).then((res) => {
+ obj.material=parseInt(this.material);
+ createrecordform(obj).then((res) => {
if (res.code >= 200) {
this.recordformLists();
this.dialogVisible = false;
@@ -1011,8 +1001,6 @@
} else {
this.field.form = this.formID;
this.field.field_choice = this.field_choice;
- debugger;
- console.log(this.field);
createrffield(this.field).then((res) => {
if (res.code >= 200) {
this.fieldLists();
@@ -1027,12 +1015,12 @@
}
});
},
- recordformcon(){
+ recordformcon() {
this.recordform.material = this.material;
this.recordform.type = 2;
this.limitedPhoto = true;
},
- getMsgFormSon(data){
+ getMsgFormSon(data) {
this.limitedPhoto = data;
this.recordformLists();
this.dialogVisible = false;
diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue
index 2ef71c1..f82a527 100644
--- a/hb_client/src/views/pm/resources.vue
+++ b/hb_client/src/views/pm/resources.vue
@@ -1,282 +1,310 @@
-
-
-
- 合同订单列表
-
-
- 计算物料
-
-
-
-
-
-
- {{ scope.row.number }}
-
-
-
- {{ scope.row.product_.name }}
-
-
-
- {{ scope.row.count }}
-
-
- {{ scope.row.planed_count }}
-
-
-
- {{ scope.row.product_.specification }}
-
-
- {{ scope.row.customer_.name }}
-
-
- {{ scope.row.contract_.number }}
-
-
- {{ scope.row.contract_.name }}
-
-
- {{ scope.row.delivery_date }}
-
-
- {{ scope.row.create_time }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 物料配置
- 半成品折合
-
-
-
-
-
-
-
- {{ scope.row.name }}
-
-
- {{options_[scope.row.type]}}
-
-
- {{ scope.row.number }}
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.count }}
-
-
-
- {{ scope.row.inv_count-scope.row.count }}
- {{ scope.row.inv_count-scope.row.count }}
-
-
-
- {{ scope.row.count_safe }}
-
-
-
-
-
-
-
-
-
-
-
-
- 设备配置
-
-
-
-
-
-
-
- {{ scope.row.name }}
-
-
+
+
+
+ 合同订单列表
+
+ 计算物料
+
+
-
-
-
- 禁用
-
-
- 合格
-
-
-
-
- {{ state_[scope.row.state] }}
-
-
- {{ state_[scope.row.state] }}
-
-
- {{ state_[scope.row.state] }}
-
-
- {{ state_[scope.row.state] }}
-
-
-
- {{state_[scope.row.state]}}
-
-
- {{scope.row.number}}
-
-
- {{scope.row.model}}
-
-
-
-
-
-
-
+
+ {{ scope.row.number }}
+
+
+
+ {{
+ scope.row.product_.name
+ }}
+
+
+
+ {{ scope.row.count }}
+
+
+ {{
+ scope.row.planed_count
+ }}
+
+
+
+ {{
+ scope.row.product_.specification
+ }}
+
+
+ {{
+ scope.row.customer_.name
+ }}
+
+
+ {{
+ scope.row.contract_.number
+ }}
+
+
+ {{
+ scope.row.contract_.name
+ }}
+
+
+ {{
+ scope.row.delivery_date
+ }}
+
+
+ {{
+ scope.row.create_time
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 物料配置
+ 半成品折合
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+ {{ options_[scope.row.type] }}
+
+
+ {{ scope.row.number }}
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.count }}
+
+
+
+
+ {{ scope.row.inv_count - scope.row.count }}
+
+ {{ scope.row.inv_count - scope.row.count }}
+
+
+
+ {{
+ scope.row.count_safe
+ }}
+
+
+
+
+
+
+
+
+
+ 设备配置
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+
+ 禁用
+
+ 合格
+
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+
+
+ {{ state_[scope.row.state] }}
+
+
+
+ {{ scope.row.number }}
+
+
+ {{ scope.row.model }}
+
+
+
+
+
+
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/hb_client/src/views/wpm/operationdo.vue b/hb_client/src/views/wpm/operationdo.vue
index 4831ef4..59b4cf9 100644
--- a/hb_client/src/views/wpm/operationdo.vue
+++ b/hb_client/src/views/wpm/operationdo.vue
@@ -806,7 +806,7 @@ filediv.innerHTML='
';
{
this.pdf=tab.name;
var filediv = document.getElementById('file');
-filediv.innerHTML='
';
+filediv.innerHTML='
';
}