Commit bd87aaa767ebea597867f6560d80226b9be7cb99
Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4 into develop
Showing
2 changed files
with
19 additions
and
2 deletions
ant-design-vue-jeecg/src/views/system/QuartzJobList.vue
@@ -176,6 +176,7 @@ export default { | @@ -176,6 +176,7 @@ export default { | ||
176 | title: '操作', | 176 | title: '操作', |
177 | dataIndex: 'action', | 177 | dataIndex: 'action', |
178 | align: "center", | 178 | align: "center", |
179 | + fixed: "right", | ||
179 | width: 180, | 180 | width: 180, |
180 | scopedSlots: {customRender: 'action'}, | 181 | scopedSlots: {customRender: 'action'}, |
181 | } | 182 | } |
ant-design-vue-jeecg/src/views/system/config/modules/ZoneForm.vue
@@ -14,8 +14,12 @@ | @@ -14,8 +14,12 @@ | ||
14 | </a-form-model-item> | 14 | </a-form-model-item> |
15 | </a-col> | 15 | </a-col> |
16 | <a-col :span="24"> | 16 | <a-col :span="24"> |
17 | - <a-form-model-item label="包含库位类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="locationTypeCode"> | ||
18 | - <a-input v-model="model.locationTypeCode" placeholder="请输入包含库位类型编码,用英文逗号分割"></a-input> | 17 | + <a-form-model-item label="绑定的库位类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="locationTypeCode"> |
18 | + <j-select-multiple | ||
19 | + v-model="model.locationTypeCode" | ||
20 | + :options="locationTypeList" | ||
21 | + placeholder="请选择库位类型"> | ||
22 | + </j-select-multiple> | ||
19 | </a-form-model-item> | 23 | </a-form-model-item> |
20 | </a-col> | 24 | </a-col> |
21 | </a-row> | 25 | </a-row> |
@@ -28,6 +32,7 @@ | @@ -28,6 +32,7 @@ | ||
28 | 32 | ||
29 | import {httpAction, getAction} from '@/api/manage' | 33 | import {httpAction, getAction} from '@/api/manage' |
30 | import {validateDuplicateValue} from '@/utils/util' | 34 | import {validateDuplicateValue} from '@/utils/util' |
35 | +import {getLocationTypeList} from '@/api/api' | ||
31 | 36 | ||
32 | export default { | 37 | export default { |
33 | name: 'ZoneForm', | 38 | name: 'ZoneForm', |
@@ -42,6 +47,7 @@ export default { | @@ -42,6 +47,7 @@ export default { | ||
42 | }, | 47 | }, |
43 | data() { | 48 | data() { |
44 | return { | 49 | return { |
50 | + locationTypeList: [], | ||
45 | model: {}, | 51 | model: {}, |
46 | labelCol: { | 52 | labelCol: { |
47 | xs: {span: 24}, | 53 | xs: {span: 24}, |
@@ -78,8 +84,18 @@ export default { | @@ -78,8 +84,18 @@ export default { | ||
78 | created() { | 84 | created() { |
79 | //备份model原始值 | 85 | //备份model原始值 |
80 | this.modelDefault = JSON.parse(JSON.stringify(this.model)); | 86 | this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
87 | + this.loadFrom(); | ||
81 | }, | 88 | }, |
82 | methods: { | 89 | methods: { |
90 | + loadFrom() { | ||
91 | + getLocationTypeList().then((res) => { | ||
92 | + if (res.success) { | ||
93 | + this.locationTypeList = res.result.map((item, index, arr) => { | ||
94 | + return {label: item.name, value: item.code} | ||
95 | + }) | ||
96 | + } | ||
97 | + }); | ||
98 | + }, | ||
83 | add() { | 99 | add() { |
84 | this.edit(this.modelDefault); | 100 | this.edit(this.modelDefault); |
85 | }, | 101 | }, |