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/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/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 + }} +
+
+
+ 取消 + 确认 +
+
+ + 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' });