Commit 94746a9e authored by zhengyi's avatar zhengyi

跟进记录批量修改状态功能修正

parent f685f659
......@@ -3,13 +3,13 @@
center
:title="$t('修改跟进状态')"
:visible="show"
@close="close"
@close="customerFollowUpdateStatusClose"
width="30%">
<div style="width: 100%;min-height: 60px;text-align: center">
<el-form label-width="120px">
<el-col :span="20">
<el-form-item :label="$t('跟进状态')">
<el-select v-model="status" :placeholder="$t('请选择')" size="small">
<el-select v-model="status" :placeholder="$t('请选择')" size="small">
<el-option v-for="dict in getDictDatas(DICT_TYPE.CUSTOMER_FOLLOWUP_STATUS)" :key="dict.value"
:label="isChinese ? dict.label : dict.labelEn" :value="parseInt(dict.value)"/>
</el-select>
......@@ -70,9 +70,11 @@ export default {
status: this.status
}).then(r => {
if (r.code === 0) {
this.$message.success(this.$t('修改成功!'))
this.$message.success(this.$t('修改成功!'))
this.$emit("refresh")
this.customerFollowUpdateStatusClose()
}
getCustomerFollowList()
})
},
getCustomerFollowList() {
......@@ -86,7 +88,7 @@ export default {
this.loading = false
})
},
close() {
customerFollowUpdateStatusClose() {
this.status = null;
this.$emit('update:show', false)
......
......@@ -126,7 +126,7 @@
<pagination :total="customerFollowTotal" :page.sync="followForm.pageNo" :limit.sync="followForm.pageSize" @pagination="getCustomerFollowList" />
</el-card>
<customer-follow ref="customerFollow" @handleCustomerFollowAdd="handleCustomerFollowAdd" @refresh="handleQuery" v-if="customerFollowVisible" :customer-id="customerId" :customerService="customerService" :customerNumber="customerNumber" />
<customer-follow-update-status :show.sync="updateStatus" :followup-ids.sync="selectCustomerFollowList"></customer-follow-update-status>
<customer-follow-update-status :show.sync="updateStatus" :followup-ids.sync="selectCustomerFollowList" @refresh="handleQuery" />
</div>
</template>
......
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