Commit 82436b9d by wanggang_yf

letcan 页面修改

parent 2c188657
...@@ -3,6 +3,73 @@ import Pub from '~/components/business/commonModel/index.js'; ...@@ -3,6 +3,73 @@ import Pub from '~/components/business/commonModel/index.js';
export default class Letcan { export default class Letcan {
constructor() { constructor() {
this.data = { this.data = {
brdgrp: {
adv:{
pts: new Pts().data,
},
prb: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
acb: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
apl: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
ben: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
blk: {
chaded: '',
docdisflg: '',
chaadd: '',
docdis: '',
},
rec: {
totcur: '',
ownref: '',
disdat: '',
totamt: '',
nam: '',
docprbrol: ''
},
cbs: {
opn1: {
cur: ''
},
opn2: {
cur: ''
},
max: {
cur: '',
amt: ''
},
max2: {
amt: ''
}
},
matp: {
mattxtlab: ''
}
},
brtp: {
furide: '',
matp: {
mattxtlab: ''
}
},
sndmsg: '', sndmsg: '',
ledgrp: { ledgrp: {
rec: { rec: {
......
...@@ -7,21 +7,19 @@ ...@@ -7,21 +7,19 @@
</el-collapse> </el-collapse>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import event from '../event'
import commonProcess from "~/mixin/commonProcess"; import Coninfp from "~/views/Public/Coninfp";
import Event from "~/model/Letcan/Event";
import Coninfp from "~/views/Public/Coninfp";
export default { export default {
components: { components: {
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
}, },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return { return {
...@@ -29,16 +27,10 @@ ...@@ -29,16 +27,10 @@
}; };
}, },
methods: { methods: {},
...Event,
handleChange(val) {
console.log(val);
},
},
created: function () {}, created: function () {},
}; }
</script> </script>
<style> <style></style>
</style>
...@@ -4,40 +4,34 @@ ...@@ -4,40 +4,34 @@
<el-collapse-item title="取消信息" name="canp"> <el-collapse-item title="取消信息" name="canp">
<m-canp :model="model" :codes="codes" /> <m-canp :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
<!-- v-if="model.ledgrp.rmb.rolsetflg=='Y'" --> <!-- v-if="model.ledgrp.rmb.rolsetflg=='Y'" -->
<el-collapse-item title="索偿(MT 742)" name="rcldetp" > <el-collapse-item title="索偿(MT 742)" name="rcldetp">
<m-rcldetp :model="model" :codes="codes" /> <m-rcldetp :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
</div> </div>
</template> </template>
<script> <script>
import commonProcess from "~/mixin/commonProcess"; import event from '../event'
import Event from "~/model/Getamc/Event"; import Canp from "./Canp";
import Canp from "./Canp"; import Rcldetp from "./Rcldetp";
import Rcldetp from "./Rcldetp";
export default {
export default { inject: ["root"],
components: { components: {
"m-canp": Canp, "m-canp": Canp,
"m-rcldetp": Rcldetp, "m-rcldetp": Rcldetp,
}, },
inject: ['root'], props: ["model", "codes"],
props:["model","codes"], mixins: [event],
mixins: [commonProcess], data() {
data(){
return { return {
activeNames: ["canp"], activeNames: ["canp"],
} }
}, },
methods:{...Event,handleChange(){}}, methods: {},
created:function(){ created: function () { },
}
}
}
</script>
<style>
</style> </script>
<style></style>
...@@ -116,21 +116,18 @@ ...@@ -116,21 +116,18 @@
</div> </div>
</template> </template>
<script> <script>
import Api from '~/service/Api' import event from '../event'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letcan/Event'
import Ptap from '~/views/Public/Ptap' import Ptap from '~/views/Public/Ptap'
export default { export default {
inject: ['root'], inject: ["root"],
components: { 'c-ptap': Ptap }, components: { 'c-ptap': Ptap },
props: ['model', 'codes'], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {} return {}
}, },
methods: { ...Event }, methods: {},
created: function () {}, created: function () {},
computed:{ computed:{
rmbrolRefFlag: { rmbrolRefFlag: {
...@@ -154,5 +151,6 @@ export default { ...@@ -154,5 +151,6 @@ export default {
}, },
} }
} }
</script> </script>
<style></style> <style></style>
...@@ -74,26 +74,24 @@ ...@@ -74,26 +74,24 @@
</div> </div>
</template> </template>
<script> <script>
import Api from '~/service/Api' import event from '../event';
import Utils from '~/utils/index' import operationFunc from "~/mixin/operationFunc";
import CodeTable from "~/config/CodeTable";
import formRules from '../model/check';
import Letcan from "../model";
import CodeTable from '~/config/CodeTable'
import Letcan from '~/model/Letcan'
import commonProcess from '~/mixin/commonProcess'
import commonFuncs from '~/mixin/commonFuncs'
import Check from '~/model/Letcan/Check'
import Default from '~/model/Letcan/Default'
import Pattern from '~/model/Letcan/Pattern'
import Ovwp from './Ovwp' import Ovwp from './Ovwp'
import Addbcb from "./Addbcb" import Addbcb from "./Addbcb"
import Engp from "~/views/Public/Engp";
import Setpan from '~/views/Public/Setpan';
import Glepan from "~/views/Public/Glepan";
import Rcldetp from "./Rcldetp"; import Rcldetp from "./Rcldetp";
import Coninfp from '~/views/Public/Coninfp'
import Docpan from '~/views/Public/Docpan' import Engp from "~/components/business/engp/views";
import Doctre from '~/views/Public/Doctre' import Setmod from "~/components/business/setmod/views";
import Limitbody from '~/views/Public/Limitbody' // import Glepan from "~/components/business/glepan/views";
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Limitbody from "~/components/business/limitbody/views";
export default { export default {
name: "Letcan", name: "Letcan",
...@@ -101,8 +99,7 @@ export default { ...@@ -101,8 +99,7 @@ export default {
'm-setmod': Setmod, 'm-setmod': Setmod,
'm-ovwp': Ovwp, 'm-ovwp': Ovwp,
'm-engp': Engp, 'm-engp': Engp,
'm-setpan': Setpan, // 'm-glepan': Glepan,
'm-glepan': Glepan,
'm-rcldetp': Rcldetp, 'm-rcldetp': Rcldetp,
'm-coninfp': Coninfp, 'm-coninfp': Coninfp,
'm-docpan': Docpan, 'm-docpan': Docpan,
...@@ -115,41 +112,23 @@ export default { ...@@ -115,41 +112,23 @@ export default {
root: this, root: this,
} }
}, },
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理 mixins: [event, operationFunc],
data() { data() {
return { return {
tabVal: 'ovwp', tabVal: 'ovwp',
trnName: 'letcan', trnName: 'letcan',
model: new Letcan().data, model: new Letcan().data,
checkRules: Check, rules: formRules,
defaultRules: Default, codes: {
pattern: Pattern, ...CodeTable
rules: null, },
activeNames: ["engp"], activeNames: ["setpan"],
codes: { ...CodeTable },
} }
}, },
methods: { methods: {
tabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
}, },
}, mounted() {
created: async function () { this.init()
console.log('进入letcan交易')
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data)
if (this.isInDisplay) {
this.restoreDisplay()
}
} 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