Jelajahi Sumber

>0显示加+,<=0输入什么显示什么

zhangyuewww 3 tahun lalu
induk
melakukan
16b28463d5

+ 11 - 1
src/views/purchasingManagement/purchaseOrderList.vue

@@ -107,7 +107,17 @@
             v-if="
               scope.row.identification == 'false' &&
               String(scope.row.basis) &&
-              scope.row.procurementPlanType == '期货'
+              scope.row.procurementPlanType == '期货'&&
+              String(scope.row.basis)>0
+            "
+            >{{'+'+scope.row.basis }}</span
+          >
+           <span
+            v-else-if="
+              scope.row.identification == 'false' &&
+              String(scope.row.basis) &&
+              scope.row.procurementPlanType == '期货'&&
+              String(scope.row.basis)<=0
             "
             >{{scope.row.basis }}</span
           >

+ 13 - 1
src/views/salesManagement/salesPlanOrderList.vue

@@ -107,9 +107,21 @@
             v-if="
               !scope.row.basischange &&
               String(scope.row.basis) &&
-              scope.row.salePlanType == '期货'
+              scope.row.salePlanType == '期货' &&
+              String(scope.row.basis)>0
+              
             "
             >{{ '+'+scope.row.basis }}</span
+          >
+           <span
+            v-else-if="
+              !scope.row.basischange &&
+              String(scope.row.basis) &&
+              scope.row.salePlanType == '期货' &&
+              String(scope.row.basis)<=0
+              
+            "
+            >{{scope.row.basis }}</span
           >
           <input
             v-if="scope.row.basischange"