Преглед на файлове

到达单-删除已到货金额字段/计算数量(订单数量-到货数量)

jingbb преди 5 месеца
родител
ревизия
19b9260526
променени са 2 файла, в които са добавени 9 реда и са изтрити 8 реда
  1. 8 8
      src/views/purchase/arrivedGoods/ArriveGoodsForm.data.ts
  2. 1 0
      src/views/purchase/arrivedGoods/components/ArriveGoodsFormForm.vue

+ 8 - 8
src/views/purchase/arrivedGoods/ArriveGoodsForm.data.ts

@@ -257,14 +257,14 @@ export const ArriveGoodsDetailColumns: JVxeColumn[] = [
       defaultValue:'',  
       width:"200px",
     },
-    {
-      title: '已到货金额(arrival money)',
-      key: 'arrivalMoney',
-      type: JVxeTypes.normal,
-      placeholder: '请输入${title}',
-      defaultValue:'',  
-      width:"200px",
-    },
+    // {
+    //   title: '已到货金额(arrival money)',
+    //   key: 'arrivalMoney',
+    //   type: JVxeTypes.normal,
+    //   placeholder: '请输入${title}',
+    //   defaultValue:'',  
+    //   width:"200px",
+    // },
     {
       title: '数量(quantity)',
       key: 'quantity',

+ 1 - 0
src/views/purchase/arrivedGoods/components/ArriveGoodsFormForm.vue

@@ -407,6 +407,7 @@
           item.model = item.childModel
           item.sourceId = item.childId
           item.orderQuantity=item.quantity
+          item.quantity = Number(item.orderQuantity)-Number(item.arrivalQuantity)
         })
         var arr = data.concat(arriveDetailsFormProductTable.dataSource)
         arriveDetailsFormProductTable.dataSource=arr