Commit 2c94e7bf by chenwenbin

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

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