|
@@ -49,7 +49,7 @@
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
<!-- 人员类型为仓库管理员时 显示管辖仓库 -->
|
|
|
- <a-form-model-item label="管辖仓库" prop="bizUserScopeList" v-show="form.bizUserType == 'cg'">
|
|
|
+ <a-form-model-item label="管辖仓库" prop="bizUserScopeList" v-if="form.bizUserType == 'cg'">
|
|
|
<chooseWarehouse ref="warehouse" modeType="multiple" :value="warehouseList" @change="handleWarehouse"></chooseWarehouse>
|
|
|
</a-form-model-item>
|
|
|
<div style="display: flex;justify-content: center;padding: 30px 0;">
|
|
@@ -138,13 +138,14 @@ export default {
|
|
|
this.form.bizUserScopeList = arr
|
|
|
},
|
|
|
resetSearchForm () {
|
|
|
- this.$refs.userName.resetForm()
|
|
|
this.user_name = ''
|
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
- if (this.form.bizUserType == 'cg') {
|
|
|
+ if (this.form.bizUserType && this.form.bizUserType == 'cg') {
|
|
|
this.$refs.warehouse.clearData()
|
|
|
+
|
|
|
this.form.bizUserScopeList = []
|
|
|
}
|
|
|
+ this.$refs.userName.resetForm()
|
|
|
+ this.$refs.ruleForm.resetFields()
|
|
|
},
|
|
|
userChange (val) {
|
|
|
this.form.userSn = val.key
|
|
@@ -180,6 +181,7 @@ export default {
|
|
|
// 重定义的弹框状态
|
|
|
isShow (newValue, oldValue) {
|
|
|
if (!newValue) {
|
|
|
+ console.log('2222222222222222222')
|
|
|
this.resetSearchForm()
|
|
|
this.$emit('close')
|
|
|
}
|