|
@@ -116,36 +116,51 @@ export default {
|
|
|
this.arealist = this.tool.createMenu(res.data)
|
|
|
},
|
|
|
async nullClick () {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "classname": "saletool.orderclue.web.orderclue",
|
|
|
- "method": "addFollowUpLog",
|
|
|
- "content": {
|
|
|
- "sat_orderclueid": this.$route.query.id,
|
|
|
- "content": "无效处理",
|
|
|
- "followupmode": "", //当面拜访、电话沟通
|
|
|
- "logtype": "无效", //跟进、成交、丢单、无效
|
|
|
- "competitor": ""
|
|
|
+ this.$alert('是否设置该线索为"失效"状态,确定后无法撤销', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ callback: async action => {
|
|
|
+ if(action == 'confirm') {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "classname": "saletool.orderclue.web.orderclue",
|
|
|
+ "method": "addFollowUpLog",
|
|
|
+ "content": {
|
|
|
+ "sat_orderclueid": this.$route.query.id,
|
|
|
+ "content": "无效处理",
|
|
|
+ "followupmode": "", //当面拜访、电话沟通
|
|
|
+ "logtype": "无效", //跟进、成交、丢单、无效
|
|
|
+ "competitor": ""
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.getDetail()
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
- this.tool.showMessage(res,() => {
|
|
|
- this.getDetail()
|
|
|
- })
|
|
|
},
|
|
|
- async successClick () {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "classname": "saletool.orderclue.web.orderclue",
|
|
|
- "method": "addFollowUpLog",
|
|
|
- "content": {
|
|
|
- "sat_orderclueid": this.$route.query.id,
|
|
|
- "content": "已成交",
|
|
|
- "followupmode": "", //当面拜访、电话沟通
|
|
|
- "logtype": "成交", //跟进、成交、丢单、无效
|
|
|
- "competitor": ""
|
|
|
+ successClick () {
|
|
|
+ this.$alert('是否设置该线索为"成交"状态,确定后无法撤销', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ callback: async action => {
|
|
|
+ if(action == 'confirm') {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "classname": "saletool.orderclue.web.orderclue",
|
|
|
+ "method": "addFollowUpLog",
|
|
|
+ "content": {
|
|
|
+ "sat_orderclueid": this.$route.query.id,
|
|
|
+ "content": "已成交",
|
|
|
+ "followupmode": "", //当面拜访、电话沟通
|
|
|
+ "logtype": "成交", //跟进、成交、丢单、无效
|
|
|
+ "competitor": ""
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.getDetail()
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
- this.tool.showMessage(res,() => {
|
|
|
- this.getDetail()
|
|
|
- })
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
};
|