|
|
@ -102,14 +102,29 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-form-item label="地址" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
|
|
|
|
<a-form-item label="地址" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input
|
|
|
|
<a-input
|
|
|
|
placeholder="请输入地址"
|
|
|
|
placeholder="请输入地址"
|
|
|
|
v-decorator="['addr', { rules: [{ required: true, message: '请输入地址!' }] }]"
|
|
|
|
v-decorator="['addr', { rules: [{ required: true, message: '请输入地址!' }] }]"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="6">
|
|
|
|
|
|
|
|
<a-form-item label="属性字符串" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-select
|
|
|
|
|
|
|
|
mode="multiple"
|
|
|
|
|
|
|
|
placeholder="请选择属性字符串"
|
|
|
|
|
|
|
|
v-decorator="['WpropString', { rules: [{ required: true, message: '请选择属性字符串!' }] }]"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option value="委托单位">委托单位</a-select-option>
|
|
|
|
|
|
|
|
<a-select-option value="车队">车队</a-select-option>
|
|
|
|
|
|
|
|
<a-select-option value="报关行">报关行</a-select-option>
|
|
|
|
|
|
|
|
<a-select-option value="订舱管理">订舱管理</a-select-option>
|
|
|
|
|
|
|
|
<a-select-option value="代理">代理</a-select-option>
|
|
|
|
|
|
|
|
</a-select>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
@ -146,12 +161,12 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
|
|
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
|
|
|
<vxe-column type="seq" width="60"></vxe-column>
|
|
|
|
<vxe-column type="seq" width="60"></vxe-column>
|
|
|
|
<vxe-column field="WroleCode" title="角色" :edit-render="{}">
|
|
|
|
<vxe-column field="roleCode" title="角色" :edit-render="{}">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<span>{{ formatRole(row.WroleCode) }}</span>
|
|
|
|
<span>{{ formatRole(row.roleCode) }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<vxe-select v-model="row.WroleCode" multiple transfer>
|
|
|
|
<vxe-select v-model="row.roleCode" transfer>
|
|
|
|
<vxe-option v-for="item in TypeData" :key="item.code" :value="item.code" :label="item.value"></vxe-option>
|
|
|
|
<vxe-option v-for="item in TypeData" :key="item.code" :value="item.code" :label="item.value"></vxe-option>
|
|
|
|
</vxe-select>
|
|
|
|
</vxe-select>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -300,19 +315,6 @@ export default {
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
...res.data
|
|
|
|
...res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
res.data.contacts.forEach((item, index) => {
|
|
|
|
|
|
|
|
item.WebKey = index
|
|
|
|
|
|
|
|
let data = []
|
|
|
|
|
|
|
|
item.roleCode.split(']').forEach(item => {
|
|
|
|
|
|
|
|
if (item) {
|
|
|
|
|
|
|
|
data.push(item.split('[')[1])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
item.WroleCode = data
|
|
|
|
|
|
|
|
console.log(item.WroleCode)
|
|
|
|
|
|
|
|
this.ContactsData.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '346103538081861' }).then(res => {
|
|
|
|
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '346103538081861' }).then(res => {
|
|
|
|
this.TypeData = res.data.rows
|
|
|
|
this.TypeData = res.data.rows
|
|
|
@ -341,13 +343,12 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formatRole(value) {
|
|
|
|
formatRole(value) {
|
|
|
|
let RData = ''
|
|
|
|
let RData = ''
|
|
|
|
|
|
|
|
console.log(value)
|
|
|
|
if (value) {
|
|
|
|
if (value) {
|
|
|
|
this.TypeData.forEach(item => {
|
|
|
|
this.TypeData.forEach(item => {
|
|
|
|
value.forEach(item2 => {
|
|
|
|
if (item.code == value) {
|
|
|
|
if (item.code == item2) {
|
|
|
|
RData = item.value
|
|
|
|
RData == '' ? (RData = item.value) : (RData = RData + ',' + item.value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return RData
|
|
|
|
return RData
|
|
|
@ -386,15 +387,6 @@ export default {
|
|
|
|
values[key] = JSON.stringify(values[key])
|
|
|
|
values[key] = JSON.stringify(values[key])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.ContactsData.forEach(item => {
|
|
|
|
|
|
|
|
if (item.WroleCode.length) {
|
|
|
|
|
|
|
|
let data = ''
|
|
|
|
|
|
|
|
item.WroleCode.forEach(item => {
|
|
|
|
|
|
|
|
data = `${data}[${item}]`
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
item.roleCode = data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
DjyCustomerEdit({ ...this.Data, ...values, contacts: this.ContactsData })
|
|
|
|
DjyCustomerEdit({ ...this.Data, ...values, contacts: this.ContactsData })
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
@ -412,11 +404,11 @@ export default {
|
|
|
|
this.confirmLoading = false
|
|
|
|
this.confirmLoading = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
handleCancel() {
|
|
|
|
|
|
|
|
this.form.resetFields()
|
|
|
|
|
|
|
|
this.visible = false
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// handleCancel() {
|
|
|
|
|
|
|
|
// this.form.resetFields()
|
|
|
|
|
|
|
|
// this.visible = false
|
|
|
|
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|