|
@@ -12,15 +12,32 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row class="my-row">
|
|
|
|
+ <el-col :span="8">
|
|
|
|
+ <el-form-item label="物料名称" prop="productName">
|
|
|
|
+ <el-input v-model="dataForm.productName" placeholder="物料名称" disabled></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8">
|
|
|
|
+ <el-form-item label="物料规格" prop="productSpec">
|
|
|
|
+ <el-input v-model="dataForm.productSpec" placeholder="物料规格" disabled></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8">
|
|
|
|
+ <el-form-item label="材料" prop="materials">
|
|
|
|
+ <el-input v-model="dataForm.materials" placeholder="材料" disabled></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
<el-row class="my-row">
|
|
<el-row class="my-row">
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item label="物品(零件)规格" prop="specifications">
|
|
<el-form-item label="物品(零件)规格" prop="specifications">
|
|
- <el-input v-model="specifications" placeholder="物品(零件)规格" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="specifications" placeholder="请选择物品" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item label="物品(零件)单位" prop="unitName">
|
|
<el-form-item label="物品(零件)单位" prop="unitName">
|
|
- <el-input v-model="unitName" placeholder="物品(零件)单位" disabled></el-input>
|
|
|
|
|
|
+ <el-input v-model="unitName" placeholder="请选择物品" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -62,9 +79,10 @@ export default {
|
|
onChose () {
|
|
onChose () {
|
|
this.$emit('onChose')
|
|
this.$emit('onChose')
|
|
},
|
|
},
|
|
- async init (scheduleId, materialId) {
|
|
|
|
- this.dataForm.id = scheduleId || ''
|
|
|
|
- this.dataForm.materialId = materialId || ''
|
|
|
|
|
|
+ async init (dataForm) {
|
|
|
|
+ // this.dataForm.id = dataForm.id || ''
|
|
|
|
+ // this.dataForm.materialId = dataForm.materialId || ''
|
|
|
|
+ this.dataForm = dataForm
|
|
},
|
|
},
|
|
validateField (type) {
|
|
validateField (type) {
|
|
this.$refs.dataForm.validateField(type)
|
|
this.$refs.dataForm.validateField(type)
|