Commit b29d9507 by liangjianmin

css

parent b1ed8608
Showing with 60 additions and 52 deletions
...@@ -282,16 +282,20 @@ export default { ...@@ -282,16 +282,20 @@ export default {
this.ask_customer_confirm_feedback = '按照修改后的处理'; this.ask_customer_confirm_feedback = '按照修改后的处理';
} else if (index == 1) { } else if (index == 1) {
this.ask_customer_confirm_feedback = '人工处理'; this.ask_customer_confirm_feedback = '人工处理';
this.toChat();
} }
}, },
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) { if (res.err_code === 0) {
uni.showToast({ uni.showToast({
title: res.err_msg, title: res.err_msg,
icon: 'success' icon: 'success'
}); });
setTimeout(() => {
uni.switchTab({
url: '/pages/question/list'
});
}, 2000);
} else { } else {
uni.showToast({ uni.showToast({
title: res.err_msg, title: res.err_msg,
...@@ -314,60 +318,64 @@ export default { ...@@ -314,60 +318,64 @@ export default {
}, },
submit() { submit() {
var self = this; var self = this;
for (let i = 0; i < this.order_goods.length; i++) { if (this.currentIndex === 0) {
if (this.order_goods[i].customer_result == '请选择') { for (let i = 0; i < this.order_goods.length; i++) {
uni.showModal({ if (this.order_goods[i].customer_result == '请选择') {
title: '', uni.showModal({
showCancel: false, title: '',
confirmText: '我知道了', showCancel: false,
confirmColor: '#197ADB', confirmText: '我知道了',
content: '请完成“客户选择”的全部内容若无法操作,可选人工处理并提交', confirmColor: '#197ADB',
success: function(res) { content: '请完成“客户选择”的全部内容若无法操作,可选人工处理并提交',
if (res.confirm) { success: function(res) {
console.log('用户点击确定'); if (res.confirm) {
} else if (res.cancel) { console.log('用户点击确定');
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) { return false;
console.log('用户点击取消'); 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) { 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