Commit c9a67082 by liuxin

账务模块表格事件补充

parent 516cd40f
......@@ -6365,6 +6365,10 @@ const CodeTable = {
{ label: "Beneficiary", value: "BENE" },
{ label: "ISS issuing Bank", value: "ISS" }
],
ptydbt_setpan: [
{ label: "OWN Ourselves", value: "OWN" },
{ label: "Advising Bank", value: "ADV" },
],
acccur: [
{ label: `CNY-人民币`, value: `CNY` },
{ label: `USD-美元`, value: `USD` },
......
......@@ -209,7 +209,6 @@ export default class Utils {
this.executeNotify().then(res => {
if (res.respCode == SUCCESS){
const data = res.data;
console.log(data)
Utils.copyValueFromVO(this.model, data)
if (typeof callback === "function") {
callback()
......
......@@ -79,7 +79,7 @@
<c-input
type="textarea"
v-model="model.dedgrp.rec.sdsrfs"
:disabled="this.mytypeFlag"
:disabled="model.dedgrp.rec.tratyp!='08' && model.dedgrp.rec.mytype!='F'"
maxlength="140"
show-word-limit
placeholder="请输入"
......@@ -214,9 +214,6 @@ export default {
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
mytypeFlag: true,
};
},
methods: { ...Event },
created: function () {},
......
......@@ -61,8 +61,8 @@
:border="true">
<el-table-column label="Payer" prop="ptydbt" width="101px">
<template slot-scope="scope">
<c-select v-model="scope.row.ptydbt">
<el-option v-for="item in codes.ptydbt" :key="item.value" :label="item.value"
<c-select v-model="scope.row.ptydbt" @change="defaultFunction()">
<el-option v-for="item in codes.ptydbt_setpan" :key="item.value" :label="item.value"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
</el-option>
......@@ -71,8 +71,8 @@
</el-table-column>
<el-table-column label="Payee" width="101px">
<template slot-scope="scope">
<c-select v-model="scope.row.ptypay">
<el-option v-for="item in codes.payee" :key="item.value" :label="item.value"
<c-select v-model="scope.row.ptypay" @change="defaultFunction()">
<el-option v-for="item in codes.ptydbt_setpan" :key="item.value" :label="item.value"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
</el-option>
......@@ -192,7 +192,7 @@
:border="true">
<el-table-column label="Role" width="101px">
<template #default="scope">
<c-select v-model="scope.row.rol">
<c-select v-model="scope.row.rol" @change="defaultFunction()">
<el-option v-for="item in codes.setfelRol" :key="item.value" :label="item.value"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
......@@ -200,7 +200,15 @@
</c-select>
</template>
</el-table-column>
<el-table-column label="Code" prop="feecod" width="101px">
<el-table-column label="Code" width="101px">
<template #default="scope">
<c-select v-model="scope.row.feecod" @change="selectOrCheckboxRule('setmod.setfeg.setfel.feecod')">
<el-option v-for="item in codes.fepfeecod" :key="item.value" :label="item.value"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="Source" prop="src" width="70px">
</el-table-column>
......@@ -220,8 +228,8 @@
</el-table-column>
<el-table-column label="Currency" prop="cur" width="100px">
</el-table-column>
<el-table-column label="Original Amount" prop="ogiamt" v-model="ogiamt" width="150px">
</el-table-column>
<!-- <el-table-column label="Original Amount" prop="ogiamt" v-model="ogiamt" width="150px"> -->
<!-- </el-table-column> -->
<el-table-column label="Fee Amount" prop="amt" width="150px">
</el-table-column>
<el-table-column label="" prop="det" width="80px" fixed="right">
......@@ -912,24 +920,6 @@ export default {
components: { SetpanDialog },
props: ["model", "codes"],
mixins: [commonProcess],
watch: {
ogiamt: {
handler(num) {
console.log("=================================")
num = this.ogiamt;
num = num.toFixed(2);
num = parseFloat(num);
num = num.toLocaleString();
return num;//返回的是字符串23,245.12保留2位小数
},
immediate: true
}
},
data() {
return {
dialogVisible: false,
......@@ -972,9 +962,11 @@ export default {
addRowSetfol() {
let newRow = { ...this.dialog };
this.model.setmod.setfog.setfol.splice(0, 0, newRow);
this.defaultFunction();
},
removeRowSetfol() {
this.model.setmod.setfog.setfol.shift();
this.defaultFunction();
},
saveDialog() {
this.dialogVisible = false;
......@@ -984,9 +976,11 @@ export default {
addRowSetfel() {
let newRow = { ...this.dialog2 };
this.model.setmod.setfeg.setfel.splice(0, 0, newRow);
this.defaultFunction();
},
removeRowSetfel() {
this.model.setmod.setfeg.setfel.shift();
this.defaultFunction();
},
detail1(index, row) {
this.executeDefault("setfel.det").then(res => {
......@@ -995,13 +989,11 @@ export default {
this.dialog = row;
this.index = index;
})
},
dispDefault(index) {
this.executeDefault(`setmod.setfeg.setfel(${index}).mac`).then(res => {
Utils.copyValueFromVO(this.model, res.data)
})
},
// 第二个表格
detail2(index, row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment