资产管理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) { export function deletePropertyDealItem(id) {
return request({ return request({

View File

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

View File

@ -78,6 +78,11 @@
{{ StaffName(row.userId) }} {{ StaffName(row.userId) }}
</template> </template>
</el-table-column> </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 label="备注" align="center" prop="remark" width="180"/>
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200"> <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200">
<template v-slot="scope"> <template v-slot="scope">