Commit cf5bcd18 by fukai
parents 978427c7 759b483d
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"cluster": "^0.7.7", "cluster": "^0.7.7",
"element-ui": "^2.13.2", "element-ui": "^2.13.2",
"es6-promise": "^4.2.8", "es6-promise": "^4.2.8",
"lodash": "^4.17.21",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-router": "^3.2.0", "vue-router": "^3.2.0",
"vuex": "^3.4.0" "vuex": "^3.4.0"
......
...@@ -45,12 +45,13 @@ export default { ...@@ -45,12 +45,13 @@ export default {
let data = Utils.flatObject(this.model) let data = Utils.flatObject(this.model)
return Api.post(this.declareParams.trnName+"/pending",{...data,params}) return Api.post(this.declareParams.trnName+"/pending",{...data,params})
}, },
restoreDisplay() async restoreDisplay()
{ {
let inr = this.$route.query.trn let inr = this.$route.query.trn
if(!inr) if(!inr)
return return
let data = Api.post("display/"+inr) let data =await Api.post("display/"+inr)
Utils.copyValueFromVO(this.model,data.data)
console.log(data) console.log(data)
} }
} }
......
import _ from "lodash"
import commonDeclare from "./commonDeclare" import commonDeclare from "./commonDeclare"
import commonApi from "./commonApi" import commonApi from "./commonApi"
export default { export default {
...@@ -17,7 +18,7 @@ export default { ...@@ -17,7 +18,7 @@ export default {
return return
const that = this; const that = this;
Object.keys(that.defaultRules).forEach(key => { Object.keys(that.defaultRules).forEach(key => {
that.$watch("model." + key, that.defaultRules[key]) that.$watch("model." + key, _.debounce(that.defaultRules[key], 1000))
}) })
}, },
ruleCheck() { ruleCheck() {
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
onDitpButgetref() { async onDitpButgetref() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { let rtnmsg = await Api.post("ditopn/executeRule/ditp.butgetref", Utils.flatObject(this.model))
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/ditp_butgetref", Utils.flatObject(this.model)) const ownref = rtnmsg.data.didgrp_rec_ownref
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} const h = this.$createElement;
else { this.$msgbox({
this.$notify.error({ title: '错误', message: '服务请求失败!' }); title: '获取结果',
} message: h('p', null, [
}) h('div', { style: 'margin-left: 25%'}, `参考号:${ownref}`),
h('div', { style: 'margin-left: 25%' }, '是否将结果填入表单?')
]),
showCancelButton: true,
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(action => {
this.model.didgrp.rec.ownref = ownref
this.$message({
type: 'success',
message: '填入成功!'
});
}).catch(action => {
this.$message({
type: 'info',
message: "已取消"
})
});
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}, },
async onAplpDet() { async onAplpDet() {
let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.flatObject(this.model)) let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
console.log(rtnmsg.data); // console.log(rtnmsg.data);
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
......
...@@ -40,34 +40,23 @@ function defaultDlmft() { ...@@ -40,34 +40,23 @@ function defaultDlmft() {
function defaultButimg() { function defaultButimg() {
} }
async function defaultDflg() { async function defaultDflg() {
let rtnmsg = await Api.post("sptsel/default/dflg", Utils.flatObject(this.model)) const that = this;
if (rtnmsg.respCode == "AAAAAA") { that.executeDefault("dflg").then(res => {
//TODO 处理数据逻辑 that.model.dflg = res.data.dflg;
//this.model = Utils.copyValueFromVO(this.model, rtnmsg.data); })
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} }
async function defaultYptinf() { async function defaultYptinf() {
let rtnmsg = await Api.post("sptsel/default/yptinf", Utils.flatObject(this.model)) const that = this;
if (rtnmsg.respCode == "AAAAAA") { that.executeDefault("yptinf").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
//this.model = Utils.copyValueFromVO(this.model, rtnmsg.data); })
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} }
function defaultUsfmodUsrExtkey() { function defaultUsfmodUsrExtkey() {
} }
async function defaultCheckbox() { async function defaultCheckbox() {
let rtnmsg = await Api.post("sptsel/default/sptstm", Utils.flatObject(this.model)) const that = this;
if (rtnmsg.respCode == "AAAAAA") { that.executeDefault("sptstm").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.stmData.data = rtnmsg.data.sptstm.rows; that.$refs.Menu.stmData.data = res.data.sptstm.rows;
} })
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} }
...@@ -56,7 +56,11 @@ function defaultTrnInfdsp() { ...@@ -56,7 +56,11 @@ function defaultTrnInfdsp() {
} }
function defaultRecpanIncben() { function defaultRecpanIncben() {
} }
function defaultUsrcon() { async function defaultUsrcon() {
const that = this;
that.executeDefault("usrcon").then(res => {
this.model.usrcon = res.data.usrcon;
})
} }
function defaultImgmodHisimg() { function defaultImgmodHisimg() {
} }
...@@ -73,20 +77,20 @@ function defaultImgmodNewhisimg() { ...@@ -73,20 +77,20 @@ function defaultImgmodNewhisimg() {
function defaultRecpanCpltxt() { function defaultRecpanCpltxt() {
} }
async function defaultTrncorcoDflg() { async function defaultTrncorcoDflg() {
let rtnmsg = await Api.post("trnrel/default/trncorco.dflg", Utils.flatObject(this.model)) const that = this;
if (rtnmsg.respCode == "AAAAAA") { that.executeDefault("trncorco.dflg").then(res => {
//TODO 处理数据逻辑 that.model.trncorco.dflg = res.data.trncorco_dflg;
this.model = Utils.copyValueFromVO(this.model, rtnmsg.data); })
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} }
function defaultOrddsp() { function defaultOrddsp() {
} }
function defaultRecpanUsrExtkey() { function defaultRecpanUsrExtkey() {
} }
function defaultAtptxt() { async function defaultAtptxt() {
const that = this;
that.executeDefault("atptxt").then(res => {
that.model.atptxt = res.data.atptxt;
})
} }
function defaultRecpanAckgrpRecSndref() { function defaultRecpanAckgrpRecSndref() {
} }
......
...@@ -5,28 +5,30 @@ export default { ...@@ -5,28 +5,30 @@ export default {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/executeRule/searow", Utils.flatObject(this.model)) const that = this.$parent.$parent.$parent.$parent;
if (rtnmsg.respCode == "AAAAAA") { that.executeRule("searow").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.stmData.data = rtnmsg.data.trncorco_trnstm.rows; that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
} })
else { // let rtnmsg = await Api.post("trnrel/executeRule/searow", Utils.flatObject(this.model))
this.$notify.error({ title: '错误', message: '服务请求失败!' }); // if (rtnmsg.respCode == "AAAAAA") {
} // //TODO 处理数据逻辑
// this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
}) })
}, },
onSeajbh() { onSeajbh() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/seajbh", Utils.flatObject(this.model)) const that = this.$parent.$parent.$parent.$parent;
if (rtnmsg.respCode == "AAAAAA") { that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
} })
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}) })
}, },
onSeactr() { onSeactr() {
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
<!-- <el-row> --> <!-- <el-row> -->
<el-col :span="12"> <el-col :span="12">
<el-form-item label="参考号"> <el-form-item label="参考号">
<!-- <c-input v-model="model.didgrp.rec.tzref" maxlength="35" placeholder="请输入通知行编号"></c-input> --> <c-input v-model="model.didgrp.rec.tzref" maxlength="35" placeholder="请输入通知行编号"></c-input>
<c-input v-model="model.didgrp.adv.pts.extkey" maxlength="35" placeholder="请输入通知行编号"></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -98,7 +97,7 @@ ...@@ -98,7 +97,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-row> --> <!-- <el-row> -->
<el-col :span="8"> <el-col :span="12">
<el-form-item label="指定的有关银行 "> <el-form-item label="指定的有关银行 ">
<c-select v-model="model.didgrp.rec.avbwth" style="width:100%" placeholder="请选择指定的有关银行 "> <c-select v-model="model.didgrp.rec.avbwth" style="width:100%" placeholder="请选择指定的有关银行 ">
<el-option v-for="item in codes.avbwth" :key="item.value" :label="item.label" <el-option v-for="item in codes.avbwth" :key="item.value" :label="item.label"
...@@ -203,8 +202,6 @@ export default { ...@@ -203,8 +202,6 @@ export default {
}, },
methods:{...Event}, methods:{...Event},
created:function(){ created:function(){
console.log(this.model)
console.log(this.model.didgrp.adv.pts.extkey)
} }
} }
</script> </script>
......
...@@ -31,31 +31,27 @@ export default { ...@@ -31,31 +31,27 @@ export default {
}, },
data(){ data(){
return { return {
model:new Sptsel().data, trnName:"sptsel",
checkRules: Check, model:new Sptsel().data,
checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules:null, rules:null,
codes:{ codes:{
flt:CodeTable.flt, flt:CodeTable.flt,
dflg:CodeTable.dflg dflg:CodeTable.dflg
}, },
} }
}, },
methods:{...Event}, methods:{...Event},
mounted:async function(){ mounted:async function(){
console.log("进入sptsel交易"); console.log("进入sptsel交易");
let rtnmsg = await Api.post("sptsel/init",Utils.flatObject(this.model)) const that = this;
if(rtnmsg.respCode == "AAAAAA") that.init(that.model).then(res => {
{ //TODO 处理数据逻辑
//TODO 处理数据逻辑 that.model = Utils.copyValueFromVO(that.model, res.data)
this.model = Utils.copyValueFromVO(this.model, rtnmsg.data) that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
this.$refs.Menu.stmData.columns = rtnmsg.data.sptstm.rows; })
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} }
</script> </script>
......
...@@ -47,6 +47,7 @@ export default { ...@@ -47,6 +47,7 @@ export default {
}, },
data(){ data(){
return { return {
trnName:"trnrel",
model: new Trnrel().data, model: new Trnrel().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
...@@ -65,19 +66,12 @@ export default { ...@@ -65,19 +66,12 @@ export default {
}, },
mounted:async function(){ mounted:async function(){
console.log("进入trnrel交易"); console.log("进入trnrel交易");
const that = this;
that.init(that.model).then(res => {
let rtnmsg = await Api.post("trnrel/init", Utils.flatObject(this.model))
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data); that.model = Utils.copyValueFromVO(that.model, res.data)
this.$refs.inftrnps.stmData.columns=rtnmsg.data.trncorco_trnstm.rows that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
} })
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} }
</script> </script>
......
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