Commit 1473046a by 潘际乾

1、tabs添加name 2、在交易的index.vue父组件中注入自身,再其子组件中进行引用

parent 2379883d
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
this.$emit("multipleSelect", this.getSelectedRowIndex(val)) this.$emit("multipleSelect", this.getSelectedRowIndex(val))
}, },
getRowKey(row) { getRowKey(row) {
return row['1'] return row['IDX']
}, },
getSelectedRowIndex(val) { getSelectedRowIndex(val) {
const indexArr = [] const indexArr = []
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
const v = val[j]; const v = val[j];
for (let i = 0; i < this.tableData.length; i++) { for (let i = 0; i < this.tableData.length; i++) {
const data = this.tableData[i]; const data = this.tableData[i];
if (v[1] === data [1]) { if (v['IDX'] === data ['IDX']) {
indexArr.push(i) indexArr.push(i)
} }
} }
......
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
onCptpGetref(){ onCptpGetref(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/cptp_getref",{data:this.model}) let rtnmsg = await Api.post("cptadv/cptp_getref",{data:this.model})
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
}) })
}, },
onCptpGetinf(){ onCptpGetinf(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/cptp_getinf",{data:this.model}) let rtnmsg = await Api.post("cptadv/cptp_getinf",{data:this.model})
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
}) })
}, },
onCptpGetuetr(){ onCptpGetuetr(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/cptp_getuetr",{data:this.model}) let rtnmsg = await Api.post("cptadv/cptp_getuetr",{data:this.model})
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
}) })
}, },
onCptpSelbut(){ onCptpSelbut(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/cptp_selbut",{data:this.model}) let rtnmsg = await Api.post("cptadv/cptp_selbut",{data:this.model})
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
}) })
}, },
onCptpSelbut1(){ onCptpSelbut1(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/cptp_selbut1",{data:this.model}) let rtnmsg = await Api.post("cptadv/cptp_selbut1",{data:this.model})
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
}) })
}, },
onSndpDet(){ onSndpDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/sndp_det",{data:this.model}) let rtnmsg = await Api.post("cptadv/sndp_det",{data:this.model})
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}) })
}, },
onOripDet(){ onOripDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/orip_det",{data:this.model}) let rtnmsg = await Api.post("cptadv/orip_det",{data:this.model})
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
}) })
}, },
onCptpGetmod(){ onCptpGetmod(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/cptp_getmod",{data:this.model}) let rtnmsg = await Api.post("cptadv/cptp_getmod",{data:this.model})
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
}) })
}, },
onOrcpDet(){ onOrcpDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/orcp_det",{data:this.model}) let rtnmsg = await Api.post("cptadv/orcp_det",{data:this.model})
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
}) })
}, },
onPyepDet(){ onPyepDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/pyep_det",{data:this.model}) let rtnmsg = await Api.post("cptadv/pyep_det",{data:this.model})
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
}) })
}, },
onCptpSerpty(){ onCptpSerpty(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/cptp_serpty",{data:this.model}) let rtnmsg = await Api.post("cptadv/cptp_serpty",{data:this.model})
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
}) })
}, },
onSetmodDet(){ onSetmodDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/setmod_det",{data:this.model}) let rtnmsg = await Api.post("cptadv/setmod_det",{data:this.model})
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
}) })
}, },
onTrndocButshw(){ onTrndocButshw(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/trndoc_butshw",{data:this.model}) let rtnmsg = await Api.post("cptadv/trndoc_butshw",{data:this.model})
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
}) })
}, },
onTrndocButadd(){ onTrndocButadd(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/trndoc_butadd",{data:this.model}) let rtnmsg = await Api.post("cptadv/trndoc_butadd",{data:this.model})
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
}) })
}, },
onTrndocButnew(){ onTrndocButnew(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/trndoc_butnew",{data:this.model}) let rtnmsg = await Api.post("cptadv/trndoc_butnew",{data:this.model})
...@@ -241,7 +241,7 @@ export default { ...@@ -241,7 +241,7 @@ export default {
}) })
}, },
onTrndocButattto(){ onTrndocButattto(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/trndoc_butattto",{data:this.model}) let rtnmsg = await Api.post("cptadv/trndoc_butattto",{data:this.model})
...@@ -257,7 +257,7 @@ export default { ...@@ -257,7 +257,7 @@ export default {
}) })
}, },
onTrndocButdel(){ onTrndocButdel(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/trndoc_butdel",{data:this.model}) let rtnmsg = await Api.post("cptadv/trndoc_butdel",{data:this.model})
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
}) })
}, },
onTrndocButatt(){ onTrndocButatt(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptadv/trndoc_butatt",{data:this.model}) let rtnmsg = await Api.post("cptadv/trndoc_butatt",{data:this.model})
......
...@@ -211,9 +211,25 @@ function defaultTrdgrpRecPntref() ...@@ -211,9 +211,25 @@ function defaultTrdgrpRecPntref()
} }
function defaultCpdgrpCbsNom1Cur(rule, value, callback) function defaultCpdgrpCbsNom1Cur(rule, value, callback)
{ {
const that = this;
that.executeDefault("cpdgrp.cbs.max.cur").then(res => {
// that.model.cpdgrp.cbs.max.cur = value;
that.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
callback()
})
} }
function defaultCpdgrpCbsNom1Amt(rule, value, callback) function defaultCpdgrpCbsNom1Amt(rule, value, callback)
{ {
// const that = this;
// that.executeDefault("cpdgrp.cbs.max.amt").then(res => {
// that.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
// callback()
// })
this.executeNotify().then(res => {
this.model.didgrp.cbs.max.amt = res.data.didgrp_cbs_max_amt;
this.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
callback();
});
} }
function defaultFinmodOvdintrat() function defaultFinmodOvdintrat()
{ {
...@@ -407,6 +423,9 @@ function defaultFinmodIntdat() ...@@ -407,6 +423,9 @@ function defaultFinmodIntdat()
function defaultCpdgrpOriPtsExtkey() function defaultCpdgrpOriPtsExtkey()
{ {
} }
function defaultCpdgrpCbsMaxAmt()
{
}
function defaultCpdgrpSndPtsExtkey() function defaultCpdgrpSndPtsExtkey()
{ {
} }
...@@ -425,21 +444,8 @@ function defaultCpdgrpOrcDbfadrblkcn() ...@@ -425,21 +444,8 @@ function defaultCpdgrpOrcDbfadrblkcn()
function defaultCnybopLibflg() function defaultCnybopLibflg()
{ {
} }
function defaultCpdgrpCbsMaxCur(rule, value, callback) function defaultCpdgrpCbsMaxCur()
{
const that = this;
that.executeDefault("cpdgrp.cbs.max.cur").then(res => {
that.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
callback()
})
}
function defaultCpdgrpCbsMaxAmt(rule, value, callback)
{ {
const that = this;
that.executeDefault("cpdgrp.cbs.max.amt").then(res => {
that.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
callback()
})
} }
function defaultCpdgrpRecPrechkdat() function defaultCpdgrpRecPrechkdat()
{ {
......
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
onCptpGetref(){ onCptpGetref(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/cptp_getref",{data:this.model}) let rtnmsg = await Api.post("cptopn/cptp_getref",{data:this.model})
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
}) })
}, },
onCptpGetinf(){ onCptpGetinf(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/cptp_getinf",{data:this.model}) let rtnmsg = await Api.post("cptopn/cptp_getinf",{data:this.model})
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
}) })
}, },
onCptpGetuetr(){ onCptpGetuetr(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/cptp_getuetr",{data:this.model}) let rtnmsg = await Api.post("cptopn/cptp_getuetr",{data:this.model})
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
}) })
}, },
onCptpSelbut(){ onCptpSelbut(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/cptp_selbut",{data:this.model}) let rtnmsg = await Api.post("cptopn/cptp_selbut",{data:this.model})
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
}) })
}, },
onCptpSelbut1(){ onCptpSelbut1(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/cptp_selbut1",{data:this.model}) let rtnmsg = await Api.post("cptopn/cptp_selbut1",{data:this.model})
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
}) })
}, },
onSndpDet(){ onSndpDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/sndp_det",{data:this.model}) let rtnmsg = await Api.post("cptopn/sndp_det",{data:this.model})
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}) })
}, },
onOripDet(){ onOripDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/orip_det",{data:this.model}) let rtnmsg = await Api.post("cptopn/orip_det",{data:this.model})
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
}) })
}, },
onCptpGetmod(){ onCptpGetmod(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/cptp_getmod",{data:this.model}) let rtnmsg = await Api.post("cptopn/cptp_getmod",{data:this.model})
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
}) })
}, },
onOrcpDet(){ onOrcpDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/orcp_det",{data:this.model}) let rtnmsg = await Api.post("cptopn/orcp_det",{data:this.model})
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
}) })
}, },
onPyepDet(){ onPyepDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/pyep_det",{data:this.model}) let rtnmsg = await Api.post("cptopn/pyep_det",{data:this.model})
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
}) })
}, },
onCptpSerpty(){ onCptpSerpty(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/cptp_serpty",{data:this.model}) let rtnmsg = await Api.post("cptopn/cptp_serpty",{data:this.model})
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
}) })
}, },
onSetmodDet(){ onSetmodDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/setmod_det",{data:this.model}) let rtnmsg = await Api.post("cptopn/setmod_det",{data:this.model})
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
}) })
}, },
onTrndocButshw(){ onTrndocButshw(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/trndoc_butshw",{data:this.model}) let rtnmsg = await Api.post("cptopn/trndoc_butshw",{data:this.model})
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
}) })
}, },
onTrndocButadd(){ onTrndocButadd(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/trndoc_butadd",{data:this.model}) let rtnmsg = await Api.post("cptopn/trndoc_butadd",{data:this.model})
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
}) })
}, },
onTrndocButnew(){ onTrndocButnew(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/trndoc_butnew",{data:this.model}) let rtnmsg = await Api.post("cptopn/trndoc_butnew",{data:this.model})
...@@ -241,7 +241,7 @@ export default { ...@@ -241,7 +241,7 @@ export default {
}) })
}, },
onTrndocButattto(){ onTrndocButattto(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/trndoc_butattto",{data:this.model}) let rtnmsg = await Api.post("cptopn/trndoc_butattto",{data:this.model})
...@@ -257,7 +257,7 @@ export default { ...@@ -257,7 +257,7 @@ export default {
}) })
}, },
onTrndocButdel(){ onTrndocButdel(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/trndoc_butdel",{data:this.model}) let rtnmsg = await Api.post("cptopn/trndoc_butdel",{data:this.model})
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
}) })
}, },
onTrndocButatt(){ onTrndocButatt(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/trndoc_butatt",{data:this.model}) let rtnmsg = await Api.post("cptopn/trndoc_butatt",{data:this.model})
...@@ -289,7 +289,7 @@ export default { ...@@ -289,7 +289,7 @@ export default {
}) })
}, },
onFippDet(){ onFippDet(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if(!valid) if(!valid)
return; return;
let rtnmsg = await Api.post("cptopn/fipp_det",{data:this.model}) let rtnmsg = await Api.post("cptopn/fipp_det",{data:this.model})
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
"cpdgrp.rec.paydat":[ "cpdgrp.rec.paydat":[
{type: "date", required: false, message: "输入正确的日期"} {required: false, message: "输入正确的日期"}
], ],
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
} }
}, },
onBenpDet() { onBenpDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/benp_det", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/benp_det", Utils.getRequestDataFn.call(this))
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
}) })
}, },
onRevclauseButtxmsel() { onRevclauseButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/revclause_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/revclause_buttxmsel", Utils.getRequestDataFn.call(this))
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
}) })
}, },
onLcrgodButtxmsel() { onLcrgodButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/lcrgod_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/lcrgod_buttxmsel", Utils.getRequestDataFn.call(this))
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
}) })
}, },
onLcrdocButtxmsel() { onLcrdocButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/lcrdoc_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/lcrdoc_buttxmsel", Utils.getRequestDataFn.call(this))
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
}) })
}, },
onAdlcndButtxmsel() { onAdlcndButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/adlcnd_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/adlcnd_buttxmsel", Utils.getRequestDataFn.call(this))
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
}) })
}, },
onInsbnkButtxmsel() { onInsbnkButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/insbnk_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/insbnk_buttxmsel", Utils.getRequestDataFn.call(this))
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
}) })
}, },
onRmbpDet() { onRmbpDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/rmbp_det", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/rmbp_det", Utils.getRequestDataFn.call(this))
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
}) })
}, },
onDefdetButtxmsel() { onDefdetButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/defdet_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/defdet_buttxmsel", Utils.getRequestDataFn.call(this))
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
}) })
}, },
onPreperButtxmsel() { onPreperButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/preper_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/preper_buttxmsel", Utils.getRequestDataFn.call(this))
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
}) })
}, },
onSetmodDet() { onSetmodDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/setmod_det", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/setmod_det", Utils.getRequestDataFn.call(this))
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
}) })
}, },
onLiaallButmisamt() { onLiaallButmisamt() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/liaall_butmisamt", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/liaall_butmisamt", Utils.getRequestDataFn.call(this))
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
}) })
}, },
onLiaallButmissig() { onLiaallButmissig() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/liaall_butmissig", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/liaall_butmissig", Utils.getRequestDataFn.call(this))
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
}) })
}, },
onWrkpDet() { onWrkpDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/wrkp_det", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/wrkp_det", Utils.getRequestDataFn.call(this))
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
}) })
}, },
onOthpDet() { onOthpDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/othp_det", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/othp_det", Utils.getRequestDataFn.call(this))
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
}) })
}, },
onLimptsGet1() { onLimptsGet1() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/limpts_get1", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/limpts_get1", Utils.getRequestDataFn.call(this))
...@@ -236,7 +236,7 @@ export default { ...@@ -236,7 +236,7 @@ export default {
}) })
}, },
onLimptsGet2() { onLimptsGet2() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/limpts_get2", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/limpts_get2", Utils.getRequestDataFn.call(this))
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
}) })
}, },
onLimmodTrycal() { onLimmodTrycal() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("ditopn/limmod_trycal", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/limmod_trycal", Utils.getRequestDataFn.call(this))
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
}) })
}, },
async onLiaccvAdd() { async onLiaccvAdd() {
// this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { // this.root.$refs.modelForm.validate(async valid => {
// if (!valid) // if (!valid)
// return; // return;
// let rtnmsg = await Api.post("ditopn/liaccv_add", Utils.getRequestDataFn.call(this)) // let rtnmsg = await Api.post("ditopn/liaccv_add", Utils.getRequestDataFn.call(this))
...@@ -277,7 +277,7 @@ export default { ...@@ -277,7 +277,7 @@ export default {
// } // }
// }) // })
let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.add", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.add", Utils.getRequestDataFn.call(this))
//const that = this.$parent.$parent.$parent.$parent; //const that = this.root;
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
debugger; debugger;
...@@ -291,7 +291,7 @@ export default { ...@@ -291,7 +291,7 @@ export default {
} }
}, },
async onLiaccvDel() { async onLiaccvDel() {
// this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { // this.root.$refs.modelForm.validate(async valid => {
// if (!valid) // if (!valid)
// return; // return;
// let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", Utils.getRequestDataFn.call(this)) // let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", Utils.getRequestDataFn.call(this))
...@@ -304,7 +304,7 @@ export default { ...@@ -304,7 +304,7 @@ export default {
// } // }
// }) // })
let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", Utils.getRequestDataFn.call(this))
//const that = this.$parent.$parent.$parent.$parent; //const that = this.root;
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
debugger; debugger;
......
...@@ -2,7 +2,7 @@ import Api from "~/service/Api" ...@@ -2,7 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
onUsfmodShwflt() { onUsfmodShwflt() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("sptsel/usfmod_shwflt", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("sptsel/usfmod_shwflt", Utils.getRequestDataFn.call(this))
...@@ -16,7 +16,7 @@ export default { ...@@ -16,7 +16,7 @@ export default {
}) })
}, },
onButypt() { onButypt() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("sptsel/butypt", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("sptsel/butypt", Utils.getRequestDataFn.call(this))
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
}) })
}, },
onDlmft() { onDlmft() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("sptsel/dlmft", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("sptsel/dlmft", Utils.getRequestDataFn.call(this))
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
}) })
}, },
onDlaxq() { onDlaxq() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("sptsel/dlaxq", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("sptsel/dlaxq", Utils.getRequestDataFn.call(this))
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
}) })
}, },
onButimg() { onButimg() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("sptsel/butimg", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("sptsel/butimg", Utils.getRequestDataFn.call(this))
......
...@@ -2,10 +2,10 @@ import Api from "~/service/Api" ...@@ -2,10 +2,10 @@ import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
onSeaown() { onSeaown() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
const that = this.$parent.$parent.$parent.$parent; const that = this.root;
that.executeRule("searow").then(res => { that.executeRule("searow").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows; that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
...@@ -22,10 +22,10 @@ export default { ...@@ -22,10 +22,10 @@ export default {
}) })
}, },
onSeajbh() { onSeajbh() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
const that = this.$parent.$parent.$parent.$parent; const that = this.root;
that.executeRule("seajbh").then(res => { that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows; that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
}) })
}, },
onSeactr() { onSeactr() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/seactr", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/seactr", Utils.getRequestDataFn.call(this))
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
}) })
}, },
onSearow() { onSearow() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
}) })
}, },
onDsp() { onDsp() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/dsp", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/dsp", Utils.getRequestDataFn.call(this))
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}) })
}, },
onImgmodNewimg() { onImgmodNewimg() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/imgmod_newimg", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/imgmod_newimg", Utils.getRequestDataFn.call(this))
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
}) })
}, },
onImgmodNewhisimg() { onImgmodNewhisimg() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/imgmod_newhisimg", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/imgmod_newhisimg", Utils.getRequestDataFn.call(this))
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
}) })
}, },
onDiaconButdia() { onDiaconButdia() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/diacon_butdia", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/diacon_butdia", Utils.getRequestDataFn.call(this))
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
}) })
}, },
onImgmodHisimg() { onImgmodHisimg() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/imgmod_hisimg", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/imgmod_hisimg", Utils.getRequestDataFn.call(this))
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
}, },
onRelrow() { onRelrow() {
const that = this const that = this
that.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { that.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
that.model.trncorco.selinr = { that.model.trncorco.selinr = {
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
}) })
}, },
onPrinte() { onPrinte() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/printe", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/printe", Utils.getRequestDataFn.call(this))
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
}) })
}, },
onReprow() { onReprow() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/reprow", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/reprow", Utils.getRequestDataFn.call(this))
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
console.log(this.getSelectedData()) console.log(this.getSelectedData())
this.model.trncorco.selinr['rows'] = this.getSelectedData(); this.model.trncorco.selinr['rows'] = this.getSelectedData();
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
// if (!valid) // if (!valid)
// return; // return;
let rtnmsg = await Api.post("trnrel/rejrow", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/rejrow", Utils.getRequestDataFn.call(this))
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
}) })
}, },
onRelcor() { onRelcor() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/relcor", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/relcor", Utils.getRequestDataFn.call(this))
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
}) })
}, },
onExi() { onExi() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/exi", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/exi", Utils.getRequestDataFn.call(this))
...@@ -257,7 +257,7 @@ export default { ...@@ -257,7 +257,7 @@ export default {
}, },
onRecpanDet() { onRecpanDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/recpan_det", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/recpan_det", Utils.getRequestDataFn.call(this))
...@@ -271,7 +271,7 @@ export default { ...@@ -271,7 +271,7 @@ export default {
}) })
}, },
onSyswrnButshw() { onSyswrnButshw() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/syswrn_butshw", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/syswrn_butshw", Utils.getRequestDataFn.call(this))
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
}) })
}, },
onRecpanNotmap() { onRecpanNotmap() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/recpan_notmap", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/recpan_notmap", Utils.getRequestDataFn.call(this))
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
}) })
}, },
onRecpanButspt() { onRecpanButspt() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/recpan_butspt", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/recpan_butspt", Utils.getRequestDataFn.call(this))
...@@ -313,7 +313,7 @@ export default { ...@@ -313,7 +313,7 @@ export default {
}) })
}, },
onRecpanInc() { onRecpanInc() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/recpan_inc", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/recpan_inc", Utils.getRequestDataFn.call(this))
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
}) })
}, },
onRecpanButord() { onRecpanButord() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/recpan_butord", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/recpan_butord", Utils.getRequestDataFn.call(this))
...@@ -341,7 +341,7 @@ export default { ...@@ -341,7 +341,7 @@ export default {
}) })
}, },
onImgmodImage() { onImgmodImage() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/imgmod_image", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/imgmod_image", Utils.getRequestDataFn.call(this))
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
}) })
}, },
onRecpanIncben() { onRecpanIncben() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/recpan_incben", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/recpan_incben", Utils.getRequestDataFn.call(this))
...@@ -369,7 +369,7 @@ export default { ...@@ -369,7 +369,7 @@ export default {
}) })
}, },
onInftxtButtxmsel() { onInftxtButtxmsel() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.root.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/inftxt_buttxmsel", Utils.getRequestDataFn.call(this)) let rtnmsg = await Api.post("trnrel/inftxt_buttxmsel", Utils.getRequestDataFn.call(this))
......
...@@ -43,6 +43,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -43,6 +43,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptadv/Event" import Event from "~/model/Cptadv/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -54,6 +54,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -54,6 +54,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptadv/Event" import Event from "~/model/Cptadv/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -30,6 +30,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -30,6 +30,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptadv/Event" import Event from "~/model/Cptadv/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -80,6 +80,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -80,6 +80,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptadv/Event" import Event from "~/model/Cptadv/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -1125,6 +1125,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -1125,6 +1125,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptadv/Event"; import Event from "~/model/Cptadv/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -66,6 +66,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -66,6 +66,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptadv/Event" import Event from "~/model/Cptadv/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -54,6 +54,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -54,6 +54,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptadv/Event" import Event from "~/model/Cptadv/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small">
<c-tabs ref="elment" type="card" @tab-click="tabClick"> <c-tabs ref="elment" :value="tabVal" type="card" @tab-click="tabClick">
<el-tab-pane label="Overview"> <el-tab-pane label="Overview" name="opnp1">
<!--PD000020 --> <!--PD000020 -->
<m-opnp1 :model="model" :codes="codes"/> <m-opnp1 :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="账务"> <el-tab-pane label="账务" name="setpan">
<!--PD000006 --> <!--PD000006 -->
<m-setpan :model="model" :codes="codes"/> <m-setpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="附言"> <el-tab-pane label="附言" name="coninfp">
<!--PD000000 --> <!--PD000000 -->
<m-coninfp :model="model" :codes="codes"/> <m-coninfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="报文及面函"> <el-tab-pane label="报文及面函" name="docpan1">
<!--PD000000 --> <!--PD000000 -->
<m-docpan :model="model" :codes="codes"/> <m-docpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="附件"> <el-tab-pane label="附件" name="doctre">
<!--PD000529 --> <!--PD000529 -->
<m-doctre :model="model" :codes="codes"/> <m-doctre :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="收账通知"> <el-tab-pane label="收账通知" name="docpan2">
<!--PD000001 --> <!--PD000001 -->
<m-docpan :model="model" :codes="codes"/> <m-docpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="外管信息"> <el-tab-pane label="外管信息" name="wg">
<!--PD000546 --> <!--PD000546 -->
<m-wg :model="model" :codes="codes"/> <m-wg :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="跨境人民币申报"> <el-tab-pane label="跨境人民币申报" name="cnyp">
<!--PD000002 --> <!--PD000002 -->
<m-cnyp :model="model" :codes="codes"/> <m-cnyp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
...@@ -64,9 +64,15 @@ export default { ...@@ -64,9 +64,15 @@ export default {
"m-docpan" : Docpan, "m-docpan" : Docpan,
"m-cnyp" : Cnyp, "m-cnyp" : Cnyp,
}, },
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "opnp1",
model:new Cptadv().data, model:new Cptadv().data,
// defaultRule:Default, // defaultRule:Default,
// rules:this.mergeRules(Pattern,Check), // rules:this.mergeRules(Pattern,Check),
......
...@@ -681,6 +681,7 @@ import Api from "~/service/Api" ...@@ -681,6 +681,7 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
inject: ['root'],
props: ['model', 'codes'], props: ['model', 'codes'],
data: function () { data: function () {
return { return {
......
...@@ -181,6 +181,7 @@ ...@@ -181,6 +181,7 @@
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
inject: ['root'],
props:['model', 'codes'], props:['model', 'codes'],
computed: { computed: {
liqtyp: function () { liqtyp: function () {
......
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
</template> </template>
<script> <script>
export default { export default {
inject: ['root'],
props:['model', 'codes'], props:['model', 'codes'],
} }
</script> </script>
\ No newline at end of file
...@@ -72,6 +72,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -72,6 +72,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -95,6 +95,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -95,6 +95,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -744,6 +744,7 @@ import Api from "~/service/Api" ...@@ -744,6 +744,7 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
inject: ['root'],
props: ['model', 'codes'], props: ['model', 'codes'],
data(){ data(){
return{ return{
......
...@@ -666,6 +666,7 @@ ...@@ -666,6 +666,7 @@
</template> </template>
<script> <script>
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -313,6 +313,7 @@ ...@@ -313,6 +313,7 @@
</template> </template>
<script> <script>
export default { export default {
inject: ['root'],
props: ['model', 'codes'], props: ['model', 'codes'],
methods: { methods: {
getOwnref () { getOwnref () {
......
...@@ -292,6 +292,7 @@ ...@@ -292,6 +292,7 @@
</template> </template>
<script> <script>
export default { export default {
inject: ['root'],
props: ['model', 'codes'], props: ['model', 'codes'],
methods: { methods: {
getOwnref () { getOwnref () {
......
...@@ -210,6 +210,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -210,6 +210,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -150,6 +150,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -150,6 +150,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -510,6 +510,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -510,6 +510,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -164,6 +164,7 @@ ...@@ -164,6 +164,7 @@
</template> </template>
<script> <script>
export default { export default {
inject: ['root'],
props:['model', 'codes'], props:['model', 'codes'],
methods: { methods: {
handleSearch () { handleSearch () {
......
...@@ -32,6 +32,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -32,6 +32,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptopn/Event" import Event from "~/model/Cptopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -233,6 +233,7 @@ import Api from "~/service/Api" ...@@ -233,6 +233,7 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
inject: ['root'],
props:['model', 'codes'], props:['model', 'codes'],
methods: { methods: {
async search_rmtp_ptysel () { async search_rmtp_ptysel () {
......
...@@ -155,6 +155,7 @@ import Api from "~/service/Api" ...@@ -155,6 +155,7 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
inject: ['root'],
props:['model', 'codes'], props:['model', 'codes'],
methods: { methods: {
async search_orip_ptysel () { async search_orip_ptysel () {
......
...@@ -77,9 +77,9 @@ ...@@ -77,9 +77,9 @@
<el-col :span="24"> <el-col :span="24">
<el-col :span="10"> <el-col :span="10">
<el-form-item label="汇款金额" prop="cpdgrp.cbs.max.cur"> <el-form-item label="汇款金额" prop="cpdgrp.cbs.nom1.cur">
<c-select <c-select
v-model="model.cpdgrp.cbs.max.cur" v-model="model.cpdgrp.cbs.nom1.cur"
style="width: 100%" style="width: 100%"
placeholder="" placeholder=""
> >
...@@ -93,9 +93,9 @@ ...@@ -93,9 +93,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="" label-width="15px" prop="cpdgrp.cbs.max.amt"> <el-form-item label="" label-width="15px" prop="cpdgrp.cbs.nom1.amt">
<c-input <c-input
v-model="model.cpdgrp.cbs.max.amt" v-model="model.cpdgrp.cbs.nom1.amt"
placeholder="请输入汇款金额" placeholder="请输入汇款金额"
></c-input> ></c-input>
</el-form-item> </el-form-item>
...@@ -150,6 +150,7 @@ ...@@ -150,6 +150,7 @@
<c-date-picker <c-date-picker
type="date" type="date"
v-model="model.cpdgrp.rec.paydat" v-model="model.cpdgrp.rec.paydat"
value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="" placeholder=""
></c-date-picker> ></c-date-picker>
......
...@@ -200,6 +200,7 @@ ...@@ -200,6 +200,7 @@
<script> <script>
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
</template> </template>
<script> <script>
export default { export default {
inject: ['root'],
props:['model', 'codes'] props:['model', 'codes']
} }
</script> </script>
......
...@@ -349,6 +349,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -349,6 +349,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -69,6 +69,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -69,6 +69,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -107,6 +107,11 @@ export default { ...@@ -107,6 +107,11 @@ export default {
"m-dbb": Dbb, "m-dbb": Dbb,
"m-outp": Outp "m-outp": Outp
}, },
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
......
...@@ -64,6 +64,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -64,6 +64,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event"; import Event from "~/model/Ditame/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -334,6 +334,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -334,6 +334,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event"; import Event from "~/model/Ditame/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -285,6 +285,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -285,6 +285,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -127,6 +127,7 @@ import Event from "~/model/Ditopn/Event" ...@@ -127,6 +127,7 @@ import Event from "~/model/Ditopn/Event"
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -362,6 +362,7 @@ import Event from "~/model/Ditopn/Event"; ...@@ -362,6 +362,7 @@ import Event from "~/model/Ditopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -494,6 +494,7 @@ import Input from "../../../components/Input.vue"; ...@@ -494,6 +494,7 @@ import Input from "../../../components/Input.vue";
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils/index"; import Utils from "~/utils/index";
export default { export default {
inject: ['root'],
components: { Input }, components: { Input },
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
......
...@@ -104,6 +104,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -104,6 +104,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event"; import Event from "~/model/Ditame/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -63,6 +63,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -63,6 +63,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event"; import Event from "~/model/Ditame/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -58,6 +58,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -58,6 +58,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event"; import Event from "~/model/Ditame/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -92,6 +92,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -92,6 +92,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -51,6 +51,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -51,6 +51,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event"; import Event from "~/model/Ditame/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -251,6 +251,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -251,6 +251,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -83,6 +83,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -83,6 +83,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event"; import Event from "~/model/Ditame/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -710,6 +710,7 @@ import Event from "~/model/Ditopn/Event"; ...@@ -710,6 +710,7 @@ import Event from "~/model/Ditopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
// mixins: [CommonProcess], // mixins: [CommonProcess],
data() { data() {
......
...@@ -396,6 +396,7 @@ import Api from "~/service/Api" ...@@ -396,6 +396,7 @@ import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
inject: ['root'],
components: { SetpanDialog }, components: { SetpanDialog },
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
......
...@@ -42,6 +42,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -42,6 +42,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -8,99 +8,99 @@ ...@@ -8,99 +8,99 @@
size="small" size="small"
> >
<c-tabs ref="elment" type="card" @tab-click="tabClick"> <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="修改"> <el-tab-pane label="修改" name="amep">
<!--PD000015 --> <!--PD000015 -->
<m-amep :model="model" :codes="codes" /> <m-amep :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="内容"> <el-tab-pane label="内容" name="ovwp">
<!--PD000001 --> <!--PD000001 -->
<m-ovwp :model="model" :codes="codes" /> <m-ovwp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="银行明细"> <el-tab-pane label="银行明细" name="detp1">
<!--PD000452 --> <!--PD000452 -->
<m-detp1 :model="model" :codes="codes" /> <m-detp1 :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="明细"> <el-tab-pane label="明细" name="detp">
<!--PD000077 --> <!--PD000077 -->
<m-detp :model="model" :codes="codes" /> <m-detp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="条款"> <el-tab-pane label="条款" name="tk">
<!--PD000342 --> <!--PD000342 -->
<m-tk :model="model" :codes="codes" /> <m-tk :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="历史概要"> <el-tab-pane label="历史概要" name="narp">
<!--PD000021 --> <!--PD000021 -->
<m-narp :model="model" :codes="codes" /> <m-narp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="货描修改"> <el-tab-pane label="货描修改" name="dogpame">
<!--PD000105 --> <!--PD000105 -->
<m-dogpame :model="model" :codes="codes" /> <m-dogpame :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="单据修改"> <el-tab-pane label="单据修改" name="dorpame">
<!--PD000110 --> <!--PD000110 -->
<m-dorpame :model="model" :codes="codes" /> <m-dorpame :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="其他条款修改"> <el-tab-pane label="其他条款修改" name="adcpame">
<!--PD000114 --> <!--PD000114 -->
<m-adcpame :model="model" :codes="codes" /> <m-adcpame :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="给P,A,N银行指示"> <el-tab-pane label="给P,A,N银行指示" name="inspame">
<!--PD000306 --> <!--PD000306 -->
<m-inspame :model="model" :codes="codes" /> <m-inspame :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="或有"> <el-tab-pane label="或有" name="engp">
<!--PD000027 --> <!--PD000027 -->
<m-engp :model="model" :codes="codes" /> <m-engp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="保证金"> <el-tab-pane label="保证金" name="ccvpan">
<!--PD000001 --> <!--PD000001 -->
<m-ccvpan :model="model" :codes="codes" /> <m-ccvpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="账务"> <el-tab-pane label="账务" name="setpan">
<!--PD000000 --> <!--PD000000 -->
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="备查表"> <el-tab-pane label="备查表" name="addbcb">
<!--PD000328 --> <!--PD000328 -->
<m-addbcb :model="model" :codes="codes" /> <m-addbcb :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="附言"> <el-tab-pane label="附言" name="coninfp">
<!--PD000000 --> <!--PD000000 -->
<m-coninfp :model="model" :codes="codes" /> <m-coninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="报文及面函"> <el-tab-pane label="报文及面函" name="docpan">
<!--PD000529 --> <!--PD000529 -->
<m-docpan :model="model" :codes="codes" /> <m-docpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="附件"> <el-tab-pane label="附件" name="doctre">
<!--PD000546 --> <!--PD000546 -->
<m-doctre :model="model" :codes="codes" /> <m-doctre :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Mt799"> <el-tab-pane label="Mt799" name="mt799">
<!--PD000361 --> <!--PD000361 -->
<m-mt799 :model="model" :codes="codes" /> <m-mt799 :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="统一授信"> <el-tab-pane label="统一授信" name="limitbody">
<!--PD000001 --> <!--PD000001 -->
<m-limitbody :model="model" :codes="codes" /> <m-limitbody :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
...@@ -158,9 +158,15 @@ export default { ...@@ -158,9 +158,15 @@ export default {
"m-doctre": Doctre, "m-doctre": Doctre,
"m-limitbody": Limitbody, "m-limitbody": Limitbody,
}, },
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "amep",
model: new Ditame().data, model: new Ditame().data,
// defaultRule:Default, // defaultRule:Default,
// rules:this.mergeRules(Pattern,Check), // rules:this.mergeRules(Pattern,Check),
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -285,6 +285,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -285,6 +285,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return {}; return {};
......
...@@ -127,6 +127,7 @@ import Event from "~/model/Ditopn/Event" ...@@ -127,6 +127,7 @@ import Event from "~/model/Ditopn/Event"
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -360,6 +360,7 @@ import Event from "~/model/Ditopn/Event"; ...@@ -360,6 +360,7 @@ import Event from "~/model/Ditopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -494,6 +494,7 @@ import Input from "../../../components/Input.vue"; ...@@ -494,6 +494,7 @@ import Input from "../../../components/Input.vue";
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils/index"; import Utils from "~/utils/index";
export default { export default {
inject: ['root'],
components: { Input }, components: { Input },
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
......
...@@ -92,6 +92,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -92,6 +92,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -12,6 +12,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -12,6 +12,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
</template> </template>
<script> <script>
export default { export default {
inject: ['root'],
props: ['model', 'codes'] props: ['model', 'codes']
} }
</script> </script>
......
...@@ -251,6 +251,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -251,6 +251,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event"; import Event from "~/model/Ditopn/Event";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -32,6 +32,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -32,6 +32,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -699,6 +699,7 @@ import Event from "~/model/Ditopn/Event"; ...@@ -699,6 +699,7 @@ import Event from "~/model/Ditopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
// mixins: [CommonProcess], // mixins: [CommonProcess],
data() { data() {
...@@ -839,7 +840,9 @@ export default { ...@@ -839,7 +840,9 @@ export default {
); );
} }
}, },
created: function () {}, created: function () {
console.log(this.root);
},
computed:{ computed:{
flag(){ flag(){
return this.model.didgrp.apl.pts.extkey==""; return this.model.didgrp.apl.pts.extkey=="";
......
...@@ -107,6 +107,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -107,6 +107,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -63,6 +63,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -63,6 +63,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -395,6 +395,7 @@ import Api from "~/service/Api" ...@@ -395,6 +395,7 @@ import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
inject: ['root'],
components: { SetpanDialog }, components: { SetpanDialog },
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
......
...@@ -42,6 +42,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -42,6 +42,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event" import Event from "~/model/Ditopn/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
<script> <script>
export default { export default {
inject: ['root'],
props: ['model', 'codes'] props: ['model', 'codes']
} }
</script> </script>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<c-page title="买方信用证开立"> <c-page title="买方信用证开立">
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false">
<c-tabs ref="elment" type="card" @tab-click="tabClick"> <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="内容"> <el-tab-pane label="内容" name="ovwp">
<!--PD000001 --> <!--PD000001 -->
<m-ovwp :model="model" :codes="codes"/> <m-ovwp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
...@@ -20,15 +20,15 @@ ...@@ -20,15 +20,15 @@
<m-rbip :model="model" :codes="codes"/> <m-rbip :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
--> -->
<el-tab-pane label="银行明细"> <el-tab-pane label="银行明细" name="detp1">
<!--PD000452 --> <!--PD000452 -->
<m-detp1 :model="model" :codes="codes"/> <m-detp1 :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="明细"> <el-tab-pane label="明细" name="detp">
<!--PD000077 --> <!--PD000077 -->
<m-detp :model="model" :codes="codes"/> <m-detp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="条款"> <el-tab-pane label="条款" name="tk">
<!--PD000342 --> <!--PD000342 -->
<m-tk :model="model" :codes="codes"/> <m-tk :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
...@@ -48,44 +48,44 @@ ...@@ -48,44 +48,44 @@
<m-litrmbl1 :model="model" :codes="codes"/> <m-litrmbl1 :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
--> -->
<el-tab-pane label="帐务"> <el-tab-pane label="帐务" name="setpan">
<!--PD000000 --> <!--PD000000 -->
<m-setpan :model="model" :codes="codes"/> <m-setpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分录"> <el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan"/> <m-glepan :model="model" :codes="codes" ref="glepan"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="或有"> <el-tab-pane label="或有" name="engp">
<!--PD000027 --> <!--PD000027 -->
<m-engp :model="model" :codes="codes"/> <m-engp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="保证金"> <el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes"/> <m-ccvpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="备查表"> <el-tab-pane label="备查表" name="addbcb">
<!--PD000027 --> <!--PD000027 -->
<m-addbcb :model="model" :codes="codes"/> <m-addbcb :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="附言"> <el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes"/> <m-coninfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--PD000529 --> <!--PD000529 -->
<el-tab-pane label="面函"> <el-tab-pane label="面函" name="docpan">
<m-docpan :model="model" :codes="codes" ref="docpan"/> <m-docpan :model="model" :codes="codes" ref="docpan"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="MT799"> <el-tab-pane label="MT799" name="mt799">
<!--PD000361 --> <!--PD000361 -->
<m-mt799 :model="model" :codes="codes"/> <m-mt799 :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="统一授信"> <el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes"/> <m-limitbody :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
...@@ -146,19 +146,25 @@ export default { ...@@ -146,19 +146,25 @@ export default {
"m-coninfp" : Coninfp, "m-coninfp" : Coninfp,
"m-ccvpan" : Ccvpan, "m-ccvpan" : Ccvpan,
}, },
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
computed: { computed: {
}, },
data(){ data(){
return { return {
trnName:"ditopn", tabVal: "ovwp",
model:new Ditopn().data, trnName:"ditopn",
checkRules: Check, model:new Ditopn().data,
defaultRules: Default, checkRules: Check,
pattern: Pattern, defaultRules: Default,
rules:null, pattern: Pattern,
codes:{...CodeTable}, rules:null,
codes:{...CodeTable},
} }
}, },
methods:{ methods:{
...@@ -166,21 +172,21 @@ export default { ...@@ -166,21 +172,21 @@ export default {
if(this.isInDisplay){ if(this.isInDisplay){
return return
} }
const label = vm.label const name = vm.name
if (label === "或有") { if (name === "engp") {
this.executeRule("liaall.engp").then(res => { this.executeRule("liaall.engp").then(res => {
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
}) })
} }
if (label === "分录") { if (name === "glepan") {
this.executeRule("setmod.glemod.glepan").then(res => { this.executeRule("setmod.glemod.glepan").then(res => {
const data = res.data; const data = res.data;
this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows; this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
//Utils.copyValueFromVO(this.model, data) //Utils.copyValueFromVO(this.model, data)
}) })
} }
if (label === "帐务") { if (name === "setpan") {
this.executeRule("setmod.setpan").then(res => { this.executeRule("setmod.setpan").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == "AAAAAA"){
const data = res.data; const data = res.data;
...@@ -188,7 +194,7 @@ export default { ...@@ -188,7 +194,7 @@ export default {
} }
}) })
} }
if (label === "面函") { if (name === "docpan") {
this.executeRule("trnmod.trndoc.docpan").then(res => { this.executeRule("trnmod.trndoc.docpan").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == "AAAAAA"){
const data = res.data; const data = res.data;
...@@ -204,7 +210,7 @@ export default { ...@@ -204,7 +210,7 @@ export default {
} }
}) })
} }
if (label === "统一授信") { if (name === "limitbody") {
this.executeRule("liaall.limmod.limitbody").then(res => { this.executeRule("liaall.limmod.limitbody").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == "AAAAAA"){
const data = res.data; const data = res.data;
......
...@@ -1756,6 +1756,7 @@ import Event from "~/model/Ditsel/Event"; ...@@ -1756,6 +1756,7 @@ import Event from "~/model/Ditsel/Event";
import SelMune from "./SelMune.vue"; import SelMune from "./SelMune.vue";
export default { export default {
inject: ['root'],
components: { SelMune }, components: { SelMune },
props: ["model", "codes"], props: ["model", "codes"],
data() { data() {
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
size="small" size="small"
> >
<!--PD000058 --> <!--PD000058 -->
<c-tabs ref="elment" type="card" @tab-click="tabClick"> <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="菜单"> <el-tab-pane label="菜单" name="sel">
<m-sel :model="model" :codes="codes" /> <m-sel :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
...@@ -29,9 +29,15 @@ export default { ...@@ -29,9 +29,15 @@ export default {
components: { components: {
"m-sel": Sel, "m-sel": Sel,
}, },
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "sel",
model: new Ditsel().data, model: new Ditsel().data,
// defaultRule:Default, // defaultRule:Default,
// rules:this.mergeRules(Pattern,Check), // rules:this.mergeRules(Pattern,Check),
......
...@@ -306,6 +306,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -306,6 +306,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Office/Event" import Event from "~/model/Office/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-container style="height:100%"> <el-container style="height:100%">
<el-main style="padding:0"> <el-main style="padding:0">
<c-tabs class="fulltab" v-model="todoActive" type="card" @tab-click="handleClick"> <c-tabs :value="tabVal" class="fulltab" v-model="todoActive" type="card" @tab-click="handleClick">
<el-tab-pane v-for="item in codes.todo" :key="item.value" :label="item.label" :name="item.value"> <el-tab-pane v-for="item in codes.todo" :key="item.value" :label="item.label" :name="item.value">
<s-todo :todoType="item.value"/> <s-todo :todoType="item.value"/>
...@@ -121,8 +121,14 @@ export default { ...@@ -121,8 +121,14 @@ export default {
computed: { computed: {
}, },
provide() {
return {
root: this
}
},
data(){ data(){
return { return {
tabVal: CodeTable.todo[0].value,
todoActive:"WAT", todoActive:"WAT",
codes:{ codes:{
dsp:CodeTable.dsp, dsp:CodeTable.dsp,
......
...@@ -225,6 +225,7 @@ import Event from "~/model/Sptsel/Event" ...@@ -225,6 +225,7 @@ import Event from "~/model/Sptsel/Event"
import CommonProcess from "~/mixin/CommonProcess" import CommonProcess from "~/mixin/CommonProcess"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
// mixins: [CommonProcess], // mixins: [CommonProcess],
data(){ data(){
......
<template> <template>
<div class="eContainer"> <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="170px" size="small" :validate-on-rule-change="false">
<c-tabs ref="elment" type="border-card" @tab-click="tabClick"> <c-tabs :value="tabVal" ref="elment" type="border-card" @tab-click="tabClick">
<el-tab-pane label="待办任务查询"> <el-tab-pane :value="tabVal" label="待办任务查询" name="menu">
<m-menu :model="model" :codes="codes" ref="Menu"/> <m-menu :model="model" :codes="codes" ref="Menu"/>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
...@@ -25,12 +25,18 @@ export default { ...@@ -25,12 +25,18 @@ export default {
components:{ components:{
"m-menu" : Menu, "m-menu" : Menu,
}, },
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
computed: { computed: {
}, },
data(){ data(){
return { return {
tabVal: "menu",
trnName:"sptsel", trnName:"sptsel",
model:new Sptsel().data, model:new Sptsel().data,
checkRules: Check, checkRules: Check,
......
...@@ -243,6 +243,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -243,6 +243,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
components: { components: {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -244,6 +244,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -244,6 +244,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -20,6 +20,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -20,6 +20,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -33,6 +33,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -33,6 +33,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable" ...@@ -14,6 +14,7 @@ import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event" import Event from "~/model/Trnrel/Event"
export default { export default {
inject: ['root'],
props:["model","codes"], props:["model","codes"],
data(){ data(){
return { return {
......
...@@ -45,6 +45,11 @@ export default { ...@@ -45,6 +45,11 @@ export default {
computed: { computed: {
}, },
provide() {
return {
root: this
}
},
data(){ data(){
return { return {
trnName:"trnrel", trnName:"trnrel",
......
...@@ -25,6 +25,11 @@ export default { ...@@ -25,6 +25,11 @@ export default {
computed: { computed: {
}, },
provide() {
return {
root: this
}
},
data(){ data(){
return { return {
model:{ model:{
......
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