From db83e0224eae65f75b8a6568ca34f7876461fdad Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 17 Jan 2022 10:26:24 +0800 Subject: [PATCH 1/3] bugfix --- hb_client/src/components/customForm/index.vue | 10 +- hb_client/src/views/mtm/materialdo.vue | 4 +- hb_client/src/views/qm/producttest.vue | 443 ++++++++---------- hb_client/src/views/qm/taskrecordfrom.vue | 266 +++++------ hb_client/src/views/wpm/need.vue | 4 +- 5 files changed, 333 insertions(+), 394 deletions(-) diff --git a/hb_client/src/components/customForm/index.vue b/hb_client/src/components/customForm/index.vue index 96558e8..b108647 100644 --- a/hb_client/src/components/customForm/index.vue +++ b/hb_client/src/components/customForm/index.vue @@ -132,7 +132,6 @@
-
@@ -200,6 +199,8 @@ } }, mounted() { + debugger; + debugger; let that = this; that.checkForm = {}; this.form = this.formID; @@ -232,17 +233,20 @@ let listJudge = this.formData.filter(item => { return item.need_judge === true; }); + debugger; listJudge.forEach(item => { let obj = new Object(); obj = item; that.judgeList.push(obj) }); + debugger; let imag= this.formData.filter(item => { return item.field_type === 'draw'; }); that.img = new Image(); - that.img.crossOrigin = ''; - that.img = 'http://47.95.0.242:2222'+imag[0].draw_template; + that.img.crossOrigin = 'anonymous'; + let value = imag[0].field_value?imag[0].field_value:imag[0].draw_template; + that.img = 'http://47.95.0.242:2222'+value; setTimeout(function(){ that.canvasInit(); },500); diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index fed046b..19b98e6 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -97,6 +97,7 @@ :results="fieldList.results" :hasPicture="hasPicture" :formID="formID" + :isDisabled="isDisabled" @formFunc="formFunc" /> - + + +
+ {{item.field_name}}: + {{item.field_value}} +
+
+ +
+ {{item.field_name}}: + +
+
+
+ diff --git a/hb_client/src/views/wpm/need.vue b/hb_client/src/views/wpm/need.vue index bfb4ae5..5c58541 100644 --- a/hb_client/src/views/wpm/need.vue +++ b/hb_client/src/views/wpm/need.vue @@ -938,12 +938,11 @@ //批量入库 putins() { let _this = this; - _this.mutipID = [] + _this.mutipID = []; this.$refs.multipleTable.selection.forEach((item) => { _this.mutipID.push(item.id); }); - console.log(_this.mutipID); createputins({ warehouse: this.form.warehouse, wproducts: _this.mutipID, @@ -1185,6 +1184,7 @@ that.formName = res.data.form_.name; let fieldList = res.data.record_data; that.fieldList = [...fieldList]; + debugger; let arr = fieldList.filter(item => { return item.field_type === 'draw' }); From ce4bbd0896e4a1cc720dcd426688e31b83aee369 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 17 Jan 2022 10:32:17 +0800 Subject: [PATCH 2/3] bugfix --- hb_client/src/views/qm/taskrecordfrom.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/hb_client/src/views/qm/taskrecordfrom.vue b/hb_client/src/views/qm/taskrecordfrom.vue index 3feffec..c12eff3 100644 --- a/hb_client/src/views/qm/taskrecordfrom.vue +++ b/hb_client/src/views/qm/taskrecordfrom.vue @@ -12,9 +12,6 @@ {{wproductnumber}} {{process}} - - - Date: Mon, 17 Jan 2022 13:21:59 +0800 Subject: [PATCH 3/3] xiugai --- hb_client/src/api/inm.js | 11 +- hb_client/src/views/inm/fifodetail.vue | 182 ++++++++++++++++++++++--- 2 files changed, 171 insertions(+), 22 deletions(-) diff --git a/hb_client/src/api/inm.js b/hb_client/src/api/inm.js index ad0eab6..a11d3d9 100644 --- a/hb_client/src/api/inm.js +++ b/hb_client/src/api/inm.js @@ -113,4 +113,13 @@ export function saleMtest(id, data) { method: 'POST', data }) -} \ No newline at end of file +} + +//复验上传 +export function itemfiles(id, data) { + return request({ + url: `/inm/fifoitem/${id}/`, + method: 'put', + data + }) +} diff --git a/hb_client/src/views/inm/fifodetail.vue b/hb_client/src/views/inm/fifodetail.vue index 08dec4f..4b1203b 100644 --- a/hb_client/src/views/inm/fifodetail.vue +++ b/hb_client/src/views/inm/fifodetail.vue @@ -48,20 +48,24 @@ + + + @@ -73,8 +77,65 @@ @pagination="getList" /> + + + + + - + + + 上传文件 + + 可上传多个pdf,word,ppt,excel,图片文件,单文件大小不超过50M + + + +
+ + {{ + item.name + }} +
+
+
+ 取消 + 确认 +
+
+