Commit feddb5d3 by wangguangchao

待申报列表开发提交

parent 0f109c71
...@@ -146,5 +146,116 @@ export default { ...@@ -146,5 +146,116 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async selpHandleSearch() {
let res = await this.executeRule("serbut");
if(res.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.stmData.data = res.data.dblstm.rows;
if(res.data.dblstm.rows.length == 0){
this.$notify({
title: '成功',
message: '搜索完毕,无满足条件记录',
type: 'success'
});
}else{
this.$notify({
title: '成功',
message: '查询成功',
type: 'success'
});
}
}
else
{
let errorMsg = "";
if(res.fieldErrors){
let errorMsgkey = "";
let errorMsgVal = "";
for (const key in res.fieldErrors) {
errorMsgkey = key;
errorMsgVal = res.fieldErrors[key];
}
errorMsg = errorMsgkey+':'+errorMsgVal;
}else if(res.respMsg){
errorMsg = res.respMsg;
}
this.$notify.error({title: '错误',message: '查询失败!错误信息['+errorMsg+']'});
}
},
async selpHandleReset(){
this.model.bopquep.boptyp = "ALL";
this.model.bopquep.dattyp = "";
this.model.bopquep.frmdat = new Date();
this.model.bopquep.tildat = new Date();
this.model.bopquep.rptno = "";
this.model.bopquep.ownextkey = "";
this.model.bopquep.ptytyp = "";
this.model.bopquep.ptynam = "";
this.model.bopquep.medtyp = "";
this.model.bopquep.ownref = "";
this.model.bopquep.sum = "";
this.model.bopquep.staflg = "";
},
async errpHandleSearch() {
let res = await this.executeRule("errsel.serbut");
if(res.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.stmData.data = res.data.errsel_msgstm.rows;
if(res.data.errsel_msgstm.rows.length == 0){
this.$notify({
title: '成功',
message: '搜索完毕,无满足条件记录',
type: 'success'
});
}else{
this.$notify({
title: '成功',
message: '查询成功',
type: 'success'
});
}
}
else
{
let errorMsg = "";
if(res.fieldErrors){
let errorMsgkey = "";
let errorMsgVal = "";
for (const key in res.fieldErrors) {
errorMsgkey = key;
errorMsgVal = res.fieldErrors[key];
}
errorMsg = errorMsgkey+':'+errorMsgVal;
}else if(res.respMsg){
errorMsg = res.respMsg;
}
this.$notify.error({title: '错误',message: '查询失败!错误信息['+errorMsg+']'});
}
},
async errpHandleReset(){
this.model.errsel.rptno = "";
this.model.bopquep.ownextkey = "";
this.model.bopquep.frmdat = new Date();
this.model.bopquep.tildat = new Date();
}
} }
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-list-search
@form-reset="errpHandleReset"
@form-search="errpHandleSearch"
>
<template>
<el-form
class="m-table-search-form"
ref="paramsForm"
:inline="true"
label-position="right"
label-width="110px"
size="small"
>
<el-row>
<c-col :span="8">
<el-form-item label="申报编号" prop="errsel.rptno">
<c-input
v-model="model.errsel.rptno"
maxlength="22"
placeholder="请输入申报编号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务所属行" prop="bopquep.ownextkey">
<c-select
v-model="model.bopquep.ownextkey"
style="width: 100%"
placeholder="请选择业务所属行"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起止日期" prop="bopquep.frmdat">
<c-date-picker
type="date"
v-model="model.bopquep.frmdat"
style="width: 100%"
placeholder="请选择起始日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="至" prop="bopquep.tildat">
<c-date-picker
type="date"
v-model="model.bopquep.tildat"
style="width: 100%"
placeholder="请选择终止日期"
></c-date-picker>
</el-form-item>
</c-col>
</el-row>
</el-form>
</template>
</c-list-search>
<el-row>
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column prop="op" label="操作" width="100">
<template slot-scope="scope">
<a href="javascript:void(0)" @click="continueEdit(scope.row)"
>correct</a
>
</template>
</el-table-column>
</c-istream-table>
</el-row>
<!--
<c-col :span="12"> <c-col :span="12">
<el-form-item label="申报编号" prop="errsel.rptno"> <el-form-item label="申报编号" prop="errsel.rptno">
<c-input v-model="model.errsel.rptno" maxlength="22" placeholder="请输入申报编号"></c-input> <c-input v-model="model.errsel.rptno" maxlength="22" placeholder="请输入申报编号"></c-input>
...@@ -49,29 +122,36 @@ ...@@ -49,29 +122,36 @@
Exit Exit
</c-button> </c-button>
</c-col> </c-col>
-->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bopsel/Event" import Event from "~/model/Bopsel/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [CommonProcess], mixins: [CommonProcess],
data(){ data() {
return { return {
stmData: {
} columns: [
}, '4 1 "申报编号" 0 ',
methods:{...Event}, '5 2 "反馈日期" 0',
created:function(){ '7 3 "业务编号" 0',
'20 4 "错误信息" 0',
} '21 5 "接口" 0',
} ],
data: [],
},
};
},
methods: { ...Event },
created: function () {},
};
</script> </script>
<style> <style>
</style> </style>
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> :model="model"
:rules="rules"
<!--PD000000 --> ref="modelForm"
<el-tab-pane label="接口信息选择" name="selp"> label-width="150px"
<m-selp :model="model" :codes="codes"/> label-position="right"
</el-tab-pane> size="small"
:validate-on-rule-change="false"
<!--PD000000 --> >
<el-tab-pane label="接口反馈文件差错返回" name="errp"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<m-errp :model="model" :codes="codes"/> <!--PD000000 -->
</el-tab-pane> <el-tab-pane label="接口信息选择" name="selp">
</c-tabs> <m-selp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="接口反馈文件差错返回" name="errp">
<m-errp :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Bopsel from "~/model/Bopsel" import Bopsel from "~/model/Bopsel";
import CommonProcess from "~/mixin/CommonProcess" import CommonProcess from "~/mixin/CommonProcess";
import Check from "~/model/Bopsel/Check" import Check from "~/model/Bopsel/Check";
import Default from "~/model/Bopsel/Default" import Default from "~/model/Bopsel/Default";
import Pattern from "~/model/Bopsel/Pattern" import Pattern from "~/model/Bopsel/Pattern";
import Selp from "./Selp" import Selp from "./Selp";
import Errp from "./Errp" import Errp from "./Errp";
export default { export default {
name: "Bopsel", name: "Bopsel",
components:{ components: {
"m-selp" : Selp, "m-selp": Selp,
"m-errp" : Errp, "m-errp": Errp,
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "", tabVal: "selp",
trnName: "bopsel", trnName: "bopsel",
model: new Bopsel().data, model: new Bopsel().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
}, boptyp: [],
} dattyp: [
}, { label: "按收付汇日期", value: "A" },
methods:{ { label: "按经办日期", value: "B" },
tabClick(){ ],
} ptytyp: [
}, { label: "对公", value: "C" },
created:async function(){ { label: "对私中国居民", value: "D" },
console.log("进入bopsel交易"); { label: "对私非中国居民", value: "F" },
let rtnmsg = await this.init({}) ],
if(rtnmsg.respCode == SUCCESS) medtyp:[
{ {label:"票汇",value:"D" },
//TODO 处理数据逻辑 {label:"信用证",value:"L" },
{label:"托收",value:"C" },
{label:"保函",value:"G" },
{label:"光票托收",value:"Y" },
{label:"其他",value:"O" },
{label:"电汇",value:"T" },
{label:"支票代收",value:"Z" },
{label:"信汇",value:"M" },
],
staflg:[
{label:"待确认",value:"P" },
{label:"待发送",value:"W" },
{label:"已发送",value:"S" },
{label:"已撤销",value:"D" },
{label:"已删除",value:"G" },
{label:"待修改",value:"E" },
],
},
};
},
methods: {
tabClick() {},
},
created: async function () {
console.log("进入bopsel交易");
} // 查询码表
else Api.post("getCodetable", { tbl: "BOPTYP", lang: "EN" }).then((res) => {
{ if (res.respCode == SUCCESS) {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.codes.boptyp = res.data;
} }
});
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
} },
};
</script> </script>
<style> <style>
</style> </style>
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