Commit 26efe332 by nanrui

botacc,botpay测试bug修改

parent 728a4d45
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<el-form-item label="Charges Condition" prop="bodgrp.rec.chato"> <el-form-item label="Charges Condition" prop="bodgrp.rec.chato">
<c-select v-model="model.bodgrp.rec.chato" style="width:100%" placeholder="请选择Our Charges to" disabled> <c-select v-model="model.bodgrp.rec.chato" style="width:100%" placeholder="请选择Our Charges to" disabled>
<el-option v-for="item in codes.chato" :key="item.value" :label="item.label" <el-option v-for="item in codes.chadet" :key="item.value" :label="item.label"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</c-select> </c-select>
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<el-form-item label="Collection Condition" prop="bodgrp.rec.doctypcod" style="width: 100%"> <el-form-item label="Collection Condition" prop="bodgrp.rec.doctypcod">
<c-select v-model="model.bodgrp.rec.doctypcod" style="width: 100%" <c-select v-model="model.bodgrp.rec.doctypcod" style="width: 100%"
placeholder="请选择Payment Condition" disabled> placeholder="请选择Payment Condition" disabled>
<el-option v-for="item in codes.doctypcod" :key="item.value" :label="item.label" <el-option v-for="item in codes.doctypcod" :key="item.value" :label="item.label"
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Document Set Status" prop="bodgrp.rec.docsta" style="width: 100%"> <el-form-item label="Document Set Status" prop="bodgrp.rec.docsta">
<c-select v-model="model.bodgrp.rec.docsta" style="width: 100%" <c-select v-model="model.bodgrp.rec.docsta" style="width: 100%"
placeholder="请输入Document Set Status" disabled> placeholder="请输入Document Set Status" disabled>
<el-option v-for="item in codes.docstabot" :key="item.value" :label="item.label" <el-option v-for="item in codes.docstabot" :key="item.value" :label="item.label"
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<span>Days</span> <span>Days</span>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Document Set Status" prop="bodgrp.rec.matperbeg" style="width: 100%"> <el-form-item label="" prop="bodgrp.rec.matperbeg">
<c-select v-model="model.bodgrp.rec.matperbeg" style="width: 100%" <c-select v-model="model.bodgrp.rec.matperbeg" style="width: 100%"
placeholder="请选择Start of Maturity Period MATBEG" disabled> placeholder="请选择Start of Maturity Period MATBEG" disabled>
<el-option v-for="item in codes.matperbeg" :key="item.value" :label="item.label" <el-option v-for="item in codes.matperbeg" :key="item.value" :label="item.label"
...@@ -223,7 +223,8 @@ ...@@ -223,7 +223,8 @@
</c-col> </c-col>
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<el-form-item label-width="0" prop="setmod.docamt"> <el-form-item label-width="0" prop="setmod.docamt">
<c-input v-model="model.setmod.docamt" placeholder="请输入document amount"></c-input> <c-input v-model="model.setmod.docamt" placeholder="请输入document amount" :disabled="isDisabled">
</c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -244,18 +245,18 @@ ...@@ -244,18 +245,18 @@
</el-form-item> </el-form-item>
</c-col> --> </c-col> -->
<c-col :span="24" style="margin-top: 30px"> <c-col :span="24" style="margin-top: 30px">
<span style="font-size:14px;margin-left:5px">Bills to Pay back:</span> <span style="font-size:14px;">Bills to Pay back:</span>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<c-edit-table :model="model" v-bind="docgrd" style="margin-left:-25px"> <c-edit-table :model="model" v-bind="docgrd" style="margin-left:-30px">
</c-edit-table> </c-edit-table>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<c-istream-table ref="table" :list="model.liaall.tenstm.rows || []" :columns="stmData.columns" <c-istream-table ref="table" :list="model.liaall.tenstm.rows || []" :columns="stmData.columns"
:showSelection="true" v-on:multipleSelect="multipleSelect"> :showSelection="true" v-on:multipleSelect="multipleSelect" prop="liaall.tenstm">
</c-istream-table> </c-istream-table>
</c-col> </c-col>
</c-col> </c-col>
...@@ -299,6 +300,7 @@ export default { ...@@ -299,6 +300,7 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
isDisabled: false,
stmData: { stmData: {
columns: [ columns: [
'1 1 "Type" 80', '1 1 "Type" 80',
...@@ -342,13 +344,39 @@ export default { ...@@ -342,13 +344,39 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
multipleSelect() { async multipleSelect(selection) {
console.log(111); if (selection.length > 1) {
} this.$notify({
title: "error",
message: "You cannot select more than one tenor",
type: "error",
});
} else {
let selIds;
if (selection.length === 0) {
selIds = [];
this.model.setmod.docamt = "0.000";
this.model.liaall.tensetstm.rows = [];
this.isDisabled = false;
// this.model.liaall.tenstm.rows = []
} else {
selIds = [selection[0] + 1];
this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
this.isDisabled = true;
}
//
console.log(this.model.liaall.tensetstm);
let params = { selDst: "liaall.tenstm", selIds };
const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}
},
}, },
created: function () {
console.log(this.model.liaall.tenstm);
}
} }
</script> </script>
<style> <style>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="Changing Maturity" name="setp"> <el-tab-pane label="Changing Maturity" name="setp">
<m-setp :model="model" :codes="codes" /> <m-setp ref="setp" :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000049 --> <!--PD000049 -->
...@@ -129,7 +129,10 @@ export default { ...@@ -129,7 +129,10 @@ export default {
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.$nextTick(() => {
this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
})
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<el-form-item label="Charges Condition" prop="bodgrp.rec.chato"> <el-form-item label="Charges Condition" prop="bodgrp.rec.chato">
<c-select v-model="model.bodgrp.rec.chato" style="width:100%" placeholder="请选择Our Charges to" disabled> <c-select v-model="model.bodgrp.rec.chato" style="width:100%" placeholder="请选择Our Charges to" disabled>
<el-option v-for="item in codes.chato" :key="item.value" :label="item.label" <el-option v-for="item in codes.chadet" :key="item.value" :label="item.label"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</c-select> </c-select>
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
</c-input> </c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11" :offset="1">
<el-form-item label="Document Amount" prop="bodgrp.cbs.max.amt"> <el-form-item label="" prop="bodgrp.cbs.max.amt" label-width="0">
<c-input v-model="model.bodgrp.cbs.max.amt" placeholder="请输入Document Amount" disabled></c-input> <c-input v-model="model.bodgrp.cbs.max.amt" placeholder="请输入Document Amount" disabled></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -59,14 +59,14 @@ ...@@ -59,14 +59,14 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Warehouse/Insurance" prop="bodgrp.cbs.opn1.cur"> <el-form-item label="Open Amount" prop="bodgrp.cbs.opn1.cur">
<c-input v-model="model.bodgrp.cbs.opn1.cur" style="width:100%" <c-input v-model="model.bodgrp.cbs.opn1.cur" style="width:100%"
placeholder="请选择Warehouse/Insurance" disabled> placeholder="请选择Warehouse/Insurance" disabled>
</c-input> </c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11" :offset="1">
<el-form-item label="Open Amount" style="text-align: left" prop="bodgrp.cbs.opn1.amt"> <el-form-item label="" label-width="0" prop="bodgrp.cbs.opn1.amt">
<c-input v-model="model.bodgrp.cbs.opn1.amt" style="width:100%" placeholder="请输入Open Amount" <c-input v-model="model.bodgrp.cbs.opn1.amt" style="width:100%" placeholder="请输入Open Amount"
disabled></c-input> disabled></c-input>
</el-form-item> </el-form-item>
...@@ -85,9 +85,12 @@ ...@@ -85,9 +85,12 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<el-form-item label="Collection Condition" prop="bodgrp.rec.doctypcod"> <el-form-item label="Collection Condition" prop="bodgrp.rec.doctypcod">
<c-input v-model="model.bodgrp.rec.doctypcod" style="width:100%" <c-select v-model="model.bodgrp.rec.doctypcod" style="width: 100%"
placeholder="请选择Collection Condition" disabled> placeholder="请选择Payment Condition" disabled>
</c-input> <el-option v-for="item in codes.doctypcod" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -103,9 +106,12 @@ ...@@ -103,9 +106,12 @@
<c-col :span="11"> <c-col :span="11">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Document Set Status" prop="bodgrp.rec.docsta"> <el-form-item label="Document Set Status" prop="bodgrp.rec.docsta">
<c-input v-model="model.bodgrp.rec.docsta" maxlength="40" placeholder="请输入Document Set Status" <c-select v-model="model.bodgrp.rec.docsta" style="width: 100%"
disabled> placeholder="请输入Document Set Status" disabled>
</c-input> <el-option v-for="item in codes.docstabot" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -139,9 +145,12 @@ ...@@ -139,9 +145,12 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bodgrp.rec.matperbeg"> <el-form-item label="" prop="bodgrp.rec.matperbeg">
<c-input v-model="model.bodgrp.rec.matperbeg" style="width:100%" <c-select v-model="model.bodgrp.rec.matperbeg" style="width: 100%"
placeholder="请选择Start of Maturity Period MATBEG" disabled> placeholder="请选择Start of Maturity Period MATBEG" disabled>
</c-input> <el-option v-for="item in codes.matperbeg" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- <c-col :span="5"> <!-- <c-col :span="5">
...@@ -230,9 +239,13 @@ ...@@ -230,9 +239,13 @@
</c-input> </c-input>
</el-form-item> </el-form-item>
</c-col> --> </c-col> -->
<c-col :span="24" style="margin-top: 30px">
<span style="font-size:14px">Bills to Pay back:</span>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="12">
<c-edit-table :model="model" v-bind="docgrd"> <c-edit-table :model="model" v-bind="docgrd" style="margin-left:-30px">
</c-edit-table> </c-edit-table>
</c-col> </c-col>
</c-col> </c-col>
......
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="setp" name="setp"> <el-tab-pane label="Funds Settlement" name="setp">
<m-setp :model="model" :codes="codes" /> <m-setp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000049 --> <!--PD000049 -->
<el-tab-pane label="inst" name="inst"> <el-tab-pane label="Instructions" name="inst">
<m-inst :model="model" :codes="codes" /> <m-inst :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000266 --> <!--PD000266 -->
<el-tab-pane label="ptyp" name="ptyp"> <el-tab-pane label="Parties" name="ptyp">
<m-ptyp :model="model" :codes="codes" /> <m-ptyp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
......
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