|
|
|
@ -663,23 +663,29 @@ export default {
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'success', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
return postUpdateBillladingStatus({ |
|
|
|
|
}).then(async () => { |
|
|
|
|
try { |
|
|
|
|
this.loadingObj.pageLoading = true; |
|
|
|
|
|
|
|
|
|
const res = await postUpdateBillladingStatus({ |
|
|
|
|
id: this.selectionList[0].id, |
|
|
|
|
type, |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
|
|
|
|
|
const { code, msg } = res.data; |
|
|
|
|
|
|
|
|
|
if (code !== 200) return; |
|
|
|
|
this.$message.success(msg); |
|
|
|
|
// 清空复选框 |
|
|
|
|
this.selectionClear(); |
|
|
|
|
// 刷新表格 |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
|
this.loadingObj.pageLoading = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
/** 开启添加提货数据弹窗 */ |
|
|
|
|
handleAddDistrilbution() { |
|
|
|
|