From db83e0224eae65f75b8a6568ca34f7876461fdad Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 17 Jan 2022 10:26:24 +0800 Subject: [PATCH] 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' });