Commit 57c2c681 by liuyunfeng
parents 4adfa9e2 ae61003f
......@@ -5638,6 +5638,15 @@ const CodeTable = {
negCode: [
{ label: `未指定银行`, value: `NULL` },
{ label: `指定银行`, value: `DSIG` },
],
payflg: [
{ label: `内扣`, value: `N` },
{ label: `外收`, value: `W` },
],
dsp: [
{ label: `请选择`, value: `` },
{ label: `现收`, value: `X` },
{ label: `缓收`, value: `P` },
]
}
export default CodeTable;
\ No newline at end of file
......@@ -36,6 +36,7 @@ export default {
jshtyp: CodeTable.jshtyp,
diqvjigou: CodeTable.diqvjigou,
bopmethods: CodeTable.bopmethods,
rol: CodeTable.rol,
swfcod: {
SWT: [
{ label: 'MT103', value: '103' },
......
......@@ -8,4 +8,8 @@ export default {
allow: CodeTable.allow,
yesno: CodeTable.yesno,
negCode: CodeTable.negCode,
onsel: CodeTable.onsel,
dsp: CodeTable.dsp,
payflg: CodeTable.payflg,
rol: CodeTable.rol
}
\ No newline at end of file
......@@ -42,7 +42,9 @@
<!-- 费用 -->
<el-tab-pane label="费用" name="fee">
<m-fee v-bind:model="model" />
<m-fee
v-bind:model="model"
v-bind:codes="codes" />
</el-tab-pane>
<!-- 会计分录 -->
......
......@@ -204,24 +204,44 @@
:visible.sync="dialogVisible"
width="30%">
<span slot="title"></span>
<span>这是一段信息</span>
<m-liaccvg-detail
v-bind:model="liaccvg"
v-bind:codes="codes" />
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
<el-button type="primary" @click="handleAdd">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import LiaccvgDetail from './LiaccvgDetail'
export default {
components: {
'm-liaccvg-detail': LiaccvgDetail,
},
props: ['model', 'codes'],
data () {
return {
dialogVisible: false
dialogVisible: false,
liaccvg: {
cur: '',
oldamt: '',
chgamt: '',
amt: '',
cusact: '',
ccvact: '',
gleflg: ''
}
}
},
methods: {
handleAdd () {
this.dialogVisible = false
this.model.liaall.liaccv.liaccvg.push(this.liaccvg)
}
}
}
</script>
......
<template>
<div>
<el-form :model="model" ref="liaccvgForm" label-position="left" label-width="100px" size="small">
</el-form>
<el-col :span="24">
<el-col :span="6" class="suffix-title">
币种
</el-col>
<el-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>
</el-col>
</el-col>
<el-col :span="6" class="suffix-title">
原始金额
</el-col>
<el-col :span="18">
<el-input v-model="model.oldamt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
变动金额
</el-col>
<el-col :span="18">
<el-input v-model="model.chgamt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
金额
</el-col>
<el-col :span="18">
<el-input v-model="model.amt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
结算账号
</el-col>
<el-col :span="18">
<el-input v-model="model.cusact" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
保证金账号
</el-col>
<el-col :span="18">
<el-input v-model="model.ccvact" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
记账
</el-col>
<el-col :span="18">
<el-select v-model="model.gleflg" style="width:100%" placeholder="请选择">
<el-option
v-for="item in codes.onsel"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-col>
</div>
</template>
<script>
export default {
data () {
return {
model: {
cur: '',
oldamt: '',
chgamt: '',
amt: '',
cusact: '',
ccvact: '',
gleflg: ''
}
}
},
methods: {
}
props: ['model', 'codes']
}
</script>
\ No newline at end of file
</script>
<style scoped>
.suffix-title {
line-height: 40px;
}
[class*=el-col-] {
height: 50px;
}
</style>
\ No newline at end of file
......@@ -21,9 +21,9 @@
prop="feetxt"
label="费用名称"
width="200">
<!-- <template slot-scope="scope">
<span>{{ findCodeLabel(codes.feecod,scope.row.feecod) }}</span>
</template> -->
<!-- <template slot-scope="scope">
<span>{{ findCodeLabel(codes.feecod,scope.row.feecod) }}</span>
</template> -->
</el-table-column>
<el-table-column
prop="cur"
......@@ -52,7 +52,8 @@
</el-table-column>
<el-table-column
prop=""
label="操作">
label="操作"
width="150">
<template slot-scope="scope">
<el-button type="text" size="small">查看</el-button>
<el-button type="text" size="small">编辑</el-button>
......@@ -60,7 +61,7 @@
</el-table-column>
</el-table>
</div>
<el-button plain class="add-btn" @click="addFeslst">+</el-button>
<el-button plain class="add-btn" @click="handleClickFeslst">+</el-button>
<div class="title">财务明细</div>
<div class="e-table-wrapper">
<el-table
......@@ -101,20 +102,106 @@
</el-table-column>
</el-table>
</div>
<el-button plain class="add-btn" @click="addGlslst">+</el-button>
<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 {
props:['model'],
methods: {
addFeslst () {
alert('addFeslst')
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: ''
},
addGlslst () {
alert('addGlslst')
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>
......
<template>
<div>
<el-col :span="6" class="suffix-title">
角色
</el-col>
<el-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>
</el-col>
<el-col :span="6" class="suffix-title">
费用代码
</el-col>
<el-col :span="18">
<el-input v-model="model.feecod" maxlength="32" placeholder="请输入" disabled></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
费用名称
</el-col>
<el-col :span="18">
<el-input v-model="model.feetxt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
收费币种
</el-col>
<el-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>
</el-col>
<el-col :span="6" class="suffix-title">
应收金额
</el-col>
<el-col :span="18">
<el-input v-model="model.basamt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
实收金额
</el-col>
<el-col :span="18">
<el-input v-model="model.amt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
现收/缓收
</el-col>
<el-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>
</el-col>
<el-col :span="6" class="suffix-title">
内扣/外收
</el-col>
<el-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>
</el-col>
</div>
</template>
<script>
export default {
props: ['model', 'codes']
}
</script>
<style scoped>
.suffix-title {
line-height: 40px;
}
[class*=el-col-] {
height: 50px;
}
</style>
\ No newline at end of file
<template>
<div>
<el-col :span="6" class="suffix-title">
借/贷
</el-col>
<el-col :span="18">
<el-input v-model="model.debcdtflg" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
结算币种
</el-col>
<el-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>
</el-col>
<el-col :span="6" class="suffix-title">
结算金额
</el-col>
<el-col :span="18">
<el-input v-model="model.amt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
结算方式
</el-col>
<el-col :span="18">
<el-input v-model="model.dsp" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
账户
</el-col>
<el-col :span="18">
<el-input v-model="model.act" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
原币种
</el-col>
<el-col :span="18">
<el-input v-model="model.acccur" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
原金额
</el-col>
<el-col :span="18">
<el-input v-model="model.accamt" maxlength="32" placeholder="请输入"></el-input>
</el-col>
<el-col :span="6" class="suffix-title">
汇率
</el-col>
<el-col :span="18">
<el-input v-model="model.rat" maxlength="32" placeholder="请输入"></el-input>
</el-col>
</div>
</template>
<script>
export default {
props: ['model', 'codes']
}
</script>
<style scoped>
.suffix-title {
line-height: 40px;
}
[class*=el-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