Przeglądaj źródła

不合格品数量 必填

quwangxin 2 lat temu
rodzic
commit
1aa3665ab7

+ 22 - 11
src/views/produceOrder/components/report/Common.vue

@@ -153,18 +153,29 @@
               clearable
             ></el-input> </el-form-item
         ></el-descriptions-item>
-        <el-descriptions-item label="不合格品数量(PCS)">
-          <el-input
+        <el-descriptions-item label="">
+          <span class="label-required after" slot="label"
+            >不合格品数量(PCS)</span
+          >
+          <el-form-item
+            label=""
+            label-width="0"
+            required
             class="w100"
-            v-model="workReport.productInfo.noStandardNum"
-            @input="
-              (value) =>
-                (workReport.productInfo.noStandardNum = value
-                  ? parseInt(value)
-                  : value)
-            "
-            clearable
-          ></el-input>
+            prop="productInfo.noStandardNum"
+          >
+            <el-input
+              class="w100"
+              v-model="workReport.productInfo.noStandardNum"
+              @input="
+                (value) =>
+                  (workReport.productInfo.noStandardNum = value
+                    ? parseInt(value)
+                    : value)
+              "
+              clearable
+            ></el-input>
+          </el-form-item>
         </el-descriptions-item>
         <el-descriptions-item label="不合格品重量(KG)"
           ><el-input

+ 22 - 11
src/views/produceOrder/components/report/Drying.vue

@@ -170,18 +170,29 @@
               clearable
             ></el-input> </el-form-item
         ></el-descriptions-item>
-        <el-descriptions-item label="不合格品数量(PCS)">
-          <el-input
+        <el-descriptions-item label="">
+          <span class="label-required after" slot="label"
+            >不合格品数量(PCS)</span
+          >
+          <el-form-item
+            label=""
+            required
+            label-width="0"
             class="w100"
-            v-model="workReport.productInfo.noStandardNum"
-            @input="
-              (value) =>
-                (workReport.productInfo.noStandardNum = value
-                  ? parseInt(value)
-                  : value)
-            "
-            clearable
-          ></el-input>
+            prop="productInfo.noStandardNum"
+          >
+            <el-input
+              class="w100"
+              v-model="workReport.productInfo.noStandardNum"
+              @input="
+                (value) =>
+                  (workReport.productInfo.noStandardNum = value
+                    ? parseInt(value)
+                    : value)
+              "
+              clearable
+            ></el-input>
+          </el-form-item>
         </el-descriptions-item>
         <el-descriptions-item label="不合格品重量(KG)"
           ><el-input

+ 22 - 11
src/views/produceOrder/components/report/Extrusion.vue

@@ -158,18 +158,29 @@
               clearable
             ></el-input> </el-form-item
         ></el-descriptions-item>
-        <el-descriptions-item label="不合格品数量(PCS)">
-          <el-input
+        <el-descriptions-item label="">
+          <span class="label-required after" slot="label"
+            >不合格品数量(PCS)</span
+          >
+          <el-form-item
+            label=""
+            required
+            label-width="0"
             class="w100"
-            v-model="workReport.productInfo.noStandardNum"
-            @input="
-              (value) =>
-                (workReport.productInfo.noStandardNum = value
-                  ? parseInt(value)
-                  : value)
-            "
-            clearable
-          ></el-input>
+            prop="productInfo.noStandardNum"
+          >
+            <el-input
+              class="w100"
+              v-model="workReport.productInfo.noStandardNum"
+              @input="
+                (value) =>
+                  (workReport.productInfo.noStandardNum = value
+                    ? parseInt(value)
+                    : value)
+              "
+              clearable
+            ></el-input>
+          </el-form-item>
         </el-descriptions-item>
         <el-descriptions-item label="不合格品重量(KG)"
           ><el-input

+ 22 - 11
src/views/produceOrder/components/report/HalfAdded.vue

@@ -165,18 +165,29 @@
               clearable
             ></el-input> </el-form-item
         ></el-descriptions-item>
-        <el-descriptions-item label="不合格品数量(PCS)">
-          <el-input
+        <el-descriptions-item label="">
+          <span class="label-required after" slot="label"
+            >不合格品数量(PCS)</span
+          >
+          <el-form-item
+            label=""
+            required
+            label-width="0"
             class="w100"
-            v-model="workReport.productInfo.noStandardNum"
-            @input="
-              (value) =>
-                (workReport.productInfo.noStandardNum = value
-                  ? parseInt(value)
-                  : value)
-            "
-            clearable
-          ></el-input>
+            prop="productInfo.noStandardNum"
+          >
+            <el-input
+              class="w100"
+              v-model="workReport.productInfo.noStandardNum"
+              @input="
+                (value) =>
+                  (workReport.productInfo.noStandardNum = value
+                    ? parseInt(value)
+                    : value)
+              "
+              clearable
+            ></el-input>
+          </el-form-item>
         </el-descriptions-item>
         <el-descriptions-item label="不合格品重量(KG)"
           ><el-input

+ 22 - 11
src/views/produceOrder/components/report/Heating.vue

@@ -165,18 +165,29 @@
               clearable
             ></el-input> </el-form-item
         ></el-descriptions-item>
-        <el-descriptions-item label="不合格品数量(PCS)">
-          <el-input
+        <el-descriptions-item label="">
+          <span class="label-required after" slot="label"
+            >不合格品数量(PCS)</span
+          >
+          <el-form-item
+            label=""
+            required
+            label-width="0"
             class="w100"
-            v-model="workReport.productInfo.noStandardNum"
-            @input="
-              (value) =>
-                (workReport.productInfo.noStandardNum = value
-                  ? parseInt(value)
-                  : value)
-            "
-            clearable
-          ></el-input>
+            prop="productInfo.noStandardNum"
+          >
+            <el-input
+              class="w100"
+              v-model="workReport.productInfo.noStandardNum"
+              @input="
+                (value) =>
+                  (workReport.productInfo.noStandardNum = value
+                    ? parseInt(value)
+                    : value)
+              "
+              clearable
+            ></el-input>
+          </el-form-item>
         </el-descriptions-item>
         <el-descriptions-item label="不合格品重量(KG)"
           ><el-input