|
|
|
@ -102,7 +102,6 @@
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="workorderList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" align="center">
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="工单ID" align="center" prop="workorderId" v-if="false"/>
|
|
|
|
|
<el-table-column width="160" label="子工单编号" align="center" prop="workorderCode"/>
|
|
|
|
@ -122,7 +121,9 @@
|
|
|
|
|
<div v-for="item in scope.row.batchInfo">{{ item }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>-->
|
|
|
|
|
<el-table-column width="90" label="派工数量" align="center" prop="quantitySplit"/>
|
|
|
|
|
<el-table-column width="90" label="完成数" align="center" prop="attr1"/>
|
|
|
|
|
<el-table-column width="90" label="入库数量" align="center" prop="attr5"/>
|
|
|
|
|
<el-table-column width="90" label="未入库数量" align="center" prop="attr6"/>
|
|
|
|
|
<el-table-column width="50" label="单位" align="center" prop="unit"/>
|
|
|
|
|
<el-table-column width="90" label="工艺编码" align="center" prop="routeCode"/>
|
|
|
|
|
<el-table-column width="180" label="工艺名称" align="center" prop="routeName" />
|
|
|
|
@ -210,21 +211,17 @@
|
|
|
|
|
label="生产订单">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="quantityProduced"
|
|
|
|
|
prop="attr1"
|
|
|
|
|
label="已生产数量">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="quantitySplit"
|
|
|
|
|
label="拆分数量">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="routeCode"
|
|
|
|
|
label="工艺编码">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="prodLineCode"
|
|
|
|
|
label="产线设备">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- prop="prodLineCode"-->
|
|
|
|
|
<!-- label="产线设备">-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<el-table-column label="班次" align="center" prop="shiftId" :formatter="shiftFormat">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="工单状态" align="center" prop="status">
|
|
|
|
@ -273,7 +270,9 @@
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
getWorkOrders,
|
|
|
|
|
getWorkOrdersWMS,
|
|
|
|
|
listWorkorder,
|
|
|
|
|
listNeWorkorder,
|
|
|
|
|
delWorkorder,
|
|
|
|
|
downWorkorder,
|
|
|
|
|
getOrderAndWork,getProSortNo,
|
|
|
|
@ -1023,7 +1022,7 @@ export default {
|
|
|
|
|
this.printData.manufacture = this.$store.state.user.name;
|
|
|
|
|
this.newWorkerLoading = true // 设置加载状态为true,表示正在加载
|
|
|
|
|
this.refreshNewWorkerTable = false // 先将refreshProTable设置为false,隐藏表格
|
|
|
|
|
getWorkOrders(this.selectWork.workorderCode).then(response => {
|
|
|
|
|
getWorkOrdersWMS(this.selectWork.workorderCode).then(response => {
|
|
|
|
|
this.printData.workTable = response.data;
|
|
|
|
|
this.printData.factory = response.data[0].factoryCode;
|
|
|
|
|
this.printData.productDate = response.data[0].productDate;
|
|
|
|
@ -1040,7 +1039,8 @@ export default {
|
|
|
|
|
this.queryParams.productDateEnd = moment(this.queryParams.productDateArray[1]).format('YYYY-MM-DD');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
listWorkorder(this.queryParams).then(response => {
|
|
|
|
|
listNeWorkorder(this.queryParams).then(response => {
|
|
|
|
|
console.log(response.rows)
|
|
|
|
|
this.workorderList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -1282,6 +1282,8 @@ export default {
|
|
|
|
|
attr2: null,
|
|
|
|
|
attr3: null,
|
|
|
|
|
attr4: null,
|
|
|
|
|
attr5: null,
|
|
|
|
|
attr6: null,
|
|
|
|
|
createBy: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateBy: null,
|
|
|
|
|