Commit f8485a62 by fukai

优化配置

parent 2d5e3ab8
import CodeTable from "./CodeTable/index"
import CodeTable from "~/config/CodeTable"
export default {
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 {
curtxt: CodeTable.curtxt,
......
export default {
}
\ No newline at end of file
......@@ -723,7 +723,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
handleSearch () {
async handleSearch () {
console.log('搜索')
const rtnmsg = await Api.post('/cptopn/codsel_ctyinfsub', { data: Utils.flatObject(this.model) })
if (rtnmsg.code == SUCCESS) {
......
......@@ -131,8 +131,7 @@ import Mt202 from "./Mt202"
import Fmt100 from "./Fmt100"
import Cmt100 from "./Cmt100"
import model from "../../../model/cptopn"
import codes from "../../../config/cptopn"
import Cptopn,{descriptor,codes} from "~/model/cptopn"
import Api from "~/service/Api"
import Utils from "~/utils"
......@@ -166,27 +165,15 @@ export default {
data: function () {
return {
activeName: 'basic',
model,
model:new Cptopn().data,
codes,
rules: {
"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' }],
}
rules:descriptor
}
},
computed: {
baowenType: function () {
if (model.cpdgrp.rec.swftyp) {
let swftyp = model.cpdgrp.rec.swftyp
if (this.model.cpdgrp.rec.swftyp) {
let swftyp = this.model.cpdgrp.rec.swftyp
return SWFTYP_MAP[swftyp]
} else {
return ''
......
<template>
<div>
<c-page title="买方信用证开立">
<div class="eContainer">
<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"
import Doc from "../../Public/Doc"
import Fee from "../../Public/Fee"
import model from "../../../model/ditopn"
import codes from "../../../config/ditopn"
import Ditopn,{descriptor,codes} from "~/model/ditopn"
export default {
components: {
......@@ -103,9 +100,9 @@ export default {
data () {
return {
activeName: 'ovwp',
model,
model:new Ditopn().data,
codes,
rules: {},
rules: descriptor,
exitDialogVisible: false
}
},
......
......@@ -70,5 +70,5 @@ module.exports = (options = {}) => ({
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