解包退料
This commit is contained in:
@@ -58,6 +58,8 @@
|
||||
<th>工单状态</th>
|
||||
<th>开工人</th>
|
||||
<th>创建者</th>
|
||||
<th>计划重量</th>
|
||||
<th>实际重量</th>
|
||||
<th>计划量</th>
|
||||
<th>实际量</th>
|
||||
</tr>
|
||||
@@ -70,6 +72,8 @@
|
||||
<td>{{e.workorder_status}}</td>
|
||||
<td>{{e.operator}}</td>
|
||||
<td>{{e.create_name}}</td>
|
||||
<td>{{e.plan_weight}}</td>
|
||||
<td>{{e.real_weight}}</td>
|
||||
<td>{{e.plan_qty}}</td>
|
||||
<td>{{e.real_qty}}</td>
|
||||
</tr>
|
||||
@@ -162,6 +166,7 @@
|
||||
},
|
||||
selectChange2 (e) {
|
||||
this.index2 = e
|
||||
this.seachList()
|
||||
},
|
||||
handleChange (e) {
|
||||
if (e) {
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {regionList, pointList, getOrderList, jbReturnMaterial} from '@/utils/getData4.js'
|
||||
import {regionList, pointList, getOrderList, jbGetVehicleCode, jbReturnMaterial} from '@/utils/getData4.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -141,6 +141,9 @@
|
||||
},
|
||||
selectChange2 (e) {
|
||||
this.index2 = e
|
||||
if (e) {
|
||||
this._jbGetVehicleCode()
|
||||
}
|
||||
},
|
||||
handleChange (e) {
|
||||
if (e) {
|
||||
@@ -192,6 +195,12 @@
|
||||
this.pkId = this.pkId === e.workorder_id ? '' : e.workorder_id
|
||||
this.pkObj = this.pkId === e.workorder_id ? e : {}
|
||||
},
|
||||
async _jbGetVehicleCode () {
|
||||
let res = await jbGetVehicleCode(this.index2)
|
||||
if (res.code === '200') {
|
||||
this.val1 = res.data.tp_code
|
||||
}
|
||||
},
|
||||
async _jbReturnMaterial () {
|
||||
this.disabled = true
|
||||
if (!this.index || !this.index2 || !this.val1 || !this.pkId) {
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
<th>工单状态</th>
|
||||
<th>开工人</th>
|
||||
<th>创建者</th>
|
||||
<th>计划重量</th>
|
||||
<th>实际重量</th>
|
||||
<th>计划量</th>
|
||||
<th>实际量</th>
|
||||
</tr>
|
||||
@@ -44,6 +46,8 @@
|
||||
<td>{{e.workorder_status}}</td>
|
||||
<td>{{e.operator}}</td>
|
||||
<td>{{e.create_name}}</td>
|
||||
<td>{{e.plan_weight}}</td>
|
||||
<td>{{e.real_weight}}</td>
|
||||
<td>{{e.plan_qty}}</td>
|
||||
<td>{{e.real_qty}}</td>
|
||||
</tr>
|
||||
@@ -132,6 +136,7 @@
|
||||
},
|
||||
selectChange2 (e) {
|
||||
this.index2 = e
|
||||
this.seachList()
|
||||
},
|
||||
seachList () {
|
||||
if (!this.index2) {
|
||||
|
||||
@@ -172,3 +172,8 @@ export const jbReturnMaterial = (area, pcode, wid) => request({
|
||||
url:'api/pda/jb/jbReturnMaterial',
|
||||
data: {area: area, point_code: pcode, workorder_id: wid}
|
||||
})
|
||||
// 获取解包点位的托盘编码
|
||||
export const jbGetVehicleCode = (pcode) => request({
|
||||
url:'api/pda/jb/jbGetVehicleCode',
|
||||
data: {point_code: pcode}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user