补充
This commit is contained in:
parent
55e2c9f393
commit
f5cb458d38
@ -673,8 +673,9 @@ export default {
|
|||||||
//记得加上跟进记录
|
//记得加上跟进记录
|
||||||
this.verifyParams.id = row.id
|
this.verifyParams.id = row.id
|
||||||
this.verifyParams.salesStage = 2
|
this.verifyParams.salesStage = 2
|
||||||
|
let that = this
|
||||||
this.$modal.confirm('是否确认商机编号为"' + this.verifyParams.id + '"的数据项?').then(function() {
|
this.$modal.confirm('是否确认商机编号为"' + this.verifyParams.id + '"的数据项?').then(function() {
|
||||||
return updateBusiness(this.verifyParams);
|
return updateBusiness(that.verifyParams);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("已确认");
|
this.$modal.msgSuccess("已确认");
|
||||||
|
@ -396,10 +396,17 @@
|
|||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-s-check"
|
||||||
@click="handleChange(scope.row)"
|
@click="handleChange(scope.row)"
|
||||||
v-hasPermi="['system:business:edit']"
|
v-hasPermi="['system:business:edit']"
|
||||||
>解决</el-button>
|
>解决</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-circle-close"
|
||||||
|
@click="handleCloseOrder(scope.row)"
|
||||||
|
v-hasPermi="['system:business:edit']"
|
||||||
|
>关闭</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -670,6 +677,11 @@ export default {
|
|||||||
id: null,
|
id: null,
|
||||||
isSolveTheProblem: null
|
isSolveTheProblem: null
|
||||||
},
|
},
|
||||||
|
//关闭工单
|
||||||
|
closeOrderParams: {
|
||||||
|
id: null,
|
||||||
|
serviceType: null
|
||||||
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
}
|
}
|
||||||
@ -770,17 +782,27 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 改变解决问题状态 */
|
/** 改变解决问题状态 */
|
||||||
handleChange(row) {
|
handleChange(row) {
|
||||||
console.log('------------1')
|
|
||||||
this.verifyParams.id = row.id
|
this.verifyParams.id = row.id
|
||||||
this.verifyParams.isSolveTheProblem = 1
|
this.verifyParams.isSolveTheProblem = 1
|
||||||
|
let that=this
|
||||||
this.$modal.confirm('是否确认已解决编号为"' + this.verifyParams.id + '"的数据项?').then(function() {
|
this.$modal.confirm('是否确认已解决编号为"' + this.verifyParams.id + '"的数据项?').then(function() {
|
||||||
console.log('------------2')
|
return updateTicket(that.verifyParams);
|
||||||
return updateTicket(this.verifyParams);
|
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log('------------3')
|
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("已确认");
|
this.$modal.msgSuccess("已确认");
|
||||||
}).catch(() => {console.log('------------4')});
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 关闭工单 */
|
||||||
|
handleCloseOrder(row) {
|
||||||
|
this.closeOrderParams.id = row.id
|
||||||
|
this.closeOrderParams.serviceType = 2
|
||||||
|
let that=this
|
||||||
|
this.$modal.confirm('是否确认关闭编号为"' + this.closeOrderParams.id + '"的工单?').then(function() {
|
||||||
|
return updateTicket(that.closeOrderParams);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("已关闭");
|
||||||
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
Loading…
Reference in New Issue
Block a user