解包退料
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user