Browse Source

Merge branch 'dev' of git.echepei.com:caojunjie/Smart_platform_ui into dev

caojunjie 3 years ago
parent
commit
5e427792a5

+ 50 - 0
src/components/crop-select/configuration/mainList2.json

@@ -0,0 +1,50 @@
+{
+  "searchShow": true,
+  "searchMenuSpan": 8,
+  "lazy": true,
+  "align": "center",
+  "border": true,
+  "index": true,
+  "tree": true,
+  "addBtn": false,
+  "menu": false,
+  "selection": true,
+  "tip": false,
+  "column": [{
+    "label": "编码",
+    "prop": "code",
+    "index": 1,
+    "width": 100,
+    "overHidden": true
+  }, {
+    "label": "区域",
+    "prop": "belongtoarea",
+    "index": 2,
+    "width": 180,
+    "overHidden": true
+  }, {
+    "label": "所属公司",
+    "prop": "belongCompany",
+    "index": 3,
+    "width": 100,
+    "overHidden": true
+  }, {
+    "label": "联系人",
+    "prop": "attn",
+    "index": 4,
+    "width": 100,
+    "overHidden": true
+  }, {
+    "label": "代理品牌",
+    "prop": "goodtypes",
+    "index": 5,
+    "width": 100,
+    "overHidden": true
+  }, {
+    "label": "等级",
+    "prop": "creditLevel",
+    "index": 6,
+    "width": 100,
+    "overHidden": true
+  }]
+}

+ 37 - 21
src/components/crop-select/main.vue

@@ -2,6 +2,29 @@
   <div>
     <div style="display:flex">
       <el-select
+        v-if="gysType == 'CK'"
+        size="small"
+        v-model="value"
+        placeholder="请选择"
+        @input="$emit('balabala', value)"
+        :disabled="disabled"
+        filterable
+        clearable
+        style="width:100%"
+        :multiple="multiple ? multiple : false"
+        :collapse-tags="collapseTags ? collapseTags : false"
+        @change="corpChange"
+      >
+        <el-option
+          v-for="item in corpList"
+          :key="item.id"
+          :label="item.code"
+          :value="item.id"
+        >
+        </el-option>
+      </el-select>
+      <el-select
+        v-else
         size="small"
         v-model="value"
         placeholder="请选择"
@@ -91,6 +114,7 @@
 
 <script>
 import option from "./configuration/mainList.json";
