From 4b04e45c82740e8aad72b8ac664884b3d17b090e Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 20 八月 2025 19:56:51 +0800
Subject: [PATCH] 调整界面

---
 src/views/flowmgr/taskassign.vue |  106 ++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 73 insertions(+), 33 deletions(-)

diff --git a/src/views/flowmgr/taskassign.vue b/src/views/flowmgr/taskassign.vue
index b44e73f..ad4abec 100644
--- a/src/views/flowmgr/taskassign.vue
+++ b/src/views/flowmgr/taskassign.vue
@@ -2,7 +2,7 @@
  * @Author: 鏉庡枂(寮�鍙戠粍) lzhe@yxqiche.com
  * @Date: 2025-05-28 12:03:55
  * @LastEditors: gaoshp
- * @LastEditTime: 2025-08-02 21:58:47
+ * @LastEditTime: 2025-08-10 13:05:56
  * @FilePath: /mdmweb/src/views/flowmgr/taskassign.vue
  * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -13,10 +13,38 @@
 </template>
 
 <script>
+import {
+  getQueryString,
+} from '@/utils/util';
+
 export default {
+  watch: {
+    'attachForm.drawingNo': function (val) {
+      if(val && this.attachForm.processNo && this.attachForm.processEdition) {
+        this.attachForm.title = `${val}-${this.attachForm.processNo}-${this.attachForm.processEdition}-鏁版帶绋嬪簭缂栧埗`;
+      }
+    },
+    'attachForm.processNo': function (val) {
+      if(val && this.attachForm.drawingNo && this.attachForm.processEdition) {
+        //this.attachForm.title = `${val}-${this.attachForm.processNo}-鏁版帶绋嬪簭缂栧埗`;
+		    this.attachForm.title = `${this.attachForm.drawingNo}-${val}-${this.attachForm.processEdition}-鏁版帶绋嬪簭缂栧埗`;
+      }
+    },
+    'attachForm.processEdition': function (val) {
+      if(val && this.attachForm.drawingNo && this.attachForm.processNo ) {
+        //this.attachForm.title = `${val}-${this.attachForm.processNo}-鏁版帶绋嬪簭缂栧埗`;
+		    this.attachForm.title = `${this.attachForm.drawingNo}-${this.attachForm.processNo} -${val}-鏁版帶绋嬪簭缂栧埗`;
+      }
+    },
+  },
   data() {
+    
+    var isTempFlow = getQueryString("isTempFlow");
+    isTempFlow = isTempFlow === 'Y'?'Y':'N';
+    console.log('isTempFlow='+isTempFlow);
     var that = this;
     return {
+      isTempFlow:isTempFlow,//鏄惁涓存椂娴佺▼
       form: {},
       machineCodeList: [],
       attachOption: {
@@ -26,7 +54,15 @@
         tip: false,
         column: [
           {
-            label: '鍥惧彿',
+            label: '娴佺▼鏍囬',
+            prop: 'title',
+            type: 'input',
+            span: 24,
+            dataType: 'string',
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
+          },
+          {
+            label: '闆剁粍浠跺彿',
             prop: 'drawingNo',
             type: 'input',
             span: 12,
@@ -48,23 +84,15 @@
             span: 12,
             dataType: 'string',
             rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
-            // rules: [
-            //   {
-            //     required: true,
-            //     message: '璇烽�夋嫨娴佺▼绫诲瀷',
-            //     trigger: 'blur',
-            //   },
-            // ],
           },
           {
             label: '宸ュ簭鍙�',
             prop: 'processNo',
             type: 'input',
             span: 12,
-            type: 'number',
             step: 1,
             precision: 0,
-            dataType: 'number',
+            dataType: 'string',
             max: 999,
             rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
@@ -87,18 +115,20 @@
           {
             label: '宸ヨ壓鐗堟',
             prop: 'craftEdition',
+            placeholder:'濡�"A"',
             type: 'input',
             span: 12,
             dataType: 'string',
-			maxlength: 2,
+            maxlength: 2,
             rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '鍔犲伐鏈哄簥',
             prop: 'machineCode',
             type: 'select',
-            dicUrl: `/blade-mdm/machine/page`,
-            dicFormatter: function(res) {
+			      filterable: true,
+            dicUrl: `/blade-mdm/machine/page?size=10000`,
+            dicFormatter: function (res) {
               that.machineCodeList = res.data.records;
               return res.data.records;
             },
@@ -112,9 +142,13 @@
           {
             label: '璁″垝閿佸畾鏃堕棿锛堝ぉ锛�',
             prop: 'planLockDays',
-            type: 'input',
+            type: 'number',
+            min:0,
+            max:30,
             span: 12,
-            dataType: 'string',
+            controls:true,
+            dataType: 'number',
+            controlsPosition:'right',
             rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
@@ -127,36 +161,44 @@
             dataType: 'string',
             rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
+          {
+            label: '鍋忕鍗曞彿',
+            prop: 'deviation',
+            type: 'input',
+            span: 12,
+            dataType: 'string',
+            // rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
+          }
         ],
       },
-      attachForm: {},
+      attachForm: {planLockDays:7},//榛樿7澶�
     };
   },
   methods: {
-    formSubmit(form,done) {
-      var form = {...form};
-      this.machineCodeList.forEach(item=> {
-        if(form.machineCode == item.code) {
+    formSubmit(form, done) {
+      var form = { ...form };
+      this.machineCodeList.forEach(item => {
+        if (form.machineCode == item.code) {
           form.machineMode = item.name;
         }
       })
-      form.producePlanId = "1932411828915224578";
+
       axios({
         url: '/blade-mdm/flow/dispatch/start',
         method: 'post',
         data: form,
       }).then(
         res => {
-            this.$message({
-              type: 'success',
-              message: '鎿嶄綔鎴愬姛!',
-            });
-            this.$refs.form.resetForm();
-            done();
+          this.$message({
+            type: 'success',
+            message: '鎿嶄綔鎴愬姛!',
+          });
+          this.$refs.form.resetForm();
+          done();
         },
         error => {
-            window.console.log(error);
-            done();
+          window.console.log(error);
+          done();
         }
       );
     }
@@ -164,6 +206,4 @@
 };
 </script>
 
-<style lang="scss">
-
-</style>
+<style lang="scss"></style>

--
Gitblit v1.9.3