会计事项平台更新

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>
<div class="showList"> <div class="showList">
<div class="showItem" v-for="(item,index) in voucherList" :key="index" <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"> <div class="icon">
<i class="el-icon-edit" @click.stop="voucherDialogEditHandle(item)" style="margin-right: 10px"></i> <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> <i class="el-icon-delete" style="color: red" @click.stop="voucherDialogDelHandle(item)"></i>
@ -702,6 +702,27 @@
></baseChoice> ></baseChoice>
</div> </div>
</base-dialog> </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> </div>
</template> </template>
@ -755,6 +776,7 @@ export default {
// //
voucherClickId: '', voucherClickId: '',
voucherClickName: '', voucherClickName: '',
voucherClickdef1: '',
voucherDialogShow: false, voucherDialogShow: false,
voucherList: [], voucherList: [],
subClassOptions: [],// subClassOptions: [],//
@ -783,6 +805,7 @@ export default {
width: '100' width: '100'
} }
], ],
def1: 'N',
pkglbookOptions: [], pkglbookOptions: [],
treePropsproperty: { treePropsproperty: {
children: 'sublistMdmModuleDbFileds', children: 'sublistMdmModuleDbFileds',
@ -1002,27 +1025,27 @@ export default {
exchangeRate: [ exchangeRate: [
{ required: true, message: '请输入汇率', trigger: 'change' } { required: true, message: '请输入汇率', trigger: 'change' }
], ],
jNumField: [ // jNumField: [
{ required: true, message: '请选择借方数量字段', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
jYbSumField: [ // jYbSumField: [
{ required: true, message: '请选择借方原币金额字段', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
jBbSumField: [ // jBbSumField: [
{ required: true, message: '请选择借方本币金额字段', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
dNumField: [ // dNumField: [
{ required: true, message: '请选择贷方数量字段', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
dYbSumField: [ // dYbSumField: [
{ required: true, message: '请选择贷方原币金额字段', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
dBbSumField: [ // dBbSumField: [
{ required: true, message: '请选择贷方本币金额字段', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
pkCashflow: [ // pkCashflow: [
{ required: true, message: '请选择现金流量项目主键', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
] // ]
}, },
fixedValueForm: [ fixedValueForm: [
@ -1230,7 +1253,8 @@ export default {
} }
let obj =this.$refs.baseChoice2.optionData let obj =this.$refs.baseChoice2.optionData
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname]) 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, `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, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey])
// this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id']) // this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id'])
@ -1280,9 +1304,10 @@ export default {
this.selected[0].assistEntityList.push({}) this.selected[0].assistEntityList.push({})
}, },
// //
voucherCliclHandle(id, name) { voucherCliclHandle(id, name,def1) {
this.voucherClickId = id this.voucherClickId = id
this.voucherClickName = name this.voucherClickName = name
this.voucherClickdef1 = def1
this.resetTable() this.resetTable()
}, },
voucherDialogDelHandle(item) { voucherDialogDelHandle(item) {
@ -1301,6 +1326,7 @@ export default {
voucherDialogEditHandle(item) { voucherDialogEditHandle(item) {
this.billTypeADDID = item.id this.billTypeADDID = item.id
this.billTypeADDName = item.name this.billTypeADDName = item.name
this.def1 = item.def1
this.voucherDialogShow = true this.voucherDialogShow = true
this.passwordDialogTitle = '编辑' this.passwordDialogTitle = '编辑'
}, },
@ -1323,7 +1349,8 @@ export default {
if (this.passwordDialogTitle === '新增') { if (this.passwordDialogTitle === '新增') {
const res = await typeSaveAPI({ const res = await typeSaveAPI({
name: this.billTypeADDName, name: this.billTypeADDName,
mdmId: this.billTypeClickID mdmId: this.billTypeClickID,
def1: this.def1,
}) })
this.$vmNews('保存成功', 'success') this.$vmNews('保存成功', 'success')
this.getVoucherListHandle() this.getVoucherListHandle()
@ -1331,7 +1358,8 @@ export default {
const res = await typeUpdateAPI({ const res = await typeUpdateAPI({
id: this.billTypeADDID, id: this.billTypeADDID,
name: this.billTypeADDName, name: this.billTypeADDName,
mdmId: this.billTypeClickID mdmId: this.billTypeClickID,
def1: this.def1,
}) })
this.$vmNews('保存成功', 'success') this.$vmNews('保存成功', 'success')
this.getVoucherListHandle() this.getVoucherListHandle()
@ -1342,6 +1370,7 @@ export default {
this.voucherDialogShow = true this.voucherDialogShow = true
this.passwordDialogTitle = '新增' this.passwordDialogTitle = '新增'
this.billTypeADDName = '' this.billTypeADDName = ''
this.def1 = 'N'
this.billTypeADDID = '' this.billTypeADDID = ''
}, },
// //

View File

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

View File

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

View File

@ -579,7 +579,7 @@ export default {
} }
let obj = this.$refs.baseChoice2.optionData let obj = this.$refs.baseChoice2.optionData
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname]) 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, `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, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey])
// this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id']) // this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id'])