|
@@ -17,7 +17,15 @@
|
|
|
:rules="rules"
|
|
|
:label-col="formItemLayout.labelCol"
|
|
|
:wrapper-col="formItemLayout.wrapperCol">
|
|
|
- <a-form-model-item label="关联客户" prop="customerSn">
|
|
|
+ <a-form-model-item prop="customerSn">
|
|
|
+ <template slot="label">
|
|
|
+ <a-tooltip placement="top">
|
|
|
+ <template slot="title">
|
|
|
+ <span>此数字货架,归属于您的哪一位客户。如果没有搜索到客户,请在客户管理功能中新建客户。</span>
|
|
|
+ </template>
|
|
|
+ 关联客户<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
|
|
|
+ </a-tooltip>
|
|
|
+ </template>
|
|
|
<custList ref="custList" :isEnabled="true" @change="custChange"></custList>
|
|
|
</a-form-model-item>
|
|
|
</a-form-model>
|
|
@@ -56,8 +64,8 @@ export default {
|
|
|
spinning: false,
|
|
|
isShow: this.openModal, // 是否打开弹框
|
|
|
formItemLayout: {
|
|
|
- labelCol: { span: 4 },
|
|
|
- wrapperCol: { span: 18 }
|
|
|
+ labelCol: { span: 5 },
|
|
|
+ wrapperCol: { span: 17 }
|
|
|
},
|
|
|
form: {
|
|
|
customerSn: undefined
|
|
@@ -114,9 +122,13 @@ export default {
|
|
|
if (this.nowData.customerSn) {
|
|
|
const _this = this
|
|
|
this.$nextTick(() => {
|
|
|
- _this.form.customerSn = _this.nowData.customerSn
|
|
|
- _this.$refs.custList.fetchUser(_this.nowData.customerName)
|
|
|
- _this.$refs.custList.dealerName = { key: _this.nowData.customerSn, label: _this.nowData.customerName, row: _this.nowData }
|
|
|
+ _this.form.customerSn = _this.nowData.customerEntity && _this.nowData.customerEntity.customerSn
|
|
|
+ _this.$refs.custList.fetchUser(_this.nowData.customerEntity && _this.nowData.customerEntity.customerName)
|
|
|
+ _this.$refs.custList.dealerName = {
|
|
|
+ key: _this.nowData.customerEntity && _this.nowData.customerEntity.customerSn,
|
|
|
+ label: _this.nowData.customerEntity && _this.nowData.customerEntity.customerName,
|
|
|
+ row: _this.nowData
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|