Commit c9a67082 by liuxin

账务模块表格事件补充

parent 516cd40f
...@@ -6365,6 +6365,10 @@ const CodeTable = { ...@@ -6365,6 +6365,10 @@ const CodeTable = {
{ label: "Beneficiary", value: "BENE" }, { label: "Beneficiary", value: "BENE" },
{ label: "ISS issuing Bank", value: "ISS" } { label: "ISS issuing Bank", value: "ISS" }
], ],
ptydbt_setpan: [
{ label: "OWN Ourselves", value: "OWN" },
{ label: "Advising Bank", value: "ADV" },
],
acccur: [ acccur: [
{ label: `CNY-人民币`, value: `CNY` }, { label: `CNY-人民币`, value: `CNY` },
{ label: `USD-美元`, value: `USD` }, { label: `USD-美元`, value: `USD` },
......
...@@ -209,7 +209,6 @@ export default class Utils { ...@@ -209,7 +209,6 @@ export default class Utils {
this.executeNotify().then(res => { this.executeNotify().then(res => {
if (res.respCode == SUCCESS){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
console.log(data)
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
if (typeof callback === "function") { if (typeof callback === "function") {
callback() callback()
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<c-input <c-input
type="textarea" type="textarea"
v-model="model.dedgrp.rec.sdsrfs" v-model="model.dedgrp.rec.sdsrfs"
:disabled="this.mytypeFlag" :disabled="model.dedgrp.rec.tratyp!='08' && model.dedgrp.rec.mytype!='F'"
maxlength="140" maxlength="140"
show-word-limit show-word-limit
placeholder="请输入" placeholder="请输入"
...@@ -214,9 +214,6 @@ export default { ...@@ -214,9 +214,6 @@ export default {
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {
mytypeFlag: true,
};
}, },
methods: { ...Event }, methods: { ...Event },
created: function () {}, created: function () {},
......
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
:border="true"> :border="true">
<el-table-column label="Payer" prop="ptydbt" width="101px"> <el-table-column label="Payer" prop="ptydbt" width="101px">
<template slot-scope="scope"> <template slot-scope="scope">
<c-select v-model="scope.row.ptydbt"> <c-select v-model="scope.row.ptydbt" @change="defaultFunction()">
<el-option v-for="item in codes.ptydbt" :key="item.value" :label="item.value" <el-option v-for="item in codes.ptydbt_setpan" :key="item.value" :label="item.value"
:value="item.value"> :value="item.value">
<span style="float: left">{{ item.label }}</span> <span style="float: left">{{ item.label }}</span>
</el-option> </el-option>
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
</el-table-column> </el-table-column>
<el-table-column label="Payee" width="101px"> <el-table-column label="Payee" width="101px">
<template slot-scope="scope"> <template slot-scope="scope">
<c-select v-model="scope.row.ptypay"> <c-select v-model="scope.row.ptypay" @change="defaultFunction()">
<el-option v-for="item in codes.payee" :key="item.value" :label="item.value" <el-option v-for="item in codes.ptydbt_setpan" :key="item.value" :label="item.value"
:value="item.value"> :value="item.value">
<span style="float: left">{{ item.label }}</span> <span style="float: left">{{ item.label }}</span>
</el-option> </el-option>
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
:border="true"> :border="true">
<el-table-column label="Role" width="101px"> <el-table-column label="Role" width="101px">
<template #default="scope"> <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" <el-option v-for="item in codes.setfelRol" :key="item.value" :label="item.value"
:value="item.value"> :value="item.value">
<span style="float: left">{{ item.label }}</span> <span style="float: left">{{ item.label }}</span>
...@@ -200,7 +200,15 @@ ...@@ -200,7 +200,15 @@
</c-select> </c-select>
</template> </template>
</el-table-column> </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>
<el-table-column label="Source" prop="src" width="70px"> <el-table-column label="Source" prop="src" width="70px">
</el-table-column> </el-table-column>
...@@ -220,8 +228,8 @@ ...@@ -220,8 +228,8 @@
</el-table-column> </el-table-column>
<el-table-column label="Currency" prop="cur" width="100px"> <el-table-column label="Currency" prop="cur" width="100px">
</el-table-column> </el-table-column>
<el-table-column label="Original Amount" prop="ogiamt" v-model="ogiamt" width="150px"> <!-- <el-table-column label="Original Amount" prop="ogiamt" v-model="ogiamt" width="150px"> -->
</el-table-column> <!-- </el-table-column> -->
<el-table-column label="Fee Amount" prop="amt" width="150px"> <el-table-column label="Fee Amount" prop="amt" width="150px">
</el-table-column> </el-table-column>
<el-table-column label="" prop="det" width="80px" fixed="right"> <el-table-column label="" prop="det" width="80px" fixed="right">
...@@ -912,24 +920,6 @@ export default { ...@@ -912,24 +920,6 @@ export default {
components: { SetpanDialog }, components: { SetpanDialog },
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], 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() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
...@@ -972,9 +962,11 @@ export default { ...@@ -972,9 +962,11 @@ export default {
addRowSetfol() { addRowSetfol() {
let newRow = { ...this.dialog }; let newRow = { ...this.dialog };
this.model.setmod.setfog.setfol.splice(0, 0, newRow); this.model.setmod.setfog.setfol.splice(0, 0, newRow);
this.defaultFunction();
}, },
removeRowSetfol() { removeRowSetfol() {
this.model.setmod.setfog.setfol.shift(); this.model.setmod.setfog.setfol.shift();
this.defaultFunction();
}, },
saveDialog() { saveDialog() {
this.dialogVisible = false; this.dialogVisible = false;
...@@ -984,9 +976,11 @@ export default { ...@@ -984,9 +976,11 @@ export default {
addRowSetfel() { addRowSetfel() {
let newRow = { ...this.dialog2 }; let newRow = { ...this.dialog2 };
this.model.setmod.setfeg.setfel.splice(0, 0, newRow); this.model.setmod.setfeg.setfel.splice(0, 0, newRow);
this.defaultFunction();
}, },
removeRowSetfel() { removeRowSetfel() {
this.model.setmod.setfeg.setfel.shift(); this.model.setmod.setfeg.setfel.shift();
this.defaultFunction();
}, },
detail1(index, row) { detail1(index, row) {
this.executeDefault("setfel.det").then(res => { this.executeDefault("setfel.det").then(res => {
...@@ -995,13 +989,11 @@ export default { ...@@ -995,13 +989,11 @@ export default {
this.dialog = row; this.dialog = row;
this.index = index; this.index = index;
}) })
}, },
dispDefault(index) { dispDefault(index) {
this.executeDefault(`setmod.setfeg.setfel(${index}).mac`).then(res => { this.executeDefault(`setmod.setfeg.setfel(${index}).mac`).then(res => {
Utils.copyValueFromVO(this.model, res.data) Utils.copyValueFromVO(this.model, res.data)
}) })
}, },
// 第二个表格 // 第二个表格
detail2(index, row) { 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