This commit is contained in:
2023-06-12 16:47:41 +08:00
parent 478a5b217c
commit 52604a1468
6 changed files with 31 additions and 49 deletions

View File

@@ -45,20 +45,20 @@
<table class="filter-table">
<tr>
<!-- <th width="4%"></th> -->
<th width="6%">工单号</th>
<th width="6%">设备</th>
<th width="6%">顺序号</th>
<th width="5%">班次</th>
<th width="10%">物料名称</th>
<th width="8%">物料规格</th>
<th width="7%">工单号</th>
<th width="8%">设备</th>
<th width="8%">顺序号</th>
<th width="7%">班次</th>
<th width="12%">物料名称</th>
<th width="10%">物料规格</th>
<th width="10%">开始时间</th>
<th width="10%">结束时间</th>
<th width="7%">电气数量</th>
<th width="7%">上报合格数</th>
<th width="7%">上报报废数</th>
<th width="7%">上报报修数</th>
<th width="6%">操作工</th>
<th width="5%">状态</th>
<!-- <th width="7%">上报报废数</th>
<th width="7%">上报报修数</th> -->
<th width="7%">操作工</th>
<th width="7%">状态</th>
</tr>
<tr v-for="e in dataList" :key="e.macoperate_id" :class="{'selected_icon': pkId === e.macoperate_id}" @click="toRadio(e)">
<!-- <td>
@@ -74,8 +74,8 @@
<td>{{e.operatetime_end}}</td>
<td>{{ e.dq_report_qty }}</td>
<td>{{e.report_qty}}</td>
<td>{{e.nok_qty}}</td>
<td>{{ e.repare_qty }}</td>
<!-- <td>{{e.nok_qty}}</td>
<td>{{ e.repare_qty }}</td> -->
<td>{{ e.produce_person_name }}</td>
<td>{{ ['生成','报工','审核'][Number(e.report_status) - 1] }}</td>
</tr>
@@ -94,20 +94,6 @@
<input type="number" class="form_item__input" v-model="reportQty">
</div>
</div>
<div class="form_item">
<div class="form_item__label">报废数量</div>
<div class="form_item__content">
<input type="number" class="form_item__input" v-model="nokQty">
</div>
</div>
</div>
<div class="form">
<div class="form_item">
<div class="form_item__label">报修数量</div>
<div class="form_item__content">
<input type="number" class="form_item__input" v-model="repareQty">
</div>
</div>
</div>
</div>
</jxDialog>
@@ -133,9 +119,9 @@ export default {
dataList: [],
pkId: '',
pkObj: {},
reportQty: '',
nokQty: '',
repareQty: ''
reportQty: ''
// nokQty: '',
// repareQty: ''
}
},
computed: {
@@ -193,8 +179,8 @@ export default {
return
}
this.reportQty = this.pkObj.report_qty
this.nokQty = this.pkObj.nok_qty
this.repareQty = this.pkObj.repare_qty
// this.nokQty = this.pkObj.nok_qty
// this.repareQty = this.pkObj.repare_qty
this.$refs.child.active = true
},
toSureDialog () {
@@ -202,7 +188,7 @@ export default {
},
async _updateReport () {
try {
let res = await updateReport(this.pkId, this.reportQty, this.nokQty, this.repareQty)
let res = await updateReport(this.pkId, this.reportQty)
this.toast(res.message)
this.disabled1 = false
this.$refs.child.active = false