From fd307873b67f5a71817fe54226b2a104b6081d48 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 16 八月 2025 23:20:06 +0800
Subject: [PATCH] 修改文字

---
 src/views/flowmgr/taskassign.vue |   89 +++++++++++++++++++++++++++++++-------------
 1 files changed, 63 insertions(+), 26 deletions(-)

diff --git a/src/views/flowmgr/taskassign.vue b/src/views/flowmgr/taskassign.vue
index 47d6c0b..4c85bd7 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 14:07:57
+ * @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
 -->
@@ -14,6 +14,19 @@
 
 <script>
 export default {
+  watch: {
+    'attachForm.drawingNo': function (val) {
+      if(val && this.attachForm.processNo) {
+        this.attachForm.title = `${val}-${this.attachForm.processNo}-鏁版帶绋嬪簭缂栧埗`;
+      }
+    },
+    'attachForm.processNo': function (val) {
+      if(val && this.attachForm.drawingNo) {
+        //this.attachForm.title = `${val}-${this.attachForm.processNo}-鏁版帶绋嬪簭缂栧埗`;
+		this.attachForm.title = `${this.attachForm.drawingNo}-${val}-鏁版帶绋嬪簭缂栧埗`;
+      }
+    },
+  },
   data() {
     var that = this;
     return {
@@ -26,25 +39,36 @@
         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,
             dataType: 'string',
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '鍥惧彿鐗堟',
-            prop: 'partNoEdition',
+            prop: 'drawingNoEdition',
             type: 'input',
             span: 12,
             dataType: 'string',
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '浜у搧鍨嬪彿',
-            prop: 'productType',
+            prop: 'productModel',
             type: 'input',
             span: 12,
             dataType: 'string',
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
             // rules: [
             //   {
             //     required: true,
@@ -58,11 +82,11 @@
             prop: 'processNo',
             type: 'input',
             span: 12,
-            type: 'number',
             step: 1,
             precision: 0,
-            dataType: 'number',
+            dataType: 'string',
             max: 999,
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '宸ュ簭鍚嶇О',
@@ -70,7 +94,7 @@
             type: 'input',
             span: 12,
             dataType: 'string',
-            maxlength: 2,
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '宸ュ簭鐗堟',
@@ -78,6 +102,7 @@
             type: 'input',
             span: 12,
             dataType: 'string',
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '宸ヨ壓鐗堟',
@@ -85,18 +110,22 @@
             type: 'input',
             span: 12,
             dataType: 'string',
+            maxlength: 2,
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '鍔犲伐鏈哄簥',
             prop: 'machineCode',
             type: 'select',
+			filterable: true,
             dicUrl: `/blade-mdm/machine/page`,
-            dicFormatter: function(res) {
+            dicFormatter: function (res) {
               that.machineCodeList = res.data.records;
               return res.data.records;
             },
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
             props: {
-              label: 'name',
+              label: 'code',
               value: 'code',
             },
             span: 12
@@ -106,7 +135,8 @@
             prop: 'planLockDays',
             type: 'input',
             span: 12,
-            dataType: 'string',
+            dataType: 'number',
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
           {
             label: '璁″垝寮�宸ユ椂闂�',
@@ -116,6 +146,15 @@
             valueFormat: "YYYY-MM-DD",
             span: 12,
             dataType: 'string',
+            rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
+          },
+          {
+            label: '鍋忕鍗曞彿',
+            prop: 'deviation',
+            type: 'input',
+            span: 12,
+            dataType: 'string',
+            // rules: [{ required: true, message: '蹇呭~', trigger: 'blur' }],
           },
         ],
       },
@@ -123,30 +162,30 @@
     };
   },
   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();
         }
       );
     }
@@ -154,6 +193,4 @@
 };
 </script>
 
-<style lang="scss">
-
-</style>
+<style lang="scss"></style>

--
Gitblit v1.9.3