g
This commit is contained in:
@@ -175,6 +175,8 @@
|
||||
this.pkId = ''
|
||||
this.currentData = {}
|
||||
this.index = ''
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
},
|
||||
toSearch () {
|
||||
if (this.code) {
|
||||
@@ -215,7 +217,6 @@
|
||||
}
|
||||
this.show = false
|
||||
this.currentData = this.pkObj
|
||||
this.code = this.currentData.code
|
||||
this.val1 = this.currentData.qty
|
||||
this.val2 = this.currentData.vehicle_code
|
||||
if(this.currentData.stor_code !== '' && this.currentData.stor_code !== null && this.currentData.stor_code !== undefined) {
|
||||
@@ -225,7 +226,7 @@
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if (this.currentData.vehicle_code.charAt(0).toUpperCase() === 'T') {
|
||||
if (this.val2.charAt(0).toUpperCase() === 'T') {
|
||||
this.index ='FStockPallet'
|
||||
} else {
|
||||
this.index ='FStockId'
|
||||
@@ -276,7 +277,9 @@
|
||||
let obj = Object.assign(this.currentData, {qty: this.val1, vehicle_code: this.val2, stor_code: this.index, form_type: this.index1})
|
||||
let res = await inStorageConfirm(obj)
|
||||
if (res.code === '200') {
|
||||
this.toEmpty()
|
||||
this.index = ''
|
||||
this.val1 = null
|
||||
this.val2 = null
|
||||
}
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
|
||||
@@ -284,7 +284,8 @@ export const getBillNoInfo = (id) => {
|
||||
ownerId_id: 'OwnerId_Id',
|
||||
single_weight: '500',
|
||||
pcsn: 'pcsn',
|
||||
vehicle_code: 'T001'
|
||||
vehicle_code: 'T001',
|
||||
unit_id: 'unit_id'
|
||||
},
|
||||
{
|
||||
code: '订单号2',
|
||||
@@ -296,7 +297,9 @@ export const getBillNoInfo = (id) => {
|
||||
stockOrgId: 'StockOrgId',
|
||||
ownerId_id: 'OwnerId_Id',
|
||||
single_weight: '500',
|
||||
pcsn: 'pcsn'
|
||||
pcsn: 'pcsn',
|
||||
vehicle_code: '0001',
|
||||
unit_id: 'unit_id'
|
||||
}
|
||||
]
|
||||
return res
|
||||
@@ -304,4 +307,9 @@ export const getBillNoInfo = (id) => {
|
||||
export const inStorageOrder = () => {
|
||||
let res = [{value: '1', text: 'a'},{"text": "直接调拨单", "value": "STK_TransferDirect"},{"text": "简单领料申请单","value": "ka7c19edf9d4b4b39b8cc4a06802163b0"},{"text": "其他出库单", "value": "STK_MisDelivery"}]
|
||||
return res
|
||||
}
|
||||
|
||||
export const inStorageConfirm = () => {
|
||||
let res = {code: '200'}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user