chenrui 3 سال پیش
والد
کامیت
1ea4e04f5d
1فایلهای تغییر یافته به همراه10 افزوده شده و 4 حذف شده
  1. 10 4
      src/views/purchasingManagement/purchaseOrder/receivingAddress/chooseAddressModal.vue

+ 10 - 4
src/views/purchasingManagement/purchaseOrder/receivingAddress/chooseAddressModal.vue

@@ -21,8 +21,9 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 1250 }"
+        :scroll="{ x: 1160, y: 500 }"
         :showPagination="false"
+        :defaultLoadData="false"
         bordered>
         <!-- 收货人 -->
         <template slot="consignee" slot-scope="text, record">
@@ -42,7 +43,7 @@
             size="small"
             type="primary"
             class="button-success"
-            v-if="record.defaultFlag==0"
+            v-if="record.defaultFlag!=1"
             @click="handleDefault(record)"
             id="chooseAddressList-default-btn">设为默认</a-button>
           <a-button
@@ -96,12 +97,12 @@ export default {
       queryParam: {},
       // 表头
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
+        { title: '序号', dataIndex: 'no', width: 50, align: 'center' },
         { 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: 220, align: 'center', fixed: 'right' },
-        { title: '选择', scopedSlots: { customRender: 'choose' }, width: 100, align: 'center', fixed: 'right' }
+        { title: '选择', scopedSlots: { customRender: 'choose' }, width: 80, align: 'center', fixed: 'right' }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
@@ -198,6 +199,11 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
+      } else {
+        const _this = this
+        setTimeout(() => {
+          _this.$refs.table.refresh(true)
+        }, 300)
       }
     }
   }