Commit 5581092c by lianyang

brtset业务里的单据结算页中的待付款单据表格默认选中

parent 81671d33
...@@ -21,7 +21,8 @@ export default { ...@@ -21,7 +21,8 @@ export default {
"lidgrp.cbs.opn1.amt":[ "lidgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }//满足非负数
{pattern: /(^-?\d+$)|(^\.\d{1,3}$)|(^-?\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }//满足正负数
], ],
"brtp.recget.sdamod.dadsnd":[ "brtp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="单据结算" name="utlp"> <el-collapse-item title="单据结算" name="utlp">
<m-utlp :model="model" :codes="codes" /> <m-utlp ref="utlp" :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="创建融资" name="trtcrep" v-if="model.trtcre.crefinflg != ''"> <el-collapse-item title="创建融资" name="trtcrep" v-if="model.trtcre.crefinflg != ''">
......
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
label-width="120px" label-width="120px"
style="float: left" style="float: left"
> >
<c-checkbox v-model="model.mtabut.clsflg" true-label="X" <c-checkbox v-model="model.mtabut.clsflg" true-label="C"
>闭卷标识</c-checkbox >闭卷标识</c-checkbox
> >
</el-form-item> </el-form-item>
...@@ -760,16 +760,44 @@ export default { ...@@ -760,16 +760,44 @@ export default {
} }
}); });
}, },
// async multipleSelect(selection) {
// if (selection.length > 0) {
// console.log(selection);
// let line = this.model.liaall.tenstm.rows[selection];
// let lines = line.split("\t");
// this.model.setmod.docamt = lines[5];
// } else {
// this.model.setmod.docamt = 0.0;
// }
// this.onChangeDocamt();
// },
async multipleSelect(selection) { async multipleSelect(selection) {
if (selection.length > 0) { console.log(selection);
console.log(selection); if (selection.length > 1) {
let line = this.model.liaall.tenstm.rows[selection]; this.$notify({
let lines = line.split("\t"); title: "error",
this.model.setmod.docamt = lines[5]; message: "You cannot select more than one tenor",
type: "error",
});
} else { } else {
this.model.setmod.docamt = 0.0; let chkIds;
if (selection.length === 0) {
chkIds = [];
// this.model.liaall.tensetstm.rows = []
// this.model.liaall.tenstm.rows = []
} else {
chkIds = [selection[0] + 1];
}
//
console.log(this.model.liaall.tensetstm);
let params = { chkDst: "liaall.tenstm", chkIds };
const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
} }
this.onChangeDocamt();
}, },
}, },
created: function () {}, created: function () {},
......
...@@ -398,11 +398,11 @@ export default { ...@@ -398,11 +398,11 @@ export default {
let rtnmsg = await this.init(this.$route.query); let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data); this.updateModel(rtnmsg.data);
this.model.mtabut.clsflg = "X"; // this.model.mtabut.clsflg = "X";
if (this.isInDisplay) { if (this.isInDisplay) {
this.restoreDisplay(); this.restoreDisplay();
} }
this.$refs.utlp.$refs.table.$refs.table.toggleAllSelection(); //表格,默认勾选 this.$refs.ovwp.$refs.utlp.$refs.table.$refs.table.toggleAllSelection(); //表格,默认勾选
} else { } else {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
......
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