|
|
|
|
@ -30,28 +30,28 @@ |
|
|
|
|
class="vd-form-three" |
|
|
|
|
> |
|
|
|
|
<el-row :gutter="24"> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="零件号:" prop="partCode"> |
|
|
|
|
{{ formData.partCode }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="零件名称:" prop="partName"> |
|
|
|
|
{{ formData.partName }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="产品型号:" prop="productType"> |
|
|
|
|
{{ formData.productType }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '烧结'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '烧结'"> |
|
|
|
|
<el-form-item label="是否为玻璃饼:" prop="isGlassCake"> |
|
|
|
|
{{ formData.isGlassCake ? '是' : '否' }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="partType == '烧结'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '烧结'"> |
|
|
|
|
<el-form-item label="是否印字:" prop="isPrint"> |
|
|
|
|
<span v-if="!formData.isGlassCake"> |
|
|
|
|
{{ formData.isPrint == 1 ? '否' : formData.isPrint == 2 ? '单' : '双' }} |
|
|
|
|
@ -61,38 +61,38 @@ |
|
|
|
|
</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-col :span="6" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-form-item label="材料:" prop="glassCailiao"> |
|
|
|
|
{{ formData.material }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-col :span="6" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-form-item label="粉重:" prop="powderWeight"> |
|
|
|
|
{{ formData.powderWeight }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-col :span="6" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-form-item label="成型厚度:" prop="formingThickness"> |
|
|
|
|
{{ formData.formingThickness }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-col :span="6" v-if="partType == '烧结' && formData.isGlassCake"> |
|
|
|
|
<el-form-item label="面积(dm²):" prop="area"> |
|
|
|
|
{{ formData.area }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="硬度:" prop="hardness"> |
|
|
|
|
{{ formData.hardness }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="材料:" prop="material"> |
|
|
|
|
{{ formData.material }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col |
|
|
|
|
:span="8" |
|
|
|
|
:span="6" |
|
|
|
|
v-if="partType == '热表' || (partType == '烧结' && formData.isGlassCake)" |
|
|
|
|
> |
|
|
|
|
<el-form-item label="物料编码:" prop="wuliaobianma"> |
|
|
|
|
@ -104,13 +104,12 @@ |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
> |
|
|
|
|
<el-option label="物料一" value="1" /> |
|
|
|
|
<el-option label="物料二" value="2" /> |
|
|
|
|
<el-option label="物料三" value="3" /> |
|
|
|
|
<el-option :value="'04-05-023'" label="金钾-04-05-023" /> |
|
|
|
|
<el-option :value="'04-05-024'" label="银板-04-05-024" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="镀种1:" prop="plate"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="formData.plate" |
|
|
|
|
@ -120,23 +119,25 @@ |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
> |
|
|
|
|
<el-option label="镀种一" value="1" /> |
|
|
|
|
<el-option label="镀种二" value="2" /> |
|
|
|
|
<el-option label="镀种三" value="3" /> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in plateList" |
|
|
|
|
:label="item.plating" |
|
|
|
|
:value="item.id" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="镀层代号1:" prop="plateCode"> |
|
|
|
|
{{ formData.plateCode }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="面积1(dm²):" prop="area"> |
|
|
|
|
{{ formData.area }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="镀种2:" prop="plateTwo"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="formData.plateTwo" |
|
|
|
|
@ -146,29 +147,31 @@ |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
> |
|
|
|
|
<el-option label="镀种一" value="1" /> |
|
|
|
|
<el-option label="镀种二" value="2" /> |
|
|
|
|
<el-option label="镀种三" value="3" /> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in plateList" |
|
|
|
|
:label="item.plating" |
|
|
|
|
:value="item.id" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="镀层代号2:" prop="plateCodeTwo"> |
|
|
|
|
{{ formData.plateCodeTwo }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="面积2(dm²):" prop="areaTwo"> |
|
|
|
|
{{ formData.areaTwo }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" v-if="partType == '热表'"> |
|
|
|
|
<el-col :span="6" v-if="partType == '热表'"> |
|
|
|
|
<el-form-item label="镀层厚度:" prop="plateThickness"> |
|
|
|
|
{{ formData.plateThickness }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="产品应用领域:" prop="plateThickness"> |
|
|
|
|
{{ formData.productApplicationArea }} |
|
|
|
|
</el-form-item> |
|
|
|
|
@ -183,34 +186,34 @@ |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row :gutter="24"> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="有效期:" prop="periodOfValidity"> |
|
|
|
|
{{ formData.periodOfValidity == 1 ? '长期有效' : '自定义' }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="有效周期(天):" prop="expirationPeriod"> |
|
|
|
|
{{ formData.expirationPeriod }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="到期提醒(天):" prop="advanceRemind"> |
|
|
|
|
{{ formData.advanceRemind }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row :gutter="24"> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="涂色标个数:" prop="tsbNum"> |
|
|
|
|
{{ formData.tsbNum }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="涂色带个数:" prop="tsdNum"> |
|
|
|
|
{{ formData.tsdNum }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="涂箭头个数:" prop="tjtNum"> |
|
|
|
|
{{ formData.tjtNum }} |
|
|
|
|
</el-form-item> |
|
|
|
|
@ -403,6 +406,7 @@ import { |
|
|
|
|
getPartDetail, |
|
|
|
|
getProcessAuthorized, |
|
|
|
|
getVersion, |
|
|
|
|
getPlatingList, |
|
|
|
|
} from '@/api/processManagement/taskProcessing'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
@ -520,6 +524,13 @@ export default { |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '面积', |
|
|
|
|
prop: 'area', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '数量', |
|
|
|
|
prop: 'quota', |
|
|
|
|
@ -529,7 +540,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '总面积', |
|
|
|
|
prop: 'quota', |
|
|
|
|
prop: 'totalArea', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
@ -590,6 +601,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
version: '', //版本号 |
|
|
|
|
versionOptions: [], // |
|
|
|
|
plateList: [], //镀种信息 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
@ -597,9 +609,14 @@ export default { |
|
|
|
|
|
|
|
|
|
this.getCcraftInfo(); |
|
|
|
|
this.getPartInfo(); |
|
|
|
|
this.getPlatingList(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
getPlatingList() { |
|
|
|
|
getPlatingList().then(res => { |
|
|
|
|
this.plateList = res.data.data; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 获取零件号的版本号列表 |
|
|
|
|
partChange(partId) { |
|
|
|
|
getVersion({ partId: partId }).then(res => { |
|
|
|
|
@ -706,6 +723,11 @@ export default { |
|
|
|
|
getPartDetail(this.rowData.id).then(res => { |
|
|
|
|
this.formData = res.data.data.dsPartEntity; |
|
|
|
|
this.dataTable = res.data.data.dsPartEntities; |
|
|
|
|
if (this.dataTable.length > 0) { |
|
|
|
|
this.dataTable.forEach(item => { |
|
|
|
|
item.totalArea = (item.quota * item.area).toFixed(5); // 保留5位小数(字符串) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -796,7 +818,7 @@ export default { |
|
|
|
|
.box-card { |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: row; |
|
|
|
|
height: calc(100vh - 200px); |
|
|
|
|
// height: calc(100vh - 200px); |
|
|
|
|
|
|
|
|
|
.process-left { |
|
|
|
|
// padding: 20px; |
|
|
|
|
|