Commit 00050ef8 by linjinhong

feat:订单状态在“挂起、取消”的异常状态

parent 5b49d58b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "JomallProductionAssistant", "name": "JomallProductionAssistant",
"productName": "JomallProductionAssistant", "productName": "JomallProductionAssistant",
"description": "", "description": "",
"version": "1.0.35", "version": "1.0.36",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
......
...@@ -736,6 +736,13 @@ export default { ...@@ -736,6 +736,13 @@ export default {
this.detail = findByPodProductionNo.data; this.detail = findByPodProductionNo.data;
if (this.detail.pause || this.detail.status == "CANCEL") {
this.detail = "";
const err = new Error();
err.data = `订单:${this.productionNo}已挂起或者已取消,无法生产`;
throw err;
}
//赋值当前扫码为生产单号的标识 //赋值当前扫码为生产单号的标识
if (!this.detail["newId"]) { if (!this.detail["newId"]) {
this.detail["newId"] = this.productionNo; this.detail["newId"] = this.productionNo;
......
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 to comment