Commit c8284a13 by 吴佳

2022.04.08 wujia sptrel

parent e3c6ca05
...@@ -6,7 +6,6 @@ import Utils from "~/utils" ...@@ -6,7 +6,6 @@ import Utils from "~/utils"
let checkObj = { let checkObj = {
"inidatfro" :null, "inidatfro" :null,
"inidattil" :null, "inidattil" :null,
"atpget.sdamod.dadsnd" :null,
} }
for (const key in checkObj) { for (const key in checkObj) {
......
...@@ -6,12 +6,12 @@ import Api from "~/service/Api"; ...@@ -6,12 +6,12 @@ import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
"usfmod.flt" :Utils.defaultFunction,
"sptstm" :Utils.defaultFunction, "sptstm" :Utils.defaultFunction,
"usfmod.usr.extkey" :Utils.defaultFunction,
"atp.cod" :Utils.defaultFunction, "atp.cod" :Utils.defaultFunction,
"usfmod.selusg" :Utils.defaultFunction, "usfmod.selusg" :Utils.defaultFunction,
"usfmod.selusgset" :Utils.defaultFunction, "usfmod.selusgset" :Utils.defaultFunction,
"usfmod.flt" :Utils.defaultFunction,
"usr.extkey" :Utils.defaultFunction, "usr.extkey" :Utils.defaultFunction,
"usfmod.usr.extkey" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -26,5 +26,20 @@ export default { ...@@ -26,5 +26,20 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); 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{ ...@@ -44,6 +44,16 @@ export default class Sptrel{
inidattil:"", // Date of entry of Transaction until .inidattil inidattil:"", // Date of entry of Transaction until .inidattil
sptstm:"", // List of SPT records .sptstm sptstm:"", // List of SPT records .sptstm
sta:"", // Status .sta sta:"", // Status .sta
// chkinc:"",
// chkdzt:"",
// chkpen:"",
// chkcor:"",
// chkaut:"",
// chkdel:"",
// chktco:"",
// chkcan:"",
selrow:"",
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-form
ref="paramsForm"
label-position="right"
label-width="110px"
size="small"
>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<span v-text="model.usfmod.usftxt" data-path=".usfmod.usftxt" > </span> <span v-text="model.usfmod.usftxt" data-path=".usfmod.usftxt" > </span>
</c-col> --> </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"> <el-form-item label="Seclect of Users" prop="usfmod.flt">
<c-select <c-select
v-model="model.usfmod.flt" v-model="model.usfmod.flt"
style="width: 95%" style="width: 100%"
placeholder="请选择Filter" placeholder="请选择Filter"
> >
<el-option <el-option
...@@ -21,13 +45,196 @@ ...@@ -21,13 +45,196 @@
</el-form-item> </el-form-item>
</c-col> </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> <c-button size="small" type="primary" @click="onUsfmodShwflt" disabled>
Show Set Show Set
</c-button> </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"> <el-form-item label="Reference" prop="selobj">
<c-input <c-input
v-model="model.selobj" v-model="model.selobj"
...@@ -35,13 +242,13 @@ ...@@ -35,13 +242,13 @@
placeholder="请输入Reference" placeholder="请输入Reference"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<span v-text="model.usfmod.labtxt" data-path=".usfmod.labtxt" > </span> <span v-text="model.usfmod.labtxt" data-path=".usfmod.labtxt" > </span>
</c-col> --> </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"> <el-form-item label="Selected Branch" prop="usfmod.selusg">
<c-select <c-select
v-model="model.usfmod.selusg" v-model="model.usfmod.selusg"
...@@ -56,7 +263,7 @@ ...@@ -56,7 +263,7 @@
></el-option> ></el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<el-form-item label="Selected User Group Set" prop="usfmod.selusgset"> <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"> <c-select v-model="model.usfmod.selusgset" style="width:100%" placeholder="请选择Selected User Group Set">
...@@ -69,7 +276,7 @@ ...@@ -69,7 +276,7 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> --> </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"> <c-col :span="16">
<el-form-item label="Selected User" prop="usfmod.usr.extkey"> <el-form-item label="Selected User" prop="usfmod.usr.extkey">
<c-input <c-input
...@@ -83,16 +290,16 @@ ...@@ -83,16 +290,16 @@
<c-col :span="6"> <c-col :span="6">
<c-button size="small" type="primary"> i </c-button> <c-button size="small" type="primary"> i </c-button>
</c-col> </c-col>
</c-col> </c-col> -->
<c-col <!-- <c-col
:span="11" :span="11"
v-if="model.usfmod.flt != '<SELU>' && model.usfmod.flt != '<SELB>'" v-if="model.usfmod.flt != '<SELU>' && model.usfmod.flt != '<SELB>'"
> >
<el-form-item label=""> </el-form-item> <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"> <el-form-item label="Name" prop="seltxt">
<c-input <c-input
v-model="model.seltxt" v-model="model.seltxt"
...@@ -112,12 +319,12 @@ ...@@ -112,12 +319,12 @@
disabled disabled
></c-input> ></c-input>
</el-form-item> </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-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"> <el-form-item label="Transaction Type " prop="atp.cod">
<c-input <c-input
v-model="model.atp.cod" v-model="model.atp.cod"
...@@ -126,13 +333,13 @@ ...@@ -126,13 +333,13 @@
placeholder="请输入Transaction Type " placeholder="请输入Transaction Type "
></c-input> ></c-input>
</el-form-item> </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-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"> <el-form-item label="Between" prop="inidatfro">
<c-date-picker <c-date-picker
type="date" type="date"
...@@ -152,9 +359,9 @@ ...@@ -152,9 +359,9 @@
placeholder="请选择Date of entry of Transaction until" placeholder="请选择Date of entry of Transaction until"
></c-date-picker> ></c-date-picker>
</el-form-item> </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"> <el-form-item label="Transaction Text" prop="atptxt">
<c-input <c-input
v-model="model.atptxt" v-model="model.atptxt"
...@@ -180,7 +387,9 @@ ...@@ -180,7 +387,9 @@
></el-option> ></el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<!-- <!--
...@@ -225,15 +434,32 @@ ...@@ -225,15 +434,32 @@
</c-button> </c-button>
</c-col> --> </c-col> -->
<c-col :span="22" :offset="1"> <c-col :span="24">
<c-table :border="true" :list="data" style="width:80%,text-align:center"> <!-- <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="TRN" width="auto"></el-table-column>
<el-table-column label="Name" 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="Created" width="auto"></el-table-column>
<el-table-column label="Status" 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="By User" width="auto"></el-table-column>
<el-table-column label="Referance" 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> </c-col>
</div> </div>
</template> </template>
...@@ -249,7 +475,23 @@ export default { ...@@ -249,7 +475,23 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { 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: [], data: [],
},
}; };
}, },
methods: { ...Event }, methods: { ...Event },
......
...@@ -4,15 +4,16 @@ ...@@ -4,15 +4,16 @@
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000042 --> <!--PD000042 -->
<el-tab-pane label="Menu" name="menu"> <c-content label="Menu" name="menu">
<m-menu :model="model" :codes="codes"/> <m-menu :model="model" :codes="codes"/>
</el-tab-pane> </c-content>
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Sptrel from "~/model/Sptrel" import Sptrel from "~/model/Sptrel"
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
......
...@@ -316,6 +316,13 @@ ...@@ -316,6 +316,13 @@
@click="continueEdit(scope.row)" @click="continueEdit(scope.row)"
>处理 >处理
</c-button> </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"> <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>
<c-button type="primary" size="small">删除</c-button> --> <c-button type="primary" size="small">删除</c-button> -->
...@@ -502,6 +509,21 @@ export default { ...@@ -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, ...Event,
}, },
created: function () { 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