Commit 2c94e7bf by chenwenbin

// 费用账务试算联动修改

parent 2371d292
......@@ -177,6 +177,7 @@ export default {
return {
root: this,
activeNames: ["ovwp"],
reflashSetpan: this.reloadSetpan
};
},
// 里面包含了Default、Check等的公共处理
......@@ -295,6 +296,9 @@ export default {
this.model.liaall.misamt = '0.000'
this.model.pageId = 'CtxCache-4079be82-bb5e-4ced-835e-0f20d3268ec2'
this.model.setmod.dspflg = 'CG'
},
reloadSetpan() {
this.calcPayDetailPro();
}
},
created () {
......
......@@ -179,5 +179,16 @@ export default {
}
}
loading.close()
},
async calcPayDetail() {
debugger
let loading = this.loading('正在请求试算账务');
let rulePath = '/service/setmod/calcPayDetail';
let setglgRequest = this.buildSetglgRequest();
let rtnmsg = await Api.post(rulePath, setglgRequest);
if (rtnmsg.respCode == SUCCESS) {
this.model.setmod.setglg = rtnmsg.data.setglg;
}
loading.close()
}
}
......@@ -56,16 +56,7 @@
>
</el-option>
</c-select>
<template slot="footer">
<c-button
style=""
size="small"
type="primary"
icon="el-icon-info"
@click="onSetmodDet"
>
</c-button>
</template>
<template slot="footer"></template>
</c-fullbox>
</el-form-item>
</c-col>
......@@ -1353,10 +1344,11 @@
// import Event from "~/model/Ditopn/Event";
import commonProcess from "~/mixin/commonProcess";
import SetpanDialog from "./dialog.vue";
import Utils from "~/utils/index";
import Utils from "~/utils/index";
import SetfegRequest from '../model/SetfegRequest.js';
export default {
inject: ["root"],
inject: ["root", 'reflashSetpan'],
components: { SetpanDialog },
props: ["model", "codes"],
mixins: [commonProcess],
......@@ -1404,7 +1396,7 @@ export default {
},
watch: {
"model.setmod.setglg.setgll": {
handler(val, oldVal) {
handler(val, oldVal) {
var stm = [];
for (let i = 0; i < val.length; i++) {
if (val[i].rol != "") {
......@@ -1441,28 +1433,22 @@ export default {
this.model.setmod.setfeg.setfel.shift();
this.defaultFunction();
},
detail1(index, row) {
this.executeDefault("setfel.det").then((res) => {
this.index = index;
this.dialogVisible = true;
this.dialog = row;
});
},
dispDefault(index) {
this.executeDefault(`setmod.setfeg.setfel(${index}).mac`).then((res) => {
Utils.copyValueFromVO(this.model, res.data);
});
detail1(index, row) {s
this.index = index;
this.dialogVisible = true;
this.dialog = row;
},
dispDefault(index) {
let vm = this;
// Utils.copyValueFromVO(vm.model, res.data);
vm.reflashSetpan();
},
// 第二个表格
detail2(index, row) {
const that = this;
const rule = "setmod.setfeg.setfel(" + (index + 1) + ").det";
that.executeRule(rule).then((res) => {
that.index = index;
that.$refs.setpanDialog.visiable = true;
// that.$refs.setpanDialog.formData = that.model.setmod.setfeg.setfel[index];
that.dialog2 = row;
});
that.index = index;
that.$refs.setpanDialog.visiable = true;
that.dialog2 = row;
},
// 第三个表格
......@@ -1549,6 +1535,13 @@ export default {
}
},
async dspChange(index) {
// 获取记账账号
debugger
const vm = this;
vm.getSetgllAccts(1, {});
debugger
let rtnmsg = await this.executeDefault(
"setmod.setglg.setgll(" + (index + 1) + ").dsp"
);
......
......@@ -156,6 +156,9 @@ export default {
}
}
},
async calcPayDetailPro() {
this.calcPayDetail();
},
/**
* Tabs切换事件
* @param {VM} tab
......
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