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