Commit 9bf27d18 by hewei

cltdav页面优化,查询,获取缺陷解决

parent 331250de
......@@ -2,6 +2,9 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
onSeainf() {
},
async handleSearch() {
let colflg = this.model.cldgrp.rec.colflg;
if (!colflg || colflg == '') {
......@@ -16,6 +19,7 @@ export default {
let rtnmsg = await this.executeRule("butsea")
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
console.log(rtnmsg.data.ccdbatg)
//TODO 处理数据逻辑
this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
}
......@@ -23,6 +27,13 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleSearchAll() {
let rtnmsg = await this.executeRule("search")
if (rtnmsg.respCode == SUCCESS) {
//TODO 列表显示数据
this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
}
},
async onCltpButgetref() {
let rtnmsg = await this.executeRule("cltp.butgetref")
if (rtnmsg.respCode == SUCCESS) {
......
......@@ -13,10 +13,10 @@ export default {
{max: 1,message:"长度不能超过1"}
],
"cldgrp.rec.valdat":[
{type: "date", required: true, message: "必输项"}
{type: "string", required: true, message: "必输项"}
],
"cldgrp.rec.credat":[
{type: "date", required: true, message: "必输项"}
{type: "string", required: true, message: "必输项"}
],
"rowcntr":[
{type: "number", required: false, message: "必输项"},
......@@ -87,14 +87,6 @@ export default {
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.condocstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
......
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="内容" name="sel">
<m-sel :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="关联账号" name="account">
<m-account :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Sel from "./Sel";
import Account from "./Account";
import commonProcess from "~/mixin/commonProcess";
import Events from "~/model/Cltdav/Event";
export default {
components: {
"m-sel": Sel,
"m-account": Account,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["sel"],
}
},
methods: {
...Events,
handleChange(val) {
console.log(val);
},
}
}
</script>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="包号" prop="cldgrp.rec.ownref" style="width:100%">
<c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入包号"
style="width:100%" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<c-button size="small" type="primary" @click="onCltpButgetref"
:disabled="model.cldgrp.rec.ownref !== ''">
获取
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="简略信息" prop="cldgrp.rec.nam" style="width:100%">
<c-input v-model="model.cldgrp.rec.nam" maxlength="40" placeholder="请输入简略信息">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="票据类型" prop="cldgrp.rec.colflg" style="width:100%">
<c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" maxlength="1"
placeholder="请输入票据类型">
<el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="起息日" prop="cldgrp.rec.valdat" style="width:100%">
<c-col :span="10">
<c-date-picker type="date" v-model="model.cldgrp.rec.valdat" style="width:100%"
placeholddaer="请选择起息日"></c-date-picker>
</c-col>
<c-col :span="4" style="text-align: center">
<label style="display: inline-block;font-size: 12px;color: #606266;">创建日期</label>
</c-col>
<c-col :span="10">
<c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
placeholder="请选择创建日期"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="总行数" prop="rowcntr" style="width:100%">
<c-input v-model="model.rowcntr" placeholder="请输入总行数" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="币种" prop="cur" style="width:100%">
<c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="选中光票金额和" prop="amount" style="width: 100%">
<c-input v-model="model.amount" placeholder="请输入" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="注册编号" prop="cldgrp.rec.regref" style="width: 100%">
<c-input v-model="model.cldgrp.rec.regref" tyle="width: 100%" maxlength="16"
placeholder="请输入注册编号" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="选中票据份数" prop="cldgrp.rec.count" style="width: 100%">
<c-input v-model="model.cldgrp.rec.count" placeholder="请输入选中票据份数" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="查询出的票据份数" prop="items" style="width:100%">
<c-input v-model="model.items" placeholder="请输入选中票据份数"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="托收行" prop="colbnk" style="width:100%">
<c-select v-model="model.colbnk" style="width: 100%" placeholder="请选择托收行" :disabled="model.cldgrp.rec.colflg == 'G'">
<el-option v-for="item in codes.colbnk" :key="item.value" :label="item.label"
:value="item.value" >
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<c-button size="small" type="primary" @click="onGet" :disabled="model.cldgrp.rec.colflg == 'G'">
获取
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="托收方式" prop="colmet" style="width:100%">
<c-select v-model="model.colmet" style="width: 100%" placeholder="请选择托收方式">
<el-option v-for="item in codes.colmet" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<c-col :span="18">
<el-form-item label="托收行名称" prop="cldgrp.col.pts.extkey" style="width:100%">
<c-input v-model="model.cldgrp.col.pts.extkey" maxlength="16"
placeholder="请输入托收行名称"
@keyup.enter.native="showGridPromptDialog('cldgrp.col.pts.extkey')">
</c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button size="small" type="primary" @click="onSeainf('cldgrp.col.pts.extkey')"><i class="el-icon-info"></i></c-button>
</c-col>
<c-col :span="4" style="text-align:right">
<c-button size="small" type="primary">
详情
</c-button>
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="地址信息" prop="cldgrp.col.pts.nam" style="width:100%">
<c-input type="textarea" :rows="4" v-model="model.cldgrp.col.pts.nam" maxlength="35" disabled
show-word-limit placeholder="请输入地址信息"></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="托收行参考号" prop="cldgrp.rec.colref" style="width:100%">
<c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入托收行参考号">
</c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
<c-row>
<c-col :span="4" :offset="20" style="text-align:center">
<el-button type="primary" @click="handleSearch">查询</el-button>
</c-col>
</c-row>
<c-col :span="24">
<c-edit-table :model="model" v-bind="docgrd">
</c-edit-table>
<div class="eibs-tab">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="包号" prop="cldgrp.rec.ownref" style="width:100%">
<c-fullbox>
<c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入包号"
style="width:100%" disabled>
</c-input>
<template slot="footer">
<c-button size="small" type="primary" @click="onCltpButgetref"
style="margin-left: 10px; padding: 0 12px"
:disabled="model.cldgrp.rec.ownref !== ''">
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="票据类型" prop="cldgrp.rec.colflg" style="width:100%">
<c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" maxlength="1"
placeholder="请输入票据类型">
<el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="总行数" prop="rowcntr" style="width:100%">
<c-input v-model="model.rowcntr" placeholder="请输入总行数" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="选中光票金额和" prop="amount" style="width: 100%">
<c-input v-model="model.amount" placeholder="请输入" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="选中票据份数" prop="cldgrp.rec.count" style="width: 100%">
<c-input v-model="model.cldgrp.rec.count" placeholder="请输入选中票据份数" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行" prop="colbnk" style="width:100%">
<c-fullbox>
<c-select v-model="model.colbnk" style="width: 100%" placeholder="请选择托收行" :disabled="model.cldgrp.rec.colflg == 'G'">
<el-option v-for="item in codes.colbnk" :key="item.value" :label="item.label"
:value="item.value" >
</el-option>
</c-select>
<template slot="footer">
<c-button size="small" type="primary" @click="onGet" :disabled="model.cldgrp.rec.colflg == 'G'">
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行名称" prop="cldgrp.col.pts.extkey" style="width:100%">
<c-fullbox>
<c-input v-model="model.cldgrp.col.pts.extkey" maxlength="16"
placeholder="请输入托收行名称"
@keyup.enter.native="showGridPromptDialog('cldgrp.col.pts.extkey')">
</c-input>
<template slot="footer">
<c-button size="small" type="primary"
style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px"
@click="onSeainf('cldgrp.col.pts.extkey')">
<i class="el-icon-info"></i>
</c-button>
<c-button size="small" type="primary" style="margin: 0 0; height: 32px">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="cldgrp.col.pts.nam" style="width:100%">
<c-input type="textarea" :rows="4" v-model="model.cldgrp.col.pts.nam" maxlength="35" disabled
show-word-limit placeholder="请输入地址信息"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="简略信息" prop="cldgrp.rec.nam" style="width:100%">
<c-input v-model="model.cldgrp.rec.nam" maxlength="40" placeholder="请输入简略信息">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="起息日" prop="cldgrp.rec.valdat" style="width:100%">
<c-date-picker type="date" v-model="model.cldgrp.rec.valdat" style="width:100%"
placeholddaer="请选择起息日"></c-date-picker>
</el-form-item>
</c-col>
</div>
<c-col :span="12">
<el-form-item label="创建日期" style="width:100%">
<c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
placeholder="请选择创建日期"></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="币种" prop="cur" style="width:100%">
<c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="注册编号" prop="cldgrp.rec.regref" style="width: 100%">
<c-input v-model="model.cldgrp.rec.regref" tyle="width: 100%" maxlength="16"
placeholder="请输入注册编号" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="查询出的票据份数" prop="items" style="width:100%">
<c-input v-model="model.items" placeholder="请输入选中票据份数"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收方式" prop="colmet" style="width:100%">
<c-select v-model="model.colmet" style="width: 100%" placeholder="请选择托收方式">
<el-option v-for="item in codes.colmet" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行参考号" prop="cldgrp.rec.colref" style="width:100%">
<c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入托收行参考号">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" v-if="model.cur != '' && model.cldgrp.rec.colflg != ''">
<c-col :span="4" :offset="20" style="text-align:center">
<el-button type="primary" @click="handleSearch">查询</el-button>
</c-col>
</c-col>
<c-col :span="24" v-else>
<c-col :span="4" :offset="20" style="text-align:center">
<el-button type="primary" @click="handleSearchAll">查询所有</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-edit-table :model="model" v-bind="docgrd">
</c-edit-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
......
<template>
<div class="eContainer">
<c-page title="打包托收开立">
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
<el-button size="small">备忘录</el-button>
<el-button size="small">影像信息</el-button>
<el-button size="small">保存模板</el-button>
<el-button size="small">使用模板</el-button>
<el-button size="small">制裁信息</el-button>
<el-button size="small">拆分报文</el-button>
<el-button size="small">提示</el-button>
</c-function-btn>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left"
size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000002 -->
<el-tab-pane label="内容" name="sel">
<c-content>
<m-sel :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!-- <el-tab-pane label="内容" name="sel">-->
<!-- <c-content>-->
<!-- <m-sel :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!--PD000000 -->
<el-tab-pane label="提示信息" name="coninfp">
<c-content>
<m-coninfp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文和面函" name="docpan">
......@@ -36,23 +47,12 @@
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="提示信息" name="coninfp">
<c-content>
<m-coninfp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000057 -->
<el-tab-pane label="关联账号" name="account">
<m-account :model="model" :codes="codes" />
</el-tab-pane>
<!-- <el-tab-pane label="关联账号" name="account">-->
<!-- <c-content>-->
<!-- <m-account :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
</c-tabs>
</el-form>
......@@ -60,8 +60,20 @@
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData" @select-ety="selectMsg">
</c-grid-ety-prompt-dialog>
</div>
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
<!-- <el-button size="small">备忘录</el-button>-->
<!-- <el-button size="small">影像信息</el-button>-->
<!-- <el-button size="small">保存模板</el-button>-->
<!-- <el-button size="small">使用模板</el-button>-->
<!-- <el-button size="small">制裁信息</el-button>-->
<!-- <el-button size="small">拆分报文</el-button>-->
<!-- <el-button size="small">提示</el-button>-->
</c-function-btn>
</c-page>
</div>
</template>
<script>
......@@ -75,8 +87,9 @@ import Check from "~/model/Cltdav/Check";
import Default from "~/model/Cltdav/Default";
import Pattern from "~/model/Cltdav/Pattern";
import Sel from "./Sel";
import Account from "./Account";
// import Sel from "./Sel";
// import Account from "./Account";
import Ovwp from "./Ovwp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
......@@ -89,8 +102,8 @@ import Doctre from "~/views/Public/Doctre";
export default {
name: "Cltdav",
components: {
"m-sel": Sel,
"m-account": Account,
// "m-sel": Sel,
// "m-account": Account,
"m-setpan": Setpan,
"m-engp": Engp,
"m-glepan": Glepan,
......@@ -98,6 +111,7 @@ export default {
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-ccvpan": Ccvpan,
"m-ovwp": Ovwp,
},
provide() {
......@@ -108,7 +122,7 @@ export default {
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
tabVal: "ovwp",
trnName: "cltdav",
model: new Cltdav().data,
checkRules: Check,
......
......@@ -169,7 +169,7 @@ export default {
.then((res) => {
if (res) {
this.$message.success("修改柜员权限信息成功!");
// this.model.ubrList = res.ubrList;
//TODO model.uclList回填
this.handleClose();
}
})
......@@ -200,7 +200,8 @@ export default {
.then((res) => {
if (res) {
this.$message.success("保存柜员权限信息成功!");
this.model.ubrList = res.ubrList;
//TODO model.uclList回填
// this.model.ubrList = res.ubrList;
this.handleClose();
}
})
......
......@@ -164,6 +164,7 @@ export default {
.then((res) => {
if (res.usr) {
this.$message.success("修改柜员组信息成功!");
//TODO model.uclList回填
this.handleClose();
}
})
......@@ -193,6 +194,7 @@ export default {
.then((res) => {
if (res) {
this.$message.success("保存柜员组信息成功!");
//TODO model.uclList回填
this.handleClose();
}
})
......
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