From 9344be2c29bbf7e1b223caa2b7f3c7a202f7a582 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Fri, 25 Feb 2022 15:31:21 +0800 Subject: [PATCH] xihai --- hb_client/src/views/inm/fifo.vue | 2 +- hb_client/src/views/mtm/productprocess.vue | 6 ++++-- hb_client/src/views/sam/salesdetail.vue | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue index 632288e..27b6a54 100644 --- a/hb_client/src/views/inm/fifo.vue +++ b/hb_client/src/views/inm/fifo.vue @@ -319,7 +319,7 @@ export default { 4: "生产入库", 5: "其他入库", }, - inpur: [], + inpur: {}, listQuery: { page: 1, page_size: 20, diff --git a/hb_client/src/views/mtm/productprocess.vue b/hb_client/src/views/mtm/productprocess.vue index 13d34cd..4dfc3c6 100644 --- a/hb_client/src/views/mtm/productprocess.vue +++ b/hb_client/src/views/mtm/productprocess.vue @@ -578,7 +578,7 @@ :headers="upHeaders" :file-list="fileList" :limit="1" - accept=".doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf" + accept=".doc,.docx,.pdf,.jpg,.png,.tif,.gif,.apng" > 上传文件 @@ -642,7 +642,7 @@ const defaultoutputmaterial = {}; const defaultother = {}; const defaultusedstep = {need_test:false}; - const defaulttechdoc = {enabled: false}; + const defaulttechdoc = {enabled: false,name:""}; const defaultsubproducation = { need_combtest: false, }; @@ -1208,6 +1208,8 @@ handleUpSuccess(res, file, filelist) { this.techdoc.file = res.data.id; + console.log(res.data); + this.techdoc.name = res.data.name; }, handleRemove(file, filelist) { diff --git a/hb_client/src/views/sam/salesdetail.vue b/hb_client/src/views/sam/salesdetail.vue index 6e7e8be..4169d19 100644 --- a/hb_client/src/views/sam/salesdetail.vue +++ b/hb_client/src/views/sam/salesdetail.vue @@ -125,7 +125,7 @@ :headers="upHeaders" :file-list="fileList" :limit="1" - accept="webp,bmp,jpg,png,tif,gif,apng" + accept=".webp,.bmp,.jpg,.png,.tif,.gif,.apng" > 上传文件