diff --git a/hb_client/src/components/customForm/index.vue b/hb_client/src/components/customForm/index.vue index 8eadbca..cfe31f0 100644 --- a/hb_client/src/components/customForm/index.vue +++ b/hb_client/src/components/customForm/index.vue @@ -3,7 +3,7 @@ @@ -32,8 +32,8 @@ required > { @@ -337,7 +337,7 @@ that.formData[index].is_hidden = false; } else { that.formData[index].is_hidden = true; - that.checkForm[field_key] = null; + that.checkForm[field_key] = ''; } return rea; } else { @@ -350,7 +350,7 @@ that.formData[index].is_hidden = false; } else { that.formData[index].is_hidden = true; - that.checkForm[field_key] = null; + that.checkForm[field_key] = ''; } return eval(eval(a)); } diff --git a/hb_client/src/components/customForm/review.vue b/hb_client/src/components/customForm/review.vue index 5dc5417..9b49143 100644 --- a/hb_client/src/components/customForm/review.vue +++ b/hb_client/src/components/customForm/review.vue @@ -3,7 +3,7 @@ @@ -429,7 +429,7 @@ that.formData[index].is_hidden = false; }else{ that.formData[index].is_hidden = true; - that.checkForm[field_key] = null; + that.checkForm[field_key] = ''; } return rea; }else{ @@ -442,7 +442,7 @@ that.formData[index].is_hidden = false; }else{ that.formData[index].is_hidden = true; - that.checkForm[field_key] = null; + that.checkForm[field_key] = ''; } return eval(eval(a)); } diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue index 160e457..8331f0c 100644 --- a/hb_client/src/views/inm/fifo.vue +++ b/hb_client/src/views/inm/fifo.vue @@ -62,8 +62,8 @@ height="100" v-el-height-adaptive-table="{ bottomOffset: 42 }" > - - + + - + diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue index 5abc29d..808415f 100644 --- a/hb_client/src/views/mtm/material.vue +++ b/hb_client/src/views/mtm/material.vue @@ -261,8 +261,7 @@ }, { value: '套', label: '套' - }, - { + }, { value: '个', label: '个' }, { @@ -271,6 +270,24 @@ }, { value: '瓶', label: '瓶' + }, { + value: 'g', + label: 'g' + }, { + value: 'kg', + label: 'kg' + }, { + value: '卷', + label: '卷' + }, { + value: '张', + label: '张' + }, { + value: '支', + label: '支' + }, { + value: '袋', + label: '袋' }, ], listQuery: { @@ -343,12 +360,19 @@ //检查表 handlebind(scope) { let materialItem = sessionStorage.getItem('materialItem'); + let materialType = sessionStorage.getItem('materialType'); if(materialItem){ sessionStorage.removeItem('materialItem'); sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); }else{ sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); } + if(materialType){ + sessionStorage.removeItem('materialType'); + sessionStorage.setItem('materialType','30'); + }else{ + sessionStorage.setItem('materialType','30'); + } this.$router.push({name: "MaterialDO", params: {id: scope.row.id}}) }, handleFilter() { diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index 65dfa8f..b669b27 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -596,7 +596,7 @@ }, listQueryrecordform: { page: 1, - page_size: 20, + page_size: 99, }, recordformList: { count: 0, @@ -694,10 +694,10 @@ ], typeOptions_:{ 10 : "生产记录表", - 20 : "工序检查表", - 30 : "入厂检验表", - 40 : "成品检验表", - 50 : "首件检查表", + 20 : "工序检查表",//wp p + 30 : "入厂检验表",//wuliao + 40 : "成品检验表",//p + 50 : "首件检查表",//wp }, materialTypes: { "1": '成品', @@ -723,12 +723,19 @@ judgeList: [], limitedPhoto: false, isDisabled: true, + type:null, }; }, computed: {}, watch: {}, mounted(){ this.item = JSON.parse(sessionStorage.getItem('materialItem')) ; + let type = sessionStorage.getItem('materialType') ; + if(type.indexOf(','>0)){ + this.type = type.split(','); + }else{ + this.type = parseInt(type); + } this.material = this.item.id; this.recordformLists(); getrecordformList({page:0}).then((response) => { @@ -896,13 +903,32 @@ this.fieldLists1(); }, recordformLists() { - this.listQueryrecordform.material = this.material; - // this.listQueryrecordform.type = 2; - getrecordformList(this.listQueryrecordform).then((response) => { - if (response.data) { - this.recordformList = response.data; - } - }); + debugger; + let that = this; + that.listQueryrecordform.material = that.material; + if(that.type===10){ + debugger; + that.listQueryrecordform.type = 10; + getrecordformList(that.listQueryrecordform).then((response) => { + if (response.data) { + that.recordformList = response.data; + } + }); + }else{ + debugger; + that.listQueryrecordform.type = that.type[0]; + getrecordformList(that.listQueryrecordform).then((response) => { + if (response.data) { + that.recordformList = response.data; + that.listQueryrecordform.type = that.type[1]; + getrecordformList(that.listQueryrecordform).then((response) => { + if (response.data) { + that.recordformList.results = that.recordformList.results.concat(response.data.results); + } + }); + } + }); + } }, fieldLists() { let that = this; diff --git a/hb_client/src/views/mtm/productList.vue b/hb_client/src/views/mtm/productList.vue index f0dfaeb..db2480a 100644 --- a/hb_client/src/views/mtm/productList.vue +++ b/hb_client/src/views/mtm/productList.vue @@ -216,8 +216,7 @@ }, { value: '套', label: '套' - }, - { + }, { value: '个', label: '个' }, { @@ -226,6 +225,24 @@ }, { value: '瓶', label: '瓶' + }, { + value: 'g', + label: 'g' + }, { + value: 'kg', + label: 'kg' + }, { + value: '卷', + label: '卷' + }, { + value: '张', + label: '张' + }, { + value: '支', + label: '支' + }, { + value: '袋', + label: '袋' }, ], listQuery: { @@ -269,12 +286,19 @@ //检查表 handlebind(scope) { let materialItem = sessionStorage.getItem('materialItem'); + let materialType = sessionStorage.getItem('materialType'); if(materialItem){ sessionStorage.removeItem('materialItem'); sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); }else{ sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); } + if(materialType){ + sessionStorage.removeItem('materialType'); + sessionStorage.setItem('materialType','20,40'); + }else{ + sessionStorage.setItem('materialType','20,40'); + } this.$router.push({name: "MaterialDO", params: {id: scope.row.id}}) }, handleFilter() { diff --git a/hb_client/src/views/mtm/step.vue b/hb_client/src/views/mtm/step.vue index b12d695..fc91076 100644 --- a/hb_client/src/views/mtm/step.vue +++ b/hb_client/src/views/mtm/step.vue @@ -245,7 +245,8 @@ :model="tableForm" :close-on-click-modal="false" :visible.sync="dialogVisibleForm" - :title="tableForm.name"> + :title="tableForm.name" + > + + + + tupian + + + @@ -428,6 +436,20 @@ + + + + + + @@ -496,6 +518,7 @@ field_name: '', sort: '', field_choice: [""], + draw_template:'' }, field_choice: [''], options: [], @@ -585,6 +608,10 @@ { value: 'selects', label: '多选' + }, + { + value: 'draw', + label: '绘图模板' } ], formList:[], @@ -796,7 +823,18 @@ .catch(() => { }); } - + }, + handleAvatarSuccess(res, file) { + debugger; + console.log(res) + this.field.draw_template = res.data.path; + }, + beforeAvatarUpload(file) { + const isLt2M = file.size / 1024 / 1024 < 2; + if (!isLt2M) { + this.$message.error("上传头像图片大小不能超过 2MB!"); + } + return isLt2M; }, //新增字段 handlefieldCreate() { diff --git a/hb_client/src/views/mtm/wproductList.vue b/hb_client/src/views/mtm/wproductList.vue index b81c9ab..80e649b 100644 --- a/hb_client/src/views/mtm/wproductList.vue +++ b/hb_client/src/views/mtm/wproductList.vue @@ -190,8 +190,7 @@ }, { value: '套', label: '套' - }, - { + }, { value: '个', label: '个' }, { @@ -200,6 +199,24 @@ }, { value: '瓶', label: '瓶' + }, { + value: 'g', + label: 'g' + }, { + value: 'kg', + label: 'kg' + }, { + value: '卷', + label: '卷' + }, { + value: '张', + label: '张' + }, { + value: '支', + label: '支' + }, { + value: '袋', + label: '袋' }, ], listQuery: { @@ -242,12 +259,19 @@ //检查表 handlebind(scope) { let materialItem = sessionStorage.getItem('materialItem'); + let materialType = sessionStorage.getItem('materialType'); if(materialItem){ sessionStorage.removeItem('materialItem'); sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); }else{ sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); } + if(materialType){ + sessionStorage.removeItem('materialType'); + sessionStorage.setItem('materialType','20,50'); + }else{ + sessionStorage.setItem('materialType','20,50'); + } this.$router.push({name: "MaterialDO", params: {id: scope.row.id}}) }, handleFilter() { diff --git a/hb_client/src/views/workflow/index.vue b/hb_client/src/views/workflow/index.vue index cc750d8..4c7605f 100644 --- a/hb_client/src/views/workflow/index.vue +++ b/hb_client/src/views/workflow/index.vue @@ -119,7 +119,7 @@
- +
@@ -356,7 +356,7 @@ var g = new dagreD3.graphlib.Graph().setGraph({ rankdir: 'DL', nodesep: 100, - edgesep: 10,//两条线之间的距离 + edgesep: 50,//两条线之间的距离 ranksep: 50,//节点之间的距离 marginx: 160, marginy: 20,