解决预报废页面无法显示问题
This commit is contained in:
parent
eba8462ae0
commit
60610d8f64
|
|
@ -163,12 +163,12 @@
|
||||||
import TableModel from '@/components/TableModel'
|
import TableModel from '@/components/TableModel'
|
||||||
import DialogModel from '@/components/DialogModel'
|
import DialogModel from '@/components/DialogModel'
|
||||||
import ScrapSource from '../../component/scrapSource.vue'
|
import ScrapSource from '../../component/scrapSource.vue'
|
||||||
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
|
||||||
import {
|
import {
|
||||||
getForecastWasteListApi,
|
getForecastWasteListApi,
|
||||||
getDialogListApi,
|
getDialogListApi,
|
||||||
auditingPreScrapApi,
|
auditingPreScrapApi,
|
||||||
} from '@/api/scrap/forecastWaste.js'
|
} from '@/api/scrap/forecastWaste.js'
|
||||||
|
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
||||||
export default {
|
export default {
|
||||||
name: 'Inventory',
|
name: 'Inventory',
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -341,3 +341,4 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -145,159 +145,159 @@
|
||||||
</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 ScrapSource from '../../component/scrapSource.vue'
|
import ScrapSource from '../../component/scrapSource.vue'
|
||||||
import AuditingDetails from '../../component/auditingDetails.vue'
|
import AuditingDetails from '../../component/auditingDetails.vue'
|
||||||
import { config, dialogConfig, getSelList } from './config.js'
|
import { config, dialogConfig, getSelList } from './config'
|
||||||
import {
|
import {
|
||||||
getScrapListApi,
|
getScrapListApi,
|
||||||
getDialogListApi,
|
getDialogListApi,
|
||||||
auditingScrapApi,
|
auditingScrapApi,
|
||||||
} from '@/api/scrap/forecastWaste.js'
|
} from '@/api/scrap/forecastWaste.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
TableModel,
|
TableModel,
|
||||||
DialogModel,
|
DialogModel,
|
||||||
ScrapSource,
|
ScrapSource,
|
||||||
AuditingDetails,
|
AuditingDetails,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config,
|
||||||
|
dialogConfig,
|
||||||
|
getScrapListApi,
|
||||||
|
getDialogListApi,
|
||||||
|
/* 选中的列表数据 */
|
||||||
|
selectionList: [],
|
||||||
|
/* 驳回原因 */
|
||||||
|
rejectReason: '',
|
||||||
|
sendParams: {}, // 列表查看时参数
|
||||||
|
deptId: sessionStorage.getItem('deptId'),
|
||||||
|
|
||||||
|
/* 审核参数 */
|
||||||
|
auditingParams: {
|
||||||
|
deptId: parseInt(sessionStorage.getItem('deptId')),
|
||||||
|
userId: sessionStorage.getItem('userId'),
|
||||||
|
taskId: '',
|
||||||
|
status: '',
|
||||||
|
reasonRejection: '',
|
||||||
|
},
|
||||||
|
|
||||||
|
/* 审批详情的列表 */
|
||||||
|
auditingList: [],
|
||||||
|
getSelList,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getSelList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/* 按钮操作 */
|
||||||
|
handlePreview(row) {
|
||||||
|
this.sendParams.taskId = row.taskId
|
||||||
|
this.dialogConfig.outerTitle = '查看'
|
||||||
|
this.dialogConfig.outerWidth = '70%'
|
||||||
|
this.dialogConfig.outerVisible = true
|
||||||
|
},
|
||||||
|
handleAuditing(row) {
|
||||||
|
this.sendParams.taskId = this.auditingParams.taskId = row.taskId
|
||||||
|
this.dialogConfig.outerTitle = '审核'
|
||||||
|
this.dialogConfig.outerWidth = '70%'
|
||||||
|
this.dialogConfig.outerVisible = true
|
||||||
|
},
|
||||||
|
handleAuditingDetails(row) {
|
||||||
|
this.auditingList = row.scrapAuditorSetList
|
||||||
|
this.dialogConfig.outerTitle = '审批详情'
|
||||||
|
this.dialogConfig.outerWidth = '40%'
|
||||||
|
this.dialogConfig.outerVisible = true
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
config,
|
|
||||||
dialogConfig,
|
|
||||||
getScrapListApi,
|
|
||||||
getDialogListApi,
|
|
||||||
/* 选中的列表数据 */
|
|
||||||
selectionList: [],
|
|
||||||
/* 驳回原因 */
|
|
||||||
rejectReason: '',
|
|
||||||
sendParams: {}, // 列表查看时参数
|
|
||||||
deptId: sessionStorage.getItem('deptId'),
|
|
||||||
|
|
||||||
/* 审核参数 */
|
/* 关闭外层弹框 */
|
||||||
auditingParams: {
|
closeDialogOuter(val) {
|
||||||
deptId: parseInt(sessionStorage.getItem('deptId')),
|
this.dialogConfig.outerVisible = val
|
||||||
userId: sessionStorage.getItem('userId'),
|
},
|
||||||
taskId: '',
|
/* 关闭内层弹框 */
|
||||||
status: '',
|
closeDialogInner(val) {
|
||||||
reasonRejection: '',
|
this.dialogConfig.innerVisible = val
|
||||||
},
|
},
|
||||||
|
/* 获取弹框内表格选中数据 */
|
||||||
/* 审批详情的列表 */
|
getDialogTbChange(list) {
|
||||||
auditingList: [],
|
this.selectionList = list
|
||||||
getSelList,
|
},
|
||||||
|
/* 审核通过 */
|
||||||
|
async handlePass() {
|
||||||
|
this.auditingParams.status = '1'
|
||||||
|
this.auditingParams.reasonRejection = '同意'
|
||||||
|
const res = await auditingScrapApi(this.auditingParams)
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message.success('审核通过')
|
||||||
|
this.dialogConfig.outerVisible = false
|
||||||
|
/* 刷新列表 */
|
||||||
|
this.$refs.tbRef.getList()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
/* 审核驳回 */
|
||||||
this.getSelList()
|
handleReject() {
|
||||||
|
/* 先打开内测弹框 */
|
||||||
|
this.dialogConfig.innerTitle = '驳回原因'
|
||||||
|
this.dialogConfig.innerVisible = true
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
/* 按钮操作 */
|
|
||||||
handlePreview(row) {
|
|
||||||
this.sendParams.taskId = row.taskId
|
|
||||||
this.dialogConfig.outerTitle = '查看'
|
|
||||||
this.dialogConfig.outerWidth = '70%'
|
|
||||||
this.dialogConfig.outerVisible = true
|
|
||||||
},
|
|
||||||
handleAuditing(row) {
|
|
||||||
this.sendParams.taskId = this.auditingParams.taskId = row.taskId
|
|
||||||
this.dialogConfig.outerTitle = '审核'
|
|
||||||
this.dialogConfig.outerWidth = '70%'
|
|
||||||
this.dialogConfig.outerVisible = true
|
|
||||||
},
|
|
||||||
handleAuditingDetails(row) {
|
|
||||||
this.auditingList = row.scrapAuditorSetList
|
|
||||||
this.dialogConfig.outerTitle = '审批详情'
|
|
||||||
this.dialogConfig.outerWidth = '40%'
|
|
||||||
this.dialogConfig.outerVisible = true
|
|
||||||
},
|
|
||||||
|
|
||||||
/* 关闭外层弹框 */
|
/* 驳回原因页面取消 */
|
||||||
closeDialogOuter(val) {
|
handleCancelInner() {
|
||||||
this.dialogConfig.outerVisible = val
|
this.rejectReason = ''
|
||||||
},
|
this.dialogConfig.innerVisible = false
|
||||||
/* 关闭内层弹框 */
|
},
|
||||||
closeDialogInner(val) {
|
/* 驳回原因页面保存 */
|
||||||
this.dialogConfig.innerVisible = val
|
async handleSubmitInner() {
|
||||||
},
|
if (!this.rejectReason) {
|
||||||
/* 获取弹框内表格选中数据 */
|
this.$message.error('请输入驳回原因')
|
||||||
getDialogTbChange(list) {
|
return
|
||||||
this.selectionList = list
|
}
|
||||||
},
|
|
||||||
/* 审核通过 */
|
|
||||||
async handlePass() {
|
|
||||||
this.auditingParams.status = '1'
|
|
||||||
this.auditingParams.reasonRejection = '同意'
|
|
||||||
const res = await auditingScrapApi(this.auditingParams)
|
|
||||||
if (res.code == 200) {
|
|
||||||
this.$message.success('审核通过')
|
|
||||||
this.dialogConfig.outerVisible = false
|
|
||||||
/* 刷新列表 */
|
|
||||||
this.$refs.tbRef.getList()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/* 审核驳回 */
|
|
||||||
handleReject() {
|
|
||||||
/* 先打开内测弹框 */
|
|
||||||
this.dialogConfig.innerTitle = '驳回原因'
|
|
||||||
this.dialogConfig.innerVisible = true
|
|
||||||
},
|
|
||||||
|
|
||||||
/* 驳回原因页面取消 */
|
this.auditingParams.status = '2'
|
||||||
handleCancelInner() {
|
this.auditingParams.reasonRejection = this.rejectReason
|
||||||
this.rejectReason = ''
|
const res = await auditingScrapApi(this.auditingParams)
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message.success('已驳回')
|
||||||
this.dialogConfig.innerVisible = false
|
this.dialogConfig.innerVisible = false
|
||||||
},
|
this.dialogConfig.outerVisible = false
|
||||||
/* 驳回原因页面保存 */
|
this.rejectReason = ''
|
||||||
async handleSubmitInner() {
|
/* 刷新列表 */
|
||||||
if (!this.rejectReason) {
|
this.$refs.tbRef.getList()
|
||||||
this.$message.error('请输入驳回原因')
|
}
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
this.auditingParams.status = '2'
|
|
||||||
this.auditingParams.reasonRejection = this.rejectReason
|
|
||||||
const res = await auditingScrapApi(this.auditingParams)
|
|
||||||
if (res.code == 200) {
|
|
||||||
this.$message.success('已驳回')
|
|
||||||
this.dialogConfig.innerVisible = false
|
|
||||||
this.dialogConfig.outerVisible = false
|
|
||||||
this.rejectReason = ''
|
|
||||||
/* 刷新列表 */
|
|
||||||
this.$refs.tbRef.getList()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/* 审核按钮的显示条件 */
|
|
||||||
auditingIsShow(row) {
|
|
||||||
let temp = row.scrapAuditorSetList?.some((e) => {
|
|
||||||
return e.deptId == this.deptId && e.status == '0'
|
|
||||||
})
|
|
||||||
return temp
|
|
||||||
},
|
|
||||||
/* 导出数据 */
|
|
||||||
handelExportData(data) {
|
|
||||||
console.log(this.tableSelList, ' this.tableSelList')
|
|
||||||
this.download(
|
|
||||||
'material/scrap/exportScrapTaskReviewList',
|
|
||||||
{
|
|
||||||
...data,
|
|
||||||
},
|
|
||||||
`报废审核列表_${new Date().getTime()}.xlsx`,
|
|
||||||
)
|
|
||||||
console.log('数据导出', data)
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
watch: {
|
/* 审核按钮的显示条件 */
|
||||||
$route: {
|
auditingIsShow(row) {
|
||||||
handler(to) {
|
let temp = row.scrapAuditorSetList?.some((e) => {
|
||||||
if (to.query.keyWord) {
|
return e.deptId == this.deptId && e.status == '0'
|
||||||
this.config.routerParams = to.query.keyWord
|
})
|
||||||
}
|
return temp
|
||||||
|
},
|
||||||
|
/* 导出数据 */
|
||||||
|
handelExportData(data) {
|
||||||
|
console.log(this.tableSelList, ' this.tableSelList')
|
||||||
|
this.download(
|
||||||
|
'material/scrap/exportScrapTaskReviewList',
|
||||||
|
{
|
||||||
|
...data,
|
||||||
},
|
},
|
||||||
deep: true,
|
`报废审核列表_${new Date().getTime()}.xlsx`,
|
||||||
immediate: true,
|
)
|
||||||
},
|
console.log('数据导出', data)
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
watch: {
|
||||||
|
$route: {
|
||||||
|
handler(to) {
|
||||||
|
if (to.query.keyWord) {
|
||||||
|
this.config.routerParams = to.query.keyWord
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ module.exports = {
|
||||||
// target: `http://10.40.92.8:8080`, //超
|
// target: `http://10.40.92.8:8080`, //超
|
||||||
// target: `http://10.40.92.81:8080`, //韩/
|
// target: `http://10.40.92.81:8080`, //韩/
|
||||||
// target: `http://10.40.92.74:8080`,//旭/
|
// target: `http://10.40.92.74:8080`,//旭/
|
||||||
target: `http://10.40.92.136:28080`, //帅
|
target: `http://10.40.92.52:28080`, //帅
|
||||||
// target: `http://10.40.92.5:28080`, //福
|
// target: `http://10.40.92.5:28080`, //福
|
||||||
|
|
||||||
//******** 注意事项 ********* */
|
//******** 注意事项 ********* */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue