会计事项平台更新

This commit is contained in:
hyt 2025-07-10 10:47:53 +08:00
parent dfd7440144
commit b614d7555d
4 changed files with 171 additions and 152 deletions

View File

@ -30,7 +30,7 @@
</div> </div>
</template> </template>
</div> </div>
<div class="right"> <div class="right" v-loading="tableLoading">
<div class="topBox" style="margin-bottom: 10px"> <div class="topBox" style="margin-bottom: 10px">
<div class="searchBox"> <div class="searchBox">
<div style="margin-left: 10px;display: flex;align-items: center"> <div style="margin-left: 10px;display: flex;align-items: center">
@ -1001,6 +1001,7 @@ export default {
} }
], ],
tableData: [], tableData: [],
tableLoading:false,
dialogTitle: '新增', dialogTitle: '新增',
examineOperateDialog: false, examineOperateDialog: false,
statusView: false, statusView: false,
@ -1055,7 +1056,7 @@ export default {
obj.dBbSumFieArr = item.dBbSumField ? this.searchIDHandle(item.dBbSumField, this.propertyTree, row) : [] obj.dBbSumFieArr = item.dBbSumField ? this.searchIDHandle(item.dBbSumField, this.propertyTree, row) : []
if (obj.assistEntityList) { if (obj.assistEntityList) {
obj.assistEntityList.forEach(ele => { obj.assistEntityList.forEach(ele => {
ele.fieldId = this.searchIDHandle(ele.fieldId, this.propertyTree, row) ele.fieldArr = this.searchIDHandle(ele.fieldId, this.propertyTree, row)
}) })
} }
}, },
@ -1139,8 +1140,8 @@ export default {
}) })
console.log(this.tableData, 'this.tableData') console.log(this.tableData, 'this.tableData')
const res = await confTempSaveAPI(this.tableData) const res = await confTempSaveAPI(this.tableData)
this.$vmNews("保存成功",'success') this.$vmNews('保存成功', 'success')
this.editFlag=false this.editFlag = false
this.getTableData() this.getTableData()
}, },
// //
@ -1311,9 +1312,9 @@ export default {
}, },
//id //id
searchIDHandle(val, options, row = {}) { searchIDHandle(val, options, row = {}) {
console.log(val,options,row,'看看内部')
let valPath = '' let valPath = ''
let obj = null let obj = null
function getValuePath(el, data, path = []) { function getValuePath(el, data, path = []) {
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
const item = data[i] const item = data[i]
@ -1333,7 +1334,6 @@ export default {
} }
return null return null
} }
const targetValue = Array.isArray(val) ? val[val.length - 1] : val const targetValue = Array.isArray(val) ? val[val.length - 1] : val
const valuePath = getValuePath(targetValue, options) const valuePath = getValuePath(targetValue, options)
valPath = valuePath ? valuePath : [] valPath = valuePath ? valuePath : []
@ -1418,6 +1418,7 @@ export default {
}, },
// //
async addGetSelectHandle() { async addGetSelectHandle() {
this.tableLoading = true
// //
const res = await subjectClassificationqueryAllAPI({ const res = await subjectClassificationqueryAllAPI({
aeConfModuleId: this.clickFatherObj.data.aeConfModuleId, aeConfModuleId: this.clickFatherObj.data.aeConfModuleId,
@ -1450,6 +1451,7 @@ export default {
item.chName = item.remark item.chName = item.remark
}) })
this.propertyTree = res4.attribute this.propertyTree = res4.attribute
this.tableLoading = false
}, },
// //
voucherChangeHandle(val) { voucherChangeHandle(val) {
@ -1761,7 +1763,20 @@ export default {
this.selected = [] this.selected = []
this.selected.push(val) this.selected.push(val)
console.log(val.assistEntityList, '?val.assistEntityList') console.log(val.assistEntityList, '?val.assistEntityList')
let row = {
props: {
children: 'sublistMdmModuleDbFileds',
label: 'chName',
value: 'id'
}
}
val.assistEntityList.forEach(item => {
console.log(item.fieldId,'item.fieldId')
item.fieldArr = item.fieldId ? this.searchIDHandle(item.fieldId, this.propertyTree, row) : []
console.log(item.fieldArr,'?fieldArr',item,this.propertyTree)
})
this.assistTableData = val.assistEntityList ? val.assistEntityList : [] this.assistTableData = val.assistEntityList ? val.assistEntityList : []
}, },
// //
delOperate() { delOperate() {
@ -1774,13 +1789,16 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(async() => { }).then(async() => {
if (this.selected[0].id) {
const res = await tempdeleteAPI({ const res = await tempdeleteAPI({
id: this.selected[0].id id: this.selected[0].id
}) })
if (res.status == 200) { if (res.status == 200) {
this.$vmNews('删除成功', 'success') this.$vmNews('删除成功', 'success')
this.resetTable()
} }
}
this.tableData.splice(this.selected[0].index, 1)
}) })
}, },
// //
@ -1797,11 +1815,11 @@ export default {
this.$vmNews('请选择凭证') this.$vmNews('请选择凭证')
return return
} }
await this.addGetSelectHandle()
this.tableData.forEach(item => { this.tableData.forEach(item => {
this.transitionRowHandle(item) this.transitionRowHandle(item)
}) })
this.editFlag = true this.editFlag = true
await this.addGetSelectHandle()
return return
if (!this.selected.length) { if (!this.selected.length) {
this.$vmNews('请至少选择一条数据') this.$vmNews('请至少选择一条数据')

View File

@ -838,7 +838,7 @@ export default {
this.getAddOptions() this.getAddOptions()
this.$refs.basicFormRefsName.ruleForm = { this.$refs.basicFormRefsName.ruleForm = {
...this.selected[0], ...this.selected[0],
factornamesArr: this.selected[0].factornames.split(',') factornamesArr: this.selected[0].factornames ? this.selected[0].factornames.split(',') : []
} }
}) })
}, },

View File

@ -24,7 +24,7 @@
:tabLoading="mainTabLoading" :tabLoading="mainTabLoading"
:tableColumn="mainTableColumn" :tableColumn="mainTableColumn"
:border="false" :border="false"
tableMaxHeight="600" tableHeight="calc(100vh - 280px)"
:highlightCurrent="true" :highlightCurrent="true"
@radioChange="mainOnClick" @radioChange="mainOnClick"
> >
@ -63,7 +63,7 @@
:tabLoading="activedTabLoading" :tabLoading="activedTabLoading"
:tableColumn="activedTableColumn" :tableColumn="activedTableColumn"
:border="false" :border="false"
tableMaxHeight="650" tableHeight="calc(100vh - 200px)"
:highlightCurrent="true" :highlightCurrent="true"
@radioChange="activedOnClick" @radioChange="activedOnClick"
@onFunc="activedOnFunc" @onFunc="activedOnFunc"

View File

@ -678,12 +678,13 @@ export default {
this.resetTable() this.resetTable()
}, },
billTreeClick(item, row) { billTreeClick(item, row) {
console.log(row, '?')
console.log(row, '?',item)
if (item.fatherRow) { if (item.fatherRow) {
return return
} }
this.billTreeActive = item this.billTreeActive = item
this.billTreeActiveFather = row this.billTreeActiveFather = row.parent.data
}, },
// //
clickSave(item) { clickSave(item) {