This commit is contained in:
BianLzhaoMin 2024-04-23 10:21:21 +08:00
parent 8b8d2b9f54
commit 60562a1fbb
4 changed files with 101 additions and 41 deletions

View File

@ -262,6 +262,9 @@
if (res.code == 200) { if (res.code == 200) {
this.$message.success('审核通过!') this.$message.success('审核通过!')
this.dialogVisible = false this.dialogVisible = false
} else {
console.log('审核失败--')
this.auditingParams.scrapDetailList = []
} }
}, },
/* 审核驳回 */ /* 审核驳回 */

View File

@ -53,16 +53,15 @@ export const config = {
/* 预报废列表主页 列表参数 */ /* 预报废列表主页 列表参数 */
listingTableProps: [ listingTableProps: [
{ t_width: '55px', t_props: '', t_label: '序号' }, { t_width: '55px', t_props: '', t_label: '序号' },
{ t_width: '', t_props: 'demo', t_label: '报废单号' }, { t_width: '', t_props: 'scrapNum', t_label: '报废单号' },
{ t_width: '', t_props: '', t_label: '报废类型' }, { t_width: '', t_props: '', t_label: '报废类型' },
{ t_width: '', t_props: '', t_label: '预报废审核单号' }, { t_width: '', t_props: 'repairNum', t_label: '预报废单号' },
{ t_width: '', t_props: '', t_label: '退料单位名称' }, { t_width: '', t_props: 'unitName', t_label: '退料单位名称' },
{ t_width: '', t_props: '', t_label: '退料单位名称' }, { t_width: '', t_props: 'projectName', t_label: '退料工程名称' },
{ t_width: '', t_props: '', t_label: '退料工程名称' }, { t_width: '', t_props: 'itemType', t_label: '机具类型' },
{ t_width: '', t_props: '', t_label: '机具类型' }, { t_width: '', t_props: 'createBy', t_label: '任务创建人' },
{ t_width: '', t_props: '', t_label: '任务创建人' }, { t_width: '', t_props: 'createTime', t_label: '任务创建时间' },
{ t_width: '', t_props: '', t_label: '任务创建时间' }, { t_width: '', t_props: 'taskStatus', t_label: '审核状态', t_slot: 'type' },
{ t_width: '', t_props: '', t_label: '审核状态' },
], ],
/* 预报废列表主页表单 查询参数 */ /* 预报废列表主页表单 查询参数 */
listingFormLabel: [ listingFormLabel: [

View File

@ -9,7 +9,7 @@
:exportShow="true" :exportShow="true"
:pageShow="true" :pageShow="true"
:isSelShow="true" :isSelShow="true"
:handleWidth="`260px`" :handleWidth="`200px`"
@getTableSelectionChange="getTableSelectionChange" @getTableSelectionChange="getTableSelectionChange"
> >
<template slot="submitScrap"> <template slot="submitScrap">
@ -26,12 +26,54 @@
<template slot-scope="{ data }"> <template slot-scope="{ data }">
<el-button <el-button
v-for="btn in handleBtn"
:key="btn.id"
type="text" type="text"
size="mini" size="mini"
@click="handleBtnEvent(data, btn.id)" @click="handlePreview(data)"
>{{ btn.btn_title }}</el-button >查看</el-button
>
<el-button
type="text"
size="mini"
v-if="data.taskStatus == 124"
@click="handleSubmitScrap(data)"
>提交报废</el-button
>
<el-button
type="text"
size="mini"
@click="handleAuditing(data)"
>审批详情</el-button
>
<el-button
type="text"
size="mini"
v-if="data.taskStatus == 61"
@click="handleReject(data)"
>驳回退料</el-button
>
</template>
<template slot-scope="{ data }" slot="type">
<el-tag size="mini" v-if="data.taskStatus == 124"
>待提交</el-tag
>
<el-tag
size="mini"
type="warning"
v-if="data.taskStatus == 58"
>审核中</el-tag
>
<el-tag
size="mini"
type="danger"
v-if="data.taskStatus == 61"
>已驳回</el-tag
>
<el-tag
size="mini"
type="success"
v-if="data.taskStatus == 59"
>已通过</el-tag
> >
</template> </template>
</TableModel> </TableModel>
@ -44,7 +86,7 @@
@closeDialog="closeDialog" @closeDialog="closeDialog"
> >
<!-- 查看内容 --> <!-- 查看内容 -->
<template slot="preview" v-if="previewDetails"> <template slot="preview" v-if="title === '查看'">
<TableModel <TableModel
:tableProps="config.previewTableProps" :tableProps="config.previewTableProps"
:handleColShow="false" :handleColShow="false"
@ -54,7 +96,7 @@
></template> ></template>
<!-- 审批详情 --> <!-- 审批详情 -->
<template v-if="auditingShow"> <template v-if="title === '审批详情'">
<el-table :data="audDetails"> <el-table :data="audDetails">
<el-table-column <el-table-column
prop="title" prop="title"
@ -71,7 +113,7 @@
</template> </template>
<!-- 部门选择 --> <!-- 部门选择 -->
<template v-if="selDepart"> <template v-if="title === '提交报废'">
<SelDepart @closeDepartSel="closeDepartSel" /> <SelDepart @closeDepartSel="closeDepartSel" />
</template> </template>
</DialogModel> </DialogModel>
@ -109,8 +151,7 @@
title: '', title: '',
dialogWidth: '70%', dialogWidth: '70%',
dialogVisible: false, dialogVisible: false,
previewDetails: false,
auditingShow: false,
selDepart: false, selDepart: false,
tableSelList: [], tableSelList: [],
audDetails: [ audDetails: [
@ -129,30 +170,47 @@
}, },
methods: { methods: {
/* 列表按钮操作 */ /* 列表按钮操作 */
handleBtnEvent(val, id) {
switch (id) { handlePreview(row) {
case 1:
this.title = '查看' this.title = '查看'
this.dialogWidth = '70%' this.dialogWidth = '70%'
this.previewDetails = true
break
case 2:
this.title = '提交报废'
this.dialogWidth = '50%'
this.selDepart = true
break
case 3:
this.title = '审批详情'
this.dialogWidth = '50%'
this.auditingShow = true
break
case 4:
this.temp = !this.temp
break
}
this.dialogVisible = true this.dialogVisible = true
}, },
handleSubmitScrap(row) {
this.title = '提交报废'
this.dialogWidth = '50%'
this.dialogVisible = true
},
handleAuditing(row) {
this.title = '审批详情'
this.dialogWidth = '50%'
this.dialogVisible = true
},
handleReject(row) {
this.temp = !this.temp
},
// handleBtnEvent(val, id) {
// switch (id) {
// case 1:
// this.previewDetails = true
// break
// case 2:
// this.title = ''
// this.dialogWidth = '50%'
// this.selDepart = true
// break
// case 3:
// this.title = ''
// this.dialogWidth = '50%'
// this.auditingShow = true
// break
// case 4:
// this.temp = !this.temp
// break
// }
// },
/* 关闭弹框 */ /* 关闭弹框 */
closeDialog(val) { closeDialog(val) {

View File

@ -43,7 +43,7 @@ module.exports = {
// target: `https://z.csgmall.com.cn`, // target: `https://z.csgmall.com.cn`,
target: `http://10.40.92.14:8080`, //福 target: `http://10.40.92.14:8080`, //福
// target: `http://10.40.92.8:8080`, //福 // target: `http://10.40.92.153:8080`, //马帅
//******** 注意事项 ********* */ //******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址; //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址;