Commit 804d858d authored by Smile's avatar Smile Committed by wux

bug265 【跟进记录-新增/编辑】修改“销售阶段”/“货物状态”并提交结果时,没有同步更新关联报价单相关数据

parent c9c4ca68
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<el-col :span="8" v-if="form.followType == 2"> <el-col :span="8" v-if="form.followType == 2">
<el-form-item :label="$t('货物状态')" prop="cargoStatus"> <el-form-item :label="$t('货物状态')" prop="cargoStatus">
<el-select v-model="form.cargoStatus" :placeholder="$t('请选择')"> <el-select v-model="form.cargoStatus" :placeholder="$t('请选择')">
<el-option v-for="dict in getDictDatas(DICT_TYPE.ECW_OFFER_CARGO_STATUS)" :key="dict.value" :label="isChinese ? dict.label : dict.labelEn" :value="dict.value" /> <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-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -286,7 +286,8 @@ export default { ...@@ -286,7 +286,8 @@ export default {
this.form.offerNumber = offer.number this.form.offerNumber = offer.number
console.log("this.form.cargoStatus",this.form) console.log("this.form.cargoStatus",this.form)
if (offer.cargoStatus){ if (offer.cargoStatus){
this.$set(this.form,'cargoStatus',String(offer.cargoStatus)); this.$set(this.form,'cargoStatus',offer.cargoStatus);
this.$set(this.form,'saleStage',offer.saleStage);
}else { }else {
this.$set(this.form,'cargoStatus',null); this.$set(this.form,'cargoStatus',null);
} }
...@@ -556,6 +557,7 @@ export default { ...@@ -556,6 +557,7 @@ export default {
if (status === 1){ if (status === 1){
if (this.form.followType===2&&this.form.cargoStatus!==this.offer.cargoStatus){ if (this.form.followType===2&&this.form.cargoStatus!==this.offer.cargoStatus){
this.offer.cargoStatus=this.form.cargoStatus; this.offer.cargoStatus=this.form.cargoStatus;
this.offer.saleStage=this.form.saleStage;
updateByCustomerFollow(this.offer); updateByCustomerFollow(this.offer);
} }
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('销售阶段')" min-width="120"> <el-table-column :label="$t('销售阶段')" min-width="120">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<dict-tag :type="DICT_TYPE.ECW_OFFER_STATUS" :value="row.status" /> <dict-tag :type="DICT_TYPE.CUSTOMER_FOLLOWUP_SALE_STAGE" :value="row.saleStage" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('订单编号')" min-width="150px"> <el-table-column :label="$t('订单编号')" min-width="150px">
......
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