Merge branch 'material-ui' of http://14.103.246.124:16000/bonus/bonus-ui into material-ui

This commit is contained in:
hongchao 2025-09-30 11:59:16 +08:00
commit c0768ded92
7 changed files with 68 additions and 52 deletions

View File

@ -78,7 +78,7 @@ export default {
]
},
socket: null,
wsUrl: JSON.parse(localStorage.getItem('systemConfig')).webSocketurl,//'ws://localhost:18082/ws', // WebSocket
wsUrl: '',//'ws://localhost:18082/ws', // WebSocket
isConnected: false, //
reconnectInterval: 5000 //
@ -117,6 +117,8 @@ export default {
},
created() {
// this.checkPasswordStatus()
const systemConfig = localStorage.getItem('systemConfig')
this.wsUrl = systemConfig ? JSON.parse(systemConfig).webSocketurl : ''
if (this.roles.includes("audit") || this.roles.includes("systemAdmin")) {
this.connectWebSocket();
}

View File

@ -1,8 +1,8 @@
<template>
<div class="app-container">
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="100px" :disabled="isDetail">
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="80px" :disabled="isDetail">
<el-row :gutter="20" class="cont-center" style="margin-bottom: 20px">
<el-col :span="7" :offset="0">
<el-col :span="8" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body -->
<el-form-item label="转出单位" prop="backUnitId">
@ -12,7 +12,7 @@
:options="uniteList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -28,7 +28,7 @@
:options="projectList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -43,7 +43,7 @@
placeholder="请输入转出人"
clearable
maxlength="50"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -53,7 +53,7 @@
placeholder="请输入联系电话"
clearable
maxlength="11"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -68,7 +68,7 @@
></el-image>
</div>
</el-col>
<el-col :span="7" :offset="0">
<el-col :span="8" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body -->
<el-form-item label="转入单位" prop="leaseUnitId">
@ -78,7 +78,7 @@
:options="lessUniteList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -94,7 +94,7 @@
:options="leaseProjectList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -109,7 +109,7 @@
placeholder="请输入转入人"
clearable
maxlength="50"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -119,14 +119,14 @@
placeholder="请输入联系电话"
clearable
maxlength="11"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-card>
</el-col>
<el-col :span="8" :offset="0">
<el-col :span="6" :offset="0">
<el-form-item label="" prop="dirUrls">
<el-upload
:action="uploadUrl"
@ -191,7 +191,7 @@
:options="materialTypeOpts"
:normalizer="normalizer2"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -1475,4 +1475,8 @@ export default {
font-size: 16px;
}
}
::v-deep .vue-treeselect__single-value {
position: inherit !important;
white-space: pre-wrap !important;
}
</style>

View File

@ -1,8 +1,8 @@
<template>
<div class="app-container">
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="100px" :disabled="isDetail">
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="80px" :disabled="isDetail">
<el-row :gutter="20" class="cont-center" style="margin-bottom: 20px">
<el-col :span="7" :offset="0">
<el-col :span="8" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body -->
<el-form-item label="转出单位" prop="backUnitId">
@ -12,7 +12,7 @@
:options="uniteList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -28,7 +28,7 @@
:options="projectList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -43,7 +43,7 @@
placeholder="请输入转出人"
clearable
maxlength="50"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -53,7 +53,7 @@
placeholder="请输入联系电话"
clearable
maxlength="11"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -68,7 +68,7 @@
></el-image>
</div>
</el-col>
<el-col :span="7" :offset="0">
<el-col :span="8" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body -->
<el-form-item label="转入单位" prop="leaseUnitId">
@ -78,7 +78,7 @@
:options="lessUniteList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -94,7 +94,7 @@
:options="leaseProjectList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -109,7 +109,7 @@
placeholder="请输入转入人"
clearable
maxlength="50"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -119,14 +119,14 @@
placeholder="请输入联系电话"
clearable
maxlength="11"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-card>
</el-col>
<el-col :span="8" :offset="0">
<el-col :span="6" :offset="0">
<el-form-item label="" prop="dirUrls">
<el-upload
:action="uploadUrl"
@ -191,7 +191,7 @@
:options="materialTypeOpts"
:normalizer="normalizer2"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -1461,4 +1461,8 @@ export default {
font-size: 16px;
}
}
::v-deep .vue-treeselect__single-value {
position: inherit !important;
white-space: pre-wrap !important;
}
</style>

View File