+import option2 from "./configuration/mainList2.json";
 import {
   customerList,
   allCropList,
@@ -139,20 +163,22 @@ export default {
     corpType: String,
     multiple: Boolean,
     collapseTags: Boolean,
-    belongtocompany: Number,
+    gysType: String,
+    treeType: String
   },
   model: {
     prop: "value",
     event: "balabala"
   },
   async created() {
-    this.tableOption = await this.getColumnData(this.getColumnName(51), option);
+    console.log(this.gysType,this.corpType,this.gysType=='CK'&&this.corpType=='GYS')
+    this.tableOption = await this.getColumnData(this.getColumnName(51), this.gysType=='CK'&&this.corpType=='GYS'?option2:option);
     let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
     this.title = getCustomerName(this.corpType);
     allCropList({
       corpType: getCustomerCode(this.corpType),
-      adminProfiles: !userObj.role_name.split(',').some(item => item == 'admin' || item == 'administrator') ? userObj.user_id : null,
-      belongtocompany: this.belongtocompany,
+      adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null,
+      corpsTypeName: this.treeType == "CK" ? "货代和物流" : null
     }).then(res => {
       this.corpList = res.data.data;
     });
@@ -168,7 +194,8 @@ export default {
         const parentId = node.level === 0 ? 0 : node.data.id;
         getDeptLazyTree({
           parentId: parentId,
-          corpType: getCustomerCode(_this.corpType)
+          corpType: getCustomerCode(_this.corpType),
+          cname: _this.treeType == "CK" ? "货代和物流" : null
         }).then(res => {
           resolve(
             res.data.data.map(item => {
@@ -210,8 +237,8 @@ export default {
         current: page.currentPage,
         corpsTypeId: this.treeDeptId,
         corpType: getCustomerCode(this.corpType),
-        adminProfiles: !userObj.role_name.split(',').some(item => item == 'admin' || item == 'administrator') ? userObj.user_id : null,
-        belongtocompany: this.belongtocompany
+        adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null,
+        corpsTypeName: this.treeType == "CK" ? "货代和物流" : null
       });
       this.loading = true;
       customerList(queryParams)
@@ -271,24 +298,13 @@ export default {
       }
     },
     async resetColumn() {
-      this.option = option;
-      const inSave = await this.delColumnData(this.getColumnName(51), option);
+      this.option = this.gysType=='CK'&&this.corpType=='GYS'?option2:option;
+      const inSave = await this.delColumnData(this.getColumnName(51), this.gysType=='CK'&&this.corpType=='GYS'?option2:option);
       if (inSave) {
         this.$message.success("重置成功");
         this.$refs.crud.$refs.dialogColumn.columnBox = false;
       }
-    },
-    // 更新数据
-    updateData(belongToCompany) {
-      let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
-      allCropList({
-        corpType: getCustomerCode(this.corpType),
-        adminProfiles: !userObj.role_name.split(',').some(item => item == 'admin' || item == 'administrator') ? userObj.user_id : null,
-        belongtocompany: belongToCompany,
-      }).then(res => {
-        this.corpList = res.data.data;
-      });
-    },
+    }
   }
 };
 </script>

+ 189 - 167
src/components/fee-info/main.vue

@@ -14,7 +14,7 @@
       >
         <template slot="menuLeft">
           <el-tabs v-model="activeName" @tab-click="tabHandle">
-            <el-tab-pane label="应收"  name="first" :key="'first'">
+            <el-tab-pane label="应收" name="first" :key="'first'">
             </el-tab-pane>
             <el-tab-pane label="应付" name="second" :key="'second'">
             </el-tab-pane>
@@ -33,17 +33,23 @@
             size="small"
             @click.stop="billingDetails('收费')"
             :loading="buttonLoading"
-            :disabled="(financeDisabled && disabled) || selectionList.length == 0"
+            :disabled="
+              (financeDisabled && disabled) || selectionList.length == 0
+            "
             v-if="selectTab === 1"
-          >生成账单</el-button>
+            >生成账单</el-button
+          >
           <el-button
             type="warning"
             size="small"
             @click.stop="billingDetails('申请')"
             :loading="buttonLoading"
-            :disabled="(financeDisabled && disabled) || selectionList.length == 0"
+            :disabled="
+              (financeDisabled && disabled) || selectionList.length == 0
+            "
             v-if="selectTab === 2"
-          >申请付费</el-button>
+            >申请付费</el-button
+          >
         </template>
         <template slot="menu" slot-scope="{ row, index }">
           <el-button
@@ -72,16 +78,17 @@
             v-model="row.corpId"
             :cropIndex="index"
             @getCorpData="getCorpData"
+            :treeType="optionType"
             corpType="KG"
           ></crop-select>
           <span v-else>{{ row.corpName }}</span>
         </template>
-        <template slot="feeName" slot-scope="{ row, index }">
+        <template slot="feeName" slot-scope="{ row }">
           <span v-if="row.$cellEdit" class="required_fields">*</span>
           <breakdown-select
             v-if="row.$cellEdit"
             v-model="row.itemId"
-            @selectValue="(value) => selectValue(value,row)"
+            @selectValue="value => selectValue(value, row)"
             :configuration="breakConfiguration"
           >
           </breakdown-select>
@@ -98,7 +105,7 @@
             clearable
           >
             <el-option
-              v-for="(item,index) in billNoList"
+              v-for="(item, index) in billNoList"
               :key="index"
               :label="item"
               :value="item"
@@ -249,7 +256,10 @@ import { isPercentage, micrometerFormat, IntegerFormat } from "@/util/validate";
 import cropDialog from "@/components/crop-dialog/main";
 import _ from "lodash";
 import ApplyPayment from "../finance/applyPayment";
-import {applyLoan,paymentApply} from "@/api/financialManagement/paymentRequest";
+import {
+  applyLoan,
+  paymentApply
+} from "@/api/financialManagement/paymentRequest";
 import { contrastList } from "@/util/contrastData";
 import { allCropList } from "@/api/basicData/customerInformation";
 import { getCustomerCode, getCustomerName } from "@/enums/management-type";
@@ -261,7 +271,7 @@ export default {
       option: option,
       feeOption: {},
       feeDialog: false,
-      buttonLoading:false,
+      buttonLoading: false,
       treeOption: {
         nodeKey: "id",
         lazy: true,
@@ -302,26 +312,26 @@ export default {
       selectionList: [],
       reData: null,
       currencyList: [],
-      unitList:[],
-      breakConfiguration:{
-        multipleChoices:false,
-        multiple:false,
-        disabled:false,
-        searchShow:true,
-        collapseTags:false,
-        clearable:true,
-        placeholder:'请点击右边按钮选择',
-        dicData:[]
+      unitList: [],
+      breakConfiguration: {
+        multipleChoices: false,
+        multiple: false,
+        disabled: false,
+        searchShow: true,
+        collapseTags: false,
+        clearable: true,
+        placeholder: "请点击右边按钮选择",
+        dicData: []
       },
-      allData:[],
-      data_one:[],
-      data_two:[],
-      selectTab:1,
-      activeName:"first",
-      enableName:"first",
-      tab1:true,
-      tab2:false,
-      corpList: [],
+      allData: [],
+      data_one: [],
+      data_two: [],
+      selectTab: 1,
+      activeName: "first",
+      enableName: "first",
+      tab1: true,
+      tab2: false,
+      corpList: []
     };
   },
   props: {
@@ -337,7 +347,7 @@ export default {
     billUrl: {
       type: String
     },
-    optionType:{
+    optionType: {
       type: String
     },
     itemType: {
@@ -345,18 +355,18 @@ export default {
     },
     srcType: {
       type: Number,
-      default: 2,
+      default: 2
     },
     corpId: {
       type: String
     },
-    billNoList:{
-      type:Array
+    billNoList: {
+      type: Array
     },
     financeDisabled: {
       type: Boolean,
       default: true
-    },
+    }
   },
   filters: {
     isPercentage(val) {
@@ -370,26 +380,26 @@ export default {
     },
     IntegerFormat(num) {
       return IntegerFormat(num);
-    },
+    }
   },
   async created() {
     this.feeOption = await this.getColumnData(
       this.getColumnName(33),
       feeOption
     );
-    if(this.$store.getters.userInfo.tenant_id === '888390'){
-      this.feeOption.column.forEach(item =>{
-        if(item.prop === 'billNo'){
-          item.hide = false
+    if (this.$store.getters.userInfo.tenant_id === "888390") {
+      this.feeOption.column.forEach(item => {
+        if (item.prop === "billNo") {
+          item.hide = false;
         }
-      })
+      });
     }
     this.getWorkDicts("currency").then(res => {
       this.currencyList = res.data.data;
     });
-    this.getWorkDicts("unit").then(res =>{
-      this.unitList = res.data.data
-    })
+    this.getWorkDicts("unit").then(res => {
+      this.unitList = res.data.data;
+    });
     allCropList({
       corpType: getCustomerCode("KG")
     }).then(res => {
@@ -401,46 +411,46 @@ export default {
     ApplyPayment
   },
   watch: {
-    'orderFeesList'(newVla,oldVal){
-      if(newVla !==  oldVal){
-        this.allData = newVla
-        this.data_one = newVla.filter(item => item.feesType === 1)  //应收
-        this.data_two = newVla.filter(item => item.feesType === 2)  //应付
+    orderFeesList(newVla, oldVal) {
+      if (newVla !== oldVal) {
+        this.allData = newVla;
+        this.data_one = newVla.filter(item => item.feesType === 1); //应收
+        this.data_two = newVla.filter(item => item.feesType === 2); //应付
         if (this.selectTab === 1) {
-          this.feeData = this.data_one
+          this.feeData = this.data_one;
         } else {
-          this.feeData = this.data_two
+          this.feeData = this.data_two;
         }
       }
     },
-    'activeName'(newVla,oldVal){
-      if(newVla !== oldVal){
-        if(newVla === "first"){
+    activeName(newVla, oldVal) {
+      if (newVla !== oldVal) {
+        if (newVla === "first") {
           this.tab1 = true;
           this.tab2 = false;
 
-          this.data_two = this.feeData
+          this.data_two = this.feeData;
 
-          this.selectTab = 1
-          this.feeData = this.data_one
-        }else{
+          this.selectTab = 1;
+          this.feeData = this.data_one;
+        } else {
           this.tab1 = false;
           this.tab2 = true;
 
-          this.data_one = this.feeData
+          this.data_one = this.feeData;
 
-          this.selectTab = 2
-          this.feeData = this.data_two
+          this.selectTab = 2;
+          this.feeData = this.data_two;
         }
       }
-    },
+    }
   },
   methods: {
     //选择费用
-    selectValue(value,row){
-      this.$set(row,"feeName",value.cname)
-      this.$set(row,"ename",value.ename)
-      this.currencyChange(row)
+    selectValue(value, row) {
+      this.$set(row, "feeName", value.cname);
+      this.$set(row, "ename", value.ename);
+      this.currencyChange(row);
     },
     //选择应收应付
     // handleClick(tab){
@@ -470,26 +480,26 @@ export default {
         itemId: null,
         corpId: row.id,
         corpName: row.name,
-        ename:null,
+        ename: null,
         feeName: null,
         price: null,
         unit: null,
         quantity: null,
         amount: null,
-        currency:'CNY',
+        currency: "CNY",
         exchangeRate: 1,
         remarks: null,
         $cellEdit: true,
-        feesType:this.selectTab
+        feesType: this.selectTab
       });
     },
     //带出汇率
-    currencyChange(row){
-      this.currencyList.forEach(item =>{
-        if(item.dictValue === row.currency){
-          this.$set(row,"exchangeRate",item.remark)
+    currencyChange(row) {
+      this.currencyList.forEach(item => {
+        if (item.dictValue === row.currency) {
+          this.$set(row, "exchangeRate", item.remark);
         }
-      })
+      });
     },
     rowDel(row, index) {
       this.$confirm("确定删除数据?", {
@@ -516,7 +526,7 @@ export default {
       });
     },
     getCorpData(row) {
-      console.log(row)
+      console.log(row);
       this.feeData[row.index].corpName = row.cname;
     },
     countChange(row) {
@@ -565,17 +575,23 @@ export default {
     },
     //新增
     rowAdd() {
-      if (!this.corpId) return this.$message.error('请选择往来单位')
-      if(this.$store.getters.userInfo.tenant_id === '888390'){
-        this.$emit("getBillNo")
-      }
-      let corpName = this.corpList.find(item => this.corpId == item.id).cname
-      const params = {
-        feesType:this.selectTab,
-        corpId: this.corpId,
-        corpName: corpName
+      if (this.optionType == "CK") {
+        this.$refs.feeCrud.rowCellAdd({});
+      } else {
+        if (this.optionType != "CK") {
+          if (!this.corpId) return this.$message.error("请选择往来单位");
+        }
+        if (this.$store.getters.userInfo.tenant_id === "888390") {
+          this.$emit("getBillNo");
+        }
+        let corpName = this.corpList.find(item => this.corpId == item.id).cname;
+        const params = {
+          feesType: this.selectTab,
+          corpId: this.corpId,
+          corpName: corpName
+        };
+        this.$refs.feeCrud.rowCellAdd(params);
       }
-      this.$refs.feeCrud.rowCellAdd(params);
     },
     onLoad(page) {
       this.loading = true;
@@ -646,110 +662,116 @@ export default {
             quantity: 0,
             amount: 0,
             remarks: null,
-            $cellEdit: true,
+            $cellEdit: true
           });
         });
       }
       this.feeDialog = false;
     },
     submitData() {
-      let list = []
+      let list = [];
       //保存时  将所出的tab页数据赋值到相应 data上
-      if(this.selectTab === 1){
-        this.data_one =  this.feeData
-      }else{
-        this.data_two =  this.feeData
+      if (this.selectTab === 1) {
+        this.data_one = this.feeData;
+      } else {
+        this.data_two = this.feeData;
       }
-      list.push(...this.data_one,...this.data_two)
-      return list
+      list.push(...this.data_one, ...this.data_two);
+      return list;
     },
 
-    billingDetails(type){
+    billingDetails(type) {
       //查看是否改动过数据
-      this.$emit("beforeFinance",this.submitData(),(params)=>{
-        if(params.valid){
-          for(let i=0;i<this.selectionList.length;i++){
-            if(this.selectionList[i].corpId != this.selectionList[0].corpId){
-              return this.$message.error('批量操作结算单位必须一致')
+      this.$emit("beforeFinance", this.submitData(), params => {
+        if (params.valid) {
+          for (let i = 0; i < this.selectionList.length; i++) {
+            if (this.selectionList[i].corpId != this.selectionList[0].corpId) {
+              return this.$message.error("批量操作结算单位必须一致");
             }
-            if(this.selectionList[i].isCheck == 1){
-              return this.$message.error("选中的数据已"+type+",请勿重复操作!")
+            if (this.selectionList[i].isCheck == 1) {
+              return this.$message.error(
+                "选中的数据已" + type + ",请勿重复操作!"
+              );
             }
           }
 
-          this.selectionList.map(item =>{
+          this.selectionList.map(item => {
             // item.url = this.billUrl
-            item.srcOrderno = params.srcOrderno
-            item.srcParentId = params.parentId
-            item.corpsName = item.corpName
-            item.srcFeesId = item.id
-            item.costType = item.itemId
-            item.itemType = this.itemType
-            item.optionType = this.optionType
-            item.srcType = this.srcType   //费用明细申请
-            item.tradeType = this.optionType
-          })
+            item.srcOrderno = params.srcOrderno;
+            item.srcParentId = params.parentId;
+            item.corpsName = item.corpName;
+            item.srcFeesId = item.id;
+            item.costType = item.itemId;
+            item.itemType = this.itemType;
+            item.optionType = this.optionType;
+            item.srcType = this.srcType; //费用明细申请
+            item.tradeType = this.optionType;
+          });
           let data = {
             billType: type,
-            itemsList : this.selectionList,
-          }
-          if(type === '申请'){
+            itemsList: this.selectionList
+          };
+          if (type === "申请") {
             this.$confirm("您确定申请付费吗?", "提示", {
               confirmButtonText: "确定",
               cancelButtonText: "取消",
-              type: "warning",
-            }).then(()=>{
-              this.buttonLoading = true
+              type: "warning"
+            }).then(() => {
+              this.buttonLoading = true;
 
-              data.checkType = 'ffsq'
-              data.url = '/financialManagement/paymentRequest/index'
-              data.pageStatus = 'this.$store.getters.pqStatus'
-              data.pageLabel = '付费申请'
+              data.checkType = "ffsq";
+              data.url = "/financialManagement/paymentRequest/index";
+              data.pageStatus = "this.$store.getters.pqStatus";
+              data.pageLabel = "付费申请";
 
-              applyLoan(data).then(res=>{
-                if(res.data.success){
-                  this.$message.success("操作成功!")
-                  this.$emit("afterFinance")
-                  //跳转付费申请页面
-                  // if(this.$store.getters.pqStatus){
-                  //   this.$alert("无法自动跳转,因为付费申请页面已存在!", "温馨提示", {
-                  //     confirmButtonText: "确定",
-                  //     type: 'warning',
-                  //     callback: action => {
-                  //     }
-                  //   });
-                  // }else{
-                  //   //关闭一下存在的列表页  跳转
-                  //   this.$router.$avueRouter.closeTag('/financialManagement/paymentRequest/index');
-                  //   this.$router.push({
-                  //     path: "/financialManagement/paymentRequest/index",
-                  //     query: {params: res.data.data.id},
-                  //   });
-                  // }
-                }
-              }).finally(()=>{
-                this.buttonLoading = false
-              })
-            })
-          }else{
+              applyLoan(data)
+                .then(res => {
+                  if (res.data.success) {
+                    this.$message.success("操作成功!");
+                    this.$emit("afterFinance");
+                    //跳转付费申请页面
+                    // if(this.$store.getters.pqStatus){
+                    //   this.$alert("无法自动跳转,因为付费申请页面已存在!", "温馨提示", {
+                    //     confirmButtonText: "确定",
+                    //     type: 'warning',
+                    //     callback: action => {
+                    //     }
+                    //   });
+                    // }else{
+                    //   //关闭一下存在的列表页  跳转
+                    //   this.$router.$avueRouter.closeTag('/financialManagement/paymentRequest/index');
+                    //   this.$router.push({
+                    //     path: "/financialManagement/paymentRequest/index",
+                    //     query: {params: res.data.data.id},
+                    //   });
+                    // }
+                  }
+                })
+                .finally(() => {
+                  this.buttonLoading = false;
+                });
+            });
+          } else {
             this.$confirm("您确定生成账单吗?", "提示", {
               confirmButtonText: "确定",
               cancelButtonText: "取消",
-              type: "warning",
-            }).then(()=>{
-              this.buttonLoading = true
-              paymentApply(data).then(res=>{
-                if(res.data.success){
-                  this.$message.success("操作成功!")
-                  this.$emit("afterFinance")
-                }
-              }).finally(()=>{
-                this.buttonLoading = false
-              })
-            })
+              type: "warning"
+            }).then(() => {
+              this.buttonLoading = true;
+              paymentApply(data)
+                .then(res => {
+                  if (res.data.success) {
+                    this.$message.success("操作成功!");
+                    this.$emit("afterFinance");
+                  }
+                })
+                .finally(() => {
+                  this.buttonLoading = false;
+                });
+            });
           }
         }
-      })
+      });
     },
     summaryMethod({ columns, data }) {
       const sums = [];
@@ -802,15 +824,15 @@ export default {
     tabHandle(data) {
       // if (data.name == this.enableName) return
       // this.enableName = data.name
-    },
-  },
+    }
+  }
 };
 </script>
 
 <style lang="scss" scoped>
-  .required_fields{
-    color: #F56C6C;
-    display:inline-block;
-    width: 7%
-  }
+.required_fields {
+  color: #f56c6c;
+  display: inline-block;
+  width: 7%;
+}
 </style>

+ 2 - 2
src/components/part-dialog/main.vue

@@ -215,7 +215,7 @@ export default {
               item.goodTypeId = e.goodTypeId;
               item.goodTypeName = e.goodsTypeName;
               item.corpId = e.corpId;
-              item.corpName = e.corpName;
+              item.corpName = e.corpCode;
               item.goodName = e.cname;
               item.ename = e.ename;
               item.price = e.purchaseAmount;
@@ -239,7 +239,7 @@ export default {
             goodTypeName: e.goodsTypeName,
             ename: e.ename,
             corpId: e.corpId,
-            corpName: e.corpName,
+            corpName: e.corpCode,
             goodName: e.cname,
             price: e.purchaseAmount,
             goodNumber: 1,

+ 9 - 1
src/views/basicData/facultyManagement/detailsPage.vue

@@ -104,7 +104,7 @@ export default {
       dataList: [],
       option: {
         menuBtn: false,
-        labelWidth: 140,
+        labelWidth: 160,
         column: [
           {
             label: "姓名",
@@ -405,6 +405,14 @@ export default {
             span: 6
           },
           {
+            label: "虚拟双休日工作量工资标准",
+            prop: "virtualDoubleCease",
+            precision: 2,
+            type: "number",
+            controls: false,
+            span: 6
+          },
+          {
             label: "虚拟工作量工资标准",
             prop: "virtualWorkloadSalary",
             precision: 2,

+ 2 - 2
src/views/exportTrade/customerInquiry/detailsPage.vue

@@ -383,6 +383,7 @@
               v-model="row.corpId"
               :cropIndex="index"
               @getCorpData="rowCorpData"
+              gysType="CK"
               corpType="GYS"
             ></crop-select>
             <span v-show="!row.$cellEdit">{{ row.corpName }}</span>
@@ -484,7 +485,6 @@
         optionType="CK"
         itemType="报价"
         @beforeFinance="beforeFinance"
-        :corpId="form.corpId"
       />
       <containerTitle title="合同附件"></containerTitle>
       <c-upload
@@ -1088,7 +1088,7 @@ export default {
       });
     },
     rowCorpData(row) {
-      this.data[row.index].corpName = row.cname;
+      this.data[row.index].corpName = row.code;
     },
     priceTermsChange(row) {
       if (!this.form.priceTermsDescription) {

+ 12 - 11
src/views/exportTrade/purchaseInquiry/detailsPage.vue

@@ -189,6 +189,7 @@
               v-model="row.corpId"
               :cropIndex="index"
               @getCorpData="rowCorpData"
+              gysType="CK"
               corpType="GYS"
             ></crop-select>
             <span v-show="!row.$cellEdit">{{ row.corpName }}</span>
@@ -558,7 +559,7 @@ export default {
       this.$emit("copyOrder", this.form.id);
     },
     rowCorpData(row) {
-      this.data[row.index].corpName = row.cname;
+      this.data[row.index].corpName = row.code;
     },
     rePick(row, index) {
       this.reData = {
@@ -975,8 +976,8 @@ export default {
       });
       this.checkLock(data).then(res => {
         if (res.data.code == 200) {
-            this.onLock(data).then(res => {
-      if (res.data.code == 200) {
+          this.onLock(data).then(res => {
+            if (res.data.code == 200) {
               this.detailData.status = 2;
               this.option = this.$options.data().option;
             }
@@ -991,8 +992,8 @@ export default {
       );
       if (inSave) {
         this.$nextTick(() => {
-          this.$refs.crud.doLayout()
-        })
+          this.$refs.crud.doLayout();
+        });
         this.$message.success("保存成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;
@@ -1006,8 +1007,8 @@ export default {
       );
       if (inSave) {
         this.$nextTick(() => {
-          this.$refs.crud.doLayout()
-        })
+          this.$refs.crud.doLayout();
+        });
         this.$message.success("重置成功");
         //关闭窗口
         setTimeout(() => {
@@ -1022,8 +1023,8 @@ export default {
       );
       if (inSave) {
         this.$nextTick(() => {
-          this.$refs.goodsCrud.doLayout()
-        })
+          this.$refs.goodsCrud.doLayout();
+        });
         this.$message.success("保存成功");
         //关闭窗口
         this.$refs.goodsCrud.$refs.dialogColumn.columnBox = false;
@@ -1037,8 +1038,8 @@ export default {
       );
       if (inSave) {
         this.$nextTick(() => {
-          this.$refs.goodsCrud.doLayout()
-        })
+          this.$refs.goodsCrud.doLayout();
+        });
         this.$message.success("重置成功");
         //关闭窗口
         setTimeout(() => {

+ 2 - 1
src/views/exportTrade/salesContract/detailsPage.vue

@@ -365,6 +365,7 @@
                 v-model="row.corpId"
                 :cropIndex="index"
                 @getCorpData="rowCorpData"
+                gysType="CK"
                 corpType="GYS"
               ></crop-select>
               <span v-show="!row.$cellEdit">{{ row.corpName }}</span>
@@ -1218,7 +1219,7 @@ export default {
       this.$emit("copyOrder", this.form.id);
     },
     rowCorpData(row) {
-      this.data[row.index].corpName = row.cname;
+      this.data[row.index].corpName = row.code;
     },
     priceTermsChange(row) {
       if (!this.form.priceTermsDescription) {