From 9834dbff448908d2008d8c52a2544aad00c099b1 Mon Sep 17 00:00:00 2001 From: haoyahui <2032914783@qq.com> Date: 星期三, 22 十一月 2023 17:34:26 +0800 Subject: [PATCH] 库存盘点, 异常明细,报废管理 --- admin-web/src/views/stock/accessStock/outboundDetails/index.vue | 59 ++++++++++++++++++++++++++++------------------------------- 1 files changed, 28 insertions(+), 31 deletions(-) diff --git a/admin-web/src/views/stock/accessStock/outboundDetails/index.vue b/admin-web/src/views/stock/accessStock/outboundDetails/index.vue index e94ddb1..e0d322f 100644 --- a/admin-web/src/views/stock/accessStock/outboundDetails/index.vue +++ b/admin-web/src/views/stock/accessStock/outboundDetails/index.vue @@ -30,6 +30,7 @@ import myImport from '@/views/components/myImport'; import { goodsTemplate, goodsModel } from '@/api/baseSetting/finsystenant'; import { outputDtailList } from '@/api/stock/accessStock'; +import * as DateFormatter from '@/utils/DateFormatter'; export default { name: 'index', @@ -47,17 +48,16 @@ }, { type: 'select', - dataIndex: 'thisType', + dataIndex: 'flowType', label: '绫诲瀷', placeholder: '璇烽�夋嫨', defaultValue: '', - options: [{ - label:'閲囪喘鍏ュ簱', - value:1 - },{ - label:'閫�杩樺叆搴�', - value:2 - }], + options: [], + optionsConfig: { + label: 'dict_label', + value: 'dict_value', + url: SettingIplatform.apiBaseURL + '/permit/dict/data/type/FLOW_TYPE', + }, }, { type: 'select', @@ -66,6 +66,12 @@ placeholder: '璇烽�夋嫨', defaultValue: '', options: [], + cascader: [{ key: 'baseGoodsModelsId', queryKey: 'goodsTemplatesId' }], + optionsConfig: { + label: 'goodsName', + value: 'id', + url: SettingIplatform.apiBaseURL + '/pc/base/goods/template/query/goodsTemplate', + }, }, { type: 'select', @@ -74,6 +80,11 @@ placeholder: '璇烽�夋嫨', defaultValue: '', options: [], + optionsConfig: { + label: 'modelName', + value: 'id', + url: SettingIplatform.apiBaseURL + '/pc/base/goods/models/query/goodsModel', + }, }, { type: 'cascader', @@ -152,7 +163,15 @@ { title: '閲戦', field: 'totalPrice', align: 'left' }, { title: '鎵�灞炴満鏋�', field: 'agencyName', align: 'left' }, { title: '鍒涘缓浜�', field: 'createdName', align: 'left' }, - { title: '鎿嶄綔鏃堕棿', field: 'dealTime', align: 'left' }, + { + title: '鎿嶄綔鏃堕棿', + field: 'dealTime', + align: 'center', + width: 160, + formatter: (row) => { + return { value: DateFormatter.LongToDateTime(row.createTime) }; + }, + }, ], // 鎿嶄綔淇℃伅 operation: { @@ -181,30 +200,8 @@ }; }, created() { - this.initSearch(); }, methods: { - initSearch() { - this.items.map(async (item) => { - if (item.label == '鐗╁搧鍚嶇О') { - let res = await goodsTemplate(); - item.options = res.map((v) => { - v.label = v.goodsName; - v.value = v.id; - return v; - }); - } - if (item.label == '瑙勬牸鍨嬪彿') { - let res = await goodsModel(); - item.options = res.map((v) => { - v.label = v.modelName; - v.value = v.id; - return v; - }); - } - return item; - }); - }, showDetail(row) { this.detailSetting.id = row.id; this.detailSetting.info = JSON.stringify(row); -- Gitblit v1.9.1