退料报废功能优化
This commit is contained in:
parent
5f68d7194a
commit
0f488e2b31
|
|
@ -63,7 +63,7 @@
|
||||||
placeholder="请选择设备类型"
|
placeholder="请选择设备类型"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
:disabled="isEdit"
|
:disabled="isEdit || leaseApplyDetails.length > 0"
|
||||||
>
|
>
|
||||||
<el-option label="机具设备" value="101"></el-option>
|
<el-option label="机具设备" value="101"></el-option>
|
||||||
<el-option label="调试设备" value="102"></el-option>
|
<el-option label="调试设备" value="102"></el-option>
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择时间"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
|
|
||||||
|
|
@ -423,6 +423,7 @@ export default {
|
||||||
let params = {
|
let params = {
|
||||||
flag: 1,
|
flag: 1,
|
||||||
companyId: this.companyId,
|
companyId: this.companyId,
|
||||||
|
backSource: 2,
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
}
|
}
|
||||||
console.log('paramsparamsparams', params)
|
console.log('paramsparamsparams', params)
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ export const dialogConfigReturn = {
|
||||||
{ t_width: '', t_props: 'typeName', t_label: '设备类型' },
|
{ t_width: '', t_props: 'typeName', t_label: '设备类型' },
|
||||||
{ t_width: '', t_props: 'typeModelName', t_label: '规格型号' },
|
{ t_width: '', t_props: 'typeModelName', t_label: '规格型号' },
|
||||||
{ t_width: '', t_props: 'maCode', t_label: '设备编码' },
|
{ t_width: '', t_props: 'maCode', t_label: '设备编码' },
|
||||||
{ t_width: '', t_props: 'status', t_label: '退料状态' },
|
// { t_width: '', t_props: 'status', t_label: '退料状态' },
|
||||||
],
|
],
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,6 @@ export default {
|
||||||
},
|
},
|
||||||
/* 驳回退料 */
|
/* 驳回退料 */
|
||||||
handleRejectReturn(data) {
|
handleRejectReturn(data) {
|
||||||
console.log('驳回退料', data)
|
|
||||||
this.$emit('openReturnPage', data)
|
this.$emit('openReturnPage', data)
|
||||||
},
|
},
|
||||||
/* 外层弹框关闭 */
|
/* 外层弹框关闭 */
|
||||||
|
|
@ -140,7 +139,6 @@ export default {
|
||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
if (this.isRefresh) {
|
if (this.isRefresh) {
|
||||||
console.log('刷新列表---')
|
|
||||||
this.$refs.tbRef.getList()
|
this.$refs.tbRef.getList()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<keep-alive v-if="isHome">
|
<keep-alive include="Home">
|
||||||
<Home :isRefresh="isRefresh" @openReturnPage="openReturnPage" />
|
<component
|
||||||
|
:is="isShowComponent"
|
||||||
|
:isRefresh="isRefresh"
|
||||||
|
@openReturnPage="openReturnPage"
|
||||||
|
:returnInfo="returnInfo"
|
||||||
|
@closeReturnPage="closeReturnPage"
|
||||||
|
/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
<Return
|
|
||||||
:returnInfo="returnInfo"
|
|
||||||
@closeReturnPage="closeReturnPage"
|
|
||||||
v-else
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -25,16 +26,17 @@ export default {
|
||||||
isHome: true,
|
isHome: true,
|
||||||
returnInfo: null,
|
returnInfo: null,
|
||||||
isRefresh: false,
|
isRefresh: false,
|
||||||
|
isShowComponent: 'Home',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openReturnPage(data) {
|
openReturnPage(data) {
|
||||||
this.returnInfo = data
|
this.returnInfo = data
|
||||||
this.isHome = false
|
this.isShowComponent = 'Return'
|
||||||
},
|
},
|
||||||
closeReturnPage(val) {
|
closeReturnPage(val) {
|
||||||
this.isRefresh = false
|
this.isRefresh = false
|
||||||
this.isHome = true
|
this.isShowComponent = 'Home'
|
||||||
|
|
||||||
if (val == 1) {
|
if (val == 1) {
|
||||||
this.isRefresh = true
|
this.isRefresh = true
|
||||||
|
|
|
||||||
|
|
@ -621,6 +621,7 @@ export default {
|
||||||
type: '',
|
type: '',
|
||||||
backCode: '',
|
backCode: '',
|
||||||
repairStatus: '',
|
repairStatus: '',
|
||||||
|
backSource: 2,
|
||||||
},
|
},
|
||||||
dialogQueryParams: {
|
dialogQueryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
|
<!-- 维修报废 -->
|
||||||
<div class="app-container" id="repair">
|
<div class="app-container" id="repair">
|
||||||
<el-form
|
<el-form
|
||||||
:model="queryParams"
|
:model="queryParams"
|
||||||
|
|
@ -18,7 +19,7 @@
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="单位名称" prop="backUnit">
|
<el-form-item label="单位名称---" prop="backUnit">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.backUnit"
|
v-model="queryParams.backUnit"
|
||||||
placeholder="请选择单位名称"
|
placeholder="请选择单位名称"
|
||||||
|
|
@ -157,6 +158,7 @@
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
:data="typeList"
|
||||||
border
|
border
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|
@ -171,6 +173,12 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="预报废单号"
|
label="预报废单号"
|
||||||
align="center"
|
align="center"
|
||||||
|
prop="forecastWasteCode"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="维修单号"
|
||||||
|
align="center"
|
||||||
prop="repairCode"
|
prop="repairCode"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
|
@ -210,6 +218,12 @@
|
||||||
prop="backCode"
|
prop="backCode"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/> -->
|
/> -->
|
||||||
|
<!-- <el-table-column
|
||||||
|
label="维修状态"
|
||||||
|
align="center"
|
||||||
|
prop="repairStatus"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="维修状态"
|
label="维修状态"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -394,6 +408,12 @@
|
||||||
prop="scrapNum"
|
prop="scrapNum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="驳回原因"
|
||||||
|
align="center"
|
||||||
|
prop="remark"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="待修状态"
|
label="待修状态"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -619,6 +639,7 @@ export default {
|
||||||
type: '',
|
type: '',
|
||||||
backCode: '',
|
backCode: '',
|
||||||
repairStatus: '',
|
repairStatus: '',
|
||||||
|
backSource: 1,
|
||||||
},
|
},
|
||||||
dialogQueryParams: {
|
dialogQueryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
|
|
||||||
|
|
@ -1046,7 +1046,7 @@ export default {
|
||||||
const scrapDetails = res.rows
|
const scrapDetails = res.rows
|
||||||
scrapDetails.forEach((e) => {
|
scrapDetails.forEach((e) => {
|
||||||
if (e.scrapNum >= 1) {
|
if (e.scrapNum >= 1) {
|
||||||
item.fileIds = e.fileIds
|
item.fileIds = e.fileIds || null
|
||||||
item.scrapReason = e.scrapReason
|
item.scrapReason = e.scrapReason
|
||||||
item.scrapType = e.scrapType
|
item.scrapType = e.scrapType
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,8 @@ export const dialogConfig = {
|
||||||
{ t_width: '', t_props: 'maCode', t_label: '设备编码' },
|
{ t_width: '', t_props: 'maCode', t_label: '设备编码' },
|
||||||
{ t_width: '', t_props: 'scrapNum', t_label: '设备数量' },
|
{ t_width: '', t_props: 'scrapNum', t_label: '设备数量' },
|
||||||
{ t_width: '', t_props: 'status', t_label: '审批状态', t_slot: 't_type' },
|
{ t_width: '', t_props: 'status', t_label: '审批状态', t_slot: 't_type' },
|
||||||
{ t_width: '', t_props: 'auditRemark', t_label: '报废原因' },
|
{ t_width: '', t_props: 'remark', t_label: '报废原因' },
|
||||||
|
{ t_width: '', t_props: 'auditRemark', t_label: '驳回原因' },
|
||||||
{ t_width: '', t_props: '', t_label: '损坏原因', t_slot: 't_damage' },
|
{ t_width: '', t_props: '', t_label: '损坏原因', t_slot: 't_damage' },
|
||||||
{ t_width: '', t_props: '', t_label: '报废图片', t_slot: 't_img' },
|
{ t_width: '', t_props: '', t_label: '报废图片', t_slot: 't_img' },
|
||||||
{ t_width: '', t_props: 'remark', t_label: '备注' },
|
{ t_width: '', t_props: 'remark', t_label: '备注' },
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,7 @@ import {
|
||||||
auditingPreScrapApi,
|
auditingPreScrapApi,
|
||||||
} from '@/api/scrap/forecastWaste.js'
|
} from '@/api/scrap/forecastWaste.js'
|
||||||
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
||||||
|
import { registerLayout } from 'echarts'
|
||||||
export default {
|
export default {
|
||||||
name: 'Inventory',
|
name: 'Inventory',
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -222,6 +223,7 @@ export default {
|
||||||
},
|
},
|
||||||
tbAllChecked: false, // 判断当前设备是否全部审核过
|
tbAllChecked: false, // 判断当前设备是否全部审核过
|
||||||
dataCondition: [], // 导出taskId列表
|
dataCondition: [], // 导出taskId列表
|
||||||
|
isRefresh: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -282,9 +284,9 @@ export default {
|
||||||
const res = await auditingPreScrapApi(this.auditingParams)
|
const res = await auditingPreScrapApi(this.auditingParams)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.success('审核通过!')
|
this.$message.success('审核通过!')
|
||||||
this.dialogConfig.outerVisible = false
|
|
||||||
this.$refs.tbRef.getList()
|
|
||||||
this.auditingParams.scrapDetailList = []
|
this.auditingParams.scrapDetailList = []
|
||||||
|
this.$refs.dialogTbRef.getList()
|
||||||
|
this.isRefresh = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 审核驳回 */
|
/* 审核驳回 */
|
||||||
|
|
@ -324,8 +326,6 @@ export default {
|
||||||
|
|
||||||
this.auditingParams.scrapDetailList.push(deviceInfo)
|
this.auditingParams.scrapDetailList.push(deviceInfo)
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(this.selAuditingList, '选择的操作数据')
|
|
||||||
const res = await auditingPreScrapApi(this.auditingParams)
|
const res = await auditingPreScrapApi(this.auditingParams)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.success('已驳回!')
|
this.$message.success('已驳回!')
|
||||||
|
|
@ -334,6 +334,9 @@ export default {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.dialogTbRef.getList()
|
this.$refs.dialogTbRef.getList()
|
||||||
})
|
})
|
||||||
|
this.isRefresh = true
|
||||||
|
} else {
|
||||||
|
this.dialogConfig.innerVisible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -361,6 +364,11 @@ export default {
|
||||||
/* 监听外层弹框关闭 清空勾选的数据 */
|
/* 监听外层弹框关闭 清空勾选的数据 */
|
||||||
if (!newVal.outerVisible) {
|
if (!newVal.outerVisible) {
|
||||||
this.selAuditingList = []
|
this.selAuditingList = []
|
||||||
|
|
||||||
|
if (this.isRefresh) {
|
||||||
|
this.$refs.tbRef.getList()
|
||||||
|
this.isRefresh = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!newVal.innerVisible) {
|
if (!newVal.innerVisible) {
|
||||||
this.auditingParams.scrapDetailList = []
|
this.auditingParams.scrapDetailList = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue