Commit c8284a13 by 吴佳

2022.04.08 wujia sptrel

parent e3c6ca05
......@@ -6,7 +6,6 @@ import Utils from "~/utils"
let checkObj = {
"inidatfro" :null,
"inidattil" :null,
"atpget.sdamod.dadsnd" :null,
}
for (const key in checkObj) {
......
......@@ -6,12 +6,12 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"usfmod.flt" :Utils.defaultFunction,
"sptstm" :Utils.defaultFunction,
"usfmod.usr.extkey" :Utils.defaultFunction,
"atp.cod" :Utils.defaultFunction,
"usfmod.selusg" :Utils.defaultFunction,
"usfmod.selusgset" :Utils.defaultFunction,
"usfmod.flt" :Utils.defaultFunction,
"usr.extkey" :Utils.defaultFunction,
"usfmod.usr.extkey" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -26,5 +26,20 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleSearch() {
let rtnmsg = await this.executeRule("searow")
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.sptstm.rows;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
......@@ -44,6 +44,16 @@ export default class Sptrel{
inidattil:"", // Date of entry of Transaction until .inidattil
sptstm:"", // List of SPT records .sptstm
sta:"", // Status .sta
// chkinc:"",
// chkdzt:"",
// chkpen:"",
// chkcor:"",
// chkaut:"",
// chkdel:"",
// chktco:"",
// chkcan:"",
selrow:"",
pageId: "" // ctx的key
}
}
......
<template>
<div class="eibs-tab">
<el-form
ref="paramsForm"
label-position="right"
label-width="110px"
size="small"
>
<!-- <c-col :span="12">
<span v-text="model.usfmod.usftxt" data-path=".usfmod.usftxt" > </span>
</c-col> -->
<!-- ============左========= -->
<c-col :span="11">
<c-col :span="24">
<!-- <el-form-item label="Type ot items">
<c-fullbox>
<c-col :span="6">
<c-checkbox v-model="model.chkinc">Incoming</c-checkbox>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.chkdzt">E-Trade</c-checkbox>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.chkpen">break</c-checkbox>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.chkcor">Connect</c-checkbox>
</c-col>
</c-fullbox>
<c-col :span="9">
</el-form-item> -->
<el-form-item label="Seclect of Users" prop="usfmod.flt">
<c-select
v-model="model.usfmod.flt"
style="width: 95%"
style="width: 100%"
placeholder="请选择Filter"
>
<el-option
......@@ -21,13 +45,196 @@
</el-form-item>
</c-col>
<c-col :span="2">
<!-- <c-col :span="24">
<el-form-item label="">
<c-fullbox>
<c-col :span="6">
<c-checkbox v-model="model.chkaut">Automatic</c-checkbox>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.chkdel">Reject</c-checkbox>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.chktco">网银</c-checkbox>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.chkcan">归档</c-checkbox>
</c-col>
</c-fullbox>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="Transaction Type " prop="atp.cod">
<c-input
v-model="model.atp.cod"
maxlength="6"
style="width: 100%"
placeholder="请输入Transaction Type "
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Transaction Text" prop="atptxt">
<c-input
v-model="model.atptxt"
maxlength="37"
placeholder="请输入Transaction Text"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.usfmod.flt === '<SELB>'">
<el-form-item label="Selected Branch" prop="usfmod.selusg">
<c-select
v-model="model.usfmod.selusg"
style="width: 100%"
placeholder="请选择"
>
<el-option
v-for="item in codes.selusg"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.usfmod.flt === '<SELU>'">
<el-form-item label="Selected User" prop="usfmod.usr.extkey">
<c-input
v-model="model.usfmod.usr.extkey"
maxlength="8"
style="width: 100%"
placeholder="请输入User ID"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ============右========= -->
<c-col :span="12" :offset="1">
<c-col :span="24">
<el-form-item label="Reference" prop="selobj">
<c-input
v-model="model.selobj"
maxlength="32"
placeholder="请输入Reference"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="11" >
<el-form-item label="Name" prop="seltxt">
<c-input
v-model="model.seltxt"
maxlength="32"
placeholder="请输入Name"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12" :offset="1">
<el-form-item label="Entered by" label-width="20%" prop="usr.extkey">
<c-input
v-model="model.usr.extkey"
maxlength="8"
style="width: 100%"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Between" prop="inidatfro">
<c-date-picker
type="date"
v-model="model.inidatfro"
style="width: 100%"
placeholder="请选择Date of entry of Transaction"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12" :offset="1">
<el-form-item label="and" prop="inidattil" label-width="20%" >
<c-date-picker
type="date"
v-model="model.inidattil"
style="width: 100%"
placeholder="请选择Date of entry of Transaction until"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="Status" prop="sta">
<c-select
v-model="model.sta"
style="width: 100%"
placeholder="请选择Status"
>
<el-option
v-for="item in codes.sta"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col
:span="24"
style="text-align: right; height: 36.8px"
>
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="handleSearch"
>查询</el-button
>
</c-col>
</el-form>
<!-- <c-col :span="9">
<el-form-item label="Seclect of Users" prop="usfmod.flt">
<c-select
v-model="model.usfmod.flt"
style="width: 95%"
placeholder="请选择Filter"
>
<el-option
v-for="item in codes.flt"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col> -->
<!-- <c-col :span="2">
<c-button size="small" type="primary" @click="onUsfmodShwflt" disabled>
Show Set
</c-button>
</c-col>
</c-col> -->
<c-col :span="11" :offset="1">
<!-- <c-col :span="11" :offset="1">
<el-form-item label="Reference" prop="selobj">
<c-input
v-model="model.selobj"
......@@ -35,13 +242,13 @@
placeholder="请输入Reference"
></c-input>
</el-form-item>
</c-col>
</c-col> -->
<!-- <c-col :span="12">
<span v-text="model.usfmod.labtxt" data-path=".usfmod.labtxt" > </span>
</c-col> -->
<c-col :span="11" v-if="model.usfmod.flt === '<SELB>'">
<!-- <c-col :span="11" v-if="model.usfmod.flt === '<SELB>'">
<el-form-item label="Selected Branch" prop="usfmod.selusg">
<c-select
v-model="model.usfmod.selusg"
......@@ -56,7 +263,7 @@
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col> -->
<!-- <c-col :span="12">
<el-form-item label="Selected User Group Set" prop="usfmod.selusgset">
<c-select v-model="model.usfmod.selusgset" style="width:100%" placeholder="请选择Selected User Group Set">
......@@ -69,7 +276,7 @@
</c-select>
</el-form-item>
</c-col> -->
<c-col :span="11" v-if="model.usfmod.flt === '<SELU>'">
<!-- <c-col :span="11" v-if="model.usfmod.flt === '<SELU>'">
<c-col :span="16">
<el-form-item label="Selected User" prop="usfmod.usr.extkey">
<c-input
......@@ -83,16 +290,16 @@
<c-col :span="6">
<c-button size="small" type="primary"> i </c-button>
</c-col>
</c-col>
</c-col> -->
<c-col
<!-- <c-col
:span="11"
v-if="model.usfmod.flt != '<SELU>' && model.usfmod.flt != '<SELB>'"
>
<el-form-item label=""> </el-form-item>
</c-col>
</c-col> -->
<c-col :span="11" :offset="1">
<!-- <c-col :span="11" :offset="1">
<el-form-item label="Name" prop="seltxt">
<c-input
v-model="model.seltxt"
......@@ -112,12 +319,12 @@
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
</c-col> -->
<!-- <c-col :span="3">
<c-button size="small" type="primary"> i </c-button>
</c-col>
</c-col> -->
<c-col :span="8" :offset="1">
<!-- <c-col :span="8" :offset="1">
<el-form-item label="Transaction Type " prop="atp.cod">
<c-input
v-model="model.atp.cod"
......@@ -126,13 +333,13 @@
placeholder="请输入Transaction Type "
></c-input>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="3">
<!-- <c-col :span="3">
<c-button size="small" type="primary"> i </c-button>
</c-col>
</c-col> -->
<c-col :span="6">
<!-- <c-col :span="6">
<el-form-item label="Between" prop="inidatfro">
<c-date-picker
type="date"
......@@ -152,9 +359,9 @@
placeholder="请选择Date of entry of Transaction until"
></c-date-picker>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="11" :offset="2">
<!-- <c-col :span="11" :offset="2">
<el-form-item label="Transaction Text" prop="atptxt">
<c-input
v-model="model.atptxt"
......@@ -180,7 +387,9 @@
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col> -->
<!--
......@@ -225,15 +434,32 @@
</c-button>
</c-col> -->
<c-col :span="22" :offset="1">
<c-table :border="true" :list="data" style="width:80%,text-align:center">
<c-col :span="24">
<!-- <c-table :border="true" :data="data" style="width:80%,text-align:center">
<el-table-column label="TRN" width="auto"></el-table-column>
<el-table-column label="Name" width="auto"></el-table-column>
<el-table-column label="Created" width="auto"></el-table-column>
<el-table-column label="Status" width="auto"></el-table-column>
<el-table-column label="By User" width="auto"></el-table-column>
<el-table-column label="Referance" width="auto"></el-table-column>
</c-table>
</c-table> -->
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="alert(111)"
>
detail
</c-button>
</el-table-column>
</c-istream-table>
</c-col>
</div>
</template>
......@@ -249,7 +475,23 @@ export default {
mixins: [commonProcess],
data() {
return {
stmData: {
columns: [
'5 1 "TRN" ',
'6 2:2 "Reference" ',
'7 2:1 "Name" ',
'8 3 "Created" ',
'9 4:1 "Status" ',
'4 5:1 "By User" ',
'11 6:1 "Details" ',
// 'P "COLORED" TRUE',
// 'P "VERTLINES" TRUE',
// 'P "HORZLINES" TRUE',
// 'P "MULTISELECT" true'
],
data: [],
},
};
},
methods: { ...Event },
......
......@@ -4,15 +4,16 @@
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000042 -->
<el-tab-pane label="Menu" name="menu">
<c-content label="Menu" name="menu">
<m-menu :model="model" :codes="codes"/>
</el-tab-pane>
</c-content>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"
import Sptrel from "~/model/Sptrel"
import commonProcess from "~/mixin/commonProcess"
......
......@@ -316,6 +316,13 @@
@click="continueEdit(scope.row)"
>处理
</c-button>
<!-- <c-button
style="margin-left: 0"
size="small"
type="primary"
@click="choose(scope.$index)"
>选择
</c-button> -->
<el-popover placement="top-start" width="50" trigger="click">
<!-- <c-button type="primary" size="small">指派</c-button>
<c-button type="primary" size="small">删除</c-button> -->
......@@ -502,6 +509,21 @@ export default {
});
},
// async choose(idx,row){
// var params = {selDst:"sptstm",selrow:[idx+1]}
// let rtnmsg = await this.executeRule("sptstm" , params) //SPTSTM
// if(rtnmsg.respCode == SUCCESS)
// {
// this.stmData.data = rtnmsg.data.sptstm.rows;
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// },
...Event,
},
created: function () {
......
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