Commit fc616fe9 by lianyang

setpan费用账务结算页,修改金额/币种/金额/处理方式触发事件并触发点击会计分录页更新页面

parent 01b0839e
......@@ -461,7 +461,8 @@
</el-table-column>
<el-table-column label="即收币种" prop="acccur" width="70px">
<template slot-scope="scope">
<c-select v-model="scope.row.acccur">
<c-select v-model="scope.row.acccur" @change="accucrChange(scope.$index)">
<!-- @change="eventfunction('setgll.accur')" -->
<el-option
v-for="item in codes.acccur"
:key="item.value"
......@@ -483,7 +484,7 @@
</el-table-column>
<el-table-column label="处理方式" width="100px">
<template #default="scope">
<c-select v-model="scope.row.dsp">
<c-select v-model="scope.row.dsp" @change="dspChange(scope.$index)">
<el-option
v-for="item in codes.setgll_dsp"
:key="item.value"
......@@ -1472,6 +1473,21 @@ export default {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
async accucrChange(index){
let rtnmsg = await this.executeRule(
"setmod.setglg.setgll(" + (index + 1) + ").acccur"
);
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.$nextTick(()=>{
this.executeRule("setmod.glemod.glepan").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data)
})
})
}
},
async fmtaccamtChange(index) {
let rtnmsg = await this.executeRule(
"setmod.setglg.setgll(" + (index + 1) + ").fmtaccamt"
......@@ -1479,6 +1495,27 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.$nextTick(()=>{
this.executeRule("setmod.glemod.glepan").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data)
})
})
}
},
async dspChange(index){
let rtnmsg = await this.executeDefault(
"setmod.setglg.setgll(" + (index + 1) + ").dsp"
);
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.$nextTick(()=>{
this.executeRule("setmod.glemod.glepan").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data)
})
})
}
},
},
......
......@@ -136,7 +136,7 @@
</c-col>
<c-col :span="12">
<el-form-item label="优惠金额">
<c-input v-model="formData.dctamt" @keyup.enter.native="eventFunction('setmod.setfeg.setfel('+ (idx+1) +').dctamt')" />
<c-input v-model="formData.dctamt" @keyup.enter.native=$event.target.blur() @blur="eventFunction('setmod.setfeg.setfel('+ (idx+1) +').dctamt')" />
</el-form-item>
</c-col>
</c-col>
......@@ -378,6 +378,12 @@ export default {
methods: {
saveDialog() {
this.model.setmod.setfeg.setfel.splice(this.idx, 1, this.formData);
this.$nextTick(()=>{
this.executeRule("setmod.glemod.glepan").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data)
})
})
this.visiable = false;
},
beforeClose(done) {
......
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