chenrui 3 лет назад
Родитель
Сommit
4bd8655422
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      src/views/numsGoodsShelves/shelfSet/basicInfoModal.vue

+ 7 - 3
src/views/numsGoodsShelves/shelfSet/basicInfoModal.vue

@@ -114,9 +114,13 @@ export default {
         if (this.nowData.customerSn) {
           const _this = this
           this.$nextTick(() => {
-            _this.form.customerSn = _this.nowData.customerSn
-            _this.$refs.custList.fetchUser(_this.nowData.customerName)
-            _this.$refs.custList.dealerName = { key: _this.nowData.customerSn, label: _this.nowData.customerName, row: _this.nowData }
+            _this.form.customerSn = _this.nowData.customerEntity && _this.nowData.customerEntity.customerSn
+            _this.$refs.custList.fetchUser(_this.nowData.customerEntity && _this.nowData.customerEntity.customerName)
+            _this.$refs.custList.dealerName = {
+              key: _this.nowData.customerEntity && _this.nowData.customerEntity.customerSn,
+              label: _this.nowData.customerEntity && _this.nowData.customerEntity.customerName,
+              row: _this.nowData
+            }
           })
         }
       }