Commit f8485a62 by fukai

优化配置

parent 2d5e3ab8
import CodeTable from "./CodeTable/index" import CodeTable from "~/config/CodeTable"
export default { export default {
dsp:CodeTable.dsp, dsp:CodeTable.dsp,
......
export default {
"cpdgrp.rec.paytyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.custyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.liqtyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.orcacc": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.cpdflg": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.orc.pts.namcn": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.liqtyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.liqtyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.swftyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.cbs.max.cur": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.cbs.max.amt": [{ required: true, message: '必输项', trigger: 'change' }],
}
\ No newline at end of file
import CodeTable from "./CodeTable/index" import CodeTable from "~/config/CodeTable/index"
export default { export default {
curtxt: CodeTable.curtxt, curtxt: CodeTable.curtxt,
......
export default {
}
\ No newline at end of file
...@@ -723,7 +723,7 @@ export default { ...@@ -723,7 +723,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
handleSearch () { async handleSearch () {
console.log('搜索') console.log('搜索')
const rtnmsg = await Api.post('/cptopn/codsel_ctyinfsub', { data: Utils.flatObject(this.model) }) const rtnmsg = await Api.post('/cptopn/codsel_ctyinfsub', { data: Utils.flatObject(this.model) })
if (rtnmsg.code == SUCCESS) { if (rtnmsg.code == SUCCESS) {
......
...@@ -131,8 +131,7 @@ import Mt202 from "./Mt202" ...@@ -131,8 +131,7 @@ import Mt202 from "./Mt202"
import Fmt100 from "./Fmt100" import Fmt100 from "./Fmt100"
import Cmt100 from "./Cmt100" import Cmt100 from "./Cmt100"
import model from "../../../model/cptopn" import Cptopn,{descriptor,codes} from "~/model/cptopn"
import codes from "../../../config/cptopn"
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
...@@ -166,27 +165,15 @@ export default { ...@@ -166,27 +165,15 @@ export default {
data: function () { data: function () {
return { return {
activeName: 'basic', activeName: 'basic',
model, model:new Cptopn().data,
codes, codes,
rules: { rules:descriptor
"cpdgrp.rec.paytyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.custyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.liqtyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.orcacc": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.cpdflg": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.orc.pts.namcn": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.liqtyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.liqtyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.rec.swftyp": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.cbs.max.cur": [{ required: true, message: '必输项', trigger: 'change' }],
"cpdgrp.cbs.max.amt": [{ required: true, message: '必输项', trigger: 'change' }],
}
} }
}, },
computed: { computed: {
baowenType: function () { baowenType: function () {
if (model.cpdgrp.rec.swftyp) { if (this.model.cpdgrp.rec.swftyp) {
let swftyp = model.cpdgrp.rec.swftyp let swftyp = this.model.cpdgrp.rec.swftyp
return SWFTYP_MAP[swftyp] return SWFTYP_MAP[swftyp]
} else { } else {
return '' return ''
......
<template> <template>
<div> <div>
<c-page title="买方信用证开立"> <c-page title="买方信用证开立">
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="ditopnForm" label-position="left" label-width="150px" size="small"> <el-form :model="model" :rules="rules" ref="ditopnForm" label-position="left" label-width="150px" size="small">
...@@ -87,8 +85,7 @@ import Glelst from "../../Public/Glelst" ...@@ -87,8 +85,7 @@ import Glelst from "../../Public/Glelst"
import Doc from "../../Public/Doc" import Doc from "../../Public/Doc"
import Fee from "../../Public/Fee" import Fee from "../../Public/Fee"
import model from "../../../model/ditopn" import Ditopn,{descriptor,codes} from "~/model/ditopn"
import codes from "../../../config/ditopn"
export default { export default {
components: { components: {
...@@ -103,9 +100,9 @@ export default { ...@@ -103,9 +100,9 @@ export default {
data () { data () {
return { return {
activeName: 'ovwp', activeName: 'ovwp',
model, model:new Ditopn().data,
codes, codes,
rules: {}, rules: descriptor,
exitDialogVisible: false exitDialogVisible: false
} }
}, },
......
...@@ -70,5 +70,5 @@ module.exports = (options = {}) => ({ ...@@ -70,5 +70,5 @@ module.exports = (options = {}) => ({
index: url.parse(options.dev ? '/assets/' : publicPath).pathname index: url.parse(options.dev ? '/assets/' : publicPath).pathname
} }
}, },
devtool: options.dev ? '#eval-source-map' : '#source-map' devtool: '#source-map'
}) })
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