Răsfoiți Sursa

销售订单齐套性检查 字段颜色做区分

jingshuyong 10 luni în urmă
părinte
comite
ea0538d520

+ 1 - 1
src/views/productionPlan/components/homogeneityInspectDialog.vue

@@ -302,7 +302,7 @@
             showOverflowTooltip: true
           },
           {
-            prop: 'dosage',
+            prop: 'demandQuantity',
             label: '定额数量',
             showOverflowTooltip: true,
             align: 'center'

+ 40 - 1
src/views/saleOrder/components/orderHomogeneityInspectDialog.vue

@@ -157,6 +157,37 @@
                     {{ row.inTransitNum }}
                   </el-link>
                 </template>
+                <template v-slot:inventoryStatusText="{ row }">
+                  <div
+                    :class="
+                      row.inventoryStatusText == '缺料'
+                        ? 'statusRed'
+                        : 'statusGreen'
+                    "
+                  >
+                    {{ row.inventoryStatusText }}
+                  </div>
+                </template>
+                <template v-slot:inTransitStatusText="{ row }">
+                  <div
+                    :class="
+                      row.inTransitStatusText == '缺料'
+                        ? 'statusRed'
+                        : 'statusGreen'
+                    "
+                  >
+                    {{ row.inTransitStatusText }}
+                  </div>
+                </template>
+                <template v-slot:finalStateText="{ row }">
+                  <div
+                    :class="
+                      row.finalStateText == '缺料' ? 'statusRed' : 'statusGreen'
+                    "
+                  >
+                    {{ row.finalStateText }}
+                  </div>
+                </template>
                 <!-- <template v-slot:stockColor="{ row }">
                   <div :class="{ statusRed: row.stockStatus == '缺料' }">
                     {{ row.stockStatus }}
@@ -622,12 +653,20 @@
     }
   }
 
+  .statusRed {
+    color: red;
+  }
+
+  .statusGreen {
+    color: green;
+  }
+
   .left_tree {
     width: 250px;
     max-height: 600px;
     min-height: 300px;
     overflow: auto;
     border: 1px solid #ccc;
-     margin-right: 10px;
+    margin-right: 10px;
   }
 </style>

+ 9 - 8
src/views/workOrder/index.vue

@@ -105,21 +105,21 @@
         </template>
         <template v-slot:action="{ row }">
           <el-link
-            v-if="unpackShow(row)"
+            v-if="dispatchPermission(row)"
             :underline="false"
+            icon="el-icon-truck"
             type="primary"
-            @click="toUnpack(row)"
+            @click="toReleaseOpen(row)"
           >
-            
+            
           </el-link>
           <el-link
-            v-if="dispatchPermission(row)"
+            v-if="unpackShow(row)"
             :underline="false"
-            icon="el-icon-truck"
             type="primary"
-            @click="toReleaseOpen(row)"
+            @click="toUnpack(row)"
           >
-            
+            
           </el-link>
           <el-popconfirm
             class="ele-action"
@@ -599,7 +599,8 @@
     methods: {
       // 全选/取消全选
       selectAll(selection) {
-        if (selection.length == 0) { // 取消全选
+        if (selection.length == 0) {
+          // 取消全选
           let list = this.$refs.table._data.tableData;
           list.map((el) => {
             this.$set(el, 'checkedata', false);