工地直转添加业务联单
This commit is contained in:
parent
ae2f431b2b
commit
49d22604e1
|
|
@ -299,3 +299,12 @@ export function receiveLoseDelete(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 业务联单下拉框
|
||||||
|
export function getBusinessCodeList(query) {
|
||||||
|
return request({
|
||||||
|
url: '/material/directRotation/getCodeList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="80px" :disabled="isDetail">
|
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="90px" :disabled="isDetail">
|
||||||
<el-row :gutter="20" class="cont-center" style="margin-bottom: 20px">
|
<el-row :gutter="20" class="cont-center" style="margin-bottom: 20px">
|
||||||
<el-col :span="8" :offset="0">
|
<el-col :span="8" :offset="0">
|
||||||
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
|
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
|
||||||
|
|
@ -57,6 +57,16 @@
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="业务联单" prop="codeList" class="required-label-style">
|
||||||
|
<el-select v-model="maForm.codeList" placeholder="请选择业务联单" multiple collapse-tags clearable filterable style="width: 100%">
|
||||||
|
<el-option
|
||||||
|
v-for="dict in businessList"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2" :offset="0">
|
<el-col :span="2" :offset="0">
|
||||||
|
|
@ -338,7 +348,7 @@
|
||||||
import { getMaTypeOpt } from '@/api/ma/base'
|
import { getMaTypeOpt } from '@/api/ma/base'
|
||||||
import { getListProject, getListUnite, getAgreement } from '@/api/lease/apply'
|
import { getListProject, getListUnite, getAgreement } from '@/api/lease/apply'
|
||||||
import { downloadFile, downloadFileData } from '@/utils/download'
|
import { downloadFile, downloadFileData } from '@/utils/download'
|
||||||
import { getUseringData, receiveSubmit, receiveEdit, receiveDetail, getEquipmentThreeTypes } from '@/api/business/index'
|
import { getUseringData, receiveSubmit, receiveEdit, receiveDetail, getEquipmentThreeTypes,getBusinessCodeList } from '@/api/business/index'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
|
|
@ -435,8 +445,10 @@ export default {
|
||||||
leasePhone: '', // 联系电话
|
leasePhone: '', // 联系电话
|
||||||
leaseAgreementId: '', // 转入协议id
|
leaseAgreementId: '', // 转入协议id
|
||||||
leaseAgreementCode: '', // 转入协议编号
|
leaseAgreementCode: '', // 转入协议编号
|
||||||
dirUrls: [] // 附件
|
dirUrls: [], // 附件
|
||||||
|
codeList: [], // 业务联单
|
||||||
},
|
},
|
||||||
|
businessList: [], // 业务联单下拉
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
|
|
@ -555,6 +567,7 @@ export default {
|
||||||
console.log('isEdit', this.isEdit)
|
console.log('isEdit', this.isEdit)
|
||||||
this.getTaskInfo()
|
this.getTaskInfo()
|
||||||
}
|
}
|
||||||
|
this.businessCodeInfoList() // 业务联单下拉选
|
||||||
console.log(this.$store, 'this.$store.getters')
|
console.log(this.$store, 'this.$store.getters')
|
||||||
console.log(this.$route.query, 'this.$route.query')
|
console.log(this.$route.query, 'this.$route.query')
|
||||||
},
|
},
|
||||||
|
|
@ -846,6 +859,16 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/** 业务联单-下拉选 */
|
||||||
|
businessCodeInfoList() {
|
||||||
|
getBusinessCodeList().then(response => {
|
||||||
|
this.businessList = response.data.map(item => ({
|
||||||
|
label: item.businessCode,
|
||||||
|
value: item.businessCode
|
||||||
|
}))
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
//获取任务详情--- 编辑回显数据
|
//获取任务详情--- 编辑回显数据
|
||||||
async getTaskInfo() {
|
async getTaskInfo() {
|
||||||
const loading = this.$loading()
|
const loading = this.$loading()
|
||||||
|
|
@ -1330,6 +1353,13 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::v-deep .required-label-style .el-form-item__label::before {
|
||||||
|
content: "★";
|
||||||
|
color: #f56c6c;
|
||||||
|
margin-right: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.custom-tree-node {
|
.custom-tree-node {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -1484,6 +1514,7 @@ export default {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .vue-treeselect__single-value {
|
::v-deep .vue-treeselect__single-value {
|
||||||
position: inherit !important;
|
position: inherit !important;
|
||||||
white-space: pre-wrap !important;
|
white-space: pre-wrap !important;
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,8 @@ export default {
|
||||||
{ label: '转入单位', prop: 'leaseUnitName' },
|
{ label: '转入单位', prop: 'leaseUnitName' },
|
||||||
{ label: '转入工程', prop: 'leaseProName' },
|
{ label: '转入工程', prop: 'leaseProName' },
|
||||||
{ label: '物资类型', prop: 'typeName', showTooltip: true },
|
{ label: '物资类型', prop: 'typeName', showTooltip: true },
|
||||||
{ label: '状态', prop: 'status', width: '80' }
|
{ label: '状态', prop: 'status', width: '80' },
|
||||||
|
{ label: '业务联单', prop: 'businessCode', showTooltip: true },
|
||||||
],
|
],
|
||||||
// 表格数据
|
// 表格数据
|
||||||
tableList: []
|
tableList: []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue