This commit is contained in:
hayu 2026-01-06 17:24:17 +08:00
parent 5ffb535536
commit ccc6589189
3 changed files with 15 additions and 7 deletions

View File

@ -69,6 +69,14 @@ export const removeDeviceApi = (data = {}) => {
})
}
export const removeDeviceApiByMaIds = (data = {}) => {
return request({
url: '/material-mall/order/delDeviceByMaIds',
method: 'POST',
data
})
}
// 上下架(批量)
export const updateUpDownApi = (data = {}) => {
return request({
@ -351,4 +359,4 @@ export const getDevDetailsApi = (data) => {
method: 'POST',
params: data
})
}
}

View File

@ -108,10 +108,10 @@
<!-- 操作列 -->
<el-table-column label="操作" align="center" width="80px" v-if="!routerParams.isView">
<template slot-scope="scope">
<el-button v-if="!routerParams.isSubmit" :disabled="scope.row.status && scope.row.status === '通过'"
size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" style="color: red">
删除
</el-button>
<!-- <el-button v-if="!routerParams.isSubmit" :disabled="scope.row.status && scope.row.status === '通过'"-->
<!-- size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" style="color: red">-->
<!-- 删除-->
<!-- </el-button>-->
</template>
</el-table-column>
</el-table>

View File

@ -642,7 +642,7 @@ import {
firstLevel,
secondAndThirdLevel,
fourthToSixthLevel,
getEquipmentPropertyTypeApi
getEquipmentPropertyTypeApi, removeDeviceApiByMaIds
} from '@/api/EquipmentEntryApply'
import { getManufacturerSelectApi } from '@/api/EquipmentLedger/index.js'
import { getToken } from '@/utils/auth'
@ -1034,7 +1034,7 @@ export default {
})
.then(() => {
if (row.maId) {
return removeDeviceApi([row.maId])
return removeDeviceApiByMaIds([row.maId])
} else {
this.tableData.splice(index, 1)
this.$message({