解决预报废页面无法显示问题
This commit is contained in:
parent
eba8462ae0
commit
60610d8f64
|
|
@ -163,12 +163,12 @@
|
|||
import TableModel from '@/components/TableModel'
|
||||
import DialogModel from '@/components/DialogModel'
|
||||
import ScrapSource from '../../component/scrapSource.vue'
|
||||
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
||||
import {
|
||||
getForecastWasteListApi,
|
||||
getDialogListApi,
|
||||
auditingPreScrapApi,
|
||||
} from '@/api/scrap/forecastWaste.js'
|
||||
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
||||
export default {
|
||||
name: 'Inventory',
|
||||
components: {
|
||||
|
|
@ -341,3 +341,4 @@ export default {
|
|||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -145,159 +145,159 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import TableModel from '@/components/TableModel'
|
||||
import DialogModel from '@/components/DialogModel'
|
||||
import ScrapSource from '../../component/scrapSource.vue'
|
||||
import AuditingDetails from '../../component/auditingDetails.vue'
|
||||
import { config, dialogConfig, getSelList } from './config.js'
|
||||
import {
|
||||
getScrapListApi,
|
||||
getDialogListApi,
|
||||
auditingScrapApi,
|
||||
} from '@/api/scrap/forecastWaste.js'
|
||||
export default {
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
ScrapSource,
|
||||
AuditingDetails,
|
||||
import TableModel from '@/components/TableModel'
|
||||
import DialogModel from '@/components/DialogModel'
|
||||
import ScrapSource from '../../component/scrapSource.vue'
|
||||
import AuditingDetails from '../../component/auditingDetails.vue'
|
||||
import { config, dialogConfig, getSelList } from './config'
|
||||
import {
|
||||
getScrapListApi,
|
||||
getDialogListApi,
|
||||
auditingScrapApi,
|
||||
} from '@/api/scrap/forecastWaste.js'
|
||||
export default {
|
||||
components: {
|
||||
TableModel,
|
||||
DialogModel,
|
||||
ScrapSource,
|
||||
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: {
|
||||
deptId: parseInt(sessionStorage.getItem('deptId')),
|
||||
userId: sessionStorage.getItem('userId'),
|
||||
taskId: '',
|
||||
status: '',
|
||||
reasonRejection: '',
|
||||
},
|
||||
|
||||
/* 审批详情的列表 */
|
||||
auditingList: [],
|
||||
getSelList,
|
||||
/* 关闭外层弹框 */
|
||||
closeDialogOuter(val) {
|
||||
this.dialogConfig.outerVisible = val
|
||||
},
|
||||
/* 关闭内层弹框 */
|
||||
closeDialogInner(val) {
|
||||
this.dialogConfig.innerVisible = val
|
||||
},
|
||||
/* 获取弹框内表格选中数据 */
|
||||
getDialogTbChange(list) {
|
||||
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()
|
||||
}
|
||||
},
|
||||
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) {
|
||||
this.dialogConfig.outerVisible = val
|
||||
},
|
||||
/* 关闭内层弹框 */
|
||||
closeDialogInner(val) {
|
||||
this.dialogConfig.innerVisible = val
|
||||
},
|
||||
/* 获取弹框内表格选中数据 */
|
||||
getDialogTbChange(list) {
|
||||
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
|
||||
},
|
||||
/* 驳回原因页面取消 */
|
||||
handleCancelInner() {
|
||||
this.rejectReason = ''
|
||||
this.dialogConfig.innerVisible = false
|
||||
},
|
||||
/* 驳回原因页面保存 */
|
||||
async handleSubmitInner() {
|
||||
if (!this.rejectReason) {
|
||||
this.$message.error('请输入驳回原因')
|
||||
return
|
||||
}
|
||||
|
||||
/* 驳回原因页面取消 */
|
||||
handleCancelInner() {
|
||||
this.rejectReason = ''
|
||||
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
|
||||
},
|
||||
/* 驳回原因页面保存 */
|
||||
async handleSubmitInner() {
|
||||
if (!this.rejectReason) {
|
||||
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)
|
||||
},
|
||||
this.dialogConfig.outerVisible = false
|
||||
this.rejectReason = ''
|
||||
/* 刷新列表 */
|
||||
this.$refs.tbRef.getList()
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
$route: {
|
||||
handler(to) {
|
||||
if (to.query.keyWord) {
|
||||
this.config.routerParams = to.query.keyWord
|
||||
}
|
||||
/* 审核按钮的显示条件 */
|
||||
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,
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
`报废审核列表_${new Date().getTime()}.xlsx`,
|
||||
)
|
||||
console.log('数据导出', data)
|
||||
},
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
$route: {
|
||||
handler(to) {
|
||||
if (to.query.keyWord) {
|
||||
this.config.routerParams = to.query.keyWord
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ module.exports = {
|
|||
// target: `http://10.40.92.8:8080`, //超
|
||||
// target: `http://10.40.92.81: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`, //福
|
||||
|
||||
//******** 注意事项 ********* */
|
||||
|
|
|
|||
Loading…
Reference in New Issue