Merge branch 'material-ui' of http://192.168.0.75:3000/bonus/bonus-ui into material-ui

This commit is contained in:
BianLzhaoMin 2025-03-25 18:48:57 +08:00
commit 2e141ee4e7
1 changed files with 14 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<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="100px" :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="7" :offset="0"> <el-col :span="7" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px"> <el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body --> <!-- card body -->
<el-form-item label="转出单位" prop="backUnitId"> <el-form-item label="转出单位" prop="backUnitId">
<treeselect <treeselect
@ -69,7 +69,7 @@
</div> </div>
</el-col> </el-col>
<el-col :span="7" :offset="0"> <el-col :span="7" :offset="0">
<el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px"> <el-card shadow="always" :body-style="{ padding: '20px' }" style="min-width: 400px; overflow-y: auto">
<!-- card body --> <!-- card body -->
<el-form-item label="转入单位" prop="leaseUnitId"> <el-form-item label="转入单位" prop="leaseUnitId">
<treeselect <treeselect
@ -271,7 +271,8 @@
:precision="0" :precision="0"
style="width: 100%" style="width: 100%"
:disabled="isDetail || !scope.row.isActive" :disabled="isDetail || !scope.row.isActive"
:min="0" :min="1"
@change="directNumChange(scope.row)"
></el-input-number> ></el-input-number>
</template> </template>
</el-table-column> </el-table-column>
@ -343,7 +344,7 @@ export default {
{ label: '类型名称', prop: 'typeName' }, { label: '类型名称', prop: 'typeName' },
{ label: '规格型号', prop: 'typeModelName' }, { label: '规格型号', prop: 'typeModelName' },
{ label: '计量单位', prop: 'unitName' }, { label: '计量单位', prop: 'unitName' },
{ label: '领料数量', prop: 'useNum' }, { label: '在用数量', prop: 'useNum' },
{ label: '领料人', prop: 'leasePerson' }, { label: '领料人', prop: 'leasePerson' },
{ label: '领料日期', prop: 'startTime' } { label: '领料日期', prop: 'startTime' }
], ],
@ -715,6 +716,15 @@ export default {
} }
}) })
}, },
//
directNumChange(row) {
if (row.directNum > row.useNum) {
this.$message.error('直转数量不能大于领料数量')
this.$nextTick(() => {
row.directNum = row.useNum
})
}
},
/** 保存按钮操作 */ /** 保存按钮操作 */
handleSave() { handleSave() {
console.log('maForm', this.maForm) console.log('maForm', this.maForm)