Commit 16682610 by 李少勇

优化ccvpan组件内部获取数据问题

parent 953b6329
......@@ -163,6 +163,16 @@ export default {
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
oldamt: this.model.liaccv.oldamt,
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
let reqParams = {}
......
......@@ -351,6 +351,7 @@ export default class Gitopn {
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
doctre: new Pub().data.Doctre,
};
}
}
......@@ -21,7 +21,7 @@
<!--PD000001 -->
<el-tab-pane label="保证金" name="ccvpan">
<c-content>
<m-ccvpan :model="model" :codes="codes" />
<m-ccvpan :model="model" :codes="codes" :buildLiaccv="buildLiaccv" />
</c-content>
</el-tab-pane>
......
......@@ -79,9 +79,7 @@ export default {
},
toGitopn() {
// 点击开立,清空从待经办进来的时候带的行参数
this.updateToHandleRowData({
row_gitopn: {}
})
localStorage.setItem('row_gitopn', null)
this.$router.history.push('/business-new/gitopn');
},
toGetopn() {
......
......@@ -568,7 +568,6 @@
</template>
<script>
import event from '../event'
import { mapMutations } from 'vuex';
export default {
inject: ["root"],
props: ["model", "codes"],
......@@ -662,9 +661,7 @@ export default {
]
};
},
methods: {
...mapMutations(['updateToHandleRowData'])
},
methods: {},
mounted () {},
};
</script>
......
......@@ -321,8 +321,9 @@ export default {
methods: {
...Event,
async onLiaccvAdd() {
let rulePath = '/service/liaccv/getFcdList';
let liaccvRequest = this.buildLiaccv(this.root);
let liaccvRequest = this.root.buildLiaccv();
let objtyp = liaccvRequest.rec.objtyp;
let rulePath = `/service/${ objtyp.toLowerCase() }/getFcdList`;
let rtnmsg = await Api.post(rulePath, liaccvRequest);
if (rtnmsg.respCode == SUCCESS) {
this.dialogTableVisible = true;
......@@ -330,8 +331,9 @@ export default {
}
},
async pickDepItem(idx, row) {
let rulePath = '/service/liaccv/addLiaccvg';
let liaccvRequest = this.buildLiaccv(this.root);
let liaccvRequest = this.root.buildLiaccv();
let objtyp = liaccvRequest.rec.objtyp;
let rulePath = `/service/${ objtyp.toLowerCase() }/addLiaccvg`;
liaccvRequest.fcdVo = row;
let rtnmsg = await Api.post(rulePath, liaccvRequest);
if (rtnmsg.respCode == SUCCESS) {
......@@ -343,8 +345,9 @@ export default {
let fcdVo = {
inr: row.fcdinr,
};
let rulePath = '/service/liaccv/deleteLiaccvg';
let liaccvRequest = this.buildLiaccv(this.root);
let liaccvRequest = this.root.buildLiaccv();
let objtyp = liaccvRequest.rec.objtyp;
let rulePath = `/service/${ objtyp.toLowerCase() }/deleteLiaccvg`;
liaccvRequest.fcdVo = fcdVo;
let rtnmsg = await Api.post(rulePath, liaccvRequest);
if (rtnmsg.respCode == SUCCESS) {
......
......@@ -15,6 +15,10 @@ export default class Publics {
Liaall: new Liaall().data,
Liaccv: new Liaccv().data,
Docpan: new Docpan().data,
Doctre: {
tableData1: [],
tableData2: [],
}
};
}
}
......@@ -11,7 +11,7 @@
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<el-table :border="true" :data="model.doctre.tableData1">
<el-table :border="true" :data="model.doctre.tableData1 || []">
<el-table-column label="类型" width="auto" prop="rol"></el-table-column>
<el-table-column label="名称" width="auto" prop="pandsc"></el-table-column>
<el-table-column label="创建交易" width="auto" prop="inifrm"></el-table-column>
......
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