From 810452c0e9e3c678bd4ac14ed360d41c0d9b0229 Mon Sep 17 00:00:00 2001 From: liuying <1427574514@qq.com> Date: 周三, 24 4月 2024 15:17:30 +0800 Subject: [PATCH] 细节 --- iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue index 44fff97..0ea1661 100644 --- a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue +++ b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsArea/index.vue @@ -39,10 +39,11 @@ <a-form-item label="ERP浠g爜"> <a-input v-model="queryParam.erpCode" allow-clear placeholder="璇疯緭鍏RP浠g爜"/> </a-form-item> - </a-col> - <a-col :md="8" :sm="24"> + </a-col><a-col :md="8" :sm="24"> <a-form-item label="鎵�灞炰粨搴�"> - <a-input v-model="queryParam.warehouseId" allow-clear placeholder="璇疯緭鍏ユ墍灞炰粨搴�"/> + <a-select :allowClear="true" style="width: 100%" v-model="queryParam.warehouseId" placeholder="璇烽�夋嫨鎵�灞炰粨搴�"> + <a-select-option v-for="(item,index) in warehouseIdData" :key="index" :value="item.code">{{ item.name }}</a-select-option> + </a-select> </a-form-item> </a-col> <a-col :md="8" :sm="24"> @@ -168,6 +169,9 @@ <a-button type="primary" v-if="hasPerm('WmsArea:add')" icon="plus" @click="$refs.addForm.add()">鏂板搴撳尯淇℃伅</a-button> </div> </template> + <span slot="warehouseIdscopedSlots" slot-scope="text"> + {{ 'area_type' | dictType(text) }} + </span> <span slot="isBarcodeLevelControlscopedSlots" slot-scope="text"> <div v-if="text===true "> <a-tag color="green">鏄�</a-tag> @@ -438,7 +442,8 @@ } }, sorter: true, - dataIndex: 'warehouseId' + dataIndex: 'warehouseId', + scopedSlots: { customRender: 'warehouseIdscopedSlots' } }, { title: '闆朵欢绾х鎺�', @@ -675,6 +680,7 @@ return res.data }) }, + warehouseIdData: [], selectedRowKeys: [], selectedRows: [] } @@ -701,6 +707,8 @@ } }); } + const warehouseIdOption = this.$options + this.warehouseIdData = warehouseIdOption.filters['dictData']('area_type') const isBarcodeLevelControlOption = this.$options this.isBarcodeLevelControlData = isBarcodeLevelControlOption.filters['dictData']('yes_true_false') const isFIFOOption = this.$options -- Gitblit v1.9.3