|
|
|
@ -395,9 +395,13 @@ |
|
|
|
<el-form-item :label="'物料编码'"> |
|
|
|
<el-input v-model="batchComponentPartData.partNo" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'物料名称/物料名称@物料分类'"> |
|
|
|
<el-form-item :label="'物料名称&物料分类'"> |
|
|
|
<el-input v-model="batchComponentPartData.partDesc" clearable style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="''"> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(214)"><a herf="#">物料分类</a></span> |
|
|
|
<el-input v-model="batchComponentPartData.familyName" clearable style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="queryBatchComponentPartList">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
@ -687,49 +691,66 @@ |
|
|
|
<el-input v-model="scope.row.familyName" readonly @click.native="handleFamilySelect(scope.row, scope.$index)" style="width: 100%"></el-input> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='productionData'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.productionData" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" |
|
|
|
:disabled="!productionDataFamily.includes(scope.row.familyID)" |
|
|
|
v-model="scope.row.productionData" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='materialData'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialData" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialData" :disabled="!materialDataFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='finishedProductData'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.finishedProductData" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.finishedProductData" :disabled="!finishedProductDataFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='consumptionLoss'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.consumptionLoss" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.consumptionLoss" :disabled="!consumptionLossFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='coatingLength'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.coatingLength" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.coatingLength" :disabled="!coatingLengthFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='glueWeight'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.glueWeight" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.glueWeight" :disabled="!glueWeightFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='materialWidth'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialWidth" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialWidth" :disabled="!materialWidthFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='widthConversion'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.widthConversion" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.widthConversion" :disabled="!widthConversionFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='materialLength'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialLength" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialLength" :disabled="!materialLengthFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='materialThickness'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialThickness" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialThickness" :disabled="!materialThicknessFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='areaConversion'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.areaConversion" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.areaConversion" :disabled="!areaConversionFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='densityConversion'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.densityConversion" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.densityConversion" :disabled="!densityConversionFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='materialWeight'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialWeight" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialWeight" :disabled="!materialWeightFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='materialLength2'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialLength2" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.materialLength2" :disabled="!materialLength2Family.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp==='unitConversion'"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.unitConversion" style="width: 100%"></el-input-number> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" v-model="scope.row.unitConversion" :disabled="!unitConversionFamily.includes(scope.row.familyID)" |
|
|
|
style="width: 100%"></el-input-number> |
|
|
|
</span> |
|
|
|
<span v-else> |
|
|
|
{{scope.row[item.columnProp]}} |
|
|
|
@ -1189,6 +1210,8 @@ export default { |
|
|
|
partNo: '', |
|
|
|
partDesc: '', |
|
|
|
shrinkageFactor: '', |
|
|
|
familyID: '', |
|
|
|
familyName: '', |
|
|
|
page: 1, |
|
|
|
limit: 10 |
|
|
|
}, |
|
|
|
@ -3870,6 +3893,11 @@ export default { |
|
|
|
if (val === 510) { |
|
|
|
conSql = " and site = '" + this.modalData.site + "'" |
|
|
|
} |
|
|
|
if (val === 214) { |
|
|
|
strVal = this.batchComponentPartData.familyName ? this.batchComponentPartData.familyName : '' |
|
|
|
conSql = " and site = '" + this.batchComponentPartData.site + "'" + " and bu_no = '" + |
|
|
|
this.batchComponentPartData.buNo + "'" |
|
|
|
} |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -3884,6 +3912,10 @@ export default { |
|
|
|
this.modalData.processUnit = val.UMID |
|
|
|
this.modalData.processUnitName = val.UMName |
|
|
|
} |
|
|
|
if (this.tagNo === 214) { |
|
|
|
this.batchComponentPartData.familyID = val.family_id |
|
|
|
this.batchComponentPartData.familyName = val.family_name |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 回车事件 |
|
|
|
|