From 52569c7d6304ef4cd93542a08a6edbe02a3e1bcb Mon Sep 17 00:00:00 2001
From: payne <bzrlw2012@163.com>
Date: 周四, 25 4月 2024 10:46:19 +0800
Subject: [PATCH] 客户档案 调整
---
iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsPlace/index.vue | 61 +++++++++++++-----------------
1 files changed, 27 insertions(+), 34 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..fe082b6 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">
@@ -266,6 +265,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 +449,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 +485,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: '鏄惁鍫嗗灈鏈哄簱浣�',
@@ -524,7 +511,7 @@
customHeaderCell: () => {
return {
style: {
- 'min-width': '120px'//鏈�灏忓垪瀹借缃�
+ 'min-width': '140px'//鏈�灏忓垪瀹借缃�
}
}
},
@@ -1193,6 +1180,8 @@
return res.data
})
},
+ placeTypeData: [],
+ placeStatusData: [],
selectedRowKeys: [],
selectedRows: []
}
@@ -1219,6 +1208,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