由阿胡

This commit is contained in:
BianLzhaoMin 2024-04-28 16:55:12 +08:00
parent 8e964622fb
commit 83863f7e22
8 changed files with 1155 additions and 806 deletions

View File

@ -132,7 +132,7 @@
data() {
return {
total: 0,
tableList: [],
tableList: [{ demo: 123 }],
/* 分页参数 */
pageParams: {
pageNum: 1,

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@
</el-table-column>
<el-table-column align="center" label="审批意见">
<template slot-scope="{ row }">
{{ row.reasonRejection || '同意' }}
{{ row.reasonRejection }}
</template>
</el-table-column>
</el-table>

View File

@ -64,7 +64,7 @@ export const dialogConfig = {
innerTitle: '',
innerVisible: false,
handleColShow: false, // 是否显示操作列
pageShow: false, // 是否显示分页组件
pageShow: true, // 是否显示分页组件
isSelShow: false,// 表格是否需要复选框
isFormShow: true, // 是否显示表单查询组件
formLabel: [

View File

@ -114,6 +114,7 @@
</TableModel>
<el-row
class="dialog-common-btn"
style="margin-top: 20px"
v-if="dialogConfig.outerTitle == '审核'"
>
<el-button size="mini" type="primary" @click="auditingPass"

View File

@ -40,9 +40,7 @@ export const dialogConfig = {
isSelShow: false,// 表格是否需要复选框
isFormShow: true, // 是否显示表单查询组件
formLabel: [
{ f_label: '关键字', f_model: 'keywords', f_type: 'ipt' },
{ f_label: '类型名称', f_model: 'backUnit', f_type: 'sel', f_selList: [] },
{ f_label: '规格型号', f_model: 'backPro', f_type: 'sel', f_selList: [] },
{ f_label: '设备类型', f_model: 'keywords', f_type: 'ipt' },
],
columnsList: [

View File

@ -3,6 +3,7 @@
<div>
<TableModel
:config="config"
:sendParams="sendParams"
@getTableSelectionChange="getTableSelectionChange"
>
<template slot="export">
@ -13,13 +14,14 @@
</el-row>
</template>
<template slot-scope="{ data }" slot="handle">
<el-button
v-for="btn in handleBtn"
:key="btn.id"
type="text"
size="mini"
@click="handleBtnEvent(data, btn.id)"
>{{ btn.btn_title }}</el-button
<el-button type="text" size="mini" @click="handlePreview(data)"
>查看</el-button
>
<el-button type="text" size="mini" @click="handleEdit(data)"
>编辑退料</el-button
>
<el-button type="text" size="mini" @click="handleRevoke(data)"
>撤回</el-button
>
</template>
</TableModel>
@ -30,7 +32,47 @@
@closeDialogInner="closeDialogInner"
>
<template slot="outerContent">
<TableModel :config="dialogConfig" />
<template v-if="dialogConfig.outerTitle === '查看'">
<TableModel :config="dialogConfig" />
</template>
<template v-if="dialogConfig.outerTitle === '编辑退料'">
<TableModel :config="dialogConfig">
<template slot="export">
<el-row :gutter="10" class="mb8">
<el-button type="success" plain size="mini"
>批量合格</el-button
>
<el-button type="warning" plain size="mini"
>批量维修</el-button
>
<el-button type="danger" plain size="mini"
>批量预报废</el-button
>
</el-row>
</template>
<template slot-scope="{ data }" slot="handle">
<el-button
type="text"
size="mini"
style="color: #95d475"
>合格</el-button
>
<el-button
type="text"
size="mini"
style="color: #eebe77"
>维修</el-button
>
<el-button
type="text"
size="mini"
style="color: #f89898"
>预报废</el-button
>
</template>
</TableModel>
</template>
</template>
</DialogModel>
</div>
@ -41,6 +83,7 @@
import DialogModel from '@/components/DialogModel'
import SelDepart from '../../component/selDepart.vue'
import { config, dialogConfig } from './config'
import { receiveView } from '@/api/claimAndRefund/return'
export default {
name: 'auditingReturn',
components: {
@ -48,36 +91,37 @@
DialogModel,
SelDepart,
},
props: {
sendParams: {
type: Object,
default: () => {
return {}
},
},
},
data() {
return {
config,
dialogConfig,
handleBtn: [
{ btn_title: '查看', id: 1 },
{ btn_title: '编辑退料', id: 2 },
{ btn_title: '撤回', id: 3 },
],
receiveView,
}
},
methods: {
/* 按钮操作 */
handleBtnEvent(data, id) {
switch (id) {
case 1:
this.dialogConfig.outerTitle = '查看'
this.dialogConfig.outerWidth = '70%'
break
case 2:
this.dialogConfig.outerTitle = '编辑退料'
this.dialogConfig.outerWidth = '70%'
break
case 3:
this.dialogConfig.outerTitle = '撤回'
break
}
handlePreview(row) {
this.dialogConfig.outerTitle = '查看'
this.dialogConfig.handleColShow = false
this.dialogConfig.outerWidth = '70%'
this.dialogConfig.outerVisible = true
},
handleEdit(row) {
this.dialogConfig.outerTitle = '编辑退料'
this.dialogConfig.handleColShow = true
this.dialogConfig.outerWidth = '70%'
this.dialogConfig.outerVisible = true
},
handleRevoke(row) {},
getTableSelectionChange() {},
closeDialog(val) {
this.dialogConfig.outerVisible = val

View File

@ -129,7 +129,7 @@
<span>驳回退料</span>
<el-button type="text" @click="handleBack">返回</el-button>
</el-row>
<AuditingReturn />
<AuditingReturn :sendParams="sendParamsAuditing" />
</template>
</div>
</template>
@ -173,6 +173,7 @@
deptIds: [],
},
auditingList: [],
sendParamsAuditing: {},
}
},
created() {
@ -200,21 +201,26 @@
this.dialogConfig.outerVisible = true
},
handleReject(row) {
this.sendParamsAuditing.taskId = row.taskId
this.temp = !this.temp
},
/* 关闭选择审批部门弹框 */
async closeDepartSel(val, list) {
if (list.length > 1) {
list.map((e) => {
this.submitScrapParams.deptIds.push(e.id)
})
const res = await submitScrapApi(this.submitScrapParams)
if (res.code == 200) {
this.$message.success('已提交成功')
this.dialogConfig.outerVisible = val
this.$refs.listingTbRef.getList()
}
console.log(list, '选择的部门---')
if (list.length < 1) {
this.$message.error('请选择审批部门')
return
}
list.map((e) => {
this.submitScrapParams.deptIds.push(e.id)
})
const res = await submitScrapApi(this.submitScrapParams)
if (res.code == 200) {
this.$message.success('已提交成功')
this.dialogConfig.outerVisible = val
this.$refs.listingTbRef.getList()
}
this.submitScrapParams.deptIds =
this.submitScrapParams.taskIdList = []