Commit b6a2d4a9 authored by 我在何方's avatar 我在何方

间接客户删除修复

parent be0bbc01
......@@ -46,3 +46,11 @@ export function getCustomerContactsListByCustomer(query) {
params: query
})
}
// 删除间接客户
export function deleteIndirectCustomer(id) {
return request({
url: '/ecw/indirect-customer/delete?id=' + id,
method: 'delete'
})
}
\ No newline at end of file
......@@ -680,7 +680,7 @@ export default {
fillupCustomeInfo(form).then(r => {
this.$modal.msgSuccess(this.$t('修改成功'));
this.open = false;
const obj = { path: "/customer/customer" };
const obj = { path: "/customer/indirectCustomer" };
this.$tab.closeOpenPage(obj);
})
}else {
......@@ -688,7 +688,7 @@ export default {
this.$modal.msgSuccess(this.$t('修改成功'));
this.open = false;
// this.getList();
const obj = { path: "/customer/customer" };
const obj = { path: "/customer/indirectCustomer" };
this.$tab.closeOpenPage(obj);
})
}
......
......@@ -9,7 +9,8 @@
<!-- <el-button @click="$router.push('/offer/create')" type="primary" size="small">{{$t('报价')}}</el-button>
<el-button type="primary" size="small" @click="$refs['customerFollow'].customerFollow.dialogVisible = true">{{$t('跟进')}}</el-button>
<el-button type="primary" size="small" @click="$refs['customerComplaint'].handleAdd()">{{$t('客诉')}}</el-button> -->
<el-button type="danger" @click="delCustomer" size="small">{{$t('删除')}}</el-button>
<!-- <el-button type="danger" @click="delCustomer" size="small">{{$t('删除')}}</el-button> -->
<el-button v-hasPermi="['ecw:indirectCustomer:delete']" type="danger" @click="delCustomer" size="small">{{$t('删除')}}</el-button>
</div>
</div>
<el-card style="margin-top: 15px;">
......@@ -413,7 +414,7 @@ import CustomerFollow from "@/components/CustomerFollow"
import { parseTime } from '@/utils/ruoyi'
import CustomerComplaint from '@/views/ecw/customerComplaint'
import { listServiceUser } from '@/api/system/user'
import { getCustomerContactsListByCustomer,getCustomer } from '@/api/ecw/indirectCustomer'
import { getCustomerContactsListByCustomer,getCustomer,deleteIndirectCustomer } from '@/api/ecw/indirectCustomer'
import {getOrderPage} from "@/api/ecw/order";
import Template from "@/views/cms/template";
import {getCreditRulePage} from "@/api/customer/creditRule";
......@@ -619,7 +620,16 @@ export default {
}
},
delCustomer(){
this.$confirm(`${this.$t('是否要删除当前客户')}《${this.customer.name}》?`, `${this.$t('提示')}`, {
confirmButtonText: this.$t('确定'),
cancelButtonText: this.$t('取消'),
type: 'warning'
}).then(() => {
deleteIndirectCustomer(this.id).then(r => {
this.$modal.msgSuccess(this.$t('删除成功'));
this.$router.back()
})
})
},
changeDate(val){
if(val){
......
......@@ -81,6 +81,17 @@
{{getRouterNameById(list.lineId)}}
</el-descriptions-item>
</el-descriptions>
<el-descriptions :column="4" class="card">
<el-descriptions-item :label="$t('报价单状态')">
<dict-tag :type="DICT_TYPE.ECW_OFFER_STATUS" :value="list.status" />
</el-descriptions-item>
</el-descriptions>
<el-descriptions :column="4" class="card" v-if="list.status==5">
<el-descriptions-item :label="$t('输单原因')">
{{list.reason}}
</el-descriptions-item>
</el-descriptions>
</div>
</el-card>
......
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