Commit aa0515fe by 李少勇

代码优化

parent 36d7621e
import Api from "~/service/Api"
export default {
methods: {
// 改变form后更新数据统一方法
handleChangeForm (key, value) {
console.log('key===', key)
console.log(value)
// 提交
handleSubmit () {
console.log('提交')
},
// 检核
handleCheck () {
this.$refs['modelForm'].validate((valid) => {
console.log('valid', valid)
})
},
// 暂存
handleStash () {
console.log('暂存')
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData (key) {
console.log(key)
},
// 业务信息=》开立方式=》对外担保类型
cfaguatypChange (key, value) {
if(this.model.gidgrp.rec.fingua=="Y" && this.model.cfagit.cfaflg=="1") {
this.handleChangeForm(key, value)
}
},
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref () {
let params = {
......@@ -30,8 +33,8 @@ export default {
this.model.gidgrp.rec.ownref = res.data
}
},
// 业务信息=》基本信息=》申请人-----获取申请人信息
async queryGidgrpAplPtsExtkey (type, ptytyp) {
// 获取gitopn弹框表格数据
async queryGridEtyPromptDialogData (type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
......@@ -44,8 +47,8 @@ export default {
this.root.promptData.type = type
}
},
// 业务信息=》基本信息=》申请人-----设置申请人信息
async selectEty (row) {
// 选中gitopn弹框表格的行数据
async selectGridEtyPromptData (row) {
let params = {
...row
}
......
......@@ -135,7 +135,6 @@
size="small"
type="primary"
style="margin: 5px 0 0 10px;width:100px;float:left;"
@click="handleChangeForm"
>
查看系统文本
</c-button>
......@@ -145,7 +144,6 @@
size="small"
type="primary"
style="margin: 5px 0 0 10px;width:100px;float:left;"
@click="handleChangeForm"
>
查看历史文本
</c-button>
......
......@@ -42,7 +42,6 @@
style="width: 100%"
placeholder="请选择是否对外担保"
:code="codes.fingua"
@change="handleChangeForm('gidgrp.rec.fingua', model.gidgrp.rec.fingua)"
>
</c-select>
</el-form-item>
......
......@@ -155,7 +155,6 @@
style="width: 100%"
placeholder="请选择保函开立类型"
:code="getValues('gidgrp.rec.hndtyp', 'hndtyp')"
@change="handleChangeForm('gidgrp.rec.hndtyp', model.gidgrp.rec.hndtyp)"
>
</c-select>
</el-form-item>
......@@ -168,7 +167,6 @@
style="width: 100%"
placeholder="请选择保函种类"
:code="getValues('gidgrp.rec.gartyp','typgar')"
@change="handleChangeForm('gidgrp.rec.gartyp', model.gidgrp.rec.gartyp)"
>
</c-select>
</el-form-item>
......@@ -708,7 +706,7 @@
v-model="model.gidgrp.apl.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="queryGidgrpAplPtsExtkey('APL', 'C')"
@keyup.enter.native="queryGridEtyPromptDialogData('APL', 'C')"
>
</c-input>
<template slot="footer">
......@@ -784,7 +782,7 @@
v-model="model.gidgrp.adv.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="queryGidgrpAplPtsExtkey('ADV', 'B')"
@keyup.enter.native="queryGridEtyPromptDialogData('ADV', 'B')"
>
</c-input>
<template slot="footer">
......@@ -856,7 +854,7 @@
v-model="model.gidgrp.iss.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="queryGidgrpAplPtsExtkey('ISS', 'B')"
@keyup.enter.native="queryGridEtyPromptDialogData('ISS', 'B')"
></c-input>
<template slot="footer">
<c-button
......@@ -924,7 +922,7 @@
v-model="model.gidgrp.ben.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="queryGidgrpAplPtsExtkey('BEN', 'C')"
@keyup.enter.native="queryGridEtyPromptDialogData('BEN', 'C')"
></c-input>
<template slot="footer">
<c-button
......@@ -1157,7 +1155,6 @@
maxlength="780"
show-word-limit
placeholder="请输入到期条件"
@blur="handleChangeForm('gidgrp.blk.atxexptxt', model.gidgrp.blk.atxexptxt)"
></c-input>
</c-form-item>
</c-col>
......@@ -1288,7 +1285,6 @@
maxlength="780"
show-word-limit
placeholder="请输入责任状况"
@blur="handleChangeForm('gidgrp.blk.atxliatxtc', model.gidgrp.blk.atxliatxtc)"
></c-input>
</el-form-item>
</c-col>
......@@ -1302,7 +1298,6 @@
"
style="margin: 0 0 0 10px"
v-model="model.gitp.liatxtcmodflg"
@change="handleChangeForm('gitp.liatxtcmodflg', model.gitp.liatxtcmodflg)"
>是否手工修改保函文本</c-checkbox
>
<c-button
......@@ -1321,7 +1316,6 @@
size="small"
type="primary"
style="margin: 5px 0 0 10px;float: left;text-align: center;"
@click="handleChangeForm"
>
查看历史文本
</c-button>
......@@ -1348,7 +1342,7 @@ export default {
flag(){
if(this.model.gitp.swiftflg == 'N') {
if(this.model.gidgrp.rec.ownref == '') {
if(this.model.gidgrp.rec.hndtyp === '' && this.model.gidgrp.apl.pts.adrblk !== '') {
if(this.model.gidgrp.rec.hndtyp !== '' && this.model.gidgrp.apl.pts.adrblk !== '') {
return false;
} else {
return true;
......
......@@ -80,7 +80,6 @@
@keyup.enter.native="
showGridPromptDialog(`gidgrp.con.pts.extkey`)
"
@change="handleChangeForm('gidgrp.con.pts.extkey', model.gidgrp.con.pts.extkey)"
></c-input>
<template slot="footer">
<c-button
......
......@@ -86,16 +86,18 @@
</c-tabs>
</el-form>
<!-- 底部按钮 -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
<!-- 选择数据的表格弹框 -->
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectEty"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
</c-page>
......@@ -104,7 +106,6 @@
<script>
import event from '../event'
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import formRules from '../model/check'
import CodeTable from "~/config/CodeTable";
import Gitopn from "../model";
......@@ -179,7 +180,7 @@ export default {
};
},
// 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs, event],
mixins: [commonProcess, event],
data() {
return {
tabVal: "ovwp",
......
......@@ -85,9 +85,6 @@ export default {
},
methods: {
// judgeVisiableInfo() {
// },
start: async function() {
this.handleSubmit && (await this.handleSubmit());
},
......@@ -132,7 +129,7 @@ export default {
}
};
</script>
<style>
<style scoped>
.m-Btn-eContainer {
display: flex; /*flex布局*/
flex-direction: row;
......
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