|
@@ -66,6 +66,7 @@
|
|
|
<template slot="corpId" slot-scope="{ row, index }">
|
|
|
<span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<crop-select
|
|
|
+ ref="corp"
|
|
|
style="width: 90% !important;display: inline-block"
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.corpId"
|
|
@@ -230,6 +231,8 @@ import _ from "lodash";
|
|
|
import ApplyPayment from "../finance/applyPayment";
|
|
|
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";
|
|
|
|
|
|
export default {
|
|
|
name: "feeInfo",
|
|
@@ -297,6 +300,7 @@ export default {
|
|
|
activeName:"first",
|
|
|
tab1:true,
|
|
|
tab2:false,
|
|
|
+ corpList: [],
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
@@ -345,6 +349,11 @@ export default {
|
|
|
this.getWorkDicts("unit").then(res =>{
|
|
|
this.unitList = res.data.data
|
|
|
})
|
|
|
+ allCropList({
|
|
|
+ corpType: getCustomerCode("KG")
|
|
|
+ }).then(res => {
|
|
|
+ this.corpList = res.data.data;
|
|
|
+ });
|
|
|
},
|
|
|
components: {
|
|
|
cropDialog,
|
|
@@ -516,9 +525,11 @@ export default {
|
|
|
//新增
|
|
|
rowAdd() {
|
|
|
if (!this.corpId) return this.$message.error('请选择往来单位')
|
|
|
+ let corpName = this.corpList.find(item => this.corpId == item.id).cname
|
|
|
const params = {
|
|
|
feesType:this.selectTab,
|
|
|
- corpId: this.corpId
|
|
|
+ corpId: this.corpId,
|
|
|
+ corpName: corpName
|
|
|
}
|
|
|
this.$refs.feeCrud.rowCellAdd(params);
|
|
|
},
|