Commit 3e2712aa by 潘际乾

去除无用的文件与代码

parent bcc48c8a
import _ from "lodash"
import commonDeclare from "./commonDeclare"
import commonApi from "./commonApi"
import Utils from "~/utils"
......@@ -7,7 +6,6 @@ export default {
mixins: [commonApi, commonDeclare],
data: function () {
return {
defFlag: true,
// 弹框回填
promptData: {
title: '',
......@@ -21,27 +19,14 @@ export default {
},
mounted() {
if (!this.isInDisplay) {
// this.ruleWatcher()
this.ruleCheck()
}
},
methods: {
openWatch(flag) {
this.defFlag = !!flag
},
ruleWatcher() {
if (!this.defaultRules)
return
const that = this;
Object.keys(that.defaultRules).forEach(key => {
let func = function () {
if (that.defFlag) {
that.defaultRules[key].apply(that)
}
}
that.$watch("model." + key, _.debounce(func, 1000))
})
},
/**
* 表单校验 rules 的赋值
* @returns void
*/
ruleCheck() {
if (!this.pattern)
return
......@@ -83,6 +68,11 @@ export default {
}
that.rules = res;
},
/**
* 触发方式
* @param {String} prop item属性
* @returns
*/
getTriggerType(prop) {
const fields = this.$refs.modelForm.fields;
for (let i = 0; i < fields.length; i++) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<template>
<div>
<div class="title">面函列表</div>
<div class="e-table-wrapper">
<el-table
:data="model.trnmod.trndoc.docmod.doclst"
style="width: 100%"
>
<el-table-column
prop="role"
label="角色">
</el-table-column>
<el-table-column
prop="cortyp"
label="面函类型">
</el-table-column>
<el-table-column
prop="id"
label="凭证代码">
</el-table-column>
<el-table-column
prop="docnam"
label="凭证名称">
</el-table-column>
<el-table-column
prop="op"
label="操作">
<template slot-scope="scope">
<el-button size="small" type="primary"
@click="detail(scope.row)">明细</el-button>
</template>
</el-table-column>
</el-table>
</div>
<el-dialog :title="title" :visible.sync="dialogOpen" :destroy-on-close="true" width="95%">
<c-docshow :path="viewurl"/>
</el-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
props:['model'],
data(){
return {
viewurl:"",
title:'',
dialogOpen:false
}
},
methods:{
async detail(row){
let cortyp = row.cortyp
let rtnmsg
if (cortyp == 'SWT'|| cortyp == 'FMT' || cortyp == 'CMT') {
this.model.setmod.msgmod.doccod = row.id
rtnmsg = await Api.post('cptopn/msgmod_butshw', { data: Utils.flatObject(this.model) })
} else {
this.model.trnmod.trndoc.doccod = row.id
this.model.trnmod.trndoc.cortyp = cortyp
rtnmsg = await Api.post('cptopn/trndoc_butshw', { data: Utils.flatObject(this.model) })
}
console.log(rtnmsg)
if (rtnmsg.code == SUCCESS) {
if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
let viewurl = rtnmsg.data.setmod_msgmod_docpth;
this.viewurl = viewurl
this.title="报文"
//window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
else if(cortyp == 'ELC')
{
Modal.info({title:'电证报文',content:<div style={{height:400,overflow:'auto'}}><ELCMessage mty={row.id} message={rtnmsg.data["\\trnmod\\trndoc\\docinf"]}/></div>,
width:1000,
})
}
else {
let url = rtnmsg.data.trnmod_trndoc_docpth;
this.viewurl = url
this.title = "面函"
//console.log(url)
//window.open(url)
// window.location.href = url
// let url = rtnmsg.data.trndoc_docpth;
// let viewurl = "/psbcfront/pdfjs/web/viewer.html";
// viewurl += "?file=" + url;
// window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
this.dialogOpen=true
}
else {
this.$notify.error({title: '错误',message: '服务请求失败!'})
}
}
}
}
</script>
<style scoped>
.title {
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
}
</style>
\ No newline at end of file
<template>
<div>
<div class="title">费用明细</div>
<div class="e-table-wrapper">
<el-table
:data="model.setmod.setfeg.fegmod.feslst"
style="width: 100%"
>
<el-table-column
prop="rol"
label="角色"
width="100">
</el-table-column>
<el-table-column
prop="feecod"
label="费用代码"
width="150"
>
</el-table-column>
<el-table-column
prop="feetxt"
label="费用名称"
width="200">
<!-- <template slot-scope="scope">
<span>{{ findCodeLabel(codes.feecod,scope.row.feecod) }}</span>
</template> -->
</el-table-column>
<el-table-column
prop="cur"
label="收费币种"
width="150">
</el-table-column>
<el-table-column
prop="basamt"
label="应收金额"
width="150">
</el-table-column>
<el-table-column
prop="amt"
label="实收金额"
width="150">
</el-table-column>
<el-table-column
prop="dsp"
label="现收/缓收"
width="150">
</el-table-column>
<el-table-column
prop="payflg"
label="内扣/外收"
width="150">
</el-table-column>
<el-table-column
prop=""
label="操作"
width="150">
<template slot-scope="scope">
<el-button type="text" size="small">查看</el-button>
<el-button type="text" size="small">编辑</el-button>
</template>
</el-table-column>
</el-table>
</div>
<el-button plain class="add-btn" @click="handleClickFeslst">+</el-button>
<div class="title">财务明细</div>
<div class="e-table-wrapper">
<el-table
:data="model.setmod.setglg.glgmod.glslst"
style="width: 100%"
>
<el-table-column
prop="debcdtflg"
label="借/贷">
</el-table-column>
<el-table-column
prop="cur"
label="结算币种">
</el-table-column>
<el-table-column
prop="amt"
label="结算金额">
</el-table-column>
<el-table-column
prop="dsp"
label="结算方式">
</el-table-column>
<el-table-column
prop="act"
label="账户">
</el-table-column>
<el-table-column
prop="acccur"
label="原币种">
</el-table-column>
<el-table-column
prop="accamt"
label="原金额">
</el-table-column>
<el-table-column
prop="rat"
label="汇率">
</el-table-column>
</el-table>
</div>
<el-button plain class="add-btn" @click="handleClickGlslst">+</el-button>
<el-dialog
:visible.sync="feslstVisible"
width="30%">
<span slot="title"></span>
<m-feslst-detail
v-bind:model="feslst"
v-bind:codes="codes" />
<span slot="footer" class="dialog-footer">
<el-button @click="feslstVisible = false">取 消</el-button>
<el-button type="primary" @click="addFeslst">确 定</el-button>
</span>
</el-dialog>
<el-dialog
:visible.sync="glslstVisible"
width="30%">
<span slot="title"></span>
<m-glslst-detail
v-bind:model="glslst"
v-bind:codes="codes" />
<span slot="footer" class="dialog-footer">
<el-button @click="glslstVisible = false">取 消</el-button>
<el-button type="primary" @click="addGlslst">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import FeslstDetail from './FeslstDetail'
import GlslstDetail from './GlslstDetail'
export default {
components: {
'm-feslst-detail': FeslstDetail,
'm-glslst-detail': GlslstDetail
},
props:['model', 'codes'],
data: function () {
return {
feslstVisible: false,
glslstVisible: false,
feslst: {
rol: '',
feecod: '',
feetxt: '',
cur: '',
basamt: '',
amt: '',
dsp: '',
payflg: ''
},
glslst: {
debcdtflg: '',
cur: '',
amt: '',
dsp: '',
act: '',
acccur: '',
accamt: '',
rat: ''
}
}
},
methods: {
addFeslst () {
this.feslstVisible = false
this.model.setmod.setfeg.fegmod.feslst.push(this.feslst)
this.feslst = {
rol: '',
feecod: '',
feetxt: '',
cur: '',
basamt: '',
amt: '',
dsp: '',
payflg: ''
}
},
addGlslst () {
this.glslstVisible = false
this.model.setmod.setglg.glgmod.glslst.push(this.glslst)
this.glslst = {
debcdtflg: '',
cur: '',
amt: '',
dsp: '',
act: '',
acccur: '',
accamt: '',
rat: ''
}
},
handleClickFeslst () {
this.feslstVisible = true
},
handleClickGlslst () {
this.glslstVisible = true
}
}
}
</script>
<style scoped>
.title {
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
padding-bottom: 10px;
}
.add-btn {
margin: 12px 0;
text-align: center;
width: 100%;
color: #ccc;
}
</style>
\ No newline at end of file
<template>
<div>
<c-col :span="6" class="suffix-title">
角色
</c-col>
<c-col :span="18">
<el-select v-model="model.rol" style="width:100%" placeholder="请选择">
<el-option
v-for="item in codes.rol"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</c-col>
<c-col :span="6" class="suffix-title">
费用代码
</c-col>
<c-col :span="18">
<el-input v-model="model.feecod" maxlength="32" placeholder="请输入" disabled></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
费用名称
</c-col>
<c-col :span="18">
<el-input v-model="model.feetxt" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
收费币种
</c-col>
<c-col :span="18">
<el-select v-model="model.cur" style="width:100%" placeholder="请选择">
<el-option
v-for="item in codes.curtxt"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</c-col>
<c-col :span="6" class="suffix-title">
应收金额
</c-col>
<c-col :span="18">
<el-input v-model="model.basamt" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
实收金额
</c-col>
<c-col :span="18">
<el-input v-model="model.amt" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
现收/缓收
</c-col>
<c-col :span="18">
<el-select v-model="model.dsp" style="width:100%" placeholder="请选择">
<el-option
v-for="item in codes.dsp"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</c-col>
<c-col :span="6" class="suffix-title">
内扣/外收
</c-col>
<c-col :span="18">
<el-select v-model="model.payflg" style="width:100%" placeholder="请选择">
<el-option
v-for="item in codes.payflg"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</c-col>
</div>
</template>
<script>
export default {
props: ['model', 'codes']
}
</script>
<style scoped>
.suffix-title {
line-height: 40px;
}
[class*=c-col-] {
height: 50px;
}
</style>
\ No newline at end of file
<template>
<div>
<div class="title">会计分录</div>
<div class="e-table-wrapper">
<el-table
:data="model.setmod.glemod.glelst"
style="width: 100%"
>
<el-table-column
prop="dbtcdt"
label="借/贷">
</el-table-column>
<el-table-column
prop="act"
label="账号">
</el-table-column>
<el-table-column
prop="cur"
label="币种">
</el-table-column>
<el-table-column
prop="amt"
label="金额">
</el-table-column>
<el-table-column
prop="valdat"
label="起息日">
<template slot-scope="scope">
{{dateFormat(scope.row.valdat) }}
</template>
</el-table-column>
<el-table-column
prop="trmtyp"
label="科目号">
</el-table-column>
<el-table-column
prop="fctsgn"
label="记账方式">
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
export default {
props:['model']
}
</script>
<style scoped>
.title {
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
}
</style>
\ No newline at end of file
<template>
<div>
<c-col :span="6" class="suffix-title">
借/贷
</c-col>
<c-col :span="18">
<el-input v-model="model.debcdtflg" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
结算币种
</c-col>
<c-col :span="18">
<el-select v-model="model.cur" style="width:100%" placeholder="请选择">
<el-option
v-for="item in codes.curtxt"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</c-col>
<c-col :span="6" class="suffix-title">
结算金额
</c-col>
<c-col :span="18">
<el-input v-model="model.amt" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
结算方式
</c-col>
<c-col :span="18">
<el-input v-model="model.dsp" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
账户
</c-col>
<c-col :span="18">
<el-input v-model="model.act" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
原币种
</c-col>
<c-col :span="18">
<el-input v-model="model.acccur" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
原金额
</c-col>
<c-col :span="18">
<el-input v-model="model.accamt" maxlength="32" placeholder="请输入"></el-input>
</c-col>
<c-col :span="6" class="suffix-title">
汇率
</c-col>
<c-col :span="18">
<el-input v-model="model.rat" maxlength="32" placeholder="请输入"></el-input>
</c-col>
</div>
</template>
<script>
export default {
props: ['model', 'codes']
}
</script>
<style scoped>
.suffix-title {
line-height: 40px;
}
[class*=c-col-] {
height: 50px;
}
</style>
\ No newline at end of file
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