Commit 84ef3b00 by liuxin

保证金Add框

parent b054fbb6
......@@ -195,38 +195,6 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLiaccvAdd() {
let rtnmsg = await this.executeRule("liaall.liaccv.add")
//const that = this.root;
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
debugger;
this.stmData.data = rtnmsg.data.vals.rows;
this.dialogTableVisible = true;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLiaccvDel(index,row) {
let ids = [index+1];
let params = {selDst:"liaall.liaccv.liaccvg",selIds:ids};
let rtnmsg = await this.executeRule("liaall.liaccv.del",params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
debugger;
this.$message({
type: 'success',
message: '删除成功!'
});
//this.model.liaall.liaccv.liaccvg = [];
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onSeaParty(path) {
let rtnmsg = await this.executeRule(path)
if (rtnmsg.respCode == SUCCESS) {
......@@ -263,14 +231,6 @@ export default {
async onExtkey(e) {
},
async pickDepItem(idx,row) {
var params = {selDst:"",selIds:[idx+1]}
let rtnmsg = await this.executeRule("liaall.liaccv.add", params)
if (rtnmsg.respCode == SUCCESS) {
this.dialogTableVisible = false;
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
// didgrp.iss.pts.extkey
async changeExtkey() {
let rtnmsg = await this.executeRule("didgrp.iss.pts.extkey")
......
......@@ -195,6 +195,7 @@
:visible.sync="dialogTableVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="60%"
>
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column prop="op" label="OP" width="100">
......@@ -321,7 +322,6 @@
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event";
export default {
inject: ["root"],
......@@ -332,15 +332,15 @@ export default {
dialogTableVisible: false,
stmData: {
columns: [
'1 1:1 "Ref" 120',
'1 1:1 "Ref" 150',
'2 2:1 "User" 80',
'3 3:1 "Applicant" 196',
'4 4:1 "Account" 120',
'5 5:1 "Cur" 50',
'6 6:1 "Amt" 80 2 0 1 18.3',
'3 3:1 "Applicant" 100',
'4 4:1 "Account" 200',
'5 5:1 "Cur" 200',
'6 6:1 "Amt" 100 2 0 1 18.3',
'7 7:1 "Open date" 80 4 7',
'8 8:1 "flg" 40',
'9 9:1 "Remarks" 180',
'8 8:1 "flg" 150',
'9 9:1 "Remarks" 250',
"P COLORED TRUE",
"P VERTLINES TRUE",
"P HORZLINES TRUE",
......@@ -352,7 +352,46 @@ export default {
relrowDisabled: true,
};
},
methods: { ...Event },
methods: {
async onLiaccvAdd() {
let rtnmsg = await this.executeRule("liaall.liaccv.add")
//const that = this.root;
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.stmData.data = rtnmsg.data.vals.rows;
this.dialogTableVisible = true;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async pickDepItem(idx,row) {
var params = {selDst:"",selIds:[idx+1]}
let rtnmsg = await this.executeRule("liaall.liaccv.add", params)
if (rtnmsg.respCode == SUCCESS) {
this.dialogTableVisible = false;
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
async onLiaccvDel(index,row) {
let ids = [index+1];
let params = {selDst:"liaall.liaccv.liaccvg",selIds:ids};
let rtnmsg = await this.executeRule("liaall.liaccv.del",params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.$message({
type: 'success',
message: '删除成功!'
});
//this.model.liaall.liaccv.liaccvg = [];
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
},
created: function () {},
};
</script>
......
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