优化测试问题
This commit is contained in:
parent
2a284b8d52
commit
42a8e5c561
|
|
@ -714,7 +714,7 @@ export default {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let params = {
|
let params = {
|
||||||
companyId: this.companyId,
|
// companyId: this.companyId,
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
}
|
}
|
||||||
const res = await ApiGetBackApplyList(params)
|
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.sendMessageParams.taskId = taskId
|
||||||
|
|
||||||
this.urgingDialogVisible = true
|
this.urgingDialogVisible = true
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@
|
||||||
:sendApi="getDialogListApi"
|
:sendApi="getDialogListApi"
|
||||||
:config="dialogConfig"
|
:config="dialogConfig"
|
||||||
>
|
>
|
||||||
<template slot="imgPreview" >
|
<template slot="imgPreview">
|
||||||
<ImagePreview
|
<ImagePreview
|
||||||
:src="`https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg`"
|
:src="`https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg`"
|
||||||
:width="`60px`"
|
:width="`60px`"
|
||||||
|
|
@ -135,126 +135,125 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableModel from '@/components/TableModel'
|
import TableModel from '@/components/TableModel'
|
||||||
import DialogModel from '@/components/DialogModel'
|
import DialogModel from '@/components/DialogModel'
|
||||||
import SelDepart from '../../component/selDepart.vue'
|
import SelDepart from '../../component/selDepart.vue'
|
||||||
import AuditingReturn from '../auditingReturn/index.vue' // 退料驳回页面
|
import AuditingReturn from '../auditingReturn/index.vue' // 退料驳回页面
|
||||||
import AuditingDetails from '../../component/auditingDetails.vue'
|
import AuditingDetails from '../../component/auditingDetails.vue'
|
||||||
import {
|
import {
|
||||||
getPreScrapListApi,
|
getPreScrapListApi,
|
||||||
getDialogListApi,
|
getDialogListApi,
|
||||||
submitScrapApi,
|
submitScrapApi,
|
||||||
} from '@/api/scrap/forecastWaste.js'
|
} from '@/api/scrap/forecastWaste.js'
|
||||||
import { config, dialogConfig, getSelList } from './config'
|
import { config, dialogConfig, getSelList } from './config'
|
||||||
export default {
|
export default {
|
||||||
name: 'scrapListing',
|
name: 'scrapListing',
|
||||||
components: {
|
components: {
|
||||||
TableModel,
|
TableModel,
|
||||||
DialogModel,
|
DialogModel,
|
||||||
SelDepart,
|
SelDepart,
|
||||||
AuditingReturn,
|
AuditingReturn,
|
||||||
AuditingDetails,
|
AuditingDetails,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config,
|
config,
|
||||||
dialogConfig,
|
dialogConfig,
|
||||||
getPreScrapListApi,
|
getPreScrapListApi,
|
||||||
getDialogListApi,
|
getDialogListApi,
|
||||||
tableSelList: [],
|
tableSelList: [],
|
||||||
sendParams: {}, // 列表查看时参数
|
sendParams: {}, // 列表查看时参数
|
||||||
temp: false,
|
temp: false,
|
||||||
getSelList,
|
getSelList,
|
||||||
imgCommonUrl: process.env.VUE_APP_BASE_API + '/system',
|
imgCommonUrl: process.env.VUE_APP_BASE_API + '/system',
|
||||||
|
|
||||||
/* 提交报废申请参数 */
|
/* 提交报废申请参数 */
|
||||||
submitScrapParams: {
|
submitScrapParams: {
|
||||||
taskIdList: [],
|
taskIdList: [],
|
||||||
deptIds: [],
|
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
|
|
||||||
},
|
},
|
||||||
handleSubmitScrap(row) {
|
auditingList: [],
|
||||||
this.submitScrapParams.taskIdList.push(row.taskId)
|
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.outerTitle = '选择审批部门'
|
||||||
this.dialogConfig.outerWidth = '50%'
|
this.dialogConfig.outerWidth = '50%'
|
||||||
this.dialogConfig.outerVisible = true
|
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>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue