前端领退料模块问题修改
This commit is contained in:
parent
7b312fbffc
commit
8dc56bcde9
|
|
@ -327,7 +327,7 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
this.GetUserInfo()
|
this.GetUserInfo()
|
||||||
|
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container" id="receiveExamine">
|
<div class="app-container" id="ReceiveExamine">
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<h3>{{ queryParams.applyFor }}提交的领料申请</h3>
|
<h3>{{ queryParams.applyFor }}提交的领料申请</h3>
|
||||||
<div>领料单号:{{ queryParams.code }}</div>
|
<div>领料单号:{{ queryParams.code }}</div>
|
||||||
|
|
@ -315,7 +315,7 @@
|
||||||
} from '@/api/claimAndRefund/receive'
|
} from '@/api/claimAndRefund/receive'
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'ReceiveExamine',
|
name: 'receiveExamine',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
flowPath: [
|
flowPath: [
|
||||||
|
|
@ -423,7 +423,7 @@
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
let taskId = this.$route.query.taskId
|
let taskId = this.$route.query.taskId
|
||||||
let isView = this.$route.query.isView
|
let isView = this.$route.query.isView
|
||||||
this.isView = false
|
this.isView = false
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@
|
||||||
label="任务状态"
|
label="任务状态"
|
||||||
align="center"
|
align="center"
|
||||||
prop="taskName"
|
prop="taskName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true" width="150"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="审批意见 "
|
label="审批意见 "
|
||||||
|
|
|
||||||
|
|
@ -356,7 +356,7 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
this.GetUserInfo()
|
this.GetUserInfo()
|
||||||
|
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
|
|
@ -604,7 +604,9 @@ export default {
|
||||||
v = Object.assign(v,this.queryParams.leaseApplyInfo)
|
v = Object.assign(v,this.queryParams.leaseApplyInfo)
|
||||||
this.$set(v,'leaseApplyDetails',this.queryParams.leaseApplyDetails)
|
this.$set(v,'leaseApplyDetails',this.queryParams.leaseApplyDetails)
|
||||||
})
|
})
|
||||||
|
if(this.$route.query.isBack){
|
||||||
|
this.queryParams.souceByRefuse=1
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
...this.queryParams,taskId:this.taskId,
|
...this.queryParams,taskId:this.taskId,
|
||||||
leaseApplyInfoList:this.leaseApplyInfoList
|
leaseApplyInfoList:this.leaseApplyInfoList
|
||||||
|
|
|
||||||
|
|
@ -175,14 +175,7 @@
|
||||||
<p class="time">申请时间:{{queryParams.updateTimes}}</p>
|
<p class="time">申请时间:{{queryParams.updateTimes}}</p>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
<el-timeline-item
|
<el-timeline-item v-for="(v,i) in flowPath" :type="v.type" :color="v.color" :icon="v.icon" :key="i" placement="top">
|
||||||
v-for="(v,i) in flowPath"
|
|
||||||
:type="v.type"
|
|
||||||
:color="v.color"
|
|
||||||
:icon="v.icon"
|
|
||||||
:key="i"
|
|
||||||
placement="top"
|
|
||||||
>
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<p class="title">{{v.name}}</p>
|
<p class="title">{{v.name}}</p>
|
||||||
<p class="author" v-if="queryParams[v.authorKey]">审核人:{{queryParams[v.authorKey]}}</p>
|
<p class="author" v-if="queryParams[v.authorKey]">审核人:{{queryParams[v.authorKey]}}</p>
|
||||||
|
|
@ -285,7 +278,7 @@ import {
|
||||||
} from '@/api/claimAndRefund/receive'
|
} from '@/api/claimAndRefund/receive'
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'ReceiveExamine',
|
name: 'receiveExamine',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
flowPath: [
|
flowPath: [
|
||||||
|
|
@ -313,9 +306,9 @@ export default {
|
||||||
{
|
{
|
||||||
id: 117,
|
id: 117,
|
||||||
name: '机具分公司确认',
|
name: '机具分公司确认',
|
||||||
remarkKey: 'directAuditRemark',
|
// remarkKey: 'deptAuditRemark',
|
||||||
authorKey: 'directAuditBy',
|
// authorKey: 'deptAuditBy',
|
||||||
timeKey: 'directAuditTime',
|
// timeKey: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
isView: false,
|
isView: false,
|
||||||
|
|
@ -382,14 +375,14 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
let taskId = this.$route.query.taskId
|
let taskId = this.$route.query.taskId
|
||||||
let isView = this.$route.query.isView
|
let isView = this.$route.query.isView
|
||||||
|
console.log("mounted")
|
||||||
this.isView = false
|
this.isView = false
|
||||||
if (isView) {
|
if (isView) {
|
||||||
this.isView = true
|
this.isView = true
|
||||||
}
|
}
|
||||||
// console.log(isView)
|
|
||||||
if (taskId) {
|
if (taskId) {
|
||||||
this.getData(taskId)
|
this.getData(taskId)
|
||||||
}
|
}
|
||||||
|
|
@ -482,7 +475,9 @@ export default {
|
||||||
},
|
},
|
||||||
/** 查询 */
|
/** 查询 */
|
||||||
async getData(taskId) {
|
async getData(taskId) {
|
||||||
|
this.loading=true;
|
||||||
const res = await getLeaseListAllCq({ taskId })
|
const res = await getLeaseListAllCq({ taskId })
|
||||||
|
this.loading=false;
|
||||||
this.queryParams = { ...this.queryParams, ...res.rows[0] }
|
this.queryParams = { ...this.queryParams, ...res.rows[0] }
|
||||||
this.$set(this.queryParams, 'leaseApplyInfo', this.queryParams.leaseApplyInfoList[0])
|
this.$set(this.queryParams, 'leaseApplyInfo', this.queryParams.leaseApplyInfoList[0])
|
||||||
this.queryParams.leaseApplyDetails.forEach(v => {
|
this.queryParams.leaseApplyDetails.forEach(v => {
|
||||||
|
|
@ -520,7 +515,7 @@ export default {
|
||||||
this.flowPath[2].icon = 'el-icon-check'
|
this.flowPath[2].icon = 'el-icon-check'
|
||||||
}
|
}
|
||||||
// console.log(this.flowPath)
|
// console.log(this.flowPath)
|
||||||
if (this.queryParams.examineStatusId == 98) {
|
if (this.queryParams.examineStatusId == 99) {
|
||||||
this.flowPath[0].color = 'red'
|
this.flowPath[0].color = 'red'
|
||||||
this.flowPath[0].icon = 'el-icon-close'
|
this.flowPath[0].icon = 'el-icon-close'
|
||||||
this.flowPath[1].color = ''
|
this.flowPath[1].color = ''
|
||||||
|
|
@ -529,16 +524,25 @@ export default {
|
||||||
this.flowPath[2].color = ''
|
this.flowPath[2].color = ''
|
||||||
this.flowPath[2].icon = ''
|
this.flowPath[2].icon = ''
|
||||||
}
|
}
|
||||||
if (this.queryParams.examineStatusId == 99) {
|
if (this.queryParams.examineStatusId == 100) {
|
||||||
this.flowPath[1].color = 'red'
|
this.flowPath[1].color = 'red'
|
||||||
this.flowPath[1].icon = 'el-icon-close'
|
this.flowPath[1].icon = 'el-icon-close'
|
||||||
this.flowPath[2].color = ''
|
this.flowPath[2].color = ''
|
||||||
this.flowPath[2].icon = ''
|
this.flowPath[2].icon = ''
|
||||||
}
|
}
|
||||||
if (this.queryParams.examineStatusId == 100) {
|
// if (this.queryParams.examineStatusId == 100) {
|
||||||
this.flowPath[2].color = 'red'
|
// this.flowPath[2].color = 'red'
|
||||||
this.flowPath[2].icon = 'el-icon-close'
|
// this.flowPath[2].icon = 'el-icon-close'
|
||||||
|
// }
|
||||||
|
|
||||||
|
if(this.queryParams.leaseType=='1'){
|
||||||
|
this.flowPath = [this.flowPath[2]]
|
||||||
|
}else{
|
||||||
|
this.flowPath = this.flowPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
prop="createTimes"
|
prop="createTimes"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="任务状态" align="center" prop="taskName" :show-overflow-tooltip="true" />
|
<el-table-column label="任务状态" align="center" prop="taskName" :show-overflow-tooltip="true" width="150"/>
|
||||||
<!-- <el-table-column label="审批结果 " align="center" prop="dictName" :show-overflow-tooltip="true" />-->
|
<!-- <el-table-column label="审批结果 " align="center" prop="dictName" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="备注" align="center" :show-overflow-tooltip="true">
|
<el-table-column label="备注" align="center" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -503,6 +503,7 @@ export default {
|
||||||
// this.title = "添加字典类型";
|
// this.title = "添加字典类型";
|
||||||
},
|
},
|
||||||
handleExamine(row, type) {
|
handleExamine(row, type) {
|
||||||
|
this.$tab.closePage({path: '/claimAndRefund/receiveByCq/receiveExamine'})
|
||||||
this.$tab.closeOpenPage({
|
this.$tab.closeOpenPage({
|
||||||
path: '/claimAndRefund/receiveByCq/receiveExamine',
|
path: '/claimAndRefund/receiveByCq/receiveExamine',
|
||||||
query: {
|
query: {
|
||||||
|
|
@ -511,6 +512,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
|
this.$tab.closePage({path: '/claimAndRefund/receiveByCq/receiveExamine?isView=true'})
|
||||||
this.$tab.closeOpenPage({
|
this.$tab.closeOpenPage({
|
||||||
path: '/claimAndRefund/receiveByCq/receiveExamine?isView=true',
|
path: '/claimAndRefund/receiveByCq/receiveExamine?isView=true',
|
||||||
query: {
|
query: {
|
||||||
|
|
|
||||||
|
|
@ -412,7 +412,7 @@ export default {
|
||||||
rowId:''
|
rowId:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
this.GetProData()
|
this.GetProData()
|
||||||
this.GetDeviceTypeTreeFn()
|
this.GetDeviceTypeTreeFn()
|
||||||
|
|
@ -780,7 +780,7 @@ export default {
|
||||||
/////// 设备类型树 切换
|
/////// 设备类型树 切换
|
||||||
async deviceTypeChange(val) {
|
async deviceTypeChange(val) {
|
||||||
let nodes = null;
|
let nodes = null;
|
||||||
console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
|
// console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
|
||||||
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
|
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
|
||||||
console.log("nodes", nodes)
|
console.log("nodes", nodes)
|
||||||
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
||||||
|
|
@ -788,6 +788,16 @@ export default {
|
||||||
if (nodes[0].level != 4) {
|
if (nodes[0].level != 4) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (nodes[0].data.useNum < 1) {
|
||||||
|
this.$modal.msgError("所选机具类型当前无在用!");
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for (let i = 0; i < this.leaseApplyDetails.length; i++) {
|
||||||
|
if (this.leaseApplyDetails[i].typeId == nodes[0].data.typeId) {
|
||||||
|
this.leaseApplyDetails.splice(i, 1)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
this.leaseApplyDetails.push(
|
this.leaseApplyDetails.push(
|
||||||
this.handelTableItemData(nodes[0])
|
this.handelTableItemData(nodes[0])
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -412,7 +412,7 @@ export default {
|
||||||
rowId:''
|
rowId:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
this.GetProData()
|
this.GetProData()
|
||||||
this.GetDeviceTypeTreeFn()
|
this.GetDeviceTypeTreeFn()
|
||||||
|
|
@ -651,6 +651,8 @@ export default {
|
||||||
this.$message.error('退料数量不能为空!');
|
this.$message.error('退料数量不能为空!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.queryParams.createBy = this.user.name
|
this.queryParams.createBy = this.user.name
|
||||||
this.queryParams.companyId = this.companyId
|
this.queryParams.companyId = this.companyId
|
||||||
this.queryParams.backApplyInfo = {
|
this.queryParams.backApplyInfo = {
|
||||||
|
|
@ -777,7 +779,16 @@ export default {
|
||||||
if (nodes[0].level != 4) {
|
if (nodes[0].level != 4) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (nodes[0].data.useNum < 1) {
|
||||||
|
this.$modal.msgError("所选机具类型当前无在用!");
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for (let i = 0; i < this.leaseApplyDetails.length; i++) {
|
||||||
|
if (this.leaseApplyDetails[i].typeId == nodes[0].data.typeId) {
|
||||||
|
this.leaseApplyDetails.splice(i, 1)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
this.leaseApplyDetails.push(
|
this.leaseApplyDetails.push(
|
||||||
this.handelTableItemData(nodes[0])
|
this.handelTableItemData(nodes[0])
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -477,7 +477,7 @@ export default {
|
||||||
numList: [], //数量弹窗表格数据
|
numList: [], //数量弹窗表格数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
if (this.$route.query.isView) {
|
if (this.$route.query.isView) {
|
||||||
this.isView = this.$route.query.isView
|
this.isView = this.$route.query.isView
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -593,7 +593,7 @@
|
||||||
applyList: [],
|
applyList: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
let arr = JSON.parse(this.$route.query.rowData)
|
let arr = JSON.parse(this.$route.query.rowData)
|
||||||
this.rowData = arr
|
this.rowData = arr
|
||||||
this.getDataAll()
|
this.getDataAll()
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
const jobId = this.$route.params && this.$route.params.jobId;
|
const jobId = this.$route.params && this.$route.params.jobId;
|
||||||
if (jobId !== undefined && jobId != 0) {
|
if (jobId !== undefined && jobId != 0) {
|
||||||
getJob(jobId).then(response => {
|
getJob(jobId).then(response => {
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
const taskId = this.$route.query && this.$route.query.taskId;
|
const taskId = this.$route.query && this.$route.query.taskId;
|
||||||
this.taskId = taskId;
|
this.taskId = taskId;
|
||||||
console.log(this.taskId)
|
console.log(this.taskId)
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
const planId = this.$route.query && this.$route.query.planId;
|
const planId = this.$route.query && this.$route.query.planId;
|
||||||
this.planId = planId;
|
this.planId = planId;
|
||||||
if (this.planId == '' || !this.planId) {
|
if (this.planId == '' || !this.planId) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue