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