Browse Source

森语-搬运工对账单-导入

jbb 2 years ago
parent
commit
107224aaa6
1 changed files with 22 additions and 20 deletions
  1. 22 20
      src/views/oa/modules/SyCarryModal.vue

+ 22 - 20
src/views/oa/modules/SyCarryModal.vue

@@ -78,7 +78,7 @@
         :columns="syCarryBTable.columns"
         :data-source="syCarryBTable.dataSource"
         :loading="syCarryBTable.loading"
-        :scroll="{x: 2000,y:300 }"
+        :scroll="{x: 2500,y:300 }"
         :pagination="false"
       >
          <!-- 表头--日期 -->
@@ -242,7 +242,8 @@
             // title: '日期',
             align: "center",
             dataIndex: 'orderDate',
-            width: 140,
+            width: '6%',
+            ellipsis: true,
             scopedSlots: { customRender: 'orderDate' },
             slots:{title:'orderDateTitle'}
           },
@@ -250,13 +251,15 @@
             title: '入库单号/发票号',
             align: "center",
             dataIndex: 'invoiceNo',
-            width: 140,
+            width: '6%',
+            ellipsis: true,
             scopedSlots: { customRender: 'invoiceNo' },
           },
            {
             title: '总件数',
             dataIndex: 'allNum',
-            width: 100,
+            width:  '5%',
+            ellipsis: true,
              scopedSlots: { customRender: 'allNum' },
              className: 'replacecolor',
             // slots:{title:'allNumTitle'}
@@ -264,7 +267,7 @@
            {
             title: '柜子数量',
             dataIndex: 'cabinets',
-             width: 100,
+             width:  '5%',
              ellipsis: true,
              scopedSlots: { customRender: 'cabinets' },
              className: 'replacecolor'
@@ -272,7 +275,7 @@
            {
             title: '明细',
             dataIndex: 'detailedNum',
-             width: 100,
+             width:  '5%',
              ellipsis: true,
              scopedSlots: { customRender: 'detailedNum' },
              className: 'replacecolor',
@@ -281,7 +284,7 @@
            {
             title: '衣架/吨数',
             dataIndex: 'coatHanger',
-           width: 120,
+           width:'6%',
              ellipsis: true,
              scopedSlots: { customRender: 'coatHanger' },
              className: 'replacecolor'
@@ -289,7 +292,7 @@
            {
             // title: '集装箱号',
             dataIndex: 'containerNo',
-             width: 220,
+             width: '15%',
              ellipsis: true,
              scopedSlots: { customRender: 'containerNo' },
              className: 'replacecolor',
@@ -307,16 +310,16 @@
            {
             //  title: '单价',
              dataIndex: 'price',
-             width: 100,
+             width: '5%',
              ellipsis: true,
              scopedSlots: { customRender: 'price' },
              className: 'replacecolor',
-            slots:{title:'priceTitle'}
+             slots:{title:'priceTitle'}
            },
              {
             // title: '总价',
             dataIndex: 'totalPrice',
-            width: 100,
+            width: '5%',
              ellipsis: true,
             //  scopedSlots: { customRender: 'totalPrice' },
              className: 'replacecolor',
@@ -325,7 +328,7 @@
            {
             // title: '计划员',
             dataIndex: 'jhyByData',
-             width: 140,
+             width: '7%',
              ellipsis: true,
              scopedSlots: { customRender: 'jhyByData' },
              className: 'replacecolor',
@@ -334,14 +337,14 @@
            {
             title: '签名',
             dataIndex: 'jhyName',
-            width: 100,
+            width: '5',
              ellipsis: true,
              className: 'replacecolor'
            },
            {
             title: '原因',
             dataIndex: 'reason',
-            width: 200,
+            width: '10%',
              ellipsis: true,
              scopedSlots: { customRender: 'reason' },
              className: 'replacecolor',
@@ -350,7 +353,7 @@
            {
             title: '备注',
             dataIndex: 'demo',
-             width: 200,
+             width: '12%',
              ellipsis: true,
              scopedSlots: { customRender: 'demo' },
              className: 'replacecolor'
@@ -609,12 +612,11 @@
       fileDetail(formData).then(res => {
         // this.loading = false
         if (res.success) {
-          // this.visible = true
-          this.message = res.message.split(';').filter((element) => {
-             return element !== ""; 
-          });
-          this.file = file
+         this.formState = res.result
+         this.syCarryBTable.dataSource = res.result.syCarryBList
+         this.handleChangePrice()
           this.$message.success('导入成功')
+          // this.
         }else{
           this.$message.error(res.message);
         }