175 lines
5.4 KiB
Plaintext
175 lines
5.4 KiB
Plaintext
<template>
|
|
<el-dialog
|
|
title="物料信息"
|
|
close="handleClose"
|
|
:visible.sync="dialogVisible">
|
|
<el-form label-width="80px" :model="formData" style="width: 1400px" :disabled="true">
|
|
<el-row>
|
|
<el-col :span="5">
|
|
<el-form-item label="物料名称">
|
|
<el-input style="width: 140px" v-model="formData.name"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="物料编码">
|
|
<el-input style="width: 140px" v-model="formData.code"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="物料版本">
|
|
<el-input style="width: 140px" v-model="formData.revision"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
<el-form-item label="规格型号">
|
|
<el-input style="width: 140px" v-model="formData.specification"></el-input>
|
|
</el-form-item>
|
|
|
|
|
|
<el-row>
|
|
<el-col :span="5">
|
|
<el-form-item label="物料状态">
|
|
<el-select style="width: 140px" v-model="formData.dictStatus" placeholder="请选择">
|
|
<el-option
|
|
v-for="item in this.$dictType.getMaterialStatusArray()"
|
|
:key="item.key"
|
|
:label="item.text"
|
|
:value="item.key">
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="当前版本">
|
|
<el-checkbox v-model="formData.currentRevision"></el-checkbox>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
|
|
<el-form-item label="物料类型">
|
|
<el-select style="width: 140px" v-model="formData.dictType" placeholder="请选择">
|
|
<el-option
|
|
v-for="item in this.$dictType.getMaterialTypeArray()"
|
|
:key="item.key"
|
|
:label="item.text"
|
|
:value="item.key">
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
|
|
<el-row>
|
|
<el-col :span="5">
|
|
<el-form-item label="工艺名称">
|
|
<el-input style="width: 140px" v-model="formData.routeName"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="版本">
|
|
<el-input style="width: 140px" v-model="formData.routeRevision"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<!-- <el-col :span="5">-->
|
|
<!-- <el-button type="primary">导入工艺路线</el-button>-->
|
|
<!-- </el-col>-->
|
|
</el-row>
|
|
|
|
<el-row>
|
|
<el-col :span="5">
|
|
<el-form-item label="BOM名称">
|
|
<el-input style="width: 140px" v-model="formData.bomName"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="版本">
|
|
<el-input style="width: 140px" v-model="formData.bomRevision"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<!-- <el-col :span="5">-->
|
|
<!-- <el-button type="primary">导入BOM</el-button>-->
|
|
<!-- </el-col>-->
|
|
</el-row>
|
|
|
|
<el-row>
|
|
<el-col :span="5">
|
|
<el-form-item label="批次数量">
|
|
<el-input style="width: 140px" v-model="formData.lotSize"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="计量单位">
|
|
<el-input style="width: 140px" v-model="formData.unitOfMeasure"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
<el-col :span="5">
|
|
<el-form-item label="最大寿命">
|
|
<el-input style="width: 140px" v-model="formData.maxLife"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="寿命单位">
|
|
<el-select style="width: 140px" v-model="formData.dictTime" placeholder="请选择">
|
|
<el-option
|
|
v-for="item in this.$dictType.getMaterialTimeArray()"
|
|
:key="item.key"
|
|
:label="item.text"
|
|
:value="item.key">
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="5">
|
|
<el-form-item label="时间敏感">
|
|
<el-checkbox v-model="formData.timeSensitive"></el-checkbox>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
</el-dialog>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'details',
|
|
data() {
|
|
return{
|
|
dialogVisible:false,
|
|
formData:{}
|
|
}
|
|
},
|
|
methods:{
|
|
handleClose() {
|
|
this.dialogVisible = false
|
|
},
|
|
init(id) {
|
|
this.dialogVisible = true
|
|
const params={
|
|
id:id
|
|
}
|
|
this.$materiel.getMaterialInfo(params).then(data=>{
|
|
|
|
this.formData = data.data.data
|
|
if(this.formData.currentRevision===1){
|
|
this.formData.currentRevision=true
|
|
}else {
|
|
this.formData.currentRevision=false
|
|
}
|
|
})
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
>>>.el-input.is-disabled .el-input__inner{
|
|
color: #303133;
|
|
}
|
|
|
|
</style>
|