浏览代码

总部创建销售单

chenrui 3 年之前
父节点
当前提交
e4dedba6c7
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/views/salesManagement/salesQuery/receivingAddress/chooseAddressModal.vue

+ 7 - 2
src/views/salesManagement/salesQuery/receivingAddress/chooseAddressModal.vue

@@ -21,8 +21,8 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 1200 }"
         :showPagination="false"
+        :defaultLoadData="false"
         bordered>
         <!-- 收货人 -->
         <template slot="consignee" slot-scope="text, record">
@@ -103,7 +103,7 @@ export default {
         { title: '收货人', scopedSlots: { customRender: 'consignee' }, align: 'center', ellipsis: true },
         { title: '手机号码', dataIndex: 'consigneeTel', width: 230, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '收货地址', dataIndex: 'address', width: 400, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' },
+        // { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' },
         { title: '选择', scopedSlots: { customRender: 'choose' }, width: 80, align: 'center', fixed: 'right' }
       ],
       // 加载数据方法 必须为 Promise 对象
@@ -201,6 +201,11 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
+      } else {
+        const _this = this
+        setTimeout(() => {
+          _this.$refs.table.refresh(true)
+        }, 300)
       }
     }
   }