Sfoglia il codice sorgente

托书-关闭新增弹窗时表头初始化

jbb 2 anni fa
parent
commit
cbe8bccb17
1 ha cambiato i file con 127 aggiunte e 0 eliminazioni
  1. 127 0
      src/views/book/addBookDrawer.vue

+ 127 - 0
src/views/book/addBookDrawer.vue

@@ -1077,6 +1077,132 @@ export default {
            },
           ]
     },
+    resumeColumns(){
+      this.addBookColumns=[
+      {
+          title: '款号',
+          dataIndex: 'itemNumber',
+          width: 90,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+         {
+          title: '小po',
+          dataIndex: 'smallPo',
+          width: 100,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+        {
+          title: '数量',
+          dataIndex: 'number',
+          width: 90,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+         {
+          title: '箱数',
+          dataIndex: 'boxNumber',
+          width: 90,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+         {
+          title: '毛重',
+          dataIndex: 'grossWeight',
+          width: 90,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+        {
+          title: '净重',
+          dataIndex: 'netWeight',
+          width: 90,
+          ellipsis: true,
+          // scopedSlots: { customRender: 'containerCode' },
+          className: 'replacecolor'
+        },
+        // {
+        //   title: '体积',
+        //   dataIndex: 'volume',
+        //   width: 120,
+        //   ellipsis: true,
+          // scopedSlots: { customRender: 'containerNo' },
+          // className: 'replacecolor'
+        // },
+        {
+          title: '分销点',
+          dataIndex: 'distributionPoint',
+          width: 100,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+        {
+          // title: '集装箱号',
+          dataIndex: 'containerNumber',
+          ellipsis: true,
+          scopedSlots: { customRender: 'containerNumber' },
+          slots:{title:'containerNumberTitle'},
+          width: 120,
+          // fixed: 'left',
+          className: 'replacecolor'
+        },
+        //   {
+        //   title: '集装箱代号',
+        //   dataIndex: 'containerCode',
+        //   scopedSlots: { customRender: 'containerCode' },
+        //   width: 120,
+        //   ellipsis: true,
+        //   className: 'replacecolor'
+        // },
+          {
+          title: '单价',
+          dataIndex: 'price',
+          width: 90,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+        {
+          title: '金额',
+          dataIndex: 'totalPrice',
+          width: 90,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+
+         {
+          title: '制单人',
+          dataIndex: 'createBy',
+          width: 120,
+          ellipsis: true,
+          // fixed: 'left',
+          className: 'replacecolor'
+        },
+           {
+          title: '采购/委外订单号',
+          dataIndex: 'purOrSubOrder',
+          width: 160,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+        {
+          title: '英文名称',
+          dataIndex: 'englishProductName',
+          width: 220,
+          ellipsis: true,
+          className: 'replacecolor'
+        },
+        {
+          title: '操作',
+          dataIndex: 'operation',
+          ellipsis: true,
+          scopedSlots: { customRender: 'operationSlot' },
+          width: 160,
+          fixed: 'right',
+          className: 'replacecolor'
+        }
+          ]
+    },
     adsCNY(){
       var newObj ={
         freightForwarder :'',
@@ -1107,6 +1233,7 @@ export default {
       this.FreightOption=[]
       this.visible = false
       this.defaultMethod = 'add'
+      this.resumeColumns()
       this.$refs.form.resetFields()
     },
     freightForwarderClick(val,record){