Commit 14b10421 by 吴佳
parents e76fc2e0 a5d7560e
{
"presets": ["vue-app"]
"presets": ["vue-app"],
"plugins": [
["transform-es2015-modules-commonjs", {
"allowTopLevelThis": true
}]
]
}
......@@ -865,7 +865,7 @@
},
"babel-plugin-transform-strict-mode": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz",
"resolved": "https://registry.npm.taobao.org/babel-plugin-transform-strict-mode/download/babel-plugin-transform-strict-mode-6.24.1.tgz",
"integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=",
"dev": true,
"requires": {
......
......@@ -29,6 +29,7 @@
"autoprefixer": "^6.6.0",
"babel-core": "^6.24.1",
"babel-loader": "^6.4.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-preset-vue-app": "^1.2.0",
"css-loader": "^0.27.0",
"file-loader": "^0.10.1",
......
......@@ -212,6 +212,13 @@
.el-checkbox__label {
font-size: 12px;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: #1561E0;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
background-color: #1561E0;
border-color: #1561E0;
}
.c-title {
/* color: rgba(0, 0, 0, 0.65); */
/* font-weight: 600; */
......
<template>
<div class="bus-button">
<c-button type="primary" v-on:click="save">{{ $t('buttons.submit') }}</c-button>
<c-button type="primary" v-on:click="pedding">{{ $t('buttons.stash') }}</c-button>
<c-button type="primary" v-on:click="check">{{ $t('buttons.check') }}</c-button>
<c-button v-on:click="exit">{{ $t('buttons.quit') }}</c-button>
</div>
<div class="bus-button">
<c-button type="primary" v-on:click="save">{{
$t("buttons.submit")
}}</c-button>
<c-button type="primary" v-on:click="pedding">{{
$t("buttons.stash")
}}</c-button>
<c-button type="primary" v-on:click="check">{{
$t("buttons.check")
}}</c-button>
<c-button v-on:click="exit">{{ $t("buttons.quit") }}</c-button>
</div>
</template>
<script>
import commonApi from "~/mixin/commonApi"
import Utils from "~/utils"
import commonApi from "~/mixin/commonApi";
import Utils from "~/utils";
export default {
props:["$pntvm"],
data(){
return{
props: ["$pntvm"],
data() {
return {};
},
methods: {
async save() {
console.log(123);
let vm = this.getVM();
let result = await vm.save();
console.log(result);
// if (result.respCode == SUCCESS) {
// this.$notify({
// title: '成功',
// message: '保存成功',
// type: 'success'
// });
// this.$router.history.push("/business/trnrel")
// } else {
// }
if (
result.respCode == SUCCESS &&
Object.keys(result.fieldErrors).length == 0
) {
this.$notify({
title: "成功",
message: "保存成功",
type: "success",
});
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", "trnrel");
});
} else if (
result.fieldErrors &&
Object.keys(result.fieldErrors).length > 0
) {
let errorMsg = "";
let errorMsgkey = "";
let errorMsgVal = "";
for (const key in result.fieldErrors) {
errorMsgkey = key;
errorMsgVal = result.fieldErrors[key];
errorMsg = errorMsg + errorMsgkey + ":" + errorMsgVal + ";";
}
this.$notify.error({
title: "失败",
message: "保存失败!错误信息[" + errorMsg + "]",
});
} else {
this.$notify({
title: "失败",
message: "保存失败",
type: "error",
});
}
},
async pedding() {
let result = await this.getVM().pedding();
console.log(result);
if (result.respCode == SUCCESS) {
this.$notify({
title: "成功",
message: "暂存成功",
type: "success",
});
this.$router.history.push("/business/sptsel");
} else {
this.$notify({
title: "失败",
message: "暂存失败",
type: "error",
});
}
},
methods:{
async save(){
console.log(123)
let vm = this.getVM();
let result = await vm.save()
console.log(result)
if (result.respCode == SUCCESS) {
this.$notify({
title: '成功',
message: '保存成功',
type: 'success'
});
this.$router.history.push("/business/trnrel")
} else {
this.$notify({
title: '失败',
message: '保存失败',
type: 'error'
});
}
},
async pedding(){
let result = await this.getVM().pedding()
console.log(result)
if (result.respCode == SUCCESS) {
this.$notify({
title: '成功',
message: '暂存成功',
type: 'success'
});
this.$router.history.push("/business/sptsel")
} else {
this.$notify({
title: '失败',
message: '暂存失败',
type: 'error'
});
}
},
async check(){
let result = await this.getVM().checkAll()
if(result.respCode != SUCCESS) {
this.$notify.error({title: '错误',message: result.respMsg});
} else {
// 清除之前的校验状态
this.getVM().$refs.modelForm.clearValidate()
const fields = this.getVM().$refs.modelForm.fields
const fieldErrors = result.fieldErrors;
this.getVM().updateModel(result.data)
Utils.positioningErrorMsg(fieldErrors, fields)
const tab = Utils.positioningErrorMsg(fieldErrors, fields);
if(tab) {
// tab切换之后,需出发tab-click的事件
this.getVM().tabClick(tab);
}
}
},
exit(){
this.$confirm('您有未保存的数据,确定退出吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=>{
this.$router.history.push("/home")
})
},
getVM(){
return this.$pntvm
async check() {
let result = await this.getVM().checkAll();
if (result.respCode != SUCCESS) {
this.$notify.error({ title: "错误", message: result.respMsg });
} else {
// 清除之前的校验状态
this.getVM().$refs.modelForm.clearValidate();
const fields = this.getVM().$refs.modelForm.fields;
const fieldErrors = result.fieldErrors;
this.getVM().updateModel(result.data);
Utils.positioningErrorMsg(fieldErrors, fields);
const tab = Utils.positioningErrorMsg(fieldErrors, fields);
if (tab) {
// tab切换之后,需出发tab-click的事件
this.getVM().tabClick(tab);
}
}
}
}
},
exit() {
this.$confirm("您有未保存的数据,确定退出吗, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
this.$router.history.push("/home");
});
},
getVM() {
return this.$pntvm;
},
},
};
</script>
<style>
.bus-button {
margin-bottom: 10px;
margin-bottom: 10px;
}
.bus-button :first-child {
margin-left: 0;
margin-left: 0;
}
</style>
\ No newline at end of file
......@@ -17,7 +17,7 @@ export default {
],
"didgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项", trigger: 'blur'},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -30,7 +30,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"didgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项", trigger: 'blur'},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -95,7 +95,7 @@ export default {
"bddgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项", trigger: 'blur'},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -174,12 +174,6 @@ export default {
],
"bddgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bddgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
......
......@@ -54,6 +54,7 @@ export default {
}
},
async onDetails() {
this.detailDialog=true;
let rtnmsg = await this.executeRule("details")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -145,6 +146,30 @@ export default {
type: 'success'
});
}
}
},
async onSptpButord(){
let rtnmsg = await this.executeRule("sptp.butord")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSptpButcls(){
let rtnmsg = await this.executeRule("sptp.butcls")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
......@@ -47,6 +47,66 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"spt.objnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"spt.inr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"spt.txt":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"spt.frm":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"spt.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"spt.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"spt.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"spt.dattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"spt.cretrn":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"spt.tardattim":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"sptp.smh.msgtyp":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"sptp.smh.sndkey":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"sptp.smh.relcur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"sptp.smh.relamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
......@@ -35,6 +35,31 @@ export default class Sptsel {
chktco: "", // 网银 .chktco
chkcan: "", // 归档 .chkcan
chkdzt: "", // E-Trade .chkdzt
pageId: "", // ctx的key
spt:{
sta:"", // Type .spt.sta
hldflg:"", // Hold Flag .spt.hldflg
objnam:"", // Reference .spt.objnam
inr:"", // Internal Unique ID of Pending Transaction .spt.inr
txt:"", // Name .spt.txt
frm:"", // Transaction .spt.frm
ownusr:"", // Responsible User .spt.ownusr
ownusg:"", // Responsible Group .spt.ownusg
inftxt:"", // Infotext .spt.inftxt
infdsp:"", // Infotext .spt.infdsp
usr:"", // Entered by .spt.usr
dattim:"", // Time of Creation .spt.dattim
cretrn:"", // Creating Transaction ID .spt.cretrn
tardattim:"", // Target for Completion .spt.tardattim
},
sptp:{
smh:{
msgtyp:"", // Message Type .sptp.smh.msgtyp
sndkey:"", // Receiver Key .sptp.smh.sndkey
relcur:"", // Relevant Amount .sptp.smh.relcur
relamt:"", // Relevant Amount Optional .sptp.smh.relamt
},
},
pageId: "" // ctx的key
}
}
......
......@@ -99,6 +99,11 @@ export default {
this.$router.push({ path: viewurl, query: { routeParams: { process: "1", commitFlag: "1" }, trn: row['INR'], idx: idx, operateId: operateId } });
},
async onDetail(idx, row) {
this.Trnp0Visible = true;
},
async onRelrow(idx) {
this.$confirm('您确定复核该笔交易?', '提示', {
confirmButtonText: '确定',
......@@ -152,8 +157,9 @@ export default {
for (const key in rtnmsg.fieldErrors) {
errorMsgkey = key;
errorMsgVal = rtnmsg.fieldErrors[key];
errorMsg = errorMsg + errorMsgkey + ':' + errorMsgVal + ";";
}
errorMsg = errorMsgkey + ':' + errorMsgVal;
} else if (rtnmsg.respMsg) {
errorMsg = rtnmsg.respMsg;
}
......@@ -361,22 +367,31 @@ export default {
const res = await this.executeRule("searow")
const arr=[];
res.data.trncorco_trnstm.rows.forEach(element => {
switch(element.charAt(0)){
case 'W':
arr.push("Waiting"+element.substring(1));
break;
case 'C':
arr.push("Correct"+element.substring(1));
break;
case 'P':
arr.push("Picked up" + element.substring(1)) ;
break;
case 'N':
arr.push("Rejected" + element.substring(1)) ;
break;
default:
arr.push(element);
break;
switch (element.charAt(0)) {
case 'W':
arr.push("Waiting" + element.substring(1));
break;
case 'C':
arr.push("Correct" + element.substring(1));
break;
case 'P':
arr.push("Picked up" + element.substring(1));
break;
case 'N':
arr.push("Rejected" + element.substring(1));
break;
case 'E':
arr.push("Entered" + element.substring(1));
break;
case 'X':
arr.push("External" + element.substring(1));
break;
case 'M':
arr.push("Closed" + element.substring(1));
break;
default:
arr.push(element);
break;
}
});
that.$refs.inftrnps.stmData.data = arr;
......@@ -388,6 +403,8 @@ export default {
type: 'success'
});
}
this.$refs.paramsForm.clearValidate();
Utils.positioningErrorMsg(res.fieldErrors, this.$refs.paramsForm.fields)
},
async handleReset() {
......
import Utils from "~/utils";
const state = {
operateFuns: {},
};
......@@ -18,7 +20,7 @@ const actions = {
setOperateFuns({ commit }, funs) {
return new Promise(resolve => {
// const id = Symbol("transaction-id");
const id = new Date().valueOf();
const id = Utils.generateUUID();
commit('ADD_OPERATE_FUN', { id, funs })
resolve(id)
});
......
......@@ -231,4 +231,18 @@ export default class Utils {
}
}
}
static generateUUID() {
var d = new Date().getTime();
if (window.performance && typeof window.performance.now === "function") {
d += performance.now(); //use high-precision timer if available
}
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
return uuid;
}
}
\ No newline at end of file
......@@ -91,6 +91,7 @@
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"
import Bdtset from "~/model/Bdtset"
import CommonProcess from "~/mixin/CommonProcess"
......@@ -179,21 +180,26 @@ export default {
},
created:async function(){
console.log("进入bdtset交易");
console.log(new Bdtset().data)
let rtnmsg = await this.init({})
let that = this;
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
that.$refs.utlp.stmData.data=rtnmsg.data.liaall_tenstm.rows
//TODO 处理数据逻辑
console.log("进入bdtset交易");
let rtnmsg = await this.init(this.$route.query)
let that = this;
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
console.log(rtnmsg)
Utils.copyValueFromVO(this.model,rtnmsg.data)
that.$refs.utlp.stmData.data=rtnmsg.data.liaall_tenstm.rows
console.log(this.model);
if(this.isInDisplay){
this.restoreDisplay()
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
......
......@@ -735,7 +735,7 @@ export default {
});
},
isShowDocpre(val){
this.$emit("changeShowDocpre", val)
this.$emit("changeShowDocpre", val);
},
},
created: function () {},
......
<template>
<c-page title="到单">
<div class="eContainer">
<c-bus-button :$pntvm="this"></c-bus-button>
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
<el-form
:model="model"
:rules="rules"
......@@ -76,6 +82,7 @@ import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Ditdck from "~/model/Ditdck";
import CommonProcess from "~/mixin/CommonProcess";
import CommonFuncs from "~/mixin/CommonFuncs";
import Pattern from "~/model/Ditdck/Pattern";
import Default from "~/model/Ditdck/Default";
import Check from "~/model/Ditdck/Check";
......@@ -113,7 +120,7 @@ export default {
root: this,
};
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
mixins: [CommonProcess, CommonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
isShowDocpre:false,
......@@ -134,30 +141,33 @@ export default {
},
created: async function () {
// console.log("进入ditdck交易");
// let rtnmsg = await this.init(this.$route.query)
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
// console.log(rtnmsg)
// Utils.copyValueFromVO(this.model,rtnmsg.data)
// console.log(this.model);
// if(this.isInDisplay){
// this.restoreDisplay()
// }
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
console.log("进入ditdck交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
let rtnmsg = await this.init(this.$route.query)
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
console.log(rtnmsg)
Utils.copyValueFromVO(this.model,rtnmsg.data)
console.log(this.model);
if(this.isInDisplay){
this.restoreDisplay()
}
}
if(this.model.bddgrp.rec.dscinsflg == "X"){
this.isShowDocpre = true;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
// console.log("进入ditdck交易");
// let rtnmsg = await this.init({});
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
},
methods: {
changeShowDocpre(val) {
......
......@@ -297,7 +297,7 @@
:list="stmData.data"
:columns="saveColumnFlg ? stmData.columns : saveColumns"
>
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<el-table-column fixed="right" prop="op" label="操作" width="165px">
<template slot="header">
<c-col :span="11" style="text-align: left"
><span>操作</span></c-col
......@@ -314,12 +314,19 @@
>详情
</c-button>
<c-button
style="margin-left: 0"
style="margin-left: 0;padding:0 12px"
size="small"
type="primary"
@click="continueEdit(scope.row)"
>处理
>TAKE
</c-button>
<el-popover placement="left" width="100" trigger="click">
<c-button type="primary" size="small">指派</c-button>
<c-button type="primary" size="small">删除</c-button>
<!-- <el-button slot="reference" type="text">>>></el-button> -->
<a slot="reference" href="javascript:void(0)" style="text-decoration: none; color: #1561e0;font-family: '宋体';font-weight: bold;font-size: 14px;">>>></a
>
</el-popover>
</template>
</el-table-column>
</c-istream-table>
......@@ -327,35 +334,30 @@
</el-row>
<el-dialog
class="showColumnDialog"
:visible.sync="setColumnFlg"
:title="'自定义列属性'"
append-to-body
appenD-to-body
>
<el-form-item label-width="0">
<el-checkbox v-model="setColumn.column1.value">交易代码</el-checkbox>
<el-checkbox v-model="setColumn.column2.value">业务编号</el-checkbox>
<el-checkbox v-model="setColumn.column3.value">交易名称</el-checkbox>
<el-checkbox v-model="setColumn.column4.value">状态</el-checkbox>
<el-checkbox v-model="setColumn.column5.value">报文类型</el-checkbox>
<el-checkbox v-model="setColumn.column6.value">对方银行BIC</el-checkbox>
<el-checkbox v-model="setColumn.column7.value">创建时间</el-checkbox>
<el-checkbox v-model="setColumn.column8.value">币种</el-checkbox>
<el-checkbox v-model="setColumn.column9.value">金额</el-checkbox>
<el-checkbox v-model="setColumn.column10.value">创建人</el-checkbox>
<el-checkbox v-model="setColumn.column11.value"
>当前操作柜员</el-checkbox
>
<el-checkbox v-model="setColumn.column12.value">当前组别</el-checkbox>
<el-checkbox v-model="setColumn.column13.value"
>上次操作柜员</el-checkbox
>
<el-checkbox v-model="setColumn.column14.value">来源</el-checkbox>
<el-checkbox v-model="setColumn.column15.value">提示</el-checkbox>
<el-checkbox v-model="setColumn.column16.value">信息提示</el-checkbox>
<el-checkbox-group v-model="columnGroup" @change="handleColumnChange">
<el-checkbox
v-for="item in setColumn"
:key="item.label"
:label="item.index"
>{{ item.label }}</el-checkbox
>
</el-checkbox-group>
</el-form-item>
<span slot="footer">
<el-checkbox class="cbClass" v-model="selectAll" @change="setAll">全选</el-checkbox>
<el-button type="primary" @click="setColumnEvent">保存</el-button>
<el-checkbox
class="cbClass"
:indeterminate="isIndeterminate"
v-model="selectAll"
@change="setAll"
>全选</el-checkbox
>
<el-button type="primary" @click="saveColumnEvent">保存</el-button>
</span>
</el-dialog>
<!-- <el-row style="margin-top: 2rem">
......@@ -398,6 +400,22 @@
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns"></div>
</el-dialog>
<el-dialog
class="detailDialogClass"
:visible.sync="detailDialog"
:title="'详情面板'"
appenD-to-body
show-close
>
<m-sptpopup :model="model" :codes="codes"></m-sptpopup>
<span slot="footer">
<c-col :span="23" style="margin-top: 5px">
<el-button type="primary" @click="detailDialog = false"
>关闭</el-button
>
</c-col>
</span>
</el-dialog>
</div>
</template>
<script>
......@@ -405,10 +423,14 @@ import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";
import Sptpopup from "./Sptpopup.vue";
export default {
inject: ["root"],
props: ["model", "codes"],
components: {
"m-sptpopup": Sptpopup,
},
mixins: [CommonProcess],
data() {
......@@ -417,9 +439,11 @@ export default {
sourceModel: [],
sourceData: [],
initdialog: false,
detailDialog: false,
setColumnFlg: false,
saveColumnFlg: true,
selectAll: true,
isIndeterminate: false,
transactionStatus: {
busiNo: "",
modTimes: 0,
......@@ -428,24 +452,8 @@ export default {
earnCount: 0,
earnAmt: 0,
},
setColumn: {
column1: { index: 1, value: true },
column2: { index: 2, value: true },
column3: { index: 3, value: true },
column4: { index: 4, value: true },
column5: { index: 5, value: true },
column6: { index: 6, value: true },
column7: { index: 7, value: true },
column8: { index: 8, value: true },
column9: { index: 9, value: true },
column10: { index: 10, value: true },
column11: { index: 11, value: true },
column12: { index: 12, value: true },
column13: { index: 13, value: true },
column14: { index: 14, value: true },
column15: { index: 15, value: true },
column16: { index: 16, value: true },
},
setColumn: [],
columnGroup: [],
stmData: {
columns: [
'4 1 "交易代码" 70 ',
......@@ -489,6 +497,7 @@ export default {
// await this.handleSearch()
// this.$store.commit("setTaskList", {key: "sptsel", val: this.stmData.data.length})
},
methods: {
sourceChangeEvent(val) {
this.sourceData.forEach((s) => {
......@@ -501,29 +510,40 @@ export default {
clounmSetting() {
this.setColumnFlg = true;
},
setColumnEvent() {
saveColumnEvent() {
this.setColumnFlg = false;
this.saveColumnFlg = false;
const arr = [];
for (const o in this.setColumn) {
if (this.setColumn[o].value) {
arr.push(this.stmData.columns[this.setColumn[o].index - 1]);
}
}
this.saveColumns = arr;
this.saveColumns = this.setColumn
.filter((item) => item.value)
.map((item) => this.stmData.columns[item.index]);
},
setAll(val) {
this.columnGroup = val
? this.setColumn.map((item) => {
return item.index;
})
: [];
this.isIndeterminate = false;
},
setAll() {
for (const o in this.setColumn) {
if (this.selectAll) {
this.setColumn[o].value = true;
} else {
this.setColumn[o].value = false;
}
}
handleColumnChange() {
this.selectAll = this.setColumn.length === this.columnGroup.length;
this.isIndeterminate =
this.columnGroup.length > 0 &&
this.columnGroup.length < this.setColumn.length;
},
...Event,
},
created: function () {},
created: function () {
this.setColumn = this.stmData.columns.map((item, index) => {
let begIdx = item.indexOf('"');
let endIdx = item.indexOf('"', begIdx + 1);
let label = item.substring(begIdx + 1, endIdx);
return { label, value: true, index };
});
this.columnGroup = this.setColumn.map((item) => {
return item.index;
});
},
};
</script>
<style scoped>
......@@ -531,9 +551,18 @@ export default {
width: 60px;
font-size: 13px;
}
.cbClass>>> .el-checkbox__label {
.cbClass >>> .el-checkbox__label {
width: 30px;
font-size: 13px;
padding-left: 5px;
}
.showColumnDialog >>> .el-dialog__body {
padding-bottom: 10px;
}
.showColumnDialog >>> .el-dialog__footer {
padding: 0 20px 10px 20px;
}
.detailDialogClass >>> .el-dialog {
height: 400px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="13">
<el-form-item label="Type" prop="spt.sta" style="width:100%">
<c-select v-model="model.spt.sta" style="width:100%" placeholder="请选择Type">
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="Status" prop="spt.hldflg" style="width:100%">
<c-select v-model="model.spt.hldflg" style="width:100%" placeholder="请选择Hold Flag">
</c-select>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label="Reference" prop="spt.objnam" style="width:100%">
<c-input v-model="model.spt.objnam" maxlength="40" style="width:100%" placeholder="请输入Reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="Ident No" prop="spt.inr" style="width:100%">
<c-input v-model="model.spt.inr" maxlength="8" style="width:100%" placeholder="请输入Internal Unique ID of Pending Transaction"></c-input>
</el-form-item>
</c-col>
<c-col :span="23">
<el-form-item label="Name" prop="spt.txt" style="width:100%">
<c-input v-model="model.spt.txt" maxlength="40" style="width:100%" placeholder="请输入Name"></c-input>
</el-form-item>
</c-col>
<c-col :span="23">
<el-form-item label="Transaction " prop="spt.frm">
<c-col :span="8">
<c-input v-model="model.spt.frm" maxlength="6" style="width:95%" placeholder="请输入Transaction "></c-input>
</c-col>
<c-col :span="16">
<c-input v-model="model.spt.frm" maxlength="16" placeholder="请输入Transaction "></c-input>
</c-col>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label="Responsible User " prop="spt.ownusr">
<c-input v-model="model.spt.ownusr" maxlength="8" placeholder="请输入Responsible User "></c-input>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="Responsible Group" prop="spt.ownusg">
<c-select v-model="model.spt.ownusg" style="width:100%" placeholder="请选择Responsible Group">
</c-select>
</el-form-item>
</c-col>
<c-col :span="17">
<el-form-item label="Infotext" prop="spt.inftxt">
<c-input type="textarea" v-model="model.spt.inftxt" maxlength="65" style="width:100%" show-word-limit placeholder="请输入Infotext" ></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="" prop="spt.infdsp" label-width="20px">
<c-select v-model="model.spt.infdsp" style="width:100%;padding-left:0px" placeholder="请选择Infotext">
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="Entered by" prop="spt.usr">
<c-input v-model="model.spt.usr" maxlength="8" placeholder="请输入Entered by"></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="at" prop="spt.dattim" label-width="50px">
<c-input v-model="model.spt.dattim" placeholder="请输入Time of Creation"></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="in TRN" prop="spt.cretrn" label-width="70px">
<c-input v-model="model.spt.cretrn" maxlength="6" placeholder="请输入Creating Transaction ID"></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<c-button size="small" type="primary" @click="onSptpButord">
Order
</c-button>
</c-col> -->
<!-- <c-col :span="13">
<el-form-item label="Target for Completion" prop="spt.tardattim">
<c-input v-model="model.spt.tardattim" placeholder="请输入Target for Completion"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Message Type " prop="sptp.smh.msgtyp">
<c-input v-model="model.sptp.smh.msgtyp" maxlength="20" placeholder="请输入Message Type "></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Receiver Key " prop="sptp.smh.sndkey">
<c-input v-model="model.sptp.smh.sndkey" maxlength="50" placeholder="请输入Receiver Key "></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Relevant Amount" prop="sptp.smh.relcur">
<c-input v-model="model.sptp.smh.relcur" maxlength="3" placeholder="请输入Relevant Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Relevant Amount Optional" prop="sptp.smh.relamt">
<c-input v-model="model.sptp.smh.relamt" placeholder="请输入Relevant Amount Optional"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSptpButcls">
&Close
</c-button>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Sptsel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" tokenKey="modelForm" label-width="170px" size="small" :validate-on-rule-change="false">
<el-form :model="model" :rules="rules" ref="modelForm" tokenKey="modelForm" label-width="140px" size="small" :validate-on-rule-change="false">
<!-- <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick"> -->
<!-- <el-tab-pane :value="tabVal" label="待办任务查询" name="menu"> -->
<!-- <c-content> -->
......
......@@ -27,7 +27,7 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="创建时间" style="width: 100%">
<el-form-item label="创建时间" style="width: 100%" prop="trncorco.inidatfro">
<c-col :span="11">
<c-date-picker
type="date"
......
<template>
<div>
<el-radio-group v-model="model">
<el-radio v-for="item in nodelist" :key="item.value" :label="item.value">{{item.label}}</el-radio>
</el-radio-group>
<p v-if="errShow" style="color: red">{{errMsg}}</p>
</div>
</template>
<script>
import Request from '~/utils/request'
export default {
props: ['txSriNo'],
data: function () {
return {
nodelist: [],
model: '',
errShow: false,
errMsg: ''
}
},
mounted: function () {
console.log('mounted')
this.getList()
},
// watch: {
// 'dialogVisible': function() {
// // if (this.dialogVisible && this.nodelist.length == 0 && this.txSriNo) {
// // this.getList()
// // }
// if (!this.dialogVisible) {
// this.errShow = false
// this.errMsg = ''
// }
// }
// },
methods: {
getList: function () {
Request.get('/v1/pm/process/taskBackQry/'+ this.txSriNo).then(res => {
if (res.code == '000000' && res.data && res.data.length > 0) {
this.nodelist = []
res.data.forEach(item => {
if (item.taskName && item.returnNodeNo) {
this.nodelist.push(
{
label: item.taskName || item.taskDesc || '',
value: item.returnNodeNo || item.taskId || ''
}
)
}
return
})
}
})
},
check: function () {
if (this.model) {
this.errShow = false
this.errMsg = ''
return this.model
} else {
this.errShow = true
this.errMsg = '请选择需要打回的节点'
return false
}
}
}
}
</script>
\ No newline at end of file
export const TaskFlagStatusMap = {
'3': { // 未完成详情
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showRefuse: false,
showAccRefuse: false,
showPass: false,
showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
},
'4': { // 已完成详情
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showRefuse: false,
showAccRefuse: false,
showPass: false,
showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
},
'5': { // 草稿箱进入
showStart: true,
showSubmit: false,
showCheck: true,
showSave: true,
showPass: false,
showRefuse: false,
showAccRefuse: false,
showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
}
}
export const ProcessStatusMap = {
'0': { // 受理中心经办
showStart: false,
showSubmit: true,
showCheck: true,
showSave: true,
showPass: false,
showRefuse: false,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'1': { // 复核
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showPass: true,
showRefuse: true,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
},
'2': { // 单证中心经办
showStart: false,
showSubmit: true,
showCheck: true,
showSave: false,
showPass: false,
showRefuse: true,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'3': { // 受理中心经办 打回
showStart: false,
showSubmit: true,
showCheck: true,
showSave: false,
showPass: false,
showRefuse: false,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'4': { // 单证中心经办 打回
showStart: false,
showSubmit: true,
showCheck: true,
showSave: false,
showPass: false,
showRefuse: true,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'5': { // 人工确认
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showPass: false,
showRefuse: false,
showAccRefuse: true,
// showReSubmit: true,
showReAcc: true,
showCheckAcc: true,
showEdit: false
}
}
export const NoSaveList = [
'public/refMessage/EleMessageReg'
]
\ 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