优化测试问题
This commit is contained in:
parent
2a284b8d52
commit
42a8e5c561
|
|
@ -714,7 +714,7 @@ export default {
|
|||
|
||||
try {
|
||||
let params = {
|
||||
companyId: this.companyId,
|
||||
// companyId: this.companyId,
|
||||
...this.queryParams,
|
||||
}
|
||||
const res = await ApiGetBackApplyList(params)
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@
|
|||
})
|
||||
})
|
||||
|
||||
this.sendMessageParams.message = `宁夏送变电工程有限公司提示:您有一条任务单号为 <span style="color:#529b2e">${taskCode}</span> 的待办任务未处理,请及时处理。`
|
||||
this.sendMessageParams.message = `宁夏送变电工程有限公司提示:您有一条任务单号为 <span style="color:#529b2e">${taskCode}</span> 的待办任务未处理,请及时处理`
|
||||
this.sendMessageParams.taskId = taskId
|
||||
|
||||
this.urgingDialogVisible = true
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
:sendApi="getDialogListApi"
|
||||
:config="dialogConfig"
|
||||
>
|
||||
<template slot="imgPreview" >
|
||||
<template slot="imgPreview">
|
||||
<ImagePreview
|
||||
:src="`https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg`"
|
||||
:width="`60px`"
|
||||
|
|
@ -135,126 +135,125 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import TableModel from '@/components/TableModel'
|
||||
import DialogModel from '@/components/DialogModel'
|
||||
import SelDepart from '../../component/selDepart.vue'
|
||||
import AuditingReturn from '../auditingReturn/index.vue' // 退料驳回页面
|
||||
import AuditingDetails from '../../component/auditingDetails.vue'
|
||||
import {
|
||||
getPreScrapListApi,
|
||||
getDialogListApi,
|
||||
submitScrapApi,
|
||||
} from '@/api/scrap/forecastWaste.js'
|
||||
import { config, dialogConfig, getSelList } from './config'
|
||||
export default {
|
||||
name: 'scrapListing',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
SelDepart,
|
||||
AuditingReturn,
|
||||
AuditingDetails,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
config,
|
||||
dialogConfig,
|
||||
getPreScrapListApi,
|
||||
getDialogListApi,
|
||||
tableSelList: [],
|
||||
sendParams: {}, // 列表查看时参数
|
||||
temp: false,
|
||||
getSelList,
|
||||
imgCommonUrl: process.env.VUE_APP_BASE_API + '/system',
|
||||
import TableModel from '@/components/TableModel'
|
||||
import DialogModel from '@/components/DialogModel'
|
||||
import SelDepart from '../../component/selDepart.vue'
|
||||
import AuditingReturn from '../auditingReturn/index.vue' // 退料驳回页面
|
||||
import AuditingDetails from '../../component/auditingDetails.vue'
|
||||
import {
|
||||
getPreScrapListApi,
|
||||
getDialogListApi,
|
||||
submitScrapApi,
|
||||
} from '@/api/scrap/forecastWaste.js'
|
||||
import { config, dialogConfig, getSelList } from './config'
|
||||
export default {
|
||||
name: 'scrapListing',
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
SelDepart,
|
||||
AuditingReturn,
|
||||
AuditingDetails,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
config,
|
||||
dialogConfig,
|
||||
getPreScrapListApi,
|
||||
getDialogListApi,
|
||||
tableSelList: [],
|
||||
sendParams: {}, // 列表查看时参数
|
||||
temp: false,
|
||||
getSelList,
|
||||
imgCommonUrl: process.env.VUE_APP_BASE_API + '/system',
|
||||
|
||||
/* 提交报废申请参数 */
|
||||
submitScrapParams: {
|
||||
taskIdList: [],
|
||||
deptIds: [],
|
||||
},
|
||||
auditingList: [],
|
||||
sendParamsAuditing: {},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
/* 获取表单下拉选数据 */
|
||||
this.getSelList()
|
||||
},
|
||||
methods: {
|
||||
/* 列表按钮操作 */
|
||||
handlePreview(row) {
|
||||
this.sendParams.taskId = row.taskId
|
||||
this.dialogConfig.outerTitle = '查看'
|
||||
this.dialogConfig.outerWidth = '70%'
|
||||
this.dialogConfig.outerVisible = true
|
||||
/* 提交报废申请参数 */
|
||||
submitScrapParams: {
|
||||
taskIdList: [],
|
||||
deptIds: [],
|
||||
},
|
||||
handleSubmitScrap(row) {
|
||||
this.submitScrapParams.taskIdList.push(row.taskId)
|
||||
auditingList: [],
|
||||
sendParamsAuditing: {},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
/* 获取表单下拉选数据 */
|
||||
this.getSelList()
|
||||
},
|
||||
methods: {
|
||||
/* 列表按钮操作 */
|
||||
handlePreview(row) {
|
||||
this.sendParams.taskId = row.taskId
|
||||
this.dialogConfig.outerTitle = '查看'
|
||||
this.dialogConfig.outerWidth = '70%'
|
||||
this.dialogConfig.outerVisible = true
|
||||
},
|
||||
handleSubmitScrap(row) {
|
||||
this.submitScrapParams.taskIdList = []
|
||||
this.submitScrapParams.taskIdList.push(row.taskId)
|
||||
this.dialogConfig.outerTitle = '选择审批部门'
|
||||
this.dialogConfig.outerWidth = '50%'
|
||||
this.dialogConfig.outerVisible = true
|
||||
},
|
||||
handleAuditing(row) {
|
||||
this.auditingList = row.scrapAuditorSetList
|
||||
this.dialogConfig.outerTitle = '审批详情'
|
||||
this.dialogConfig.outerWidth = '50%'
|
||||
this.dialogConfig.outerVisible = true
|
||||
},
|
||||
handleReject(row) {
|
||||
this.sendParamsAuditing.taskId = row.taskId
|
||||
this.temp = !this.temp
|
||||
},
|
||||
|
||||
/* 关闭选择审批部门弹框 */
|
||||
async closeDepartSel(val, 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 =
|
||||
[]
|
||||
},
|
||||
/* 批量提交报废按钮 */
|
||||
handelSubmitScrap() {
|
||||
if (this.tableSelList.length < 1) {
|
||||
this.$message.error('请勾选列表数据!')
|
||||
} else {
|
||||
this.dialogConfig.outerTitle = '选择审批部门'
|
||||
this.dialogConfig.outerWidth = '50%'
|
||||
this.dialogConfig.outerVisible = true
|
||||
},
|
||||
handleAuditing(row) {
|
||||
this.auditingList = row.scrapAuditorSetList
|
||||
this.dialogConfig.outerTitle = '审批详情'
|
||||
this.dialogConfig.outerWidth = '50%'
|
||||
this.dialogConfig.outerVisible = true
|
||||
},
|
||||
handleReject(row) {
|
||||
this.sendParamsAuditing.taskId = row.taskId
|
||||
this.temp = !this.temp
|
||||
},
|
||||
|
||||
/* 关闭选择审批部门弹框 */
|
||||
async closeDepartSel(val, list) {
|
||||
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 = []
|
||||
},
|
||||
/* 批量提交报废按钮 */
|
||||
handelSubmitScrap() {
|
||||
if (this.tableSelList.length < 1) {
|
||||
this.$message.error('请勾选列表数据!')
|
||||
} else {
|
||||
this.dialogConfig.outerTitle = '选择审批部门'
|
||||
this.dialogConfig.outerWidth = '50%'
|
||||
this.dialogConfig.outerVisible = true
|
||||
}
|
||||
},
|
||||
/* 表格复选框选中的数据 */
|
||||
getTableSelectionChange(val) {
|
||||
this.tableSelList = []
|
||||
this.tableSelList = val
|
||||
this.tableSelList.map((e) => {
|
||||
this.submitScrapParams.taskIdList.push(e.taskId)
|
||||
})
|
||||
},
|
||||
handleBack() {
|
||||
this.temp = !this.temp
|
||||
this.dialogVisible = false
|
||||
},
|
||||
/* 外层弹框关闭 */
|
||||
closeDialogOuter() {
|
||||
this.dialogConfig.outerVisible = false
|
||||
},
|
||||
/* 内层弹框关闭 */
|
||||
closeDialogInner() {
|
||||
this.dialogConfig.innerVisible = false
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
/* 表格复选框选中的数据 */
|
||||
getTableSelectionChange(val) {
|
||||
this.tableSelList = this.submitScrapParams.taskIdList = []
|
||||
this.tableSelList = val
|
||||
this.tableSelList.map((e) => {
|
||||
this.submitScrapParams.taskIdList.push(e.taskId)
|
||||
})
|
||||
},
|
||||
handleBack() {
|
||||
this.temp = !this.temp
|
||||
this.dialogVisible = false
|
||||
},
|
||||
/* 外层弹框关闭 */
|
||||
closeDialogOuter() {
|
||||
this.dialogConfig.outerVisible = false
|
||||
},
|
||||
/* 内层弹框关闭 */
|
||||
closeDialogInner() {
|
||||
this.dialogConfig.innerVisible = false
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue