Browse Source

搬运工对账单-增加抽真空数字段/修改总价的计算公式

jingbb 2 tuần trước cách đây
mục cha
commit
1a45d5c05f
1 tập tin đã thay đổi với 19 bổ sung1 xóa
  1. 19 1
      src/views/oa/modules/SyCarryModal.vue

+ 19 - 1
src/views/oa/modules/SyCarryModal.vue

@@ -157,6 +157,13 @@
                   <a-input placeholder="请输入" v-model="record.coatHanger" @blur="handleChangePrice(record)" :disabled="editAll=='yes'"/>
             <!-- </a-form-model-item> -->
           </span>
+          <!-- 抽真空数 -->
+          <span slot="vacuumNum" slot-scope="text, record, index">
+            <!-- <a-form-model-item prop="remarks2"> -->
+                  <a-input placeholder="请输入" v-model="record.vacuumNum" @blur="handleChangePrice(record)" />
+            <!-- </a-form-model-item> -->
+          </span>
+          
           <!-- 集装箱号 -->
            <span slot="containerNo" slot-scope="text, record, index">
             <!-- <a-form-model-item prop="remarks2"> -->
@@ -351,11 +358,19 @@
            {
             title: '衣架/吨数',
             dataIndex: 'coatHanger',
-           width:120,
+            width:120,
              ellipsis: true,
              scopedSlots: { customRender: 'coatHanger' },
              className: 'replacecolor'
            },
+           {
+            title: '抽真空数量',
+            dataIndex: 'vacuumNum',
+            width:120,
+             ellipsis: true,
+             scopedSlots: { customRender: 'vacuumNum' },
+             className: 'replacecolor'
+           },
            {
             // title: '集装箱号',
             dataIndex: 'containerNo',
@@ -736,6 +751,9 @@
         }else{
            record.totalPrice = record.detailedNum
         }
+        if(record.vacuumNum){
+          record.totalPrice=Number(record.totalPrice)+Number(record.vacuumNum)*0.7
+        }
         var Hj = 0
        this.syCarryBTable.dataSource.map(item=>{
          item.coatHanger = Number(item.coatHanger).toFixed(4)