Commit e29418131904d05ca3519da2561170b65ddcaf4c

Authored by 谭毅彬
1 parent df602733

容器类型页添加货主,库位类型下拉框

Signed-off-by: TanYibin <5491541@qq.com>
ant-design-vue-jeecg/src/views/system/config/modules/ContainerTypeForm.vue
@@ -28,11 +28,11 @@ @@ -28,11 +28,11 @@
28 </a-col> 28 </a-col>
29 <a-col :span="24"> 29 <a-col :span="24">
30 <a-form-model-item label="绑定的库位类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="locationType"> 30 <a-form-model-item label="绑定的库位类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="locationType">
31 - <j-multi-select-tag 31 + <j-select-multiple
32 v-model="model.locationType" 32 v-model="model.locationType"
33 :options="locationTypeOptions" 33 :options="locationTypeOptions"
34 placeholder="请选择库位类型"> 34 placeholder="请选择库位类型">
35 - </j-multi-select-tag> 35 + </j-select-multiple>
36 </a-form-model-item> 36 </a-form-model-item>
37 </a-col> 37 </a-col>
38 <a-col :span="24"> 38 <a-col :span="24">
@@ -69,9 +69,7 @@ @@ -69,9 +69,7 @@
69 <script> 69 <script>
70 70
71 import {httpAction, getAction} from '@/api/manage' 71 import {httpAction, getAction} from '@/api/manage'
72 -import {validateDuplicateValue} from '@/utils/util'  
73 -import {getCompanyList, getLocationTypeList} from '@/api/api'  
74 -import {disabledAuthFilter} from "@/utils/authFilter" 72 +import {getLocationTypeList, getCompanyList} from '@/api/api'
75 73
76 export default { 74 export default {
77 name: 'ContainerTypeForm', 75 name: 'ContainerTypeForm',
@@ -106,7 +104,7 @@ export default { @@ -106,7 +104,7 @@ export default {
106 {required: true, message: '请输入名称!'}, 104 {required: true, message: '请输入名称!'},
107 ], 105 ],
108 locationType: [ 106 locationType: [
109 - {required: true, message: '请输入库位类型!'}, 107 + {required: true, message: '请选择库位类型!'},
110 ], 108 ],
111 }, 109 },
112 url: { 110 url: {
@@ -123,7 +121,6 @@ export default { @@ -123,7 +121,6 @@ export default {
123 }, 121 },
124 created() { 122 created() {
125 //备份model原始值 123 //备份model原始值
126 - this.loadFrom();  
127 this.modelDefault = JSON.parse(JSON.stringify(this.model)); 124 this.modelDefault = JSON.parse(JSON.stringify(this.model));
128 }, 125 },
129 methods: { 126 methods: {
@@ -141,14 +138,12 @@ export default { @@ -141,14 +138,12 @@ export default {
141 } 138 }
142 }); 139 });
143 }, 140 },
144 - // 禁用异步获取API数据  
145 - isDisabledAuth(code) {  
146 - return disabledAuthFilter(code);  
147 - },  
148 add() { 141 add() {
  142 + this.loadFrom();
149 this.edit(this.modelDefault); 143 this.edit(this.modelDefault);
150 }, 144 },
151 edit(record) { 145 edit(record) {
  146 + this.loadFrom();
152 this.model = Object.assign({}, record); 147 this.model = Object.assign({}, record);
153 this.visible = true; 148 this.visible = true;
154 }, 149 },