清洗下料
This commit is contained in:
@@ -343,11 +343,7 @@ export const washWashVechileInfo = (area) => post('api/pda/wash/washVechileInfo'
|
|||||||
product_area: area
|
product_area: area
|
||||||
})
|
})
|
||||||
// 1.2确认下料
|
// 1.2确认下料
|
||||||
export const washWashFinish = (id, wegiht, code) => post('api/pda/wash/washFinish', {
|
export const washWashFinish = (obj) => post('api/pda/wash/washFinish', obj)
|
||||||
task_id: id,
|
|
||||||
wegiht: wegiht,
|
|
||||||
vechile_code: code
|
|
||||||
})
|
|
||||||
// 1.3强制完成
|
// 1.3强制完成
|
||||||
export const washWashTaskFinish = (id) => post('api/pda/wash/washTaskFinish', {
|
export const washWashTaskFinish = (id) => post('api/pda/wash/washTaskFinish', {
|
||||||
task_id: id
|
task_id: id
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
<th>物料编号</th>
|
<th>物料编号</th>
|
||||||
<th>物料规格</th>
|
<th>物料规格</th>
|
||||||
<th>上料重量(kg)</th>
|
<th>上料重量(kg)</th>
|
||||||
|
<td>物料单重(g)</td>
|
||||||
<th>物料名称</th>
|
<th>物料名称</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -58,6 +59,7 @@
|
|||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
<td>{{e.material_spec}}</td>
|
<td>{{e.material_spec}}</td>
|
||||||
<td>{{e.material_qty | unitskg}}</td>
|
<td>{{e.material_qty | unitskg}}</td>
|
||||||
|
<td><input type="number" class="input" v-model="e.net_weight" @input="handleInput(e)"></td>
|
||||||
<td>{{ e.material_name }}</td>
|
<td>{{ e.material_name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -119,6 +121,9 @@ export default {
|
|||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.pkId = ''
|
this.pkId = ''
|
||||||
this.pkObj = {}
|
this.pkObj = {}
|
||||||
|
res.content.map(el => {
|
||||||
|
this.$set(el, 'net_weight', '')
|
||||||
|
})
|
||||||
this.dataList = [...res.content]
|
this.dataList = [...res.content]
|
||||||
if (this.dataList.length > 0) {
|
if (this.dataList.length > 0) {
|
||||||
this.sep_on = this.dataList[0].sep_on
|
this.sep_on = this.dataList[0].sep_on
|
||||||
@@ -165,7 +170,11 @@ export default {
|
|||||||
},
|
},
|
||||||
async __washWashFinish () {
|
async __washWashFinish () {
|
||||||
try {
|
try {
|
||||||
let res = await washWashFinish(this.pkId, this.weight, this.vechile_code)
|
let obj = {}
|
||||||
|
obj = this.pkObj
|
||||||
|
this.$set(obj, 'wegiht', this.weight)
|
||||||
|
this.$set(obj, 'vechile_code', this.vechile_code)
|
||||||
|
let res = await washWashFinish(obj)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.toast(res.msg)
|
this.toast(res.msg)
|
||||||
this._washWashTasks()
|
this._washWashTasks()
|
||||||
@@ -258,6 +267,9 @@ export default {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled5 = false
|
this.disabled5 = false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
handleInput (e) {
|
||||||
|
e.net_weight = e.net_weight.indexOf('.') > -1 ? e.net_weight.slice(0, e.net_weight.indexOf('.') + 4) : e.net_weight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user