解包退料

This commit is contained in:
2025-08-04 11:07:58 +08:00
parent ccf52246cb
commit 9f2f0a58f3
4 changed files with 25 additions and 1 deletions

View File

@@ -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) {