From f4d2c032c91e459ee8775ba88870478be3e76261 Mon Sep 17 00:00:00 2001 From: payne <bzrlw2012@163.com> Date: 周三, 24 4月 2024 14:39:09 +0800 Subject: [PATCH] 调整 --- iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsPlace/index.vue | 71 +++++++++++++---------------------- 1 files changed, 27 insertions(+), 44 deletions(-) diff --git a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsPlace/index.vue b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsPlace/index.vue index b63d919..9c3a2a2 100644 --- a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsPlace/index.vue +++ b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsPlace/index.vue @@ -22,21 +22,20 @@ </a-form-item> </a-col><a-col :md="8" :sm="24"> <a-form-item label="搴撲綅绫诲瀷"> - <a-input-number v-model="queryParam.placeType" style="width: 100%" allow-clear placeholder="璇疯緭鍏ュ簱浣嶇被鍨�"/> + <a-select :allowClear="true" style="width: 100%" v-model="queryParam.placeType" placeholder="璇烽�夋嫨搴撲綅绫诲瀷"> + <a-select-option v-for="(item,index) in placeTypeData" :key="index" :value="item.code">{{ item.name }}</a-select-option> + </a-select> </a-form-item> </a-col> <a-col :md="8" :sm="24"> <a-form-item label="搴撲綅绫诲瀷鍚嶇О"> <a-input v-model="queryParam.placeTypeName" allow-clear placeholder="璇疯緭鍏ュ簱浣嶇被鍨嬪悕绉�"/> </a-form-item> - </a-col> - <a-col :md="8" :sm="24"> - <a-form-item label="瀛樻斁鍗曚綅"> - <a-input v-model="queryParam.stockUnit" allow-clear placeholder="璇疯緭鍏ュ瓨鏀惧崟浣�"/> - </a-form-item> </a-col><a-col :md="8" :sm="24"> <a-form-item label="搴撲綅灞炴��"> - <a-input-number v-model="queryParam.placeStatus" style="width: 100%" allow-clear placeholder="璇疯緭鍏ュ簱浣嶅睘鎬�"/> + <a-select :allowClear="true" style="width: 100%" v-model="queryParam.placeStatus" placeholder="璇烽�夋嫨搴撲綅灞炴��"> + <a-select-option v-for="(item,index) in placeStatusData" :key="index" :value="item.code">{{ item.name }}</a-select-option> + </a-select> </a-form-item> </a-col> <a-col :md="8" :sm="24"> @@ -218,17 +217,7 @@ </a-form-item> </a-col> - - <a-col :md="8" :sm="24"> - <a-form-item label="鍒涘缓鑰呭悕绉�"> - <a-input v-model="queryParam.createdUserName" allow-clear placeholder="璇疯緭鍏ュ垱寤鸿�呭悕绉�"/> - </a-form-item> - </a-col> - <a-col :md="8" :sm="24"> - <a-form-item label="淇敼鑰呭悕绉�"> - <a-input v-model="queryParam.updatedUserName" allow-clear placeholder="璇疯緭鍏ヤ慨鏀硅�呭悕绉�"/> - </a-form-item> - </a-col> </template> + </template> <a-col :md="8" :sm="24" > <span class="table-page-search-submitButtons"> @@ -266,6 +255,12 @@ <a-button type="primary" v-if="hasPerm('WmsPlace:add')" icon="plus" @click="$refs.addForm.add()">鏂板搴撲綅淇℃伅</a-button> </div> </template> + <span slot="placeTypescopedSlots" slot-scope="text"> + {{ 'place_type' | dictType(text) }} + </span> + <span slot="placeStatusscopedSlots" slot-scope="text"> + {{ 'place_status' | dictType(text) }} + </span> <span slot="isSrmPlacescopedSlots" slot-scope="text"> <div v-if="text===true "> <a-tag color="green">鏄�</a-tag> @@ -444,19 +439,20 @@ customHeaderCell: () => { return { style: { - 'min-width': '80px'//鏈�灏忓垪瀹借缃� + 'min-width': '120px'//鏈�灏忓垪瀹借缃� } } }, customCell: () => { return { style: { - 'min-width': '80px'//鏈�灏忓垪瀹借缃� + 'min-width': '120px'//鏈�灏忓垪瀹借缃� } } }, sorter: true, - dataIndex: 'placeType' + dataIndex: 'placeType', + scopedSlots: { customRender: 'placeTypescopedSlots' } }, { title: '搴撲綅绫诲瀷鍚嶇О', @@ -479,44 +475,25 @@ dataIndex: 'placeTypeName' }, { - title: '瀛樻斁鍗曚綅', - align: 'center', - customHeaderCell: () => { - return { - style: { - 'min-width': '120px'//鏈�灏忓垪瀹借缃� - } - } - }, - customCell: () => { - return { - style: { - 'min-width': '120px'//鏈�灏忓垪瀹借缃� - } - } - }, - sorter: true, - dataIndex: 'stockUnit' - }, - { title: '搴撲綅灞炴��', align: 'center', customHeaderCell: () => { return { style: { - 'min-width': '80px'//鏈�灏忓垪瀹借缃� + 'min-width': '120px'//鏈�灏忓垪瀹借缃� } } }, customCell: () => { return { style: { - 'min-width': '80px'//鏈�灏忓垪瀹借缃� + 'min-width': '120px'//鏈�灏忓垪瀹借缃� } } }, sorter: true, - dataIndex: 'placeStatus' + dataIndex: 'placeStatus', + scopedSlots: { customRender: 'placeStatusscopedSlots' } }, { title: '鏄惁鍫嗗灈鏈哄簱浣�', @@ -1193,6 +1170,8 @@ return res.data }) }, + placeTypeData: [], + placeStatusData: [], selectedRowKeys: [], selectedRows: [] } @@ -1219,6 +1198,10 @@ } }); } + const placeTypeOption = this.$options + this.placeTypeData = placeTypeOption.filters['dictData']('place_type') + const placeStatusOption = this.$options + this.placeStatusData = placeStatusOption.filters['dictData']('place_status') const isSrmPlaceOption = this.$options this.isSrmPlaceData = isSrmPlaceOption.filters['dictData']('yes_true_false') const isRgvPlaceOption = this.$options -- Gitblit v1.9.3