Commit aa924820 by suwenhao

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

parent 6c76306c
......@@ -16,8 +16,43 @@ export default {
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() {
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 == '') {
this.model.trncorco.relflg = '0';
}
......@@ -36,15 +71,16 @@ export default {
userId: 'ZL',
};
//查询接口
const loading = this.loading()
const res = await Api.post('/service/trnrel/getTenrelList', params);
this.stmData.data = res.data && res.data.trncorco_trnstm.rows;
this.model.trncorco.trnstm = res.data && res.data.trncorco_trnstm;
this.$store.commit('setTaskList', {
key: 'trnrel',
val: this.stmData.data && this.stmData.data.length,
});
this.$refs.paramsForm.clearValidate();
Utils.positioningErrorMsg(res.fieldErrors || [], this.$refs.paramsForm.fields);
if(res.respCode === "AAAAAA") {
this.stmData.data = res.data;
this.$store.commit('setTaskList', {
key: 'trnrel',
val: this.stmData.data && this.stmData.data.length,
});
}
loading.close();
},
//交易代码
......
......@@ -59,7 +59,7 @@
<c-col :span="24">
<c-col :span="20">
<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 :span="4">
<c-button size="small" style="width:100%;margin-left:0" type="primary" @click="onSeainf"
......@@ -127,17 +127,16 @@
</div>
</template>
<script>
import commonApi from "~/mixin/commonApi"
import event from "../event";
import Inftrnps from "../model";
export default {
inject: ["root"],
props: ["codes"],
mixins: [event],
props: ["codes", "model"],
mixins: [commonApi, event],
components: {},
data() {
return {
model: new Inftrnps().data,
initdialog: false,
transactionStatus: {
busiNo: "",
......@@ -149,17 +148,17 @@
},
stmData: {
columns: [
{ label: "交易代码", prop: "" },
{ label: "业务编号", prop: "" },
{ label: "摘要信息", prop: "" },
{ label: "币种", prop: "" },
{ label: "金额", prop: "" },
{ label: "创建时间", prop: "" },
{ label: "签名要求", prop: "" },
{ label: "签名状态", prop: "" },
{ label: "经办柜员", prop: "" },
{ label: "业务状态", prop: "" },
{ label: "业务机构", prop: "" },
{ label: "交易代码", prop: "inifrm" },
{ label: "业务编号", prop: "ownref" },
{ label: "摘要信息", prop: "addtxt" },
{ label: "币种", prop: "reloricur" },
{ label: "金额", prop: "reloriamt" },
{ label: "创建时间", prop: "inidattim" },
{ label: "签名要求", prop: "relreq" },
{ label: "签名状态", prop: "relres" },
{ label: "经办柜员", prop: "iniusr" },
{ label: "业务状态", prop: "relflg" },
{ label: "业务机构", prop: "bchname" },
],
data: [],
},
......
......@@ -10,27 +10,30 @@
size="small"
>
<c-content>
<m-inftrnps :codes="codes" ref="inftrnps" />
<m-inftrnps :model="model" :codes="codes" ref="inftrnps" />
</c-content>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
v-on:select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
</el-form>
</div>
</template>
<script>
import commonApi from "~/mixin/commonApi";
import CodeTable from "~/config/CodeTable";
import Inftrnps from "./Inftrnps";
import Trnrel from "../model";
import event from "../event";
export default {
name: "Trnrel",
components: {
"m-inftrnps": Inftrnps,
},
mixins: [],
mixins: [commonApi, event],
provide() {
return {
root: this,
......@@ -39,7 +42,63 @@
data() {
return {
trnName: "trnrel",
model: new Trnrel().data,
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: {
dflg: CodeTable.dflg,
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