lxf 1 ano atrás
pai
commit
3b3fce08e7

+ 1 - 1
src/views/production/operation/batching/demo.vue

@@ -76,7 +76,7 @@
               <el-table-column label="剩余库存" prop="surplusStock" width="120" />
               <el-table-column label="出库数量" width="140">
                 <template #default="{ row }">
-                  <span :style="row.surplusStock && row.surplusStock > row.quantity ? '' : 'color: red'">{{ row.quantity }}</span>
+                  <span :style="row.surplusStock && row.surplusStock < row.quantity ? '' : 'color: red'">{{ row.quantity }}</span>
                 </template>
               </el-table-column>
               <el-table-column label="操作" align="center" fixed="right" width="80">

+ 1 - 1
src/views/production/operation/batching/quick.vue

@@ -50,7 +50,7 @@
               <el-table-column label="剩余库存" prop="surplusStock" width="120" />
               <el-table-column label="出库数量" width="140">
                 <template #default="{ row }">
-                  <span :style="row.surplusStock && row.surplusStock > row.quantity ? '' : 'color: red'">{{ row.quantity }}</span>
+                  <span :style="row.surplusStock && row.surplusStock < row.quantity ? '' : 'color: red'">{{ row.quantity }}</span>
                 </template>
               </el-table-column>
             </el-table>