Commit 5f3c8f8f by “wufan”

前端页面gitopn修改

parent 1df38dc8
<template> 64<template>
<div class="eibs"> <div class="eibs">
<c-row> <c-row>
<c-col :span="24"> <c-col :span="24">
...@@ -68,15 +68,11 @@ ...@@ -68,15 +68,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -11,10 +11,7 @@ ...@@ -11,10 +11,7 @@
</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/Gitopn/Event";
import Addbcb1 from "./Addbcb1"; import Addbcb1 from "./Addbcb1";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
...@@ -25,7 +22,7 @@ export default { ...@@ -25,7 +22,7 @@ export default {
}, },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return { return {
activeNames: ["addbcb1"], activeNames: ["addbcb1"],
...@@ -46,15 +43,6 @@ export default { ...@@ -46,15 +43,6 @@ export default {
arr.push(path) arr.push(path)
} }
} }
// let rulePath = arr[arr.length-1]//取最后一个展开的面板的rulePath
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
}, },
}, },
created: function () {}, created: function () {},
......
...@@ -51,15 +51,12 @@ ...@@ -51,15 +51,12 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
style="width: 100%" style="width: 100%"
placeholder="请选择数据采集标志" placeholder="请选择数据采集标志"
:code="codes.cfaflg1" :code="codes.cfaflg1"
@change="cfaflgChange"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -65,16 +64,12 @@ ...@@ -65,16 +64,12 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
import event from '../event'
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
...@@ -82,24 +77,6 @@ export default { ...@@ -82,24 +77,6 @@ export default {
watch: {}, watch: {},
methods: { methods: {
...Event, ...Event,
async cfaflgChange() {
let rtnmsg = await this.executeRule("cfagit.cfaflg");
if (rtnmsg.respCode == SUCCESS) {
// TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
// 数据采集方式选择新增,会出现新的标签页,签约信息1,
// 而切换到签约信息1标签页会触发tabClick事件,UI合并后,需手动加此切换标签页方法
if(this.model.cfagit.cfaflg=="1"){
this.$nextTick(() => {
this.executeRule("cfagit.recp.conp").then((res) => {
if (res.respCode == SUCCESS)
//TODO 处理数据逻辑
this.updateModel(res.data);
});
});
}
}
},
}, },
created: function () {}, created: function () {},
}; };
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames">
<el-collapse-item title="跨境人民币申报" name="cnyp1"> <el-collapse-item title="跨境人民币申报" name="cnyp1">
<m-cnyp1 :model="model" :codes="codes" /> <m-cnyp1 :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
...@@ -11,10 +11,7 @@ ...@@ -11,10 +11,7 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitopn/Event";
import Cnyp1 from "./Cnyp1"; import Cnyp1 from "./Cnyp1";
import Voup from "./Voup"; import Voup from "./Voup";
...@@ -29,7 +26,7 @@ export default { ...@@ -29,7 +26,7 @@ export default {
}, },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess,Event],
data() { data() {
return { return {
activeNames: ["cnyp1"], activeNames: ["cnyp1"],
...@@ -37,28 +34,6 @@ export default { ...@@ -37,28 +34,6 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
handleChange(names){
// console.log(names);//激活的(展开的)面板的name数组集合
if (this.isInDisplay) {
return
}
const arr = []
for (let i = 0; i < names.length; i++) {
const n = names[i];
const path = tabNameToRulePathMapping[n]//取出激活/展开面板name对应的rulePath
if (path) {
arr.push(path)
}
}
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -102,15 +102,11 @@ ...@@ -102,15 +102,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -266,15 +266,11 @@ ...@@ -266,15 +266,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -411,16 +411,13 @@ ...@@ -411,16 +411,13 @@
</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/Gitopn/Event";
import { Model } from "echarts"; import { Model } from "echarts";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return { return {
guarancurr: [ guarancurr: [
......
...@@ -326,15 +326,11 @@ ...@@ -326,15 +326,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -91,15 +91,11 @@ ...@@ -91,15 +91,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -635,15 +635,12 @@ ...@@ -635,15 +635,12 @@
</div> </div>
</template> </template>
<script> <script>
import commonProcess from "~/mixin/commonProcess";
import event from '../event' import event from '../event'
import InputXml from "~/components/InputXml";
export default { export default {
components: { InputXml }, components: { InputXml },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess, event], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
maxlength="3250" maxlength="3250"
show-word-limit show-word-limit
placeholder="请输入Underly. Transact. Det." placeholder="请输入Underly. Transact. Det."
@blur="atxcovgodsrvcBlur"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -74,7 +73,6 @@ ...@@ -74,7 +73,6 @@
v-if="model.gitp.swiftflg == 'Y'" v-if="model.gitp.swiftflg == 'Y'"
v-model="model.gitp.covgodsrvcmodflg" v-model="model.gitp.covgodsrvcmodflg"
style="margin: 0 0 0 10px" style="margin: 0 0 0 10px"
@change="modflgChange"
>是否手工修改保函文本</c-checkbox >是否手工修改保函文本</c-checkbox
> >
<c-checkbox <c-checkbox
...@@ -272,34 +270,18 @@ ...@@ -272,34 +270,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/Gitopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
methods: { methods: {
...Event, ...Event,
async atxcovgodsrvcBlur() {
let rtnmsg = await this.executeRule("gidgrp.blk.atxcovgodsrvc");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
async modflgChange() {
let rtnmsg = await this.executeRule("gitp.covgodsrvcmodflg");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -9,21 +9,10 @@ ...@@ -9,21 +9,10 @@
label="保函文本可变因素" label="保函文本可变因素"
prop="gidgrp.blk.gidtxt" prop="gidgrp.blk.gidtxt"
> >
<!-- <c-input-xml
:disabled="model.gitp.gidtxtmodflg == ''"
type="textarea"
:maxRows="15"
:model="model.gidgrp.blk.gidtxt"
maxlength="65"
show-word-limit
@change="setTxt1"
placeholder="请输入保函文本可变因素"
></c-input-xml> -->
<c-xml-format-editor <c-xml-format-editor
:model="model.gidgrp.blk.gidtxt" :model="model.gidgrp.blk.gidtxt"
:disabled="model.gitp.gidtxtmodflg == ''" :disabled="model.gitp.gidtxtmodflg == ''"
placeholder="请输入保函文本可变因素" placeholder="请输入保函文本可变因素"
@blur="setTxt1"
></c-xml-format-editor> ></c-xml-format-editor>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -31,19 +20,9 @@ ...@@ -31,19 +20,9 @@
label="保函文本可变因素" label="保函文本可变因素"
prop="gidgrp.blk.gtxgidtxt" prop="gidgrp.blk.gtxgidtxt"
> >
<!-- <c-input-xml
type="textarea"
:model="model.gidgrp.blk.gtxgidtxt"
:maxRows="15"
maxlength="65"
show-word-limit
@change="setTxt2"
placeholder="请输入保函文本可变因素"
></c-input-xml> -->
<c-xml-format-editor <c-xml-format-editor
:model="model.gidgrp.blk.gtxgidtxt" :model="model.gidgrp.blk.gtxgidtxt"
placeholder="请输入保函文本可变因素" placeholder="请输入保函文本可变因素"
@blur="setTxt2"
></c-xml-format-editor> ></c-xml-format-editor>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -54,7 +33,6 @@ ...@@ -54,7 +33,6 @@
v-model="model.gitp.gidtxtmodflg" v-model="model.gitp.gidtxtmodflg"
style="margin: 0 0 0 10px" style="margin: 0 0 0 10px"
class="checkbox-left" class="checkbox-left"
@change="modflgChange"
>修改保函文本</c-checkbox >修改保函文本</c-checkbox
> >
</c-col> </c-col>
...@@ -139,54 +117,19 @@ ...@@ -139,54 +117,19 @@
</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/Getame/Event";
import InputXml from "~/components/InputXml"; import InputXml from "~/components/InputXml";
export default { export default {
components: { InputXml }, components: { InputXml },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
methods: {async setTxt1(val, fn){ methods: {
// this.executeDefault("gitp.gidgrp.blk.gidtxt").then((res) => { },
// if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
// }
// });
this.executeRule("gitp.gidgrp.blk.gidtxt").then((res) => {
if ((res.respCode == SUCCESS)) {
this.updateModel(res.data);
this.$nextTick(() => fn())
}
});
},
async setTxt2(val, fn){
// this.executeDefault("gitp.gidgrp.blk.gtxgidtxt").then((res) => {
// if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
// }
// });
this.executeRule("gitp.gidgrp.blk.gtxgidtxt").then((res) => {
if ((res.respCode == SUCCESS)) {
this.updateModel(res.data);
this.$nextTick(() => fn())
}
});
},
...Event ,
async modflgChange() {
const rtnmsg = await this.executeRule("gitp.gidtxtmodflg");
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
}
},},
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -126,17 +126,13 @@ ...@@ -126,17 +126,13 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import IStreamInput from "~/components/IStreamInput"; import IStreamInput from "~/components/IStreamInput";
import Event from "~/model/Gitopn/Event"; import event from '../event'
export default { export default {
components: { IStreamInput }, components: { IStreamInput },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
:style="model.gidgrp.cbs.max.cur == 'CNY'? 'width: 90%' :'width: 100%'" :style="model.gidgrp.cbs.max.cur == 'CNY'? 'width: 90%' :'width: 100%'"
placeholder="请选择对外担保类型" placeholder="请选择对外担保类型"
:code="codes.cfaguatyp" :code="codes.cfaguatyp"
@change="cfaguatypChange('gidgrp.rec.cfaguatyp', model.gidgrp.rec.cfaguatyp)"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -62,17 +61,6 @@ export default { ...@@ -62,17 +61,6 @@ export default {
}, },
computed: {}, computed: {},
methods: { methods: {
// async cfaguatypChange(){
// if(this.model.gidgrp.rec.fingua=="Y" && this.model.cfagit.cfaflg=="1"){
// //选择对外担保时,且对外担保数据采集标签页数据采集标志为'新增'时,担保类型改变,td切换到对外担保-签约信息1标签页时会触发tabClick事件,影响签约信息1页面数据。
// //UI合并页面后,需要手动加tabClick切换标签页事件
// let rtnmsg = await this.executeRule("cfagit.recp.conp");
// if (rtnmsg.respCode == SUCCESS) {
// //TODO 处理数据逻辑
// this.updateModel(rtnmsg.data);
// }
// }
// },
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -76,10 +76,7 @@ ...@@ -76,10 +76,7 @@
</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/Gitopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
import Ovwp1 from "./Ovwp1"; import Ovwp1 from "./Ovwp1";
import Opnp from "./Opnp"; import Opnp from "./Opnp";
...@@ -132,7 +129,7 @@ export default { ...@@ -132,7 +129,7 @@ export default {
}, },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return { return {
activeNames: ["opnp"], activeNames: ["opnp"],
...@@ -157,34 +154,6 @@ export default { ...@@ -157,34 +154,6 @@ export default {
} }
// let rulePath = arr[arr.length-1]//取最后一个展开的面板的rulePath // let rulePath = arr[arr.length-1]//取最后一个展开的面板的rulePath
let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串 let rulePath = arr.join(",");//把arr数组加入逗号分割,变成字符串
// if (name === "conp") {
// rulePath = "cfagit.recp.conp";
// }
// if (name === "voup") {
// rulePath = "cnybop.voup";
// }
// if (name === "cfap") {
// rulePath = "cfagit.cfap";
// }
// if (name === "dclpp") {
// rulePath = "Ebbp.dclpp";
// }
// if (name === "gidtxtp"){
// rulePath = "gitp.gidtxtp"
// }
// if (name === "ptypc"){
// rulePath = "gitp.ptypc"
// }
// if(name === "detp"){
// rulePath = "gitp.detp"
// }
if (!!rulePath) {//rulePath不为空串
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
}, },
}, },
created: function () {}, created: function () {},
......
...@@ -140,7 +140,6 @@ ...@@ -140,7 +140,6 @@
style="width: 100%" style="width: 100%"
placeholder="请选择支出目的" placeholder="请选择支出目的"
:code="getValues('gidgrp.rec.purpos')" :code="getValues('gidgrp.rec.purpos')"
@change="purposChange"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -1405,62 +1404,6 @@ export default { ...@@ -1405,62 +1404,6 @@ export default {
onSeainf(data) { onSeainf(data) {
this.$emit("onSeainf", data); this.$emit("onSeainf", data);
}, },
// async purposChange(){
// let rtnmsg = await this.executeRule("gidgrp.rec.purpos");
// if (rtnmsg.respCode == SUCCESS) {
// //TODO 处理数据逻辑
// this.updateModel(rtnmsg.data);
// if(this.model.gidgrp.rec.purpos == 'ISCO' || this.model.gidgrp.rec.purpos == 'ICCO'){
// this.$nextTick(() => {
// this.executeRule("gitp.ptypc").then((res) => {
// //TODO 处理数据逻辑
// if (res.respCode == SUCCESS)
// this.updateModel(res.data);
// });
// });
// }
// }
// },
// 已修改为统一的表单更新方法
// async atxexpBlur() {
// let rtnmsg = await this.executeRule("gidgrp.blk.atxexptxt");
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// }
// },
// 已修改为统一的表单更新方法
// async atxliatxtcBlur() {
// let rtnmsg = await this.executeRule("gidgrp.blk.atxliatxtc");
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// }
// },
// 已修改为统一的表单更新方法
// async liamodflgChange() {
// let rtnmsg = await this.executeRule("gitp.liatxtcmodflg");
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// }
// },
// 已修改为统一的表单更新方法
// async hndtypChange() {
// let rtnmsg = await this.executeRule("gidgrp.rec.hndtyp");
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// }
// },
// 已修改为统一的表单更新方法
// async gartypChange() {
// let rtnmsg = await this.executeRule("gidgrp.rec.gartyp");
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// }
// },
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -264,15 +264,11 @@ ...@@ -264,15 +264,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -177,7 +177,6 @@ ...@@ -177,7 +177,6 @@
maxlength="6500" maxlength="6500"
show-word-limit show-word-limit
placeholder="请输入演示说明" placeholder="请输入演示说明"
@blur="atxpreperBlur"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -186,7 +185,6 @@ ...@@ -186,7 +185,6 @@
v-model="model.gitp.prepermodflg" v-model="model.gitp.prepermodflg"
style="margin: 0 0 0 10px" style="margin: 0 0 0 10px"
class="checkbox-left" class="checkbox-left"
@change="modflgChange"
>是否手工修改保函文本</c-checkbox >是否手工修改保函文本</c-checkbox
> >
...@@ -223,36 +221,18 @@ ...@@ -223,36 +221,18 @@
</template> </template>
<script> <script>
import _ from "lodash"; import _ from "lodash";
import event from '../event'
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
methods: { methods: {
...Event, ...Event,
async atxpreperBlur() {
let rtnmsg = await this.executeRule("gidgrp.blk.atxpreper");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
async modflgChange() {
let rtnmsg = await this.executeRule("gitp.prepermodflg");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -175,15 +175,11 @@ ...@@ -175,15 +175,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -144,7 +144,6 @@ ...@@ -144,7 +144,6 @@
showGridPromptDialog(`gidgrp.apl.pts.extkey`) showGridPromptDialog(`gidgrp.apl.pts.extkey`)
" "
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -199,7 +198,6 @@ ...@@ -199,7 +198,6 @@
showGridPromptDialog(`gidgrp.ctr.pts.extkey`) showGridPromptDialog(`gidgrp.ctr.pts.extkey`)
" "
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -256,7 +254,6 @@ ...@@ -256,7 +254,6 @@
showGridPromptDialog(`gidgrp.apl.pts.extkey`) showGridPromptDialog(`gidgrp.apl.pts.extkey`)
" "
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -312,7 +309,6 @@ ...@@ -312,7 +309,6 @@
showGridPromptDialog(`gidgrp.ctr.pts.extkey`) showGridPromptDialog(`gidgrp.ctr.pts.extkey`)
" "
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -506,7 +502,6 @@ ...@@ -506,7 +502,6 @@
showGridPromptDialog(`gidgrp.ben.pts.extkey`) showGridPromptDialog(`gidgrp.ben.pts.extkey`)
" "
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -557,7 +552,6 @@ ...@@ -557,7 +552,6 @@
showGridPromptDialog(`gidgrp.atb.pts.extkey`) showGridPromptDialog(`gidgrp.atb.pts.extkey`)
" "
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -615,7 +609,6 @@ ...@@ -615,7 +609,6 @@
</div> </div>
</template> </template>
<script> <script>
import commonProcess from '~/mixin/commonProcess'
import event from '../event' import event from '../event'
import Ptap from '~/views/Public/Ptap' import Ptap from '~/views/Public/Ptap'
import Utils from '~/utils' import Utils from '~/utils'
...@@ -624,7 +617,7 @@ export default { ...@@ -624,7 +617,7 @@ export default {
components: { 'c-ptap': Ptap }, components: { 'c-ptap': Ptap },
inject: ['root'], inject: ['root'],
props: ['model', 'codes'], props: ['model', 'codes'],
mixins: [commonProcess, event], mixins: [event],
data() { data() {
return { return {
ptsaddg: { ptsaddg: {
...@@ -657,44 +650,7 @@ export default { ...@@ -657,44 +650,7 @@ export default {
} }
}, },
methods: { methods: {
// ...Event,
// async benBlur() {
// let rtnmsg = await this.executeDefault('gidgrp.rec.sndto')
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data)
// }
// },
// 角色改变手动触发default 500 GIDGRP\REC\DELTO
async roleChange(){
let rtnmsg = await this.executeDefault("gidgrp.rec.delto");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
// 切换到演示/交付tab页触发event
// 已修改为统一的表单更新方法
// async preperpTab() {
// let rtnmsg = await this.executeRule('gitp.preperp')
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data)
// }
// },
}, },
watch: {
"model.gidgrp.apl.pts.adrblk": function() {
this.roleChange()
},
"model.gidgrp.ctr.pts.adrblk": function() {
this.roleChange()
},
"model.gidgrp.ben.pts.adrblk": function() {
this.roleChange()
},
"model.gidgrp.atb.pts.adrblk": function() {
this.roleChange()
},
},
created: function () {}, created: function () {},
} }
</script> </script>
......
...@@ -325,10 +325,7 @@ ...@@ -325,10 +325,7 @@
</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/Gitopn/Event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils"; import Utils from "~/utils";
...@@ -337,18 +334,12 @@ export default { ...@@ -337,18 +334,12 @@ export default {
components: { "c-ptap": Ptap }, components: { "c-ptap": Ptap },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
methods: { methods: {
...Event, ...Event,
// async issBlur() {
// let rtnmsg = await this.executeDefault("gidgrp.rec.sndto");
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// }
// },
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -399,15 +399,11 @@ ...@@ -399,15 +399,11 @@
</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/Gitopn/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
......
...@@ -102,8 +102,7 @@ ...@@ -102,8 +102,7 @@
</div> </div>
</template> </template>
<script> <script>
import Gitopn from "~/model/Gitopn"; import event from '../event'
import CodeTable from "~/config/CodeTable";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs"; import commonFuncs from "~/mixin/commonFuncs";
import formRules from '../model' import formRules from '../model'
...@@ -177,7 +176,7 @@ export default { ...@@ -177,7 +176,7 @@ export default {
}; };
}, },
// 里面包含了Default、Check等的公共处理 // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], mixins: [commonProcess, commonFuncs,event],
data() { data() {
return { return {
tabVal: "ovwp", tabVal: "ovwp",
......
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