This commit is contained in:
parent
5ffb535536
commit
ccc6589189
|
|
@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue