Browse Source

修改bug

lichao 3 years ago
parent
commit
c262099779

+ 1 - 0
src/components/crop-select/main.vue

@@ -214,6 +214,7 @@ export default {
       this.$refs.crud.toggleSelection();
     },
     importCorp() {
+      if (this.multiple && this.selectionList.length == 0) return this.$message.error('请选择明细')
       this.$emit("balabala", this.selectionList[0].id);
       this.$emit("getCorpData", {
         ...this.selectionList[0],

+ 8 - 8
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -2236,15 +2236,15 @@ export default {
       this.removeGoodsRepeat()
     },
     async getCorpRow(data) {
-      if (data.adminProfiles) {
-        data.adminProfiles = data.adminProfiles.split(",");
-        let arr=[]
-        data.adminProfiles.forEach(e => {
-          arr.push(this.userList.find(item => item.id == e).realName)
-        })
-        this.$set(this.form, 'chargeMember', arr[0])
-      }
       khDetail(data.id).then(res => {
+        if (res.data.data.adminProfiles) {
+          res.data.data.adminProfiles = res.data.data.adminProfiles.split(",");
+          let arr = [];
+          res.data.data.adminProfiles.forEach(e => {
+            arr.push(this.userList.find(item => item.id == e).realName)
+          })
+          this.$set(this.form, 'chargeMember', arr[0])
+        }
         if (res.data.data.corpsAttnList.length > 0) {
           this.khInfoList = res.data.data.corpsAttnList;
           this.$set(this.form, 'corpAttn', res.data.data.corpsAttnList[0].cname);