Commit 0e58bfb9 by lianyang

待经办列表为传入状态加更改按钮跳转到sptrou交易

parent 306f1e82
...@@ -6,74 +6,45 @@ import Api from "~/service/Api"; ...@@ -6,74 +6,45 @@ import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
"sptstm": defaultSptstm, "sptstm" :Utils.defaultFunction,
"dlaxq": defaultDlaxq, "dlaxq" :Utils.defaultFunction,
"usfmod.labtxt": defaultUsfmodLabtxt, "usfmod.labtxt" :Utils.defaultFunction,
"usfmod.flt": defaultUsfmodFlt, "usfmod.flt" :Utils.defaultFunction,
"usfmod.shwflt": defaultUsfmodShwflt, "usfmod.shwflt" :Utils.defaultFunction,
"dlmft": defaultDlmft, "dlmft" :Utils.defaultFunction,
"butimg": defaultButimg, "butimg" :Utils.defaultFunction,
"dflg": defaultDflg, "dflg" :Utils.defaultFunction,
"yptinf": defaultYptinf, "yptinf" :Utils.defaultFunction,
"usfmod.usr.extkey": defaultUsfmodUsrExtkey, "usfmod.usr.extkey" :Utils.defaultFunction,
"chkinc": defaultCheckbox, "chkinc" :Utils.defaultFunction,
"chkdzt": defaultCheckbox, "chkdzt" :Utils.defaultFunction,
"chkpen": defaultCheckbox, "chkpen" :Utils.defaultFunction,
"chkcor": defaultCheckbox, "chkcor" :Utils.defaultFunction,
"chkaut": defaultCheckbox, "chkaut" :Utils.defaultFunction,
"chkdel": defaultCheckbox, "chkdel" :Utils.defaultFunction,
"chktco": updateTable, "chktco" :Utils.defaultFunction,
// "chkcan": updateTable, // "chkcan": updateTable,
} }
function defaultSptstm() { // function defaultCheckbox(rule, value, callback) {
// const that = this;
} // if (that.model[rule.field] === "") {
function defaultDlaxq() { // return
} // }
function defaultUsfmodLabtxt() { // if(that.model[rule.field] === false){
} // that.model[rule.field] = "";
function defaultUsfmodFlt() { // }
} // that.executeDefault("sptstm").then(res => {
function defaultUsfmodShwflt() { // //TODO 处理数据逻辑
} // that.$refs.Menu.stmData.data = res.data.sptstm.rows;
function defaultDlmft() { // })
}
function defaultButimg() {
}
async function defaultDflg() {
const that = this;
that.executeDefault("dflg").then(res => {
that.model.dflg = res.data.dflg;
})
}
async function defaultYptinf() {
const that = this;
that.executeDefault("yptinf").then(res => {
//TODO 处理数据逻辑
})
}
function defaultUsfmodUsrExtkey() {
}
function defaultCheckbox(rule, value, callback) {
const that = this;
if (that.model[rule.field] === "") {
return
}
if(that.model[rule.field] === false){
that.model[rule.field] = "";
}
that.executeDefault("sptstm").then(res => {
//TODO 处理数据逻辑
that.$refs.Menu.stmData.data = res.data.sptstm.rows;
})
} // }
function updateTable(rule, value, callback){ // function updateTable(rule, value, callback){
const that = this; // const that = this;
if (that.model[rule.field] === true && that.$refs.Menu.stmData.columns[3] === "7 6 \"Creation\" 101 20 DateTime 1") { // if (that.model[rule.field] === true && that.$refs.Menu.stmData.columns[3] === "7 6 \"Creation\" 101 20 DateTime 1") {
that.$refs.Menu.stmData.columns.splice(3, 0, "18 5 \"MT\" 100"); // that.$refs.Menu.stmData.columns.splice(3, 0, "18 5 \"MT\" 100");
} // }
if (that.model[rule.field] === false && that.$refs.Menu.stmData.columns[3] === "18 5 \"MT\" 100") { // if (that.model[rule.field] === false && that.$refs.Menu.stmData.columns[3] === "18 5 \"MT\" 100") {
that.$refs.Menu.stmData.columns.splice(3, 1); // that.$refs.Menu.stmData.columns.splice(3, 1);
} // }
} // }
...@@ -99,6 +99,31 @@ export default { ...@@ -99,6 +99,31 @@ export default {
//} //}
}, },
async onChange(row, scope) {
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == SUCCESS) {
//var cacheFileName = rtnmsg.data.cacheFileName;
// showGridPromptDialog('rou')
this.model.selsptinr = row['INR'];
const selIds = [];
selIds.push(row['IDX']);
let params = { selDst: "sptstm", selIds: selIds };
let rtnmsg = await this.executeRule("rou", params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
// let trnName = row.交易代码.toLowerCase();
let trnName = "sptrou";
// let viewurl = "/business/ditopn?selsptinr=" + row[0];
//let viewurl = "/business/"+trnName+"?selsptinr=" + row['INR'];
this.$router.push({ name: trnName.charAt(0).toUpperCase() + trnName.substring(1), params: { prePageId: this.model.pageId } });
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
//}
},
async handleReset() { async handleReset() {
this.model.chkinc = ""; this.model.chkinc = "";
this.model.chkdzt = ""; this.model.chkdzt = "";
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="" prop="srvprtm.prtmod.cltprtflg"> <el-form-item label="" prop="chgetyprt">
<c-checkbox v-model="model.chgetyprt" <c-checkbox v-model="model.chgetyprt"
>实体更改时打印消息</c-checkbox >实体更改时打印消息</c-checkbox
> >
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
v-model="model.srvprtm.prtmod.cltprtflg" v-model="model.srvprtm.prtmod.cltprtflg"
style="width: 100%" style="width: 100%"
placeholder="请选择客户端打印" placeholder="请选择客户端打印"
:code="codes.cltprtflg"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
v-model="model.srvprtm.prt.tef" v-model="model.srvprtm.prt.tef"
style="width: 100%" style="width: 100%"
placeholder="请选择技术表格" placeholder="请选择技术表格"
:code="codes.tef"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -48,6 +50,7 @@ ...@@ -48,6 +50,7 @@
v-model="model.srvprtm.prt.getprt" v-model="model.srvprtm.prt.getprt"
style="width: 100%" style="width: 100%"
placeholder="请选择默认打印机来自" placeholder="请选择默认打印机来自"
:code="codes.getprt"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -60,6 +63,13 @@ ...@@ -60,6 +63,13 @@
style="width: 100%" style="width: 100%"
placeholder="请选择打印机" placeholder="请选择打印机"
> >
<el-option
v-for="item in prt"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -71,6 +81,13 @@ ...@@ -71,6 +81,13 @@
style="width: 100%" style="width: 100%"
placeholder="请选择Paperbin" placeholder="请选择Paperbin"
> >
<el-option
v-for="item in bin"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -82,6 +99,13 @@ ...@@ -82,6 +99,13 @@
style="width: 100%" style="width: 100%"
placeholder="请选择Bin for 2nd Page" placeholder="请选择Bin for 2nd Page"
> >
<el-option
v-for="item in bin"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -108,7 +132,20 @@ export default { ...@@ -108,7 +132,20 @@ export default {
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {}; return {
bin: [
{ label: "Bin", value: "Bin" },
],
prt: [
{ label: "导出为WPS PDF", value: "导出为WPS PDF" },
{ label: "OneNote (Desktop)", value: "OneNote (Desktop)" },
{ label: "Microsoft XPS Document Writer", value: "Microsoft XPS Document Writer" },
{ label: "Microsoft Print to PDF", value: "Microsoft Print to PDF" },
{ label: "Fax", value: "Fax" },
{ label: "Adobe PDF", value: "Adobe PDF" },
{ label: "", value: "" },
],
};
}, },
methods: { ...Event }, methods: { ...Event },
created: function () {}, created: function () {},
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
v-model="model.spt.sta" v-model="model.spt.sta"
style="width: 100%" style="width: 100%"
placeholder="请选择类型" placeholder="请选择类型"
:code="codes.sptrelstatus"
disabled disabled
> >
</c-select> </c-select>
...@@ -113,15 +114,17 @@ ...@@ -113,15 +114,17 @@
v-model="model.spt.usr" v-model="model.spt.usr"
maxlength="8" maxlength="8"
placeholder="请输入经办柜员" placeholder="请输入经办柜员"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="创建时间" prop="spt.dattim" label-width="60px"> <el-form-item label="创建时间" prop="spt.dattim" label-width="80px">
<c-input <c-input
v-model="model.spt.dattim" v-model="model.spt.dattim"
placeholder="请输入创建时间" placeholder="请输入创建时间"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -169,7 +172,7 @@ ...@@ -169,7 +172,7 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <!-- <c-col :span="12">
<el-form-item label="" prop="recpan.atpget.sdamod.seainf" label-width="10px"> <el-form-item label="" prop="recpan.atpget.sdamod.seainf" label-width="10px">
<c-input <c-input
v-model="model.recpan.atpget.sdamod.seainf" v-model="model.recpan.atpget.sdamod.seainf"
...@@ -177,6 +180,15 @@ ...@@ -177,6 +180,15 @@
disabled disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> -->
<c-col :span="12">
<el-form-item label="" prop="recpan.atptxt" label-width="10px">
<c-input
v-model="model.recpan.atptxt"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -187,7 +199,7 @@ ...@@ -187,7 +199,7 @@
v-model="model.spt.wrkgrp" v-model="model.spt.wrkgrp"
style="width: 100%" style="width: 100%"
placeholder="请选择虚拟机构" placeholder="请选择虚拟机构"
:code="sptWrkgrp" :code="getValues('spt.wrkgrp')"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -212,6 +224,7 @@ ...@@ -212,6 +224,7 @@
v-model="model.spt.infdsp" v-model="model.spt.infdsp"
style="width: 100%" style="width: 100%"
placeholder="请选择消息文本" placeholder="请选择消息文本"
:code="codes.infdsp"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -223,6 +236,7 @@ ...@@ -223,6 +236,7 @@
v-model="model.spt.cretrn" v-model="model.spt.cretrn"
maxlength="6" maxlength="6"
placeholder="请输入创建交易id" placeholder="请输入创建交易id"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -246,7 +260,7 @@ export default { ...@@ -246,7 +260,7 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
sptWrkgrp: [] // sptWrkgrp: []
}; };
}, },
methods: { ...Event, methods: { ...Event,
......
...@@ -4,29 +4,28 @@ ...@@ -4,29 +4,28 @@
type="primary" type="primary"
@click="handleSave">save</el-button> --> @click="handleSave">save</el-button> -->
<!-- <el-button size="small" @click="handletak">tak</el-button> --> <!-- <el-button size="small" @click="handletak">tak</el-button> -->
<div class="m-Btn-eContainer">
<div class="m-funcBtn-eContainer">
<el-button size="small" type="primary" @click="handleSave">{{ $t('buttons.submit') }}</el-button>
<el-button size="small" @click="handleCancel">{{ $t('buttons.quit') }}</el-button>
</div>
</div>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" size="small" :validate-on-rule-change="false"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000052 --> <!--PD000052 -->
<el-tab-pane label="项目概述" name="sptroup" v-if="false"> <el-tab-pane label="项目概述" name="sptroup" v-if="false">
<m-sptroup :model="model" :codes="codes"/> <c-content>
<m-sptroup :model="model" :codes="codes"/>
</c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000035 --> <!--PD000035 -->
<el-tab-pane label="待定项目" name="sptnegp"> <el-tab-pane label="待定项目" name="sptnegp">
<m-sptnegp ref="sptnegp" :model="model" :codes="codes"/> <c-content>
<m-sptnegp ref="sptnegp" :model="model" :codes="codes"/>
</c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000090 --> <!--PD000090 -->
<el-tab-pane label="配置打印以重新路由" name="prtcfg"> <el-tab-pane label="配置打印以重新路由" name="prtcfg">
<m-prtcfg :model="model" :codes="codes"/> <c-content>
<m-prtcfg :model="model" :codes="codes"/>
</c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
...@@ -38,6 +37,18 @@ ...@@ -38,6 +37,18 @@
> >
</c-grid-ety-prompt-dialog> </c-grid-ety-prompt-dialog>
</el-form> </el-form>
<div class="m-Btn-eContainer">
<div class="m-funcBtn-eContainer">
<el-button size="small" type="primary" @click="handleSave">{{ $t('buttons.submit') }}</el-button>
<el-button size="small" @click="handleStash">{{ $t('buttons.stash') }}</el-button>
<el-button size="small" @click="handleCancel">{{ $t('buttons.quit') }}</el-button>
</div>
</div>
<!-- <c-function-btn
:handleSubmit="handleSubmit"
:handleStash="handleStash"
>
</c-function-btn> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -45,6 +56,7 @@ import Api from "~/service/Api" ...@@ -45,6 +56,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Sptrou from "~/model/Sptrou" import Sptrou from "~/model/Sptrou"
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Sptrou/Check" import Check from "~/model/Sptrou/Check"
import Default from "~/model/Sptrou/Default" import Default from "~/model/Sptrou/Default"
import Pattern from "~/model/Sptrou/Pattern" import Pattern from "~/model/Sptrou/Pattern"
...@@ -65,7 +77,7 @@ export default { ...@@ -65,7 +77,7 @@ export default {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "sptnegp", tabVal: "sptnegp",
...@@ -85,7 +97,7 @@ export default { ...@@ -85,7 +97,7 @@ export default {
}, },
async handleSave(){ async handleSave(){
let rtnmsg = await this.executeRule("sav") let rtnmsg = await this.executeRule("sav")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS && Object.keys(rtnmsg.fieldErrors).length==0)
{ {
this.$notify({ this.$notify({
title: "成功", title: "成功",
...@@ -98,14 +110,46 @@ export default { ...@@ -98,14 +110,46 @@ export default {
//修改待复核界面刷新状态为需要刷新 //修改待复核界面刷新状态为需要刷新
this.$store.commit("setLoadingFreshSptsel", true) this.$store.commit("setLoadingFreshSptsel", true)
}); });
}else if (rtnmsg.fieldErrors && Object.keys(rtnmsg.fieldErrors).length > 0) {
} const tab = this.showBackendErrors(rtnmsg.fieldErrors)
else if (tab) {
// tab切换之后,需出发tab-click的事件
this.tabClick(tab);
}
this.$notify({
title: "错误",
message: "检核失败!",
type: "error",
});
} else
{ {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
handleCancel: function() {
this.$confirm("确认退出?", "", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning"
})
.then(res => {
// this.$router.back();
this.$store.dispatch("TagsView/delView", this.$route)
this.handleExit && this.handleExit()
if (this.$route.query && this.$route.query.routeParams) {
setTimeout(() => {
this.$router.back()
}, 500)
}
else {
setTimeout(() => {
this.$router.push('/home')
}, 500)
}
})
.catch(() => {});
},
handletak(){ handletak(){
}, },
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true"> <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<el-table-column fixed="right" prop="op" label="操作" width="165px" > <el-table-column fixed="right" prop="op" label="操作" width="250px" >
<template slot="header"> <template slot="header">
<c-col :span="11" style="text-align:center"><span>操作</span></c-col> <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
</template> </template>
...@@ -108,6 +108,8 @@ ...@@ -108,6 +108,8 @@
</c-button> </c-button>
<c-button style="margin-left: 5px" size="small" type="primary" @click="continueEdit(scope.row)">处理 <c-button style="margin-left: 5px" size="small" type="primary" @click="continueEdit(scope.row)">处理
</c-button> </c-button>
<c-button style="margin-left: 5px" size="small" @click="onChange(scope.row)" :disabled="scope.row.状态!='INC'">更改
</c-button>
<el-popover placement="top-start" width="50" trigger="click"> <el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list"> <ul class="table-button-item-list">
......
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