jbb пре 2 година
родитељ
комит
8c680181bf
1 измењених фајлова са 23 додато и 11 уклоњено
  1. 23 11
      src/views/oa/modules/SyCarryModal.vue

+ 23 - 11
src/views/oa/modules/SyCarryModal.vue

@@ -135,13 +135,17 @@
            <span slot="invoiceNo" slot-scope="text, record, index">
                   <a-input placeholder="请输入" v-model="record.invoiceNo" />
           </span>
+          <!-- 外销发票号 -->
+          <span slot="saleInvoiceNo" slot-scope="text, record, index">
+                  <a-input placeholder="请输入" v-model="record.saleInvoiceNo" />
+          </span>
           <!-- 价格 -->
           <span slot="price" slot-scope="text, record, index">
               <a-input placeholder="请输入" v-model="record.price"  @blur="handleChangePrice(record)"/>
           </span>
           <!-- 总价 -->
           <span slot="totalPrice" slot-scope="text, record, index">
-              <a-input placeholder="请输入" v-model="record.totalPrice" disabled="false"/>
+              <a-input placeholder="请输入" v-model="record.totalPrice"   @blur="handleChangetotalPrice()"/>
           </span>
           <!-- 计划员 -->
            <span slot="jhyByData" slot-scope="text, record, index">
@@ -258,6 +262,15 @@
             ellipsis: true,
             scopedSlots: { customRender: 'invoiceNo' },
           },
+           {
+            title: '外销发票号',
+            dataIndex: 'saleInvoiceNo',
+            width: '9%',
+             ellipsis: true,
+             scopedSlots: { customRender: 'saleInvoiceNo' },
+             className: 'replacecolor',
+            // slots:{title:'invoiceNoTitle'}
+           },
            {
             title: '总件数',
             dataIndex: 'allNum',
@@ -301,15 +314,6 @@
              className: 'replacecolor',
             slots:{title:'containerNoTitle'}
            },
-          //  {
-          //   // title: '发票号',
-          //   dataIndex: 'invoiceNo',
-          //   width: '9%',
-          //    ellipsis: true,
-          //    scopedSlots: { customRender: 'invoiceNo' },
-          //    className: 'replacecolor',
-          //   slots:{title:'invoiceNoTitle'}
-          //  },
            {
             //  title: '单价',
              dataIndex: 'price',
@@ -324,7 +328,7 @@
             dataIndex: 'totalPrice',
             width: '5%',
              ellipsis: true,
-            //  scopedSlots: { customRender: 'totalPrice' },
+             scopedSlots: { customRender: 'totalPrice' },
              className: 'replacecolor',
              slots:{title:'totalPriceTitle'}
            },
@@ -680,6 +684,14 @@
        })
        this.formState.totalNum = Hj.toFixed(2)
        this.$forceUpdate()
+      },
+      handleChangetotalPrice(){
+        var Hj = 0
+        this.syCarryBTable.dataSource.map(item=>{
+         Hj+= Number(item.totalPrice)
+       })
+       this.formState.totalNum = Hj.toFixed(2)
+       this.$forceUpdate()
       }
       
     }