领料申请管理
This commit is contained in:
parent
3718c45b4d
commit
fd12bca625
|
|
@ -165,14 +165,15 @@ import {
|
||||||
getDeviceTypeTree,
|
getDeviceTypeTree,
|
||||||
getAgreementInfoById,
|
getAgreementInfoById,
|
||||||
submitLeaseApply,
|
submitLeaseApply,
|
||||||
getTaskDetail
|
getTaskDetail,
|
||||||
|
editLeaseApply
|
||||||
} from '@/api/claimAndRefund/receive'
|
} from '@/api/claimAndRefund/receive'
|
||||||
|
import { getInfo } from '@/api/login'
|
||||||
import { mapState } from 'vuex'
|
|
||||||
export default {
|
export default {
|
||||||
name: "Role",
|
name: "Role",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
user:null, // 用户信息
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: false,
|
loading: false,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
|
|
@ -250,10 +251,11 @@ export default {
|
||||||
},
|
},
|
||||||
leaseApplyDetails:[],
|
leaseApplyDetails:[],
|
||||||
|
|
||||||
|
leaseApplyInfoList:[],
|
||||||
|
|
||||||
//领料详情单条模板
|
//领料详情单条模板
|
||||||
leaseApplyDetailsItem:{
|
leaseApplyDetailsItem:{
|
||||||
|
parenntId:null,
|
||||||
createBy: null,
|
createBy: null,
|
||||||
companyId: null,
|
companyId: null,
|
||||||
status: 0,
|
status: 0,
|
||||||
|
|
@ -280,6 +282,9 @@ export default {
|
||||||
unitList:[], //单位 集合
|
unitList:[], //单位 集合
|
||||||
proList:[], // 工程 集合
|
proList:[], // 工程 集合
|
||||||
deviceTypeTree: [], // 设备 树结构数据
|
deviceTypeTree: [], // 设备 树结构数据
|
||||||
|
|
||||||
|
taskId:null, // 是否编辑
|
||||||
|
|
||||||
// 设备 树显示 配置
|
// 设备 树显示 配置
|
||||||
deviceTypeTreeProps: {
|
deviceTypeTreeProps: {
|
||||||
multiple:false,
|
multiple:false,
|
||||||
|
|
@ -309,21 +314,27 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.GetUserInfo()
|
||||||
|
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
|
|
||||||
this.GetProData()
|
this.GetProData()
|
||||||
|
|
||||||
this.GetDeviceTypeTree()
|
this.GetDeviceTypeTree()
|
||||||
// this.getList();
|
// this.getList();
|
||||||
console.log('this.$route.query.taskId',this.$route.query.taskId)
|
|
||||||
if(this.$route.query.taskId){
|
if(this.$route.query.taskId){
|
||||||
this.GetTaskDetail(this.$route.query.taskId)
|
this.GetTaskDetail(this.$route.query.taskId)
|
||||||
|
this.taskId = this.$route.query.taskId
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
|
||||||
...mapState(['user'])
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取用户信息
|
||||||
|
async GetUserInfo(){
|
||||||
|
const res = await getInfo()
|
||||||
|
this.user = res.user
|
||||||
|
},
|
||||||
|
|
||||||
// 获取 来往单位 列表数据
|
// 获取 来往单位 列表数据
|
||||||
async GetUnitData(){
|
async GetUnitData(){
|
||||||
const params = {
|
const params = {
|
||||||
|
|
@ -381,7 +392,6 @@ export default {
|
||||||
const res = await getTaskDetail({taskId})
|
const res = await getTaskDetail({taskId})
|
||||||
|
|
||||||
const data = res.rows[0]
|
const data = res.rows[0]
|
||||||
console.log('GetTaskDetail =================',data)
|
|
||||||
|
|
||||||
// unitId:null,
|
// unitId:null,
|
||||||
// proId:null,
|
// proId:null,
|
||||||
|
|
@ -390,11 +400,12 @@ export default {
|
||||||
|
|
||||||
this.queryParams.unitId = data.unitId
|
this.queryParams.unitId = data.unitId
|
||||||
this.queryParams.proId = data.projectId
|
this.queryParams.proId = data.projectId
|
||||||
this.queryParams.leaseApplyInfo.phone = data.leaseApplyInfo.phone
|
this.queryParams.leaseApplyInfo.phone = data.leaseApplyInfoList[0].phone
|
||||||
this.queryParams.leaseApplyInfo.leasePerson = data.leaseApplyInfo.leasePerson
|
this.queryParams.leaseApplyInfo.leasePerson = data.leaseApplyInfoList[0].leasePerson
|
||||||
this.queryParams.agreementCode = data.agreementCode
|
this.queryParams.agreementCode = data.agreementCode
|
||||||
this.queryParams.leaseApplyInfo.remark = data.leaseApplyInfo.remark
|
this.queryParams.agreementId = data.agreementId
|
||||||
|
this.queryParams.leaseApplyInfo.remark = data.leaseApplyInfoList[0].remark
|
||||||
|
this.leaseApplyInfoList = data.leaseApplyInfoList
|
||||||
this.leaseApplyDetails = data.leaseApplyDetails.map(item => {
|
this.leaseApplyDetails = data.leaseApplyDetails.map(item => {
|
||||||
return this.handelEchoData(item)
|
return this.handelEchoData(item)
|
||||||
})
|
})
|
||||||
|
|
@ -412,7 +423,7 @@ export default {
|
||||||
template.remark = item.remark
|
template.remark = item.remark
|
||||||
template.preNum = item.preNum
|
template.preNum = item.preNum
|
||||||
template.status = item.status
|
template.status = item.status
|
||||||
|
template.parenntId = item.parenntId
|
||||||
return template
|
return template
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -534,11 +545,27 @@ export default {
|
||||||
this.$message.error('请添加数据');
|
this.$message.error('请添加数据');
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.queryParams.createBy = this.user.name
|
this.queryParams.createBy = this.user.userName
|
||||||
this.queryParams.companyId = this.user.id
|
this.queryParams.companyId = this.user.companyId
|
||||||
|
|
||||||
|
|
||||||
const res = await submitLeaseApply(this.queryParams)
|
let res;
|
||||||
|
if(this.taskId){
|
||||||
|
this.leaseApplyInfoList.forEach(v => {
|
||||||
|
v = Object.assign(v,this.queryParams.leaseApplyInfo)
|
||||||
|
this.$set(v,'leaseApplyDetails',this.queryParams.leaseApplyDetails)
|
||||||
|
})
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
...this.queryParams,taskId:this.taskId,
|
||||||
|
leaseApplyInfoList:this.leaseApplyInfoList
|
||||||
|
}
|
||||||
|
|
||||||
|
res = await editLeaseApply(params)
|
||||||
|
}else {
|
||||||
|
res = await submitLeaseApply(this.queryParams)
|
||||||
|
}
|
||||||
|
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$message({
|
this.$message({
|
||||||
type:'success',
|
type:'success',
|
||||||
|
|
@ -623,7 +650,7 @@ export default {
|
||||||
if(nodes[0].level != 4){
|
if(nodes[0].level != 4){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.log('nodes[0]',nodes[0],this.user)
|
||||||
this.leaseApplyDetails.push(
|
this.leaseApplyDetails.push(
|
||||||
this.handelTableItemData(nodes[0])
|
this.handelTableItemData(nodes[0])
|
||||||
)
|
)
|
||||||
|
|
@ -641,11 +668,17 @@ export default {
|
||||||
handelTableItemData(node){
|
handelTableItemData(node){
|
||||||
const template = JSON.parse(JSON.stringify(this.leaseApplyDetailsItem))
|
const template = JSON.parse(JSON.stringify(this.leaseApplyDetailsItem))
|
||||||
template.createBy = this.user.name
|
template.createBy = this.user.name
|
||||||
template.companyId = this.user.id
|
template.companyId = node.data.companyId
|
||||||
template.typeId = node.data.id
|
template.typeId = node.data.id
|
||||||
template.unitCn = node.data.unitName
|
template.unitCn = node.data.unitName
|
||||||
template.typeCn = node.pathLabels[2]
|
template.typeCn = node.pathLabels[2]
|
||||||
template.guigeCn = node.pathLabels[3]
|
template.guigeCn = node.pathLabels[3]
|
||||||
|
|
||||||
|
if(this.taskId){
|
||||||
|
const index = this.leaseApplyInfoList.find(key => key.companyId == node.data.companyId)
|
||||||
|
template.parenntId = index ? index.id : ''
|
||||||
|
}
|
||||||
|
|
||||||
return template
|
return template
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,54 +1,50 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<h3>肖洁提交的领料申请</h3>
|
<h3>{{ queryParams.applyFor }}提交的领料申请</h3>
|
||||||
<div>领料单号:L20231122-001</div>
|
<div>领料单号:{{ queryParams.code }}</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24" class="mb8">
|
<el-row :gutter="24" class="mb8">
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
||||||
<el-form-item label="领料工程" prop="dictName">
|
<el-form-item label="领料工程" prop="dictName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.dictName"
|
v-model="queryParams.proName"
|
||||||
placeholder="请输入领料工程"
|
placeholder="请输入领料工程"
|
||||||
clearable
|
disabled
|
||||||
style="width: 240px"
|
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="领料人" prop="dictName">
|
<el-form-item label="领料人" prop="dictName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.dictName"
|
v-model="queryParams.leaseApplyInfo.leasePerson"
|
||||||
placeholder="请输入领料人"
|
placeholder="请输入领料人"
|
||||||
clearable
|
disabled
|
||||||
style="width: 240px"
|
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联系电话" prop="dictName">
|
<el-form-item label="联系电话" prop="dictName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.dictName"
|
v-model="queryParams.leaseApplyInfo.phone"
|
||||||
placeholder="请输入联系电话"
|
placeholder="请输入联系电话"
|
||||||
clearable
|
disabled
|
||||||
style="width: 240px"
|
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table v-loading="loading" :data="typeList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="queryParams.leaseApplyDetails" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||||
<el-table-column label="序号" align="center" prop="dictId" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
<el-table-column label="类型名称" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="规格型号" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
|
<el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="当前库存" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="当前库存" align="center" prop="num" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="预览数量" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="预领数量" align="center" prop="preNum" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="出库数量" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="申请人" align="center" prop="applyFor" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="申请人" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="申请时间" align="center" prop="updateTimes" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="申请时间" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="任务状态" align="center" prop="taskName" :show-overflow-tooltip="true" />
|
||||||
<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" prop="dictName" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="备注" align="center" prop="dictName" :show-overflow-tooltip="true" />
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||||
<!-- <template slot-scope="scope">-->
|
<!-- <template slot-scope="scope">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
|
|
@ -69,13 +65,13 @@
|
||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<!-- <pagination-->
|
||||||
v-show="total>0"
|
<!-- v-show="total>0"-->
|
||||||
:total="total"
|
<!-- :total="total"-->
|
||||||
:page.sync="queryParams.pageNum"
|
<!-- :page.sync="queryParams.pageNum"-->
|
||||||
:limit.sync="queryParams.pageSize"
|
<!-- :limit.sync="queryParams.pageSize"-->
|
||||||
@pagination="getList"
|
<!-- @pagination="getList"-->
|
||||||
/>
|
<!-- />-->
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
|
|
@ -88,48 +84,76 @@
|
||||||
<!-- </el-timeline-item>-->
|
<!-- </el-timeline-item>-->
|
||||||
<!-- </el-timeline>-->
|
<!-- </el-timeline>-->
|
||||||
<el-timeline>
|
<el-timeline>
|
||||||
<el-timeline-item timestamp="2018/4/12" placement="top">
|
<el-timeline-item color="#0bbd87" icon="el-icon-check" placement="top">
|
||||||
<el-card>
|
<el-card>
|
||||||
<h4>提交审批</h4>
|
<p class="title">提交审批</p>
|
||||||
<p>肖洁 提交于 2018/4/12 20:46</p>
|
<p class="author">申请人:{{queryParams.applyFor}}</p>
|
||||||
|
<p class="time">申请时间:{{queryParams.updateTimes}}</p>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
<el-timeline-item timestamp="2018/4/3" placement="top">
|
<el-timeline-item v-for="(v,i) in flowPath" :type="v.type" :color="v.color" :icon="v.icon" :key="i" placement="top">
|
||||||
<el-card>
|
<el-card>
|
||||||
<h4>公司审批</h4>
|
<p class="title">{{v.name}}</p>
|
||||||
<p>肖洁 提交于 2018/4/3 20:46</p>
|
<p class="author" v-if="queryParams[v.authorKey]">审核人:{{queryParams[v.authorKey]}}</p>
|
||||||
</el-card>
|
<p class="time" v-if="queryParams[v.timeKey]">审核时间:{{queryParams[v.timeKey]}}</p>
|
||||||
</el-timeline-item>
|
<p class="remark" v-if="queryParams[v.remarkKey]">审核意见:{{ queryParams[v.remarkKey] }}</p>
|
||||||
<el-timeline-item timestamp="2018/4/2" placement="top">
|
|
||||||
<el-card>
|
|
||||||
<h4>部门审批</h4>
|
|
||||||
<p>肖洁 提交于 2018/4/2 20:46</p>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
|
|
||||||
</el-timeline>
|
</el-timeline>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer" style="text-align: right;margin-right: 200px;">
|
<div slot="footer" class="dialog-footer" style="text-align: right;margin-right: 200px;">
|
||||||
<el-button type="primary" >同意</el-button>
|
<el-button type="primary" @click="agree">同意</el-button>
|
||||||
<el-button >拒绝</el-button>
|
<!-- <el-button >拒绝</el-button>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<el-dialog title="审核意见" :visible.sync="examineVisible">
|
||||||
|
<el-input placeholder="请输入审核意见" v-model="queryParams.companyAuditRemarks "></el-input>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="handelExamine(false)">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="handelExamine(true)">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, deptTreeSelect } from "@/api/system/user";
|
|
||||||
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
|
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
|
||||||
|
import { auditLeaseByCompany, getTaskDetail } from '@/api/claimAndRefund/receive'
|
||||||
|
import {mapState} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "Dict",
|
name: "Dict",
|
||||||
dicts: ['sys_normal_disable'],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
flowPath:[
|
||||||
|
{
|
||||||
|
id:30,
|
||||||
|
name:'待分公司审核',
|
||||||
|
remarkKey:'companyAuditRemark',
|
||||||
|
authorKey:'companyAuditBy',
|
||||||
|
timeKey:'companyAuditTime'
|
||||||
|
},{
|
||||||
|
id:31,
|
||||||
|
name:'待分管部门审核',
|
||||||
|
remarkKey:'deptAuditRemark',
|
||||||
|
authorKey:'deptAuditBy',
|
||||||
|
timeKey:'deptAuditTime'
|
||||||
|
},{
|
||||||
|
id:32,
|
||||||
|
name:'待内部审核',
|
||||||
|
remarkKey:'directAuditRemark',
|
||||||
|
authorKey:'directAuditBy',
|
||||||
|
timeKey:'directAuditTime'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
examineVisible:false,
|
||||||
|
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: false,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
ids: [],
|
ids: [],
|
||||||
// 非单个禁用
|
// 非单个禁用
|
||||||
|
|
@ -150,11 +174,11 @@ export default {
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
leaseApplyInfo:{
|
||||||
pageSize: 10,
|
|
||||||
dictName: undefined,
|
},
|
||||||
dictType: undefined,
|
leaseApplyDetails:[],
|
||||||
status: undefined
|
companyAuditRemarks:''
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|
@ -187,22 +211,72 @@ export default {
|
||||||
}, {
|
}, {
|
||||||
content: '部门审批',
|
content: '部门审批',
|
||||||
timestamp: '2018-04-11'
|
timestamp: '2018-04-11'
|
||||||
}]
|
}],
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
...mapState(['user'])
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
let taskId = this.$route.query.taskId
|
||||||
|
if(taskId){
|
||||||
|
this.getData(taskId)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
agree(){
|
||||||
|
this.examineVisible = true
|
||||||
|
},
|
||||||
|
handelExamine(type){
|
||||||
|
if(type){
|
||||||
|
this.subAuditLeaseByCompany()
|
||||||
|
}else {
|
||||||
|
this.queryParams.companyAuditRemarks = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
this.examineVisible = type
|
||||||
|
},
|
||||||
|
//审核 同意
|
||||||
|
async subAuditLeaseByCompany(){
|
||||||
|
const params = JSON.parse(JSON.stringify(this.queryParams))
|
||||||
|
params.taskStatus ++
|
||||||
|
params.leaseApplyInfoList.forEach(v => {
|
||||||
|
this.$set(v,'companyAuditRemark',params.companyAuditRemarks)
|
||||||
|
this.$set(v,'companyAuditBy',this.user.id)
|
||||||
|
})
|
||||||
|
|
||||||
|
const res = await auditLeaseByCompany(params)
|
||||||
|
if(res.code == 200){
|
||||||
|
this.examineVisible = false
|
||||||
|
this.$router.back()
|
||||||
|
}
|
||||||
|
console.log('subAuditLeaseByCompany ==================',res)
|
||||||
|
},
|
||||||
|
|
||||||
/** 查询字典类型列表 */
|
/** 查询字典类型列表 */
|
||||||
getList() {
|
async getData(taskId) {
|
||||||
this.loading = true;
|
const res = await getTaskDetail({
|
||||||
listType(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
taskId
|
||||||
this.typeList = response.rows;
|
})
|
||||||
this.total = response.total;
|
this.queryParams = {...this.queryParams,...res.rows[0]}
|
||||||
this.loading = false;
|
this.$set(this.queryParams,'leaseApplyInfo',this.queryParams.leaseApplyInfoList[0])
|
||||||
|
this.queryParams.leaseApplyDetails.forEach(v => {
|
||||||
|
this.$set(v,'applyFor',this.queryParams.applyFor)
|
||||||
|
this.$set(v,'updateTimes',this.queryParams.updateTimes)
|
||||||
|
this.$set(v,'taskName',this.queryParams.taskName)
|
||||||
|
})
|
||||||
|
for (let i=0; i < this.flowPath.length; i++ ){
|
||||||
|
if(this.flowPath[i].id == this.queryParams.examineStatusId){
|
||||||
|
this.flowPath[i].type = 'primary'
|
||||||
|
this.flowPath[i].icon = 'el-icon-more'
|
||||||
|
break
|
||||||
|
}else {
|
||||||
|
this.flowPath[i].color = '#0bbd87'
|
||||||
|
this.flowPath[i].icon = 'el-icon-check'
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
|
|
@ -302,3 +376,28 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .el-card__body{
|
||||||
|
padding: 10px !important;
|
||||||
|
p{
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
color: #848484;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.author{
|
||||||
|
font-size: 13px;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
.time{
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.remark{
|
||||||
|
margin-top: 10px;
|
||||||
|
word-break: break-all;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -97,18 +97,7 @@
|
||||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" fixed="right">
|
<el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
icon="el-icon-edit"
|
|
||||||
@click="handleUpdate(scope.row)"
|
|
||||||
>编辑</el-button>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
icon="el-icon-delete"
|
|
||||||
@click="handleDelete(scope.row)"
|
|
||||||
>删除</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if=" scope.row "
|
v-if=" scope.row "
|
||||||
size="mini"
|
size="mini"
|
||||||
|
|
@ -121,7 +110,7 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-document"
|
icon="el-icon-document"
|
||||||
@click="handleExamine(scope.row)"
|
@click="openLld(scope.row)"
|
||||||
>领料单</el-button>
|
>领料单</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -135,53 +124,72 @@
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 新增编辑弹窗 -->
|
<!-- 领料单弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
|
<el-dialog :visible.sync="open" width="800px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
|
||||||
<el-form-item label="往来单位:" prop="dictName">
|
<div class="title" style="text-align: center;font-weight: 600;font-size: 16px;">
|
||||||
<el-input v-model="form.dictName" placeholder="请输入往来单位" />
|
领料单
|
||||||
</el-form-item>
|
</div>
|
||||||
<el-form-item label="工程名称" prop="dictName">
|
<div class="info" style="margin-top: 10px;display: flex;flex-wrap: wrap;">
|
||||||
<el-input v-model="form.dictName" placeholder="请输入工程名称" />
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
</el-form-item>
|
<span>领料单位:</span>{{ leaseApplyData.unitName }}
|
||||||
<el-form-item label="开始日期" prop="dictName">
|
</div>
|
||||||
<el-input v-model="form.dictName" placeholder="请输入开始日期" />
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
</el-form-item>
|
<span>工程名称:</span>{{ leaseApplyData.proName }}
|
||||||
<el-form-item label="租赁期限" prop="dictName">
|
</div>
|
||||||
<el-input-number v-model="form.dictName" style="width:100%;" controls-position="right" :min="0" />
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
</el-form-item>
|
<span>时间:</span>{{ leaseApplyData.updateTimes }}
|
||||||
<el-form-item label="授权人" prop="dictName">
|
</div>
|
||||||
<el-input v-model="form.dictName" placeholder="请输入授权人" />
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
</el-form-item>
|
<span>编号:</span>{{ leaseApplyData.agreementCode }}
|
||||||
<el-form-item label="授权人" prop="dictName">
|
</div>
|
||||||
<el-input v-model="form.dictName" placeholder="请输入授权人" />
|
</div>
|
||||||
</el-form-item>
|
<el-table :data="leaseApplyDetails" class="table" style="margin-top: 20px">
|
||||||
<el-form-item label=" 联系方式" prop="dictName">
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||||
<el-input v-model="form.dictName" placeholder="请输入联系方式" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
</el-form-item>
|
<el-table-column label="类型名称" align="center" prop="typeName" />
|
||||||
|
<el-table-column label="规格型号" align="center" prop="typeModelName" />
|
||||||
|
<el-table-column label="计量单位" align="center" prop="unitName" />
|
||||||
|
<el-table-column label="预领数量" align="center" prop="preNum" />
|
||||||
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
|
<el-table-column label="出库方式" align="center" prop="manageTypeName" />
|
||||||
|
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<div class="fillIn" style="margin-top: 20px;display: flex;justify-content: space-between;">
|
||||||
|
<div class="item" style="width: 25%;">
|
||||||
|
<span>审核:</span>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width: 25%;">
|
||||||
|
<span>领料:</span>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width: 25%;">
|
||||||
|
<span>仓库:</span>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width: 25%;">
|
||||||
|
<span>操作人:</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</vue-easy-print>
|
||||||
|
|
||||||
|
|
||||||
<el-form-item label="合同照片" prop="dictName">
|
|
||||||
<el-input v-model="form.dictName" placeholder="图片上传" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="备注" prop="dictName">
|
|
||||||
<el-input v-model="form.dictName" type="textarea" placeholder="图片上传" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<div slot="footer" class="dialog-footer" style="text-align: center">
|
<div slot="footer" class="dialog-footer" style="text-align: center">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="print">打 印</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="open = false">关 闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, deptTreeSelect } from "@/api/system/user";
|
|
||||||
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
|
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
|
||||||
import { getLeaseAuditListAll,getUnitData,getProData } from "@/api/claimAndRefund/receive";
|
import { getLeaseAuditListAll, getUnitData, getProData, getTaskDetail } from '@/api/claimAndRefund/receive'
|
||||||
|
import vueEasyPrint from 'vue-easy-print';
|
||||||
export default {
|
export default {
|
||||||
name: "Dict",
|
name: "Dict",
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -247,6 +255,11 @@ export default {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
deptName: undefined,
|
deptName: undefined,
|
||||||
|
|
||||||
|
//领料单
|
||||||
|
leaseApplyDetails:[],
|
||||||
|
// 领料任务详情数据
|
||||||
|
leaseApplyData:{}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -255,6 +268,7 @@ export default {
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
this.GetProData()
|
this.GetProData()
|
||||||
},
|
},
|
||||||
|
components:{vueEasyPrint},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询字典类型列表 */
|
/** 查询字典类型列表 */
|
||||||
async getList() {
|
async getList() {
|
||||||
|
|
@ -335,8 +349,30 @@ export default {
|
||||||
// this.title = "添加字典类型";
|
// this.title = "添加字典类型";
|
||||||
},
|
},
|
||||||
handleExamine(row) {
|
handleExamine(row) {
|
||||||
this.$router.push("/claimAndRefund/receive/receiveExamine");
|
this.$router.push({
|
||||||
|
path:"/claimAndRefund/receive/receiveExamine",
|
||||||
|
query: {
|
||||||
|
taskId:row.taskId
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
//打开领料单
|
||||||
|
async openLld(row){
|
||||||
|
this.open = true
|
||||||
|
|
||||||
|
const res = await getTaskDetail({taskId:row.taskId})
|
||||||
|
|
||||||
|
this.leaseApplyDetails = res.rows[0].leaseApplyDetails
|
||||||
|
this.leaseApplyData = res.rows[0]
|
||||||
|
|
||||||
|
console.log('this.leaseApplyData ============',this.leaseApplyData)
|
||||||
|
},
|
||||||
|
// 领料单 打印
|
||||||
|
print(){
|
||||||
|
this.$refs.remarksPrintRef.print();
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map(item => item.dictId)
|
this.ids = selection.map(item => item.dictId)
|
||||||
|
|
@ -399,3 +435,32 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.print{
|
||||||
|
.title{
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.info{
|
||||||
|
margin-top: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.item{
|
||||||
|
width: 50%;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.fillIn{
|
||||||
|
margin-top: 15px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue