|
@@ -498,7 +498,19 @@ export default {
|
|
|
selectValue(value, row) {
|
|
|
this.$set(row, "feeName", value.cname);
|
|
|
this.$set(row, "ename", value.ename);
|
|
|
- this.currencyChange(row);
|
|
|
+ if (this.optionType == "GN") {
|
|
|
+ if (!row.currency) {
|
|
|
+ getParities({
|
|
|
+ currency: "CNY",
|
|
|
+ businesDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00"
|
|
|
+ }).then(res => {
|
|
|
+ const data = res.data.data;
|
|
|
+ row.exchangeRate = data.receivableParities;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.currencyChange(row);
|
|
|
+ }
|
|
|
},
|
|
|
//选择应收应付
|
|
|
// handleClick(tab){
|
|
@@ -640,7 +652,16 @@ export default {
|
|
|
corpId: this.corpId,
|
|
|
corpName: corpName
|
|
|
};
|
|
|
- this.$refs.feeCrud.rowCellAdd(params);
|
|
|
+ if (this.optionType == "GN") {
|
|
|
+ getParities({
|
|
|
+ currency: "CNY",
|
|
|
+ businesDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00"
|
|
|
+ }).then(res => {
|
|
|
+ const data = res.data.data;
|
|
|
+ params.exchangeRate = data.receivableParities;
|
|
|
+ this.$refs.feeCrud.rowCellAdd(params);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
addRow() {
|