Commit 3cbbbd10 by LJM

bug

parent 853256cd
...@@ -257,8 +257,8 @@ ...@@ -257,8 +257,8 @@
methods: { methods: {
bindPickerChange: function(e, type) { bindPickerChange: function(e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value); console.log('picker发送选择改变,携带值为', e.detail.value);
this.resetChange();
if (type == 1) { if (type == 1) {
this.resetChange();
this.status_index = e.detail.value; this.status_index = e.detail.value;
this.searchParams.status = this.status[e.detail.value].value; this.searchParams.status = this.status[e.detail.value].value;
this.getData(); this.getData();
...@@ -310,7 +310,6 @@ ...@@ -310,7 +310,6 @@
this.searchParams.batch_search_value = ''; this.searchParams.batch_search_value = '';
this.input_flag = false; this.input_flag = false;
this.clearInputAndFocus(); this.clearInputAndFocus();
this.getData();
}, },
/** /**
* 全量搜索 * 全量搜索
...@@ -449,6 +448,36 @@ ...@@ -449,6 +448,36 @@
} }
}, },
/** /**
* 三方质检-检后收货提交
*/
receiveAfterInspection() {
if (!this.receiveAfterInspectionParams.delivery_time) {
uni.showToast({
title: '收货时间必填',
icon: 'error'
});
return false;
}
this.request(API.receiveAfterInspection, 'POST', this.receiveAfterInspectionParams, true).then(res => {
if (res.code === 0) {
uni.showToast({
title: '提交成功',
icon: 'success'
});
setTimeout(() => {
this.closeDrawer();
this.resetChange();
this.getData();
}, 2000)
} else {
uni.showToast({
title: res.msg,
icon: 'none'
});
}
});
},
/**
* 再次获取焦点 * 再次获取焦点
*/ */
clearInputAndFocus() { clearInputAndFocus() {
......
...@@ -422,7 +422,11 @@ const API = { ...@@ -422,7 +422,11 @@ const API = {
/** /**
* 查询相似三方送检任务数 * 查询相似三方送检任务数
* */ * */
isHasShippingCodeInspectionOrder: API_BASE + '/api/inspectionOrder/isHasShippingCodeInspectionOrder' isHasShippingCodeInspectionOrder: API_BASE + '/api/inspectionOrder/isHasShippingCodeInspectionOrder',
/**
* 三方质检-检后收货
* */
receiveAfterInspection: API_BASE + '/api/inspectionOrder/receiveAfterInspection'
} }
......
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