@ -122,7 +122,7 @@
</el-table-column>
<el-table-column
v-for="(column, index) in tableColumns"
:show-overflow-tooltip="!column.showTooltip"
:show-overflow-tooltip="!column.unShowTooltip"
:key="index"
:label="column.label"
:prop="column.prop"
@ -287,14 +287,14 @@ export default {
//
total: 0,
tableColumns: [
{ label: '工程名称', prop: 'proName', showTooltip: false },
{ label: '物资名称', prop: 'typeName' },
{ label: '规格型号', prop: 'typeModelName' },
{ label: '计量单位', prop: 'unit' },
{ label: '业务需求数量', prop: 'businessNum' },
{ label: '实际供应数量', prop: 'supplyNum' },
{ label: '在库数量', prop: 'storeNum' },
{ label: '在用数量', prop: 'useNum' }
{ label: '工程名称', prop: 'proName', unShowTooltip: true },
{ label: '物资名称', prop: 'typeName', width: 180 },
{ label: '规格型号', prop: 'typeModelName', width: 160 },
{ label: '计量单位', prop: 'unit', width: 100 },
{ label: '业务需求数量', prop: 'businessNum',width: 130 },
{ label: '实际供应数量', prop: 'supplyNum',width: 130 },
{ label: '在库数量', prop: 'storeNum',width: 130 },
{ label: '在用数量', prop: 'useNum', width: 130 }
],
//
tableList: [],
@ -328,7 +328,8 @@ export default {
dialogQuery: {
pageNum: 1,
pageSize: 10,
keyWord: undefined
keyWord: undefined,
agreementIds: undefined,
},
dialogTotal: 0,
//
@ -598,6 +599,7 @@ export default {
this.dialogQuery.keyWord = ''
this.dialogQuery.typeId = row.typeId
this.dialogQuery.proId = row.proId
this.dialogQuery.agreementIds = row.agreementIds
this.getStoreCodeList()
},
/** 查询在库编码列表 */

View File

@ -1,8 +1,8 @@
<template>
<div class="app-container">
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="100px" :disabled="isDetail">
<el-form :model="maForm" ref="maForm" size="small" :rules="rules" label-width="" :disabled="isDetail">
<el-row :gutter="20" class="cont-center" style="margin-bottom: 20px">
<el-col :span="7" :offset="0">
<el-col :span="8" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body -->
<el-form-item label="转出工程" prop="backProId">
@ -12,7 +12,7 @@
:options="projectList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -27,7 +27,7 @@
clearable
filterable
@change="projectChange"
style="width: 240px"
style="width: 100%"
>
<el-option v-for="item in projectList" :key="item.proId" :label="item.proName" :value="item.proId" />
</el-select>
@ -39,7 +39,7 @@
:options="uniteList"
:normalizer="normalizer"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"
@ -53,7 +53,7 @@
clearable
filterable
@change="uniteChange"
style="width: 240px"
style="width: 100%"
>
<el-option v-for="item in uniteList" :key="item.id" :label="item.teamName" :value="item.id" />
</el-select>
@ -64,7 +64,7 @@
placeholder="请输入转出人"
clearable
maxlength="50"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -74,7 +74,7 @@
placeholder="请输入联系电话"
clearable
maxlength="11"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -89,7 +89,7 @@
></el-image>
</div>
</el-col>
<el-col :span="7" :offset="0">
<el-col :span="8" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body -->
<el-form-item label="转入工程" prop="leaseProId">
@ -99,7 +99,7 @@
clearable
filterable
@change="leaseProjectChange"
style="width: 240px"
style="width: 100%"
>
<el-option
v-for="item in leaseProjectList"
@ -116,7 +116,7 @@
clearable
filterable
@change="leaseUniteChange"
style="width: 240px"
style="width: 100%"
>
<el-option v-for="item in lessUniteList" :key="item.id" :label="item.teamName" :value="item.teamName" />
</el-select>
@ -128,7 +128,7 @@
placeholder="请输入转入人"
clearable
maxlength="50"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
@ -138,14 +138,14 @@
placeholder="请输入联系电话"
clearable
maxlength="11"
style="width: 240px"
style="width: 100%"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-card>
</el-col>
<el-col :span="8" :offset="0">
<el-col :span="6" :offset="0">
<el-form-item label="" prop="dirUrls">
<el-upload
:action="uploadUrl"
@ -196,7 +196,7 @@
:options="materialTypeOpts"
:normalizer="normalizer2"
:show-count="true"
style="width: 240px"
style="width: 100%"
:disable-branch-nodes="true"
noChildrenText="没有数据了"
noOptionsText="没有数据"

View File

@ -470,6 +470,8 @@ export default {
console.log('🚀 ~ changePro ~ e:', e)
this.maForm.proId = e
this.maForm.projectId = this.projectList.find(item => item.proId === e)?.projectId
this.maForm.teamId = ''
this.maForm.leasePerson = ''
await this.getBmTeam()
if(this.maForm.proId){
this.equipmentList = []

View File

@ -696,6 +696,8 @@ export default {
console.log('🚀 ~ changePro ~ e:', e)
this.maForm.proId = e
this.maForm.projectId = this.projectList.find(item => item.proId === e)?.projectId
this.maForm.teamId = ''
this.maForm.leasePerson = ''
this.equipmentList = []
if (this.maForm.pickType == 0) {
await this.getBmTeam()