From 119efc91fd3374131c31b8c5f8f5f7cb8f6731cf Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期五, 17 十一月 2023 09:34:59 +0800 Subject: [PATCH] 将出入库明细拆分为出库明细和入库明细 --- src/views/reportForm/inboundOutboundDetail/index.vue | 55 +++++++++++++++++++++++++------------------------------ 1 files changed, 25 insertions(+), 30 deletions(-) diff --git a/src/views/reportForm/inboundOutboundDetail/index.vue b/src/views/reportForm/inboundOutboundDetail/index.vue index c354af5..b7f5122 100644 --- a/src/views/reportForm/inboundOutboundDetail/index.vue +++ b/src/views/reportForm/inboundOutboundDetail/index.vue @@ -104,7 +104,7 @@ prop: "date", isShowColumn: true, default: true, - date: true + // date: true }, { label: "鍗曞彿", @@ -115,6 +115,12 @@ { label: "浜у搧", prop: "productName", + isShowColumn: true, + default: true + }, + { + label: "浜у搧缂栫爜", + prop: "productId", isShowColumn: true, default: true }, @@ -147,6 +153,12 @@ { label: "鍗曚綅", prop: "unit", + isShowColumn: true, + default: true + }, + { + label: "閲嶉噺", + prop: "weight", isShowColumn: true, default: true }, @@ -196,36 +208,28 @@ pageSize: this.pagerOptions.pageSize }).then((res) => { if (res.code === 200) { + res.data.map((item)=>{ + let dateObject = new Date(item.date); + let formattedDateString = dateObject.toISOString().split('T')[0]; + item.date=formattedDateString + }) this.tableList.tableInfomation = res.data this.pagerOptions.totalCount = res.total } }) } else { - // await getProductOperatonList({ - // productId: this.params.id, - // page: this.pagerOptions.currPage, - // pageSize: this.pagerOptions.pageSize - // }).then((res) => { - // if (res.code === 200) { - // const list = res.data.map((item) => { - // return { - // ...item, - // fromLocation: item.fromLocation.name, - // toLocation: item.toLocation.name, - // productName: this.params.name, - // amount: item.details[0].product.amount, - // unit: item.details[0].product.unit - // } - // }) - // this.tableList.tableInfomation = list || [] - // this.pagerOptions.totalCount = res.total - // } - // }) await getHistory({ + baseOperationType:1, + keyWord:this.params.keyWord, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { if (res.code === 200) { + res.data.map((item)=>{ + let dateObject = new Date(item.date); + let formattedDateString = dateObject.toISOString().split('T')[0]; + item.date=formattedDateString + }) this.tableList.tableInfomation = res.data?res.data:[] this.pagerOptions.totalCount = res.total } @@ -236,15 +240,6 @@ getList(val) { this.params.keyWord=val; this.getData() - // getHistory({ - // page: this.pagerOptions.currPage, - // pageSize: this.pagerOptions.pageSize - // }).then((res) => { - // if (res.code === 200) { - // this.tableList.tableInfomation = res.data - // this.pagerOptions.totalCount = res.total - // } - // }) }, // 琛岀偣鍑� tableRowClick(row) { -- Gitblit v1.8.0