资产管理ALL

This commit is contained in:
xiao-fajia 2024-08-19 09:17:39 +08:00
parent 35f2301f7b
commit 939c460d82
3 changed files with 29 additions and 12 deletions

View File

@ -18,6 +18,15 @@ export function updatePropertyDealItem(data) {
})
}
// 更新企业管理-资产变动子
export function updatePropertyDealItemChange(data) {
return request({
url: '/company/property-deal-item/updateChange',
method: 'put',
data: data
})
}
// 删除企业管理-资产处置子
export function deletePropertyDealItem(id) {
return request({

View File

@ -277,6 +277,7 @@ export default {
const property = res.data.property
property.dealWay = res.data.dealWay
await this.getOtherList(property.corpId)
property.userId = parseInt(property.userId)
this.formData.propList.push(property)
} finally {
this.formLoading = false
@ -310,18 +311,20 @@ export default {
const data = this.formData
//
if (data.id) {
// TODO
// const newData = {
// id: data.id,
// dealWay: data.propList[0].dealWay,
// dealId: data.dealId,
// propertyId: data.propList[0].id,
// remark: data.propList[0].remark
// }
// await PropertyDealItemApi.updatePropertyDealItem(newData)
// this.$modal.msgSuccess('')
// this.dialogVisible = false
// this.$emit('success')
const newData = {
id: data.id,
dealWay: data.propList[0].dealWay,
dealId: data.dealId,
propertyId: data.propList[0].id,
remark: data.propList[0].remark,
corpId: data.propList[0].corpId,
userId: data.propList[0].userId,
posId: data.propList[0].posId,
}
await PropertyDealItemApi.updatePropertyDealItemChange(newData)
this.$modal.msgSuccess('修改成功')
this.dialogVisible = false
this.$emit('success')
return
}
//

View File

@ -78,6 +78,11 @@
{{ StaffName(row.userId) }}
</template>
</el-table-column>
<el-table-column label="取得方式" align="center" prop="dealWay" width="150px">
<template v-slot="scope">
<dict-tag :type="DICT_TYPE.PROPERTY_GET_WAY" :value="scope.row.dealWay"/>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" width="180"/>
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200">
<template v-slot="scope">