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/procure/receiptDetails/index.vue | 32 +++++++++++++++----------------- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/admin-web/src/views/stock/procure/receiptDetails/index.vue b/admin-web/src/views/stock/procure/receiptDetails/index.vue index 7f80beb..67a4754 100644 --- a/admin-web/src/views/stock/procure/receiptDetails/index.vue +++ b/admin-web/src/views/stock/procure/receiptDetails/index.vue @@ -52,19 +52,31 @@ defaultValue: '', }, { - type: 'text', - dataIndex: 'goodsTemplateName', + type: 'select', + dataIndex: 'goodsTemplateId', label: '鐗╁搧鍚嶇О', placeholder: '璇疯緭鍏�', defaultValue: '', + options: [], + cascader: [{ key: 'baseGoodsModelsId', queryKey: 'goodsTemplatesId' }], + optionsConfig: { + label: 'goodsName', + value: 'id', + url: SettingIplatform.apiBaseURL + '/pc/base/goods/template/query/goodsTemplate', + }, }, { type: 'select', dataIndex: 'baseGoodsModelsId', label: '瑙勬牸鍨嬪彿', - placeholder: '璇烽�夋嫨', + placeholder: '璇疯緭鍏�', defaultValue: '', options: [], + optionsConfig: { + label: 'modelName', + value: 'id', + url: SettingIplatform.apiBaseURL + '/pc/base/goods/models/query/goodsModel', + }, }, { type: 'cascader', @@ -206,17 +218,6 @@ }; }, created() { - // 鎼滅储妗嗚鏍煎瀷鍙� - goodsModel().then((res) => { - this.items.forEach((v) => { - if (v.label == '瑙勬牸鍨嬪彿') { - v.options = res.map((item) => { - (item.label = item.modelName), (item.value = item.id); - return item; - }); - } - }); - }); }, methods: { //瀵煎叆 @@ -279,9 +280,6 @@ } if (this.filterFrom.incomeTimeEnd) { this.filterFrom.incomeTimeEnd = this.filterFrom.incomeTimeEnd.replace(/\-/g, ''); - } - if (params.agencyId && params.agencyId.length) { - this.filterFrom.agencyId = params.agencyId[params.agencyId.length - 1]; } this.search(1); }, -- Gitblit v1.9.1