|
|
@ -349,12 +349,9 @@
|
|
|
|
@select-all="allReportSelection" :summary-method="getSummaries" show-summary>
|
|
|
|
@select-all="allReportSelection" :summary-method="getSummaries" show-summary>
|
|
|
|
<el-table-column width="60" align="center" type="selection" />
|
|
|
|
<el-table-column width="60" align="center" type="selection" />
|
|
|
|
<el-table-column label="id" align="center" prop="id" v-if="false" />
|
|
|
|
<el-table-column label="id" align="center" prop="id" v-if="false" />
|
|
|
|
<el-table-column label="工单编码" width="130" align="left" prop="workorderCode"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
<el-table-column label="订单编码" width="105" align="left" prop="workorderCodeSap"
|
|
|
|
<el-table-column label="订单编码" width="105" align="left" prop="workorderCodeSap"
|
|
|
|
:show-overflow-tooltip="true" :formatter="orderCodeFormate" />
|
|
|
|
:show-overflow-tooltip="true" :formatter="orderCodeFormate" />
|
|
|
|
<el-table-column label="报工单号" width="115" align="left" prop="reportCode"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
<el-table-column label="批次" width="250" align="left" prop="batch">
|
|
|
|
<el-table-column label="批次" width="250" align="left" prop="batch">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-input size="small" v-model="scope.row.batch"
|
|
|
|
<el-input size="small" v-model="scope.row.batch"
|
|
|
@ -380,7 +377,7 @@
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="用人数" align="center" prop="useMan">
|
|
|
|
<el-table-column label="用人数" align="center" prop="useMan" width="100">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-input type="number" size="small" v-model="scope.row.useMan"
|
|
|
|
<el-input type="number" size="small" v-model="scope.row.useMan"
|
|
|
|
@change="handleEdit(scope.$index, scope.row)"
|
|
|
|
@change="handleEdit(scope.$index, scope.row)"
|
|
|
@ -388,7 +385,10 @@
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="报工单编号" align="center" prop="reportCode" width="120" />
|
|
|
|
<el-table-column label="工单编码" width="80" align="left" prop="workorderCode"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"/>
|
|
|
|
|
|
|
|
<el-table-column label="报工单号" width="80" align="left" prop="reportCode"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="150" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="150" />
|
|
|
|
<!---->
|
|
|
|
<!---->
|
|
|
|
<el-table-column fixed="right" label="操作" width="160">
|
|
|
|
<el-table-column fixed="right" label="操作" width="160">
|
|
|
@ -421,25 +421,25 @@
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
<!-- 报工损耗 -->
|
|
|
|
<!-- 报工损耗 -->
|
|
|
|
<el-dialog :title="titleConsume" :visible.sync="openConsume" width="1200px">
|
|
|
|
<el-dialog :title="titleConsume" :visible.sync="openConsume" width="1200px">
|
|
|
|
|
|
|
|
<div class="div1"><el-link type="success">实际报工母订单数量:{{actProduct}}</el-link></div>
|
|
|
|
<el-tabs v-model="activeNameC">
|
|
|
|
<el-tabs v-model="activeNameC">
|
|
|
|
<el-tab-pane v-for="(item, index) in libConsumeTabs" :key="index" :label="item.title"
|
|
|
|
<el-tab-pane v-for="(item, index) in libConsumeTabs" :key="index" :label="item.title"
|
|
|
|
:name="item.libId">
|
|
|
|
:name="item.libId">
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" highlight-current-row :ref="tableIndex + index" :data="item.libList"
|
|
|
|
<el-table v-loading="loading" highlight-current-row :ref="tableIndex + index" :data="item.libList"
|
|
|
|
@select="pConsumeSelection" @select-all="allConsumeSelection">
|
|
|
|
@select="pConsumeSelection" @select-all="allConsumeSelection">
|
|
|
|
<el-table-column width="50" align="center" type="selection" />
|
|
|
|
<el-table-column width="50" align="center" type="selection" />
|
|
|
|
<el-table-column label="recordId" align="center" prop="recordId" v-if="false" />
|
|
|
|
<el-table-column label="recordId" align="center" prop="recordId" v-if="false" />
|
|
|
|
<el-table-column label="parentOrder" align="center" prop="parentOrder" v-if="false" />
|
|
|
|
<el-table-column label="parentOrder" align="center" prop="parentOrder" v-if="false" />
|
|
|
|
<el-table-column label="工单编码" width="140" align="left" prop="workorderCode"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" />
|
|
|
|
<el-table-column label="订单编码" width="100" align="left" prop="workorderCodeSap"
|
|
|
|
<el-table-column label="订单编码" width="130" align="left" prop="workorderCodeSap"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" :formatter="orderCodeFormate" />
|
|
|
|
:show-overflow-tooltip="true" :formatter="orderCodeFormate" />
|
|
|
|
<el-table-column label="物料编码" width="130" align="left" prop="materialCode"
|
|
|
|
<el-table-column label="物料编码" width="110" align="left" prop="materialCode"
|
|
|
|
:show-overflow-tooltip="true" :formatter="productCodeFormate" />
|
|
|
|
:show-overflow-tooltip="true" :formatter="productCodeFormate" />
|
|
|
|
<el-table-column label="物料名称" width="280" align="left" prop="materialName"
|
|
|
|
<el-table-column label="物料名称" width="280" align="left" prop="materialName"
|
|
|
|
:show-overflow-tooltip="true" />
|
|
|
|
:show-overflow-tooltip="true" />
|
|
|
|
<el-table-column label="BOM组件用量" width="150" align="left" prop="planQuantity" />
|
|
|
|
<el-table-column label="BOM组件用量" width="110" align="left" prop="planQuantity" />
|
|
|
|
<el-table-column label="单位数量" align="center" prop="erfmg" />
|
|
|
|
<el-table-column label="单位数量" align="center" prop="erfmg" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column label="条目单位" align="center" prop="erfme" />
|
|
|
|
<el-table-column label="条目单位" align="center" prop="erfme" />
|
|
|
|
<el-table-column label="实际用量" width="150" align="left" prop="quantity"
|
|
|
|
<el-table-column label="实际用量" width="150" align="left" prop="quantity"
|
|
|
|
:show-overflow-tooltip="true">
|
|
|
|
:show-overflow-tooltip="true">
|
|
|
@ -461,8 +461,10 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="报工单编号" align="center" prop="reportCode" width="120" />
|
|
|
|
<el-table-column label="报工单编号" align="center" prop="reportCode" width="90" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="150" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="130" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
|
|
<el-table-column label="工单编码" width="80" align="left" prop="workorderCode"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" />
|
|
|
|
<el-table-column fixed="right" label="操作" width="90">
|
|
|
|
<el-table-column fixed="right" label="操作" width="90">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button @click.native.prevent="deleteBomRow(scope.$index, item.libList)" size="small"
|
|
|
|
<el-button @click.native.prevent="deleteBomRow(scope.$index, item.libList)" size="small"
|
|
|
@ -499,6 +501,7 @@
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="cancel" v-if="optType == 'view'">返回</el-button>
|
|
|
|
<el-button type="primary" @click="cancel" v-if="optType == 'view'">返回</el-button>
|
|
|
@ -697,6 +700,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
actProduct:0,
|
|
|
|
optType: undefined,
|
|
|
|
optType: undefined,
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
@ -1029,6 +1033,7 @@ export default {
|
|
|
|
updateBy: null,
|
|
|
|
updateBy: null,
|
|
|
|
endReport: "0"
|
|
|
|
endReport: "0"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
this.actProduct = 0;
|
|
|
|
this.queryParams.workorderCode = "";
|
|
|
|
this.queryParams.workorderCode = "";
|
|
|
|
this.queryParams.machineCode = "";
|
|
|
|
this.queryParams.machineCode = "";
|
|
|
|
this.resetForm("form");
|
|
|
|
this.resetForm("form");
|
|
|
@ -1362,6 +1367,7 @@ export default {
|
|
|
|
//查询母工单报工记录列表
|
|
|
|
//查询母工单报工记录列表
|
|
|
|
getAllLevelConsumeList(this.queryParams).then((response) => {
|
|
|
|
getAllLevelConsumeList(this.queryParams).then((response) => {
|
|
|
|
this.libConsumeTabs = response;
|
|
|
|
this.libConsumeTabs = response;
|
|
|
|
|
|
|
|
this.actProduct = this.libConsumeTabs[0].libList[0].quantityFeedback;
|
|
|
|
this.openConsume = true;
|
|
|
|
this.openConsume = true;
|
|
|
|
this.titleConsume = "工单报工物料损耗详情";
|
|
|
|
this.titleConsume = "工单报工物料损耗详情";
|
|
|
|
this.queryParams.workorderCode = "";
|
|
|
|
this.queryParams.workorderCode = "";
|
|
|
@ -1788,4 +1794,9 @@ export default {
|
|
|
|
.my-print-foot {
|
|
|
|
.my-print-foot {
|
|
|
|
font-size: 19px;
|
|
|
|
font-size: 19px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.div1{
|
|
|
|
|
|
|
|
margin-top: -35px;
|
|
|
|
|
|
|
|
margin-right: 70px;
|
|
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|