Commit aa924820 by suwenhao

trnrel表格字段名和接口完善;

parent 6c76306c
...@@ -16,8 +16,43 @@ export default { ...@@ -16,8 +16,43 @@ export default {
this.model.searchAllUsers = false; this.model.searchAllUsers = false;
}, },
// 获取transaction弹框表格数据
async queryGridEtyPromptDialogData(cod) {
let params = {
inr: "",
oldkey: "",
dissel: "",
usrcon: "",
rouflg: "",
sepflg: "",
cod: cod,
dtaflg: "",
lnkobj: "",
};
const loading = this.loading();
let res = await Api.post('/service/trnrel/findAtpCod', params);
if (res.respCode == SUCCESS) {
this.root.$refs['etyDialog'].show = true;
this.root.promptData.data = res.data && res.data.atpList;
}
loading.close();
},
// 选中transaction弹框表格的行数据
async selectGridEtyPromptData(row) {
this.$set(this.model.atp, 'cod', row.cod)
},
//查询列表 //查询列表
async handleSearch() { async handleSearch() {
let inidatfro = this.model.trncorco.inidatfro;
if (!inidatfro || inidatfro == '') {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let inidattil = this.model.trncorco.inidattil;
if (!inidattil || inidattil == '') {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
if (this.model.trncorco.relflg == '') { if (this.model.trncorco.relflg == '') {
this.model.trncorco.relflg = '0'; this.model.trncorco.relflg = '0';
} }
...@@ -36,15 +71,16 @@ export default { ...@@ -36,15 +71,16 @@ export default {
userId: 'ZL', userId: 'ZL',
}; };
//查询接口 //查询接口
const loading = this.loading()
const res = await Api.post('/service/trnrel/getTenrelList', params); const res = await Api.post('/service/trnrel/getTenrelList', params);
this.stmData.data = res.data && res.data.trncorco_trnstm.rows; if(res.respCode === "AAAAAA") {
this.model.trncorco.trnstm = res.data && res.data.trncorco_trnstm; this.stmData.data = res.data;
this.$store.commit('setTaskList', { this.$store.commit('setTaskList', {
key: 'trnrel', key: 'trnrel',
val: this.stmData.data && this.stmData.data.length, val: this.stmData.data && this.stmData.data.length,
}); });
this.$refs.paramsForm.clearValidate(); }
Utils.positioningErrorMsg(res.fieldErrors || [], this.$refs.paramsForm.fields); loading.close();
}, },
//交易代码 //交易代码
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="20"> <c-col :span="20">
<c-input v-model="model.atp.cod" maxlength="6" style="width: 95%" placeholder="请输入交易代码" <c-input v-model="model.atp.cod" maxlength="6" style="width: 95%" placeholder="请输入交易代码"
@keyup.enter.native="showGridPromptDialog('findAtpCod')"></c-input> @keyup.enter.native="queryGridEtyPromptDialogData(model.atp.cod)"></c-input>
</c-col> </c-col>
<c-col :span="4"> <c-col :span="4">
<c-button size="small" style="width:100%;margin-left:0" type="primary" @click="onSeainf" <c-button size="small" style="width:100%;margin-left:0" type="primary" @click="onSeainf"
...@@ -127,17 +127,16 @@ ...@@ -127,17 +127,16 @@
</div> </div>
</template> </template>
<script> <script>
import commonApi from "~/mixin/commonApi"
import event from "../event"; import event from "../event";
import Inftrnps from "../model";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["codes"], props: ["codes", "model"],
mixins: [event], mixins: [commonApi, event],
components: {}, components: {},
data() { data() {
return { return {
model: new Inftrnps().data,
initdialog: false, initdialog: false,
transactionStatus: { transactionStatus: {
busiNo: "", busiNo: "",
...@@ -149,17 +148,17 @@ ...@@ -149,17 +148,17 @@
}, },
stmData: { stmData: {
columns: [ columns: [
{ label: "交易代码", prop: "" }, { label: "交易代码", prop: "inifrm" },
{ label: "业务编号", prop: "" }, { label: "业务编号", prop: "ownref" },
{ label: "摘要信息", prop: "" }, { label: "摘要信息", prop: "addtxt" },
{ label: "币种", prop: "" }, { label: "币种", prop: "reloricur" },
{ label: "金额", prop: "" }, { label: "金额", prop: "reloriamt" },
{ label: "创建时间", prop: "" }, { label: "创建时间", prop: "inidattim" },
{ label: "签名要求", prop: "" }, { label: "签名要求", prop: "relreq" },
{ label: "签名状态", prop: "" }, { label: "签名状态", prop: "relres" },
{ label: "经办柜员", prop: "" }, { label: "经办柜员", prop: "iniusr" },
{ label: "业务状态", prop: "" }, { label: "业务状态", prop: "relflg" },
{ label: "业务机构", prop: "" }, { label: "业务机构", prop: "bchname" },
], ],
data: [], data: [],
}, },
......
...@@ -10,27 +10,30 @@ ...@@ -10,27 +10,30 @@
size="small" size="small"
> >
<c-content> <c-content>
<m-inftrnps :codes="codes" ref="inftrnps" /> <m-inftrnps :model="model" :codes="codes" ref="inftrnps" />
</c-content> </c-content>
<c-grid-ety-prompt-dialog <c-grid-ety-prompt-dialog
ref="etyDialog" ref="etyDialog"
:promptData="promptData" :promptData="promptData"
v-on:select-ety="selectEty" v-on:select-ety="selectGridEtyPromptData"
> >
</c-grid-ety-prompt-dialog> </c-grid-ety-prompt-dialog>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import commonApi from "~/mixin/commonApi";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Inftrnps from "./Inftrnps"; import Inftrnps from "./Inftrnps";
import Trnrel from "../model";
import event from "../event";
export default { export default {
name: "Trnrel", name: "Trnrel",
components: { components: {
"m-inftrnps": Inftrnps, "m-inftrnps": Inftrnps,
}, },
mixins: [], mixins: [commonApi, event],
provide() { provide() {
return { return {
root: this, root: this,
...@@ -39,7 +42,63 @@ ...@@ -39,7 +42,63 @@
data() { data() {
return { return {
trnName: "trnrel", trnName: "trnrel",
model: new Trnrel().data,
rules: null, rules: null,
promptData: {
title: 'Select a Transaction',
columns: [
{
prop: 'cod',
label: 'Description'
},
{
prop: 'bus',
label: 'Bus. Sector'
},
{
prop: 'bustrnflg',
label: 'Business Trn.'
},
{
prop: 'reltyp',
label: 'Release Method'
},
{
prop: 'relamt',
label: 'Real. Amount'
},
{
prop: 'ccstyp',
label: 'Compliance Check'
},
{
prop: 'subflg',
label: 'Subcontr. -creating Trn.'
},
{
prop: 'sepflg',
label: 'Temp. Settl. allowed'
},
{
prop: 'rouflg',
label: 'Routing allowed'
},
{
prop: 'concreflg',
label: 'Allocate New Contract'
},
{
prop: 'negflg',
label: 'Need pass. Data to Exec.'
},
{
prop: 'jobflg',
label: 'Job operation allowed'
}
],
data: []
},
codes: { codes: {
dflg: CodeTable.dflg, dflg: CodeTable.dflg,
bchtyp: CodeTable.bchtyp, bchtyp: CodeTable.bchtyp,
......
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