Commit 7d6f87d8 authored by Smile's avatar Smile Committed by wux

bug277 【跟进记录-查看】1、“客户经理”字段值没有回显。2、“货物状态”字段未置灰

parent 11afcd0e
......@@ -94,7 +94,7 @@
<!-- </el-col>-->
<el-col :span="8" v-if="form.followType == 2">
<el-form-item :label="$t('货物状态')" prop="cargoStatus">
<el-select v-model="form.cargoStatus" :placeholder="$t('请选择')">
<el-select v-model="form.cargoStatus" :placeholder="$t('请选择')" :disabled="isView">
<el-option v-for="dict in getDictDatas(DICT_TYPE.ECW_OFFER_CARGO_STATUS)" :key="dict.value" :label="isChinese ? dict.label : dict.labelEn" :value="parseInt(dict.value)" />
</el-select>
</el-form-item>
......@@ -284,7 +284,6 @@ export default {
this.offer = offer;
// 选择了报价单后,需要将报价单中的客户及客户联系人信息回显
this.form.offerNumber = offer.number
console.log("this.form.cargoStatus",this.form)
if (offer.cargoStatus||offer.saleStage){
this.$set(this.form,'cargoStatus',offer.cargoStatus);
this.$set(this.form,'saleStage',offer.saleStage);
......@@ -303,7 +302,9 @@ export default {
this.form.customerNumber = item.customerNumber
this.form.contactName = item.name
this.form.contactPhone = "+" + item.areaCode + item.phoneNew
this.form.followUserId = item.customerService
if (item.customerService){
this.form.followUserId = item.customerService
}
}
})
})
......@@ -323,7 +324,9 @@ export default {
this.form.customerNumber = item.customerNumber
this.form.contactName = item.name
this.form.contactPhone = "+" + item.areaCode + item.phoneNew
this.form.followUserId = item.customerService
if (item.customerService){
this.form.followUserId = item.customerService
}
}
})
if (!this.form.contactId) {
......@@ -333,7 +336,9 @@ export default {
this.form.customerNumber = item.customerNumber
this.form.contactName = item.name
this.form.contactPhone = "+" + item.areaCode + item.phoneNew
this.form.followUserId = item.customerService
if (item.customerService){
this.form.followUserId = item.customerService
}
this.setCustomerFollow()
return true
}
......@@ -347,13 +352,10 @@ export default {
},
methods: {
setCustomerFollow(){
if (!this.form.followUserId){
if (!this.form.followUserId&&!this.isView){
const user = this.serviceUserList.find(item =>item.id === this.$store.getters.userId);
if (user.id) {
this.$set(this.form, "followUserId", user.id);
} else {
// 处理未找到用户的情况
this.$set(this.form, "followUserId", null); // 或者其他默认值
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment