问题修复

This commit is contained in:
hongchao 2025-09-17 20:40:15 +08:00
parent 7d3193f836
commit 5fd50410f3
6 changed files with 55 additions and 3 deletions

View File

@ -71,6 +71,16 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="所属分包" prop="subUnitName">
<el-input
v-model="maForm.subUnitName"
:placeholder="maForm.subUnitName ? '请输入所属分包' : '暂无分包'"
disabled
maxlength="50"
style="width: 240px"
/>
</el-form-item>
<el-form-item label="类型规格" prop="deviceType"> <el-form-item label="类型规格" prop="deviceType">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="15"> <el-col :span="15">
@ -429,6 +439,7 @@ export default {
this.maForm.relPhone = team.relPhone || '' this.maForm.relPhone = team.relPhone || ''
this.maForm.relName = team.relName this.maForm.relName = team.relName
this.maForm.teamLeaderIdCard = team.teamLeaderIdCard this.maForm.teamLeaderIdCard = team.teamLeaderIdCard
this.maForm.subUnitName = team.subUnitName || ''
} else { } else {
this.maForm.teamId = res.data[0].id this.maForm.teamId = res.data[0].id
this.maForm.teamName = res.data[0].teamName this.maForm.teamName = res.data[0].teamName
@ -436,6 +447,7 @@ export default {
this.maForm.relPhone = res.data[0].relPhone || '' this.maForm.relPhone = res.data[0].relPhone || ''
this.maForm.relName = res.data[0].relName this.maForm.relName = res.data[0].relName
this.maForm.teamLeaderIdCard = res.data[0].teamLeaderIdCard this.maForm.teamLeaderIdCard = res.data[0].teamLeaderIdCard
this.maForm.subUnitName = res.data[0].subUnitName || ''
} }
// this.projectInfoList() // this.projectInfoList()
} catch (error) { } catch (error) {
@ -469,6 +481,7 @@ export default {
this.maForm.relPhone = team.relPhone || '' this.maForm.relPhone = team.relPhone || ''
this.maForm.phone = team.relPhone || '' this.maForm.phone = team.relPhone || ''
this.maForm.teamLeaderIdCard = team.teamLeaderIdCard this.maForm.teamLeaderIdCard = team.teamLeaderIdCard
this.maForm.subUnitName = team.subUnitName || ''
console.log('🚀 ~ changeTeam ~ this.maForm.teamName:', this.maForm.teamName) console.log('🚀 ~ changeTeam ~ this.maForm.teamName:', this.maForm.teamName)
// this.projectInfoList() // this.projectInfoList()
}, },

View File

@ -187,7 +187,7 @@
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap"> <div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
<div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px"> <div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px">
<span>领料班组</span> <span>领料班组</span>
{{ leaseApplyData.teamName }} {{ leaseApplyData.subUnitName ? '( ' + leaseApplyData.subUnitName + ' ) ' + leaseApplyData.teamName : leaseApplyData.teamName }}
</div> </div>
<div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px"> <div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px">
<span>工程名称</span> <span>工程名称</span>

View File

@ -50,6 +50,18 @@
readonly readonly
/> />
</el-form-item> </el-form-item>
<el-form-item label="所属分包" prop="subUnitName">
<el-input
v-model="maForm.subUnitName"
placeholder="所属分包"
clearable
maxlength="50"
style="width: 240px"
@keyup.enter.native="handleQuery"
readonly
/>
</el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">

View File

@ -31,6 +31,7 @@
:label="item.teamName" :label="item.teamName"
:value="item.id" :value="item.id"
:data-key="item.id" :data-key="item.id"
@change="changeTeam"
/> />
</el-select> </el-select>
<el-input v-else v-model="maForm.teamName" disabled maxlength="50" style="width: 240px" /> <el-input v-else v-model="maForm.teamName" disabled maxlength="50" style="width: 240px" />
@ -72,6 +73,16 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="所属分包" prop="subUnitName">
<el-input
v-model="maForm.subUnitName"
:placeholder="maForm.subUnitName ? '请输入所属分包' : '暂无分包'"
disabled
maxlength="50"
style="width: 240px"
/>
</el-form-item>
<el-form-item label="类型规格" prop="deviceType"> <el-form-item label="类型规格" prop="deviceType">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="15"> <el-col :span="15">
@ -440,6 +451,7 @@ export default {
this.maForm.relPhone = team.relPhone || '' this.maForm.relPhone = team.relPhone || ''
this.maForm.relName = team.relName this.maForm.relName = team.relName
this.maForm.teamLeaderIdCard = team.teamLeaderIdCard this.maForm.teamLeaderIdCard = team.teamLeaderIdCard
this.maForm.subUnitName = team.subUnitName || ''
} else { } else {
this.maForm.teamId = res.data[0].id this.maForm.teamId = res.data[0].id
this.maForm.teamName = res.data[0].teamName this.maForm.teamName = res.data[0].teamName
@ -447,6 +459,7 @@ export default {
this.maForm.relPhone = res.data[0].relPhone || '' this.maForm.relPhone = res.data[0].relPhone || ''
this.maForm.relName = res.data[0].relName this.maForm.relName = res.data[0].relName
this.maForm.teamLeaderIdCard = res.data[0].teamLeaderIdCard this.maForm.teamLeaderIdCard = res.data[0].teamLeaderIdCard
this.maForm.subUnitName = res.data[0].subUnitName || ''
} }
// this.projectInfoList() // this.projectInfoList()
} catch (error) { } catch (error) {
@ -459,6 +472,7 @@ export default {
this.maForm.projectId = this.projectList.find(item => item.proId === e)?.projectId this.maForm.projectId = this.projectList.find(item => item.proId === e)?.projectId
this.getBmTeam() this.getBmTeam()
}, },
changeTeam(e) { changeTeam(e) {
console.log('🚀 ~ changeTeam ~ e:', e) console.log('🚀 ~ changeTeam ~ e:', e)
// this.maForm.projectId = null // this.maForm.projectId = null
@ -471,6 +485,7 @@ export default {
this.maForm.relPhone = team.relPhone || '' this.maForm.relPhone = team.relPhone || ''
this.maForm.phone = team.relPhone || '' this.maForm.phone = team.relPhone || ''
this.maForm.teamLeaderIdCard = team.teamLeaderIdCard this.maForm.teamLeaderIdCard = team.teamLeaderIdCard
this.maForm.subUnitName = team.subUnitName || ''
console.log('🚀 ~ changeTeam ~ this.maForm.teamName:', this.maForm.teamName) console.log('🚀 ~ changeTeam ~ this.maForm.teamName:', this.maForm.teamName)
// this.projectInfoList() // this.projectInfoList()
}, },

View File

@ -168,7 +168,7 @@
/> />
<!-- 领料单弹窗 --> <!-- 领料单弹窗 -->
<el-dialog :visible.sync="open" width="800px" :title="title" append-to-body> <el-dialog :visible.sync="open" width="900px" :title="title" append-to-body>
<div style="height: 500px; overflow-y: scroll; padding: 0 20px"> <div style="height: 500px; overflow-y: scroll; padding: 0 20px">
<vue-easy-print tableShow ref="remarksPrintRef"> <vue-easy-print tableShow ref="remarksPrintRef">
<div id="checkIdTwo" class="print-table"> <div id="checkIdTwo" class="print-table">
@ -176,7 +176,7 @@
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap"> <div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
<div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px"> <div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px">
<span>领料班组</span> <span>领料班组</span>
{{ leaseApplyData.teamName }} {{ leaseApplyData.subUnitName ? '( ' + leaseApplyData.subUnitName + ' ) ' + leaseApplyData.teamName : leaseApplyData.teamName }}
</div> </div>
<div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px"> <div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px">
<span>工程名称</span> <span>工程名称</span>

View File

@ -44,6 +44,18 @@
readonly readonly
/> />
</el-form-item> </el-form-item>
<el-form-item label="所属分包" prop="subUnitName">
<el-input
v-model="maForm.subUnitName"
placeholder="所属分包"
clearable
maxlength="50"
style="width: 240px"
@keyup.enter.native="handleQuery"
readonly
/>
</el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">