Merge branch 'material-ui' of http://192.168.0.75:3000/bonus/bonus-ui into material-ui
This commit is contained in:
commit
2e141ee4e7
|
|
@ -3,7 +3,7 @@
|
|||
<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-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 -->
|
||||
<el-form-item label="转出单位" prop="backUnitId">
|
||||
<treeselect
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
</div>
|
||||
</el-col>
|
||||
<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 -->
|
||||
<el-form-item label="转入单位" prop="leaseUnitId">
|
||||
<treeselect
|
||||
|
|
@ -271,7 +271,8 @@
|
|||
:precision="0"
|
||||
style="width: 100%"
|
||||
:disabled="isDetail || !scope.row.isActive"
|
||||
:min="0"
|
||||
:min="1"
|
||||
@change="directNumChange(scope.row)"
|
||||
></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -343,7 +344,7 @@ export default {
|
|||
{ label: '类型名称', prop: 'typeName' },
|
||||
{ label: '规格型号', prop: 'typeModelName' },
|
||||
{ label: '计量单位', prop: 'unitName' },
|
||||
{ label: '领料数量', prop: 'useNum' },
|
||||
{ label: '在用数量', prop: 'useNum' },
|
||||
{ label: '领料人', prop: 'leasePerson' },
|
||||
{ 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() {
|
||||
console.log('maForm', this.maForm)
|
||||
|
|
|
|||
Loading…
Reference in New Issue