Commit b29d9507 by liangjianmin

css

parent b1ed8608
Showing with 60 additions and 52 deletions
......@@ -282,16 +282,20 @@ export default {
this.ask_customer_confirm_feedback = '按照修改后的处理';
} else if (index == 1) {
this.ask_customer_confirm_feedback = '人工处理';
this.toChat();
}
},
toChat() {
this.request(API.turnManualProcessing, 'POST', {ask_customer_problem_list_id:this.ask_customer_problem_list_id}, true).then(res => {
this.request(API.turnManualProcessing, 'POST', { ask_customer_problem_list_id: this.ask_customer_problem_list_id }, true).then(res => {
if (res.err_code === 0) {
uni.showToast({
title: res.err_msg,
icon: 'success'
});
setTimeout(() => {
uni.switchTab({
url: '/pages/question/list'
});
}, 2000);
} else {
uni.showToast({
title: res.err_msg,
......@@ -314,60 +318,64 @@ export default {
},
submit() {
var self = this;
for (let i = 0; i < this.order_goods.length; i++) {
if (this.order_goods[i].customer_result == '请选择') {
uni.showModal({
title: '',
showCancel: false,
confirmText: '我知道了',
confirmColor: '#197ADB',
content: '请完成“客户选择”的全部内容若无法操作,可选人工处理并提交',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
return false;
break;
}
}
uni.showModal({
title: '',
confirmText: '确认提交',
confirmColor: '#197ADB',
content: '您提交的操作选项,仓库收到后会立即执行。已执行的指令将无法撤回,请确认',
success: function(res) {
if (res.confirm) {
self.request(
API.customerConfirmProblem,
'POST',
{
ask_customer_problem_list_id: self.ask_customer_problem_list_id,
order_goods: JSON.stringify(self.order_goods),
ask_customer_confirm_feedback: self.ask_customer_confirm_feedback,
ask_customer_confirm_remark: self.ask_customer_confirm_remark
},
true
).then(res => {
if (res.err_code === 0) {
uni.navigateTo({
url: '/pages/question/result?ask_customer_problem_list_id=' + self.ask_customer_problem_list_id
});
} else {
uni.showToast({
title: res.err_msg,
icon: 'none'
});
if (this.currentIndex === 0) {
for (let i = 0; i < this.order_goods.length; i++) {
if (this.order_goods[i].customer_result == '请选择') {
uni.showModal({
title: '',
showCancel: false,
confirmText: '我知道了',
confirmColor: '#197ADB',
content: '请完成“客户选择”的全部内容若无法操作,可选人工处理并提交',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} else if (res.cancel) {
console.log('用户点击取消');
return false;
break;
}
}
});
uni.showModal({
title: '',
confirmText: '确认提交',
confirmColor: '#197ADB',
content: '您提交的操作选项,仓库收到后会立即执行。已执行的指令将无法撤回,请确认',
success: function(res) {
if (res.confirm) {
self.request(
API.customerConfirmProblem,
'POST',
{
ask_customer_problem_list_id: self.ask_customer_problem_list_id,
order_goods: JSON.stringify(self.order_goods),
ask_customer_confirm_feedback: self.ask_customer_confirm_feedback,
ask_customer_confirm_remark: self.ask_customer_confirm_remark
},
true
).then(res => {
if (res.err_code === 0) {
uni.navigateTo({
url: '/pages/question/result?ask_customer_problem_list_id=' + self.ask_customer_problem_list_id
});
} else {
uni.showToast({
title: res.err_msg,
icon: 'none'
});
}
});
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} else if (this.currentIndex === 1) {
this.toChat();
}
}
},
onShareTimeline(res) {
......
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 sign in to comment