chenrui 2 лет назад
Родитель
Сommit
339abdd8ac

+ 2 - 1
src/views/dealerManagement/businessOwnerSettings/addModal.vue

@@ -125,8 +125,9 @@ export default {
           _this.spinning = true
           _this.form.id = _this.itemId ? _this.itemId : ''
           if (_this.form.bizUserType != 'cg') {
-            this.warehouseList = []
+            _this.warehouseList = []
             _this.form.bizUserScopeList = []
+            _this.form.allSupplierFlag = undefined
           }
           bizuserSave(_this.form).then(res => {
             _this.spinning = false

+ 8 - 6
src/views/dealerManagement/businessOwnerSettings/chooseSupplier.vue

@@ -87,12 +87,13 @@ export default {
                 }
               }
             }
-            if (!this.pageFlag) {
-              this.pageFlag = true
+            if (!_this.pageFlag) {
+              console.log('11111111111111111111111', _this.chooseInfo, chooseData)
               _this.$refs.table.setTableSelected(_this.chooseInfo, chooseData) // 设置表格选中项
+              _this.pageFlag = true
             }
           }
-          this.spinning = false
+          _this.spinning = false
           return data
         })
       },
@@ -103,9 +104,9 @@ export default {
     columns () {
       const arr = [
         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
-        { title: '供应商名称', dataIndex: 'supplier.supplierName', width: '50%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '联系人', dataIndex: 'supplier.contact', align: 'left', width: '26%', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '联系电话', dataIndex: 'supplier.contactMobile', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '供应商名称', dataIndex: 'supplier.supplierName', width: '96%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
+        // { title: '联系人', dataIndex: 'supplier.contact', align: 'left', width: '26%', customRender: function (text) { return text || '--' }, ellipsis: true },
+        // { title: '联系电话', dataIndex: 'supplier.contactMobile', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
       ]
       return arr
     },
@@ -140,6 +141,7 @@ export default {
       }
       this.$refs.table.clearSelected()
       this.$refs.table.refresh(true)
+      this.pageFlag = false
     },
     clearTable () {
       this.rowSelectionInfo = null