|
@@ -12,8 +12,13 @@
|
|
|
</el-row>
|
|
|
<template v-for="(item, index) in dataList">
|
|
|
<div :key="index" class="my-line">
|
|
|
+ <el-row class="my-row" style="margin-bottom: 20px">
|
|
|
+ <el-col :span="24" style="text-align: right;">
|
|
|
+ <el-button @click="removeOne(index)" type="danger" icon="el-icon-delete" circle style="padding: 6px"></el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row class="my-row">
|
|
|
- <el-col :span="8" style="padding-left: 20px">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="类别" prop="cateId">
|
|
|
<!-- <el-input v-model="item.categoryName" :disabled="true" placeholder="类别"></el-input>-->
|
|
|
<material-type-component v-model="item.materialTypeId" :type-id.sync="item.materialTypeId"></material-type-component>
|
|
@@ -29,8 +34,21 @@
|
|
|
</material-component>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" style="text-align: right;">
|
|
|
- <el-button @click="removeOne(index)" type="danger" icon="el-icon-delete" circle style="padding: 6px"></el-button>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="出库依据类别" prop="sourceCategory">
|
|
|
+ <el-select
|
|
|
+ v-model="item.sourceCategory"
|
|
|
+ placeholder="请选择"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in optionsCategory()"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="my-row">
|
|
@@ -39,19 +57,19 @@
|
|
|
<el-input v-model="item.unitName" :disabled="true" placeholder="单位"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" style="padding-left: 20px">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="规格" prop="specifications">
|
|
|
<el-input v-model="item.specifications" :disabled="true" placeholder="规格"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row class="my-row">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="数量" prop="cnt">
|
|
|
<el-input-number v-model="item.cnt" :min="0" :max="item.cntLimit"></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="16" style="padding-left: 20px">
|
|
|
+ </el-row>
|
|
|
+ <el-row class="my-row">
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="用途" prop="notes">
|
|
|
<el-input v-model="item.notes" placeholder="出库用于(说明用途)"></el-input>
|
|
|
</el-form-item>
|
|
@@ -77,6 +95,7 @@
|
|
|
import {getUUID} from '@/utils'
|
|
|
import MaterialComponent from '../common/material-component'
|
|
|
import MaterialTypeComponent from '@/views/modules/common/material-type-component.vue'
|
|
|
+ import {optionsCategory} from '@/utils/enums'
|
|
|
export default {
|
|
|
name: 'stock-order-inbound',
|
|
|
components: {MaterialTypeComponent, MaterialComponent, DictSelect, UserComponent},
|
|
@@ -90,6 +109,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ optionsCategory () {
|
|
|
+ return optionsCategory
|
|
|
+ },
|
|
|
onChose () {
|
|
|
this.$emit('onChose')
|
|
|
},
|
|
@@ -144,7 +166,8 @@ export default {
|
|
|
templateItemPlanId: '',
|
|
|
usage: '',
|
|
|
userId: '',
|
|
|
- orgName: ''
|
|
|
+ orgName: '',
|
|
|
+ sourceCategory: 1
|
|
|
})
|
|
|
}
|
|
|
},
|