From b6884f84305b487e1f80bd8052f5c7a947dc6a4a Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期四, 18 一月 2024 09:31:40 +0800
Subject: [PATCH] add 作业指导页面

---
 jcdm-ui/src/views/main/om/productionOrde/index.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/jcdm-ui/src/views/main/om/productionOrde/index.vue b/jcdm-ui/src/views/main/om/productionOrde/index.vue
index 00823a4..4ea0f3e 100644
--- a/jcdm-ui/src/views/main/om/productionOrde/index.vue
+++ b/jcdm-ui/src/views/main/om/productionOrde/index.vue
@@ -552,7 +552,8 @@
 
     getProductionNotice(){
       getProductionNotice(this.queryParams).then(response => {
-        this.$modal.msgSuccess(response.data.msg);
+
+        this.$modal.msgSuccess(response.msg);
         this.queryParams = {}
         this.getList();
       });
@@ -732,6 +733,7 @@
         this.materialQueryParams.materialCode = response.data.productCode;
         listMaterial(this.materialQueryParams).then(response => {
           this.markNo = response.rows[0].mark
+          this.form.typeL = response.rows[0].typeL;
         });
         this.form = response.data;
         this.Createopen = true;
@@ -779,14 +781,20 @@
         model: this.form.typeZ,
         modelDate: this.form.dateTimeRule,
       }
+      if(startCode>999){
+        this.$message.error('璧峰缂栧彿瓒呭嚭鏈�澶ц寖鍥达紝璇疯緭鍏�1-999鐨勬暟瀛楋紒');
+        return;
+      }else if(startCode<1){
+        this.$message.error('璧峰缂栧彿瓒呭嚭鏈�灏忚寖鍥达紝璇疯緭鍏�1-999鐨勬暟瀛楋紒');
+        return;
+      }
       listModelNumber(queryParams).then(response => {
         if(response.rows.length === 0){
           this.saveBoxCode()
         }else {
           let maxNumValue = response.rows[0].maxnumValue;
           if(startCode<maxNumValue){
-            this.$message.error('鏂板缓鐨勪笉鑳芥瘮鏌ヨ鍑虹殑灏�');
-            return;
+            this.$message.error('绠变綋鏉$爜閲嶅锛岃閲嶆柊杈撳叆璧峰缂栧彿锛�');
           }else {
             this.saveBoxCode()
           }

--
Gitblit v1.9.3