Commit 94746a9e authored by zhengyi's avatar zhengyi

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

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