会计事项平台更新

This commit is contained in:
hyt 2025-07-31 09:03:55 +08:00
parent 94ccbe3221
commit 41ebc173f3
4 changed files with 60 additions and 30 deletions

View File

@ -19,9 +19,9 @@
</div>
<div class="showList">
<div class="showItem" v-for="(item,index) in voucherList" :key="index"
:class="{active:item.id === voucherClickId}" @click="voucherCliclHandle(item.id,item.name)"
:class="{active:item.id === voucherClickId}" @click="voucherCliclHandle(item.id,item.name,item.def1)"
>
<div class="name">{{ item.name }}</div>
<div class="name">{{ item.name }}{{ item.def1 === 'Y' ? '①' : ''}}</div>
<div class="icon">
<i class="el-icon-edit" @click.stop="voucherDialogEditHandle(item)" style="margin-right: 10px"></i>
<i class="el-icon-delete" style="color: red" @click.stop="voucherDialogDelHandle(item)"></i>
@ -702,6 +702,27 @@
></baseChoice>
</div>
</base-dialog>
<!-- 20250704新增凭证-->
<base-dialog
:dialogVisible.sync="voucherDialogShow"
:closeModal="false"
:footerShow="true"
:title="passwordDialogTitle+'凭证类型'"
width="400px"
top="20vh"
@handleConfirmClick="voucherDialogClickHandle"
>
<div class="rightDialogClass_main" style="background-color: #fff;display: flex;align-content: flex-start;justify-content: flex-start;flex-direction: column">
<div class="addDialog">
<div class="nameTitle">凭证类型名称</div>
<el-input v-model="billTypeADDName"></el-input>
</div>
<div class="addDialog" style="align-items: center;display: flex;margin-top: 10px;justify-content: flex-start">
<div class="nameTitle">单笔生成</div>
<el-switch v-model="def1" active-value="Y" inactive-value="N"></el-switch>
</div>
</div>
</base-dialog>
</div>
</template>
@ -755,6 +776,7 @@ export default {
//
voucherClickId: '',
voucherClickName: '',
voucherClickdef1: '',
voucherDialogShow: false,
voucherList: [],
subClassOptions: [],//
@ -783,6 +805,7 @@ export default {
width: '100'
}
],
def1: 'N',
pkglbookOptions: [],
treePropsproperty: {
children: 'sublistMdmModuleDbFileds',
@ -1002,27 +1025,27 @@ export default {
exchangeRate: [
{ required: true, message: '请输入汇率', trigger: 'change' }
],
jNumField: [
{ required: true, message: '请选择借方数量字段', trigger: 'change' }
],
jYbSumField: [
{ required: true, message: '请选择借方原币金额字段', trigger: 'change' }
],
jBbSumField: [
{ required: true, message: '请选择借方本币金额字段', trigger: 'change' }
],
dNumField: [
{ required: true, message: '请选择贷方数量字段', trigger: 'change' }
],
dYbSumField: [
{ required: true, message: '请选择贷方原币金额字段', trigger: 'change' }
],
dBbSumField: [
{ required: true, message: '请选择贷方本币金额字段', trigger: 'change' }
],
pkCashflow: [
{ required: true, message: '请选择现金流量项目主键', trigger: 'change' }
]
// jNumField: [
// { required: true, message: '', trigger: 'change' }
// ],
// jYbSumField: [
// { required: true, message: '', trigger: 'change' }
// ],
// jBbSumField: [
// { required: true, message: '', trigger: 'change' }
// ],
// dNumField: [
// { required: true, message: '', trigger: 'change' }
// ],
// dYbSumField: [
// { required: true, message: '', trigger: 'change' }
// ],
// dBbSumField: [
// { required: true, message: '', trigger: 'change' }
// ],
// pkCashflow: [
// { required: true, message: '', trigger: 'change' }
// ]
},
fixedValueForm: [
@ -1230,7 +1253,8 @@ export default {
}
let obj =this.$refs.baseChoice2.optionData
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname])
this.textarea += `@@$${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}`
console.log(this.fixedValueClickRow,'this.fixedValueClickRow')
this.textarea += `@@$${this.fixedValueClickRow.dbName}:id=${obj.id}`
// this.$set(this.clickRow, `factorid${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.key])
// this.$set(this.clickRow, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey])
// this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id'])
@ -1280,9 +1304,10 @@ export default {
this.selected[0].assistEntityList.push({})
},
//
voucherCliclHandle(id, name) {
voucherCliclHandle(id, name,def1) {
this.voucherClickId = id
this.voucherClickName = name
this.voucherClickdef1 = def1
this.resetTable()
},
voucherDialogDelHandle(item) {
@ -1301,6 +1326,7 @@ export default {
voucherDialogEditHandle(item) {
this.billTypeADDID = item.id
this.billTypeADDName = item.name
this.def1 = item.def1
this.voucherDialogShow = true
this.passwordDialogTitle = '编辑'
},
@ -1323,7 +1349,8 @@ export default {
if (this.passwordDialogTitle === '新增') {
const res = await typeSaveAPI({
name: this.billTypeADDName,
mdmId: this.billTypeClickID
mdmId: this.billTypeClickID,
def1: this.def1,
})
this.$vmNews('保存成功', 'success')
this.getVoucherListHandle()
@ -1331,7 +1358,8 @@ export default {
const res = await typeUpdateAPI({
id: this.billTypeADDID,
name: this.billTypeADDName,
mdmId: this.billTypeClickID
mdmId: this.billTypeClickID,
def1: this.def1,
})
this.$vmNews('保存成功', 'success')
this.getVoucherListHandle()
@ -1342,6 +1370,7 @@ export default {
this.voucherDialogShow = true
this.passwordDialogTitle = '新增'
this.billTypeADDName = ''
this.def1 = 'N'
this.billTypeADDID = ''
},
//

View File

@ -1,7 +1,7 @@
<template>
<div>
<base-dialog :dialogVisible.sync="dialogVisible" :closeModal="false" :footerShow="true" :title="'查看分录信息'"
width="1300px" top="10vh">
width="90%" top="10vh">
<div class="rightDialogClass_main" style="background-color: #fff;">
<base-table ref="assistTable" :showIndex="false" :slotrow="false" tableHeight="calc(75vh - 80px)"
:tableData="tableData" :tableColumn="tableColumn" id="printMe">

View File

@ -78,7 +78,7 @@
id="printMe"
>
<template #operate="{row}">
<div @click="expandOperate(row)" style="cursor: pointer">
<div @click="expandOperate(row)" style="cursor: pointer;color: #4876ed">
查看凭证明细
</div>
</template>
@ -579,6 +579,7 @@ export default {
mdmId: this.billTypeClickID,
billCode:row.billCode
}
this.openLoading()
let res = await coreGenerateAPI(params)
if(res.status == '200'){
this.$vmNews('生成成功', 'success')

View File

@ -579,7 +579,7 @@ export default {
}
let obj = this.$refs.baseChoice2.optionData
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname])
this.textarea += `@@$${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}`
this.textarea += `@@$${this.fixedValueClickRow.dbName}:id=${obj.id}`
// this.$set(this.clickRow, `factorid${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.key])
// this.$set(this.clickRow, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey])
// this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id'])