后台优化
This commit is contained in:
parent
3643e02c6f
commit
2ddea71248
|
|
@ -60,3 +60,11 @@ export const getManufacturerSelectApi = (data = {}) => {
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 共享出库列表
|
||||||
|
export const getDeviceByMaIdsApi = (data = {}) => {
|
||||||
|
return request({
|
||||||
|
url: `/material-mall/device/getDeviceByMaIds/${data}`,
|
||||||
|
method: 'GET',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -123,6 +123,11 @@
|
||||||
placeholder="请选择生产日期"
|
placeholder="请选择生产日期"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
:picker-options="{
|
||||||
|
disabledDate(time) {
|
||||||
|
return time.getTime() > Date.now()
|
||||||
|
}
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -153,11 +158,16 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="最大使用年限" prop="maxServiceLifeYears">
|
<el-form-item label="最大使用年限" prop="maxServiceLifeYears">
|
||||||
<el-input
|
<el-input-number
|
||||||
clearable
|
clearable
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
placeholder="请输入最大使用年限"
|
placeholder="请输入最大使用年限"
|
||||||
v-model="form.maxServiceLifeYears"
|
v-model="form.maxServiceLifeYears"
|
||||||
|
:min="1"
|
||||||
|
:max="100"
|
||||||
|
:precision="0"
|
||||||
|
:controls="false"
|
||||||
|
style="width: 100%"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -179,11 +189,15 @@
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="装备数量" prop="count">
|
<el-form-item label="装备数量" prop="count">
|
||||||
<el-input
|
<el-input-number
|
||||||
v-model="form.count"
|
v-model="form.count"
|
||||||
placeholder="请输入装备数量"
|
placeholder="请输入装备数量"
|
||||||
clearable
|
:min="1"
|
||||||
maxlength="10"
|
:max="100"
|
||||||
|
:precision="0"
|
||||||
|
:controls="false"
|
||||||
|
style="width: 100%"
|
||||||
|
:disabled="form.manageType === 0"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -205,6 +219,11 @@
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
type="date"
|
type="date"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
:picker-options="{
|
||||||
|
disabledDate(time) {
|
||||||
|
return time.getTime() > Date.now()
|
||||||
|
}
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -474,7 +493,7 @@ export default {
|
||||||
},
|
},
|
||||||
deviceTypeChange(val) {
|
deviceTypeChange(val) {
|
||||||
if (val === 0) {
|
if (val === 0) {
|
||||||
this.form.count = '1'
|
this.form.count = 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 价格输入处理
|
// 价格输入处理
|
||||||
|
|
@ -541,6 +560,10 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log('🚀 ~ handleSubmit ~ certificates:', certificates)
|
console.log('🚀 ~ handleSubmit ~ certificates:', certificates)
|
||||||
|
} else {
|
||||||
|
// 提示
|
||||||
|
this.$message.error('请上传合格证')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if (this.form.inspectionList) {
|
if (this.form.inspectionList) {
|
||||||
const arr = this.form.inspectionList.split(',')
|
const arr = this.form.inspectionList.split(',')
|
||||||
|
|
@ -552,6 +575,10 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log('🚀 ~ handleSubmit ~ inspectionReports:', inspectionReports)
|
console.log('🚀 ~ handleSubmit ~ inspectionReports:', inspectionReports)
|
||||||
|
} else {
|
||||||
|
// 提示
|
||||||
|
this.$message.error('请上传检测证书')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if (this.form.purchaseInvoices) {
|
if (this.form.purchaseInvoices) {
|
||||||
const arr = this.form.purchaseInvoices.split(',')
|
const arr = this.form.purchaseInvoices.split(',')
|
||||||
|
|
|
||||||
|
|
@ -254,13 +254,13 @@
|
||||||
<el-button type="text" @click="handleViewDetail(row)">
|
<el-button type="text" @click="handleViewDetail(row)">
|
||||||
<i class="el-icon-view"></i> 查看
|
<i class="el-icon-view"></i> 查看
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<!-- <el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="editRowInfo(row.maId)"
|
@click="editRowInfo(row.maId)"
|
||||||
v-if="row.orderStatus == '3' && !isAddVisible"
|
v-if="row.orderStatus == '3' && !isAddVisible"
|
||||||
>
|
>
|
||||||
<i class="el-icon-edit"></i> 编辑
|
<i class="el-icon-edit"></i> 编辑
|
||||||
</el-button>
|
</el-button> -->
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@click="deleteRowInfo(row)"
|
@click="deleteRowInfo(row)"
|
||||||
|
|
@ -324,7 +324,7 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
console.log(this.$route)
|
console.log(this.$route)
|
||||||
this.orderId = this.$route.query && this.$route.query.orderId
|
this.orderId = this.$route.query && this.$route.query.orderId
|
||||||
this.isAddVisible = this.$route.query && this.$route.query.isAddVisible
|
this.isAddVisible = this.$route.query && this.$route.query.isAddVisible == 'true'
|
||||||
this.isApprovalVisible = this.$route.query && this.$route.query.isApprovalVisible
|
this.isApprovalVisible = this.$route.query && this.$route.query.isApprovalVisible
|
||||||
if (!this.orderId) {
|
if (!this.orderId) {
|
||||||
this.pageTitle = '新增设备录入'
|
this.pageTitle = '新增设备录入'
|
||||||
|
|
|
||||||
|
|
@ -349,7 +349,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const { orderId, status, orderStatus, isAddVisible, isApprovalVisible } = this.$route.query
|
const { orderId, status, orderStatus, isAddVisible, isApprovalVisible } = this.$route.query
|
||||||
this.isAddVisible = isAddVisible
|
this.isAddVisible = isAddVisible == 'true'
|
||||||
if (orderId) {
|
if (orderId) {
|
||||||
this.queryParams.orderId = orderId
|
this.queryParams.orderId = orderId
|
||||||
this.orderStatus = status || orderStatus
|
this.orderStatus = status || orderStatus
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,8 @@
|
||||||
placeholder="请选择操作类型"
|
placeholder="请选择操作类型"
|
||||||
@change="handleStatusChange(row)"
|
@change="handleStatusChange(row)"
|
||||||
>
|
>
|
||||||
<el-option label="退役" value="1"/>
|
<el-option label="维修" value="1"/>
|
||||||
<el-option label="维修" value="4"/>
|
<el-option label="退役" value="4"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
|
|
||||||
<el-table-column label="退役原因" align="center" v-if="shouldShowRetireReason">
|
<el-table-column label="退役原因" align="center" v-if="shouldShowRetireReason">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-input v-show="row.status=='1'" v-model="row.retireReason" clearable placeholder="请输入退役原因"/>
|
<el-input v-show="row.status=='4'" v-model="row.retireReason" clearable placeholder="请输入退役原因"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|
@ -118,9 +118,8 @@
|
||||||
<el-table-column align="center" show-overflow-tooltip prop="changeStatus" label="状态">
|
<el-table-column align="center" show-overflow-tooltip prop="changeStatus" label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.status == 1" size="mini">在库</el-tag>
|
<el-tag v-if="scope.row.status == 1" size="mini">在库</el-tag>
|
||||||
<el-tag v-if="scope.row.status == 2 || scope.row.status == 3" size="mini">
|
<el-tag v-if="scope.row.status == 2" size="mini">自用</el-tag>
|
||||||
在用
|
<el-tag v-if="scope.row.status == 3" size="mini">共享</el-tag>
|
||||||
</el-tag>
|
|
||||||
<el-tag v-if="scope.row.status == 5" size="mini">维修</el-tag>
|
<el-tag v-if="scope.row.status == 5" size="mini">维修</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -221,7 +220,7 @@ export default {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
name: '',
|
name: '',
|
||||||
status: '5',
|
status: '2',
|
||||||
companyId: '',
|
companyId: '',
|
||||||
proId: ''
|
proId: ''
|
||||||
},
|
},
|
||||||
|
|
@ -238,11 +237,11 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
// 判断是否需要显示维修费用列
|
// 判断是否需要显示维修费用列
|
||||||
shouldShowRepairCost() {
|
shouldShowRepairCost() {
|
||||||
return this.selectedEquipment.some(row => row.status === '4')
|
return this.selectedEquipment.some(row => row.status === '1')
|
||||||
},
|
},
|
||||||
// 判断是否需要显示退役原因列
|
// 判断是否需要显示退役原因列
|
||||||
shouldShowRetireReason() {
|
shouldShowRetireReason() {
|
||||||
return this.selectedEquipment.some(row => row.status === '1')
|
return this.selectedEquipment.some(row => row.status === '4')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -388,7 +387,7 @@ export default {
|
||||||
// 检查退役装备的退役原因是否完整
|
// 检查退役装备的退役原因是否完整
|
||||||
for (const item of this.selectedEquipment) {
|
for (const item of this.selectedEquipment) {
|
||||||
// 仅检查状态为"退役"的装备是否填写了退役原因
|
// 仅检查状态为"退役"的装备是否填写了退役原因
|
||||||
if (item.status === '1') { // 假设'0'代表退役状态
|
if (item.status === '4') { // 假设'0'代表退役状态
|
||||||
if (!item.retireReason || item.retireReason.trim() === '') {
|
if (!item.retireReason || item.retireReason.trim() === '') {
|
||||||
this.$modal.msgError('存在退役原因为空的装备,请检查')
|
this.$modal.msgError('存在退役原因为空的装备,请检查')
|
||||||
return false // 终止后续操作
|
return false // 终止后续操作
|
||||||
|
|
@ -484,6 +483,9 @@ export default {
|
||||||
)
|
)
|
||||||
|
|
||||||
if (newItems.length > 0) {
|
if (newItems.length > 0) {
|
||||||
|
newItems.forEach(item => {
|
||||||
|
item.devId = item.maId
|
||||||
|
})
|
||||||
this.selectedEquipment = [...this.selectedEquipment, ...newItems]
|
this.selectedEquipment = [...this.selectedEquipment, ...newItems]
|
||||||
this.$modal.msgSuccess(`成功添加 ${newItems.length} 个装备`)
|
this.$modal.msgSuccess(`成功添加 ${newItems.length} 个装备`)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -421,6 +421,9 @@ export default {
|
||||||
)
|
)
|
||||||
|
|
||||||
if (newItems.length > 0) {
|
if (newItems.length > 0) {
|
||||||
|
newItems.forEach(item => {
|
||||||
|
item.devId = item.maId
|
||||||
|
})
|
||||||
this.selectedEquipment = [...this.selectedEquipment, ...newItems]
|
this.selectedEquipment = [...this.selectedEquipment, ...newItems]
|
||||||
this.$modal.msgSuccess('成功添加 ' + newItems.length + ' 个装备')
|
this.$modal.msgSuccess('成功添加 ' + newItems.length + ' 个装备')
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-button size="mini" style="margin-bottom: 20px" type="primary" @click="onHandleSubmit"
|
<el-button size="mini" style="margin-bottom: 20px" type="primary" :disabled="!selectedEquipment.length" @click="onHandleSubmit"
|
||||||
>确定提交
|
>确定提交
|
||||||
</el-button
|
</el-button
|
||||||
>
|
>
|
||||||
|
|
@ -151,7 +151,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row :gutter="20" style="margin-top: 10px">
|
<el-row :gutter="20" style="margin-top: 10px">
|
||||||
<el-button size="mini" type="primary" @click="onHandleAddEquipment">添加变更装备</el-button>
|
<el-button v-if="!maIds" size="mini" type="primary" @click="onHandleAddEquipment">添加变更装备</el-button>
|
||||||
<el-button size="mini" plain @click="clearSelectedEquipment" style="margin-left: 10px">清空已选</el-button>
|
<el-button size="mini" plain @click="clearSelectedEquipment" style="margin-left: 10px">清空已选</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
@ -310,7 +310,7 @@ import {
|
||||||
getVoltageListAPI,
|
getVoltageListAPI,
|
||||||
addProjectOutAPI
|
addProjectOutAPI
|
||||||
} from '@/api/EquipmentLedger/equ-out'
|
} from '@/api/EquipmentLedger/equ-out'
|
||||||
import { getDeviceListAPI } from '@/api/EquipmentLedger/index.js'
|
import { getDeviceListAPI, getDeviceByMaIdsApi } from '@/api/EquipmentLedger/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -373,10 +373,15 @@ export default {
|
||||||
tableColumns: 0,
|
tableColumns: 0,
|
||||||
addEquipmentTotal: 0,
|
addEquipmentTotal: 0,
|
||||||
useProjectList: [], // 使用项目下拉选
|
useProjectList: [], // 使用项目下拉选
|
||||||
voltageList: [] // 电压等级下拉选
|
voltageList: [], // 电压等级下拉选
|
||||||
|
maIds: '' // 共享出库传过来的maIds
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.maIds = this.$route.query ? this.$route.query.maIds : ''
|
||||||
|
if (this.maIds) {
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
console.log(store.getters.roles)
|
console.log(store.getters.roles)
|
||||||
this.getUseProjectList()
|
this.getUseProjectList()
|
||||||
this.outForm.status == '0' ? this.outForm.useUint = sessionStorage.getItem('deptName') : ''
|
this.outForm.status == '0' ? this.outForm.useUint = sessionStorage.getItem('deptName') : ''
|
||||||
|
|
@ -387,6 +392,14 @@ export default {
|
||||||
goBack() {
|
goBack() {
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
},
|
},
|
||||||
|
async getList() {
|
||||||
|
try {
|
||||||
|
const res = await getDeviceByMaIdsApi(this.maIds)
|
||||||
|
this.selectedEquipment = res.data
|
||||||
|
} catch (error) {
|
||||||
|
console.log('🚀 ~ getList ~ error:', error)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// 获取可选择的变更设备列表
|
// 获取可选择的变更设备列表
|
||||||
getSelectEquipmentList() {
|
getSelectEquipmentList() {
|
||||||
|
|
@ -548,6 +561,10 @@ export default {
|
||||||
)
|
)
|
||||||
|
|
||||||
if (newItems.length > 0) {
|
if (newItems.length > 0) {
|
||||||
|
newItems.forEach(item => {
|
||||||
|
item.devId = item.maId
|
||||||
|
})
|
||||||
|
console.log('🚀 ~ onHandleAddEquipmentConfirm ~ newItems:', newItems)
|
||||||
// 追加新选择的装备
|
// 追加新选择的装备
|
||||||
this.selectedEquipment = [...this.selectedEquipment, ...newItems]
|
this.selectedEquipment = [...this.selectedEquipment, ...newItems]
|
||||||
this.$message.success(`成功添加 ${newItems.length} 个装备`)
|
this.$message.success(`成功添加 ${newItems.length} 个装备`)
|
||||||
|
|
|
||||||
|
|
@ -5,18 +5,30 @@
|
||||||
<el-form ref="queryForm" size="small" label-width="auto" :model="queryParams">
|
<el-form ref="queryForm" size="small" label-width="auto" :model="queryParams">
|
||||||
<el-row :gutter="10" style="display: flex; justify-content: space-between">
|
<el-row :gutter="10" style="display: flex; justify-content: space-between">
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-form-item prop="deviceName">
|
<el-form-item prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-model="queryParams.deviceName"
|
v-model="queryParams.name"
|
||||||
placeholder="装备名称"
|
placeholder="装备名称"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-form-item prop="brand">
|
<el-form-item prop="manufacturerId">
|
||||||
<el-input v-model="queryParams.brand" placeholder="装备厂家" clearable/>
|
<el-select
|
||||||
|
v-model="queryParams.manufacturerId"
|
||||||
|
placeholder="请选择生产厂家"
|
||||||
|
clearable
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in manufacturerList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col>
|
<el-col>
|
||||||
|
|
@ -54,7 +66,7 @@
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-model="queryParams.isWarn"
|
v-model="queryParams.isWarn"
|
||||||
placeholder="剩余使用年限"
|
placeholder="预警情况"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-option label="告警" value="1"/>
|
<el-option label="告警" value="1"/>
|
||||||
|
|
@ -84,7 +96,7 @@
|
||||||
<el-table-column align="center" show-overflow-tooltip prop="name" label="装备名称"/>
|
<el-table-column align="center" show-overflow-tooltip prop="name" label="装备名称"/>
|
||||||
<el-table-column align="center" show-overflow-tooltip prop="specificationModel" label="装备型号"/>
|
<el-table-column align="center" show-overflow-tooltip prop="specificationModel" label="装备型号"/>
|
||||||
<el-table-column align="center" show-overflow-tooltip prop="code" label="装备编码"/>
|
<el-table-column align="center" show-overflow-tooltip prop="code" label="装备编码"/>
|
||||||
<el-table-column align="center" show-overflow-tooltip prop="manufacturer" label="装备厂家"/>
|
<el-table-column align="center" show-overflow-tooltip prop="manufacturer" label="生产厂家"/>
|
||||||
<el-table-column align="center" show-overflow-tooltip prop="productionDate" label="出厂日期">
|
<el-table-column align="center" show-overflow-tooltip prop="productionDate" label="出厂日期">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ formatDate(scope.row.productionDate) }}
|
{{ formatDate(scope.row.productionDate) }}
|
||||||
|
|
@ -136,12 +148,13 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getRetireListAPI } from '@/api/EquipmentRetire/index.js'
|
import { getRetireListAPI } from '@/api/EquipmentRetire/index.js'
|
||||||
|
import { getManufacturerSelectApi } from '@/api/EquipmentLedger/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
deviceName: undefined,
|
name: undefined,
|
||||||
brand: undefined,
|
brand: undefined,
|
||||||
yearsDiff1: undefined,
|
yearsDiff1: undefined,
|
||||||
yearsDiff2: undefined,
|
yearsDiff2: undefined,
|
||||||
|
|
@ -156,10 +169,20 @@ export default {
|
||||||
label: 'label'
|
label: 'label'
|
||||||
},
|
},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
total: 0
|
total: 0,
|
||||||
|
manufacturerList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取厂家
|
||||||
|
getManufacturerSelectList() {
|
||||||
|
getManufacturerSelectApi().then((res) => {
|
||||||
|
console.log('🚀 ~ getManufacturerSelectList ~ res:', res)
|
||||||
|
if (res.code === 200) {
|
||||||
|
this.manufacturerList = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleNodeClick(data) {
|
handleNodeClick(data) {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
},
|
},
|
||||||
|
|
@ -185,12 +208,12 @@ export default {
|
||||||
// 退役按钮
|
// 退役按钮
|
||||||
onHandleRetire() {
|
onHandleRetire() {
|
||||||
console.log('退役按钮')
|
console.log('退役按钮')
|
||||||
this.$router.push('/equipment-ledger-retire')
|
this.$router.push('/equipment/equ-retire')
|
||||||
},
|
},
|
||||||
// 重置
|
// 重置
|
||||||
onHandleReset() {
|
onHandleReset() {
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
deviceName: undefined,
|
name: undefined,
|
||||||
brand: undefined,
|
brand: undefined,
|
||||||
yearsDiff: undefined,
|
yearsDiff: undefined,
|
||||||
remainingYears: undefined,
|
remainingYears: undefined,
|
||||||
|
|
@ -208,7 +231,7 @@ export default {
|
||||||
// 批量退役
|
// 批量退役
|
||||||
onHandleBatchRetire() {
|
onHandleBatchRetire() {
|
||||||
console.log('批量退役')
|
console.log('批量退役')
|
||||||
this.$router.push('/equipment-ledger-retire')
|
this.$router.push('/equipment/equ-retire')
|
||||||
},
|
},
|
||||||
// 格式化日期函数
|
// 格式化日期函数
|
||||||
formatDate(dateString) {
|
formatDate(dateString) {
|
||||||
|
|
@ -249,6 +272,7 @@ export default {
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.getRetireList()
|
this.getRetireList()
|
||||||
|
this.getManufacturerSelectList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@
|
||||||
不同意
|
不同意
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<el-button v-show="item.orderStatus =='2'" @click="(item)" type="primary" plain size="small">
|
<el-button v-show="item.orderStatus =='2'" @click="handleOut(item)" type="primary" plain size="small">
|
||||||
共享出库
|
共享出库
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -743,7 +743,9 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleOut(item) {
|
||||||
|
this.$router.push({ path: '/equipment/euq-out', query: { maIds: item.maIds } })
|
||||||
|
},
|
||||||
//订单详情
|
//订单详情
|
||||||
handleViewOrder(row) {
|
handleViewOrder(row) {
|
||||||
this.showOrderDetail = true
|
this.showOrderDetail = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue