Commit 4e9da163 by liaoxing

infccd添加

parent 02a26335
import Api from '~/service/Api';
import { getTrnNameByInr } from "~/service/business/common";
import moment from 'moment';
export default {
methods: {
async handleSearch() {
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == '') {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == '') {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let params = {
...this.model.infcon,
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
opndatfrom:moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:moment(opndatto).format('YYYY-MM-DD'),
};
let rtnmsg = await Api.post('/service/infccd/getList', params);
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
// debugger
this.pagination.total = rtnmsg.data.total;
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleReset() {
this.model.infcon.seaownref = '';
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.searef = '';
this.model.infcon.pty.extkey = '';
this.model.infcon.usr.extkey = '';
this.model.infcon.searol = '';
this.model.infcon.pty.nam = '';
this.model.infcon.seapty = '';
this.model.infcon.curtxt1 = '';
this.model.infcon.nam = '';
this.model.infcon.seaamtfr = '';
this.model.infcon.seaamtto = '';
this.model.infcon.seasta = '';
this.model.infcon.doctypcod = '';
},
// pageSize改变
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pagination.pageIndex = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pagination.pageIndex = val;
this.handleSearch();
},
// 详情
async details(row) {
const params = {
//根据xx字段 查询详情表的数据
inr:row.inr,
userId: window.sessionStorage.userId || 'ZL',
ownref: row.ownref,
};
const res = await Api.post('/service/infccd/getDetail', params);
if (res.respCode === SUCCESS) {
this.trnData.data = res.data;
}
},
toCctdav() {
// 点击开立,清空从待经办进来的时候带的行参数
localStorage.setItem('row_cctdav', null)
localStorage.setItem('review_cctdav',null)
this.$router.history.push('/business-new/cctdav');
},
// 关闭详情弹框
closeDetailsDialog(refId) {
this.$refs[refId].doClose();
console.log('close');
},
// 处理
async handler(row) {
this.initdialog = true;
this.currentHandleRow = row
const params = {
//根据xx字段 查询处理的数据
seaownref: row.seaownref,
};
const res = await Api.post('/service/infccd/dealWithByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data) {
this.handlerDataList = []
Object.keys(res.data).map((item) => {
this.handlerDataList.push({
label: item,
value: res.data[item]
})
})
}
}
},
handleClick (btn) {
if (btn.value === 'N') {
return
}
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push({
path: filterRoute[0].route,
query: {
inr: this.currentHandleRow.inr
}
});
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开详情页面
* @param {string} inr
*/
display(inr) {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
},
};
import Utils from "~/utils"
/**
* Infccd Check规则
*/
let checkObj = {
"trnmod.cipmod.cskfzh" :null,
"trnmod.cipmod.zjg1mc" :null,
"trnmod.cipmod.fkrdz3" :null,
"trnmod.trndoc.dtemod.dtetagm07" :null,
"trnmod.cipmod.fkrdz4" :null,
"trnmod.trndoc.dtemod.dtetagm08" :null,
"trnmod.cipmod.fkrdz2" :null,
"trnmod.cipmod.skkhdz" :null,
"trnmod.trndoc.dtemod.dtetagm06" :null,
"trnmod.cipmod.fkrdz7" :null,
"trnmod.cipmod.fufeih" :null,
"trnmod.cipmod.fkrdz5" :null,
"trnmod.cipmod.fkrdz6" :null,
"trnmod.cipmod.skrdz7" :null,
"trnmod.cipmod.skrdz6" :null,
"trnmod.cipmod.cfkrgj" :null,
"infcon.ord.inr" :null,
"trnmod.cipmod.skrdz3" :null,
"trnmod.cipmod.skrdz2" :null,
"trnmod.cipmod.skrdz5" :null,
"trnmod.cipmod.skrdz4" :null,
"trnmod.cipmod.feiyon" :null,
"trnmod.cipmod.zjg2mc" :null,
"trnmod.cipmod.fuyns3" :null,
"trnmod.cipmod.fuyns4" :null,
"trnmod.cipmod.fuyns1" :null,
"trnmod.cipmod.fuyns2" :null,
"trnmod.cipmod.feecod" :null,
"trnmod.cipmod.csfdz1" :null,
"trnmod.cipmod.cffdz7" :null,
"trnmod.cipmod.skkhhh" :null,
"trnmod.cipmod.feiyn2" :null,
"trnmod.cipmod.cffdz1" :null,
"trnmod.cipmod.cffdz2" :null,
"trnmod.cipmod.cffdz3" :null,
"trnmod.cipmod.cffdz4" :null,
"trnmod.cipmod.cffdz5" :null,
"trnmod.cipmod.cffdz6" :null,
"trnmod.cipmod.skkhhm" :null,
"infcon.ord.extkey" :null,
"trnmod.cipmod.pyebchnam" :null,
"trnmod.cipmod.fkrkhh" :null,
"trnmod.cipmod.fkhkhh" :null,
"trnmod.cipmod.cfkfzh" :null,
"trnmod.cipmod.recsehbchnam" :null,
"trnmod.cipmod.fkhdzh" :null,
"trnmod.cipmod.staonebchnam" :null,
"trnmod.cipmod.pyebchkey" :null,
"trnmod.cipmod.cskzjh" :null,
"trnmod.cipmod.cskrzj" :null,
"trnmod.cipmod.zjg2hh" :null,
"trnmod.cipmod.stasehbch" :null,
"infcon.seaamtto" :null,
"infcon.ordp0.recget.sdamod.dadsnd" :null,
"trnmod.cipmod.fkkhmc" :null,
"trnmod.cipmod.ffeih2" :null,
"trnmod.cipmod.csfdz7" :null,
"trnmod.cipmod.csfdz6" :null,
"trnmod.cipmod.csfdz5" :null,
"trnmod.cipmod.csfdz4" :null,
"trnmod.cipmod.csfdz3" :null,
"trnmod.cipmod.csfdz2" :null,
"trnmod.cipmod.fuynh4" :null,
"trnmod.cipmod.fuynh2" :null,
"trnmod.cipmod.fuynh3" :null,
"ccdgrp.blk.setins" :null,
"trnmod.cipmod.cskrgj" :null,
"trnmod.cipmod.recsehbch" :null,
"trnmod.cipmod.cfkrzj" :null,
"trnmod.cipmod.stasehbchnam" :null,
"trnmod.cipmod.cfkzjh" :null,
"trnmod.cipmod.zjg1hh" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infccd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infcon.usr.extkey" :Utils.defaultFunction,
"infcon.sptcor" :Utils.defaultFunction,
"infcon.sptreg" :Utils.defaultFunction,
"infcon.sptdel" :Utils.defaultFunction,
"infcon.sptinc" :Utils.defaultFunction,
"infcon.sptpen" :Utils.defaultFunction,
"infcon.seapty" :Utils.defaultFunction,
"infcon.pty.extkey" :Utils.defaultFunction,
"infcon.fepfeecod" :Utils.defaultFunction,
"infcon.fepdsp" :Utils.defaultFunction,
"trnmod.cipmod.ddbhao" :Utils.defaultFunction,
"infcon.sepdelflg" :Utils.defaultFunction,
"infcon.setflg" :Utils.defaultFunction,
"infcon.smhdatfrom" :Utils.defaultFunction,
"infcon.smhdir" :Utils.defaultFunction,
"infcon.chktrn" :Utils.defaultFunction,
"infcon.smhdatto" :Utils.defaultFunction,
"infcon.smhcortyp" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
"trnmod.cipmod.cskfzh" :Utils.defaultFunction,
"infcon.ord.inr" :Utils.defaultFunction,
"infcon.seatrninr" :Utils.defaultFunction,
"infcon.seabucdatto" :Utils.defaultFunction,
"infcon.seabucdatfro" :Utils.defaultFunction,
"trnmod.cipmod.feecod" :Utils.defaultFunction,
"infcon.trnstm" :Utils.defaultFunction,
"infcon.diasta" :Utils.defaultFunction,
"infcon.diadatfrom" :Utils.defaultFunction,
"infcon.diadatto" :Utils.defaultFunction,
"trnmod.cipmod.ddmisu" :Utils.defaultFunction,
"infcon.fcpdsp" :Utils.defaultFunction,
"trnmod.cipmod.ddmsu1" :Utils.defaultFunction,
"infcon.chksubcon" :Utils.defaultFunction,
"infcon.chktrnsta" :Utils.defaultFunction,
"trnmod.cipmod.covflg" :Utils.defaultFunction,
"infcon.cbctxt" :Utils.defaultFunction,
"infcon.ordstm" :Utils.defaultFunction,
"trnmod.cipmod.cfkzjl" :Utils.defaultFunction,
"infcon.ord.extkey" :Utils.defaultFunction,
"trnmod.cipmod.cfkfzh" :Utils.defaultFunction,
"trnmod.cipmod.cskzjl" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
console.log("111111111111",rtnmsg);
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfconButshw(){
let rtnmsg = await this.executeRule("infcon.butshw")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfconButshword(){
let rtnmsg = await this.executeRule("infcon.butshword")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOrdp0Butore(){
let rtnmsg = await this.executeRule("ordp0.butore")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOrdp0Butsmh(){
let rtnmsg = await this.executeRule("ordp0.butsmh")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxmdtetagm06Buttxmsel(){
let rtnmsg = await this.executeRule("txmdtetagm06.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxmdtetagm07Buttxmsel(){
let rtnmsg = await this.executeRule("txmdtetagm07.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxmdtetagm08Buttxmsel(){
let rtnmsg = await this.executeRule("txmdtetagm08.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSetinsButtxmsel(){
let rtnmsg = await this.executeRule("setins.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
if(!opndatfrom || opndatfrom == ''){
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if(!opndatto || opndatto == ''){
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleReset() {
this.model.infcon.seaownref = ""
this.model.infcon.opndatfrom = "";
// this.model.infcon.opndatfrom = new Date();
// this.model.infcon.opndatto = new Date();
this.model.infcon.opndatto = "";
this.model.infcon.nam = "";
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.pty.nam = "";
this.model.infcon.seapty = "";
this.model.infcon.searol = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.seasta = "";
this.model.infcon.seacur = "";
this.model.infcon.seaamtfr = "";
this.model.infcon.seaamtto = "";
this.model.seadoctypcod = "";
},
}
\ No newline at end of file
...@@ -24,16 +24,13 @@ ...@@ -24,16 +24,13 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Infccd from "~/model/Infccd"; import Infccd from "~/model/Infccd";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Infccd/Check";
import Default from "~/model/Infccd/Default";
import Pattern from "~/model/Infccd/Pattern";
import Infsea from "./Infsea"; import Infsea from "./Infsea";
import event from "../event"
export default { export default {
name: "Infccd",
components: { components: {
"m-infsea": Infsea, "m-infsea": Infsea,
}, },
...@@ -42,39 +39,38 @@ export default { ...@@ -42,39 +39,38 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [event], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "", tabVal: "infsea",
trnName: "infccd", trnName: "infccd",
model: new Infccd().data, model: new Infccd().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
...CodeTable, ...CodeTable,
}, },
}; };
}, },
methods: { methods: {},
myTabClick(tab) { created: async function () {}
this.tabClick(tab); // methods: {
/** // myTabClick(tab) {
* do it yourself // this.tabClick(tab);
**/ // /**
}, // * do it yourself
}, // **/
created: async function () { // },
console.log("进入infccd交易"); // },
let rtnmsg = await this.init({}); // created: async function () {
if (rtnmsg.respCode == SUCCESS) { // console.log("进入infccd交易");
this.updateModel(rtnmsg.data); // let rtnmsg = await this.init({});
//TODO 处理数据逻辑 // if (rtnmsg.respCode == SUCCESS) {
} else { // this.updateModel(rtnmsg.data);
this.$notify.error({ title: "错误", message: "服务请求失败!" }); // //TODO 处理数据逻辑
} // } else {
}, // this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
// },
}; };
</script> </script>
<style> <style>
......
...@@ -84,6 +84,7 @@ const Business = [ ...@@ -84,6 +84,7 @@ const Business = [
{ path: 'bctacc', component: () => import('~/business/bctacc/views'), name: 'bctacc', meta: { title: '进口代收承兑' }}, { path: 'bctacc', component: () => import('~/business/bctacc/views'), name: 'bctacc', meta: { title: '进口代收承兑' }},
{ path: 'bctame', component: () => import('~/business/bctame/views'), name: 'bctame', meta: { title: '进口代收修改' }}, { path: 'bctame', component: () => import('~/business/bctame/views'), name: 'bctame', meta: { title: '进口代收修改' }},
{ path: 'bctrad', component: () => import('~/business/bctrad/views'), name: 'bctrad', meta: { title: '进口代收二次收单' }}, { path: 'bctrad', component: () => import('~/business/bctrad/views'), name: 'bctrad', meta: { title: '进口代收二次收单' }},
{ path: 'infccd', component: () => import('~/business/infccd/views'), name: 'infccd', meta: { title: '光票托收入口交易' }},
] ]
export default Business export default Business
\ No newline at end of file
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