|
|
|
@ -475,6 +475,8 @@
|
|
|
|
|
<el-table-column width="50" align="center" type="selection"/>
|
|
|
|
|
<el-table-column label="id" align="center" prop="id" v-if="false"/>
|
|
|
|
|
<el-table-column label="工单编码" width="150" align="left" prop="workorderCode" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="订单编码" width="150" align="left" prop="workorderCodeSap" :show-overflow-tooltip="true"
|
|
|
|
|
:formatter="orderCodeFormate"/>
|
|
|
|
|
<el-table-column label="报工单号" width="150" align="left" prop="reportCode" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="批次" width="250" align="left" prop="batch" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unit"/>
|
|
|
|
@ -512,11 +514,13 @@
|
|
|
|
|
:label="item.title"
|
|
|
|
|
:name="item.libId"
|
|
|
|
|
>
|
|
|
|
|
<el-button size="mini" type="primary" @click="addConsumeTableRow(item.libList)">新增物料</el-button>
|
|
|
|
|
<!--<el-button size="mini" type="primary" @click="addConsumeTableRow(item.libList)">新增物料</el-button>-->
|
|
|
|
|
<el-table v-loading="loading" :data="item.libList" ref="mypConsumeTable" @selection-change="pConsumeSelection">
|
|
|
|
|
<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="工单编码" width="140" align="left" prop="workorderCode" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="订单编码" width="150" align="left" prop="workorderCodeSap" :show-overflow-tooltip="true"
|
|
|
|
|
:formatter="orderCodeFormate"/>
|
|
|
|
|
<el-table-column label="物料编码" width="180" align="left" prop="materialCode" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="物料名称" width="280" align="left" prop="materialName" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="消耗数量" width="120" align="left" prop="quantity" :show-overflow-tooltip="true" >
|
|
|
|
@ -527,13 +531,14 @@
|
|
|
|
|
<el-table-column label="单位" width="50" align="center" prop="unit"/>
|
|
|
|
|
<el-table-column label="反冲标识" align="center" prop="recoil"/>
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="150"/>
|
|
|
|
|
<!--
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="90">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button @click.native.prevent="deleteBomRow(scope.$index, item.libList)"
|
|
|
|
|
size="small" type="danger" plain>
|
|
|
|
|
移除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column>-->
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
@ -1307,13 +1312,13 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
pConsumeSelection(selection) {
|
|
|
|
|
this.pConsumeRows = selection
|
|
|
|
|
this.pConsumeRows = this.pConsumeRows.concat(selection)
|
|
|
|
|
},
|
|
|
|
|
sConsumeSelection(selection) {
|
|
|
|
|
this.sConsumeRows = selection
|
|
|
|
|
},
|
|
|
|
|
submitConsume() {
|
|
|
|
|
this.consumeRows = this.pConsumeRows.concat(this.sConsumeRows)
|
|
|
|
|
this.consumeRows = this.pConsumeRows;
|
|
|
|
|
|
|
|
|
|
if ( this.consumeRows==0) {
|
|
|
|
|
this.$modal.msgError(`请选择数据`);
|
|
|
|
|