拣选台修改
This commit is contained in:
@@ -262,44 +262,49 @@ export const queryPickingPoint = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const pickingInfo = () => {
|
export const pickingInfo = () => {
|
||||||
let res = [
|
let res = {
|
||||||
{
|
taskList: [
|
||||||
"qty": 26,
|
{
|
||||||
"vehicle_code": "Z00017",
|
"qty": 26,
|
||||||
"create_time": null,
|
"vehicle_code": "Z00017",
|
||||||
"update_time": null,
|
"create_time": null,
|
||||||
"stor_code": null,
|
"update_time": null,
|
||||||
"task_type": "PK20240909006",
|
"stor_code": null,
|
||||||
"material_name": "测试物料33fdfdff测试物料33",
|
"task_type": "PK20240909006",
|
||||||
"material_code": null,
|
"material_name": "测试物料33fdfdff测试物料33",
|
||||||
"material_spec": "test_zz",
|
"material_code": null,
|
||||||
"assign_qty": 7,
|
"material_spec": "test_zz",
|
||||||
"single_weight": 15.70,
|
"assign_qty": 7,
|
||||||
"theory_qty": 0,
|
"single_weight": 15.70,
|
||||||
"actual_weight": 0,
|
"theory_qty": 0,
|
||||||
"remaining_qty": 26,
|
"actual_weight": 0,
|
||||||
"form_data": "{\"stor_code\": \"FStockId\", \"point_code\": \"1311\", \"product_area\": \"A1\", \"vehicle_code\": \"Z00017\"}",
|
"remaining_qty": 26,
|
||||||
"product_area": "A1"
|
"form_data": "{\"stor_code\": \"FStockId\", \"point_code\": \"1311\", \"product_area\": \"A1\", \"vehicle_code\": \"Z00017\"}",
|
||||||
},
|
"product_area": "A1"
|
||||||
{
|
},
|
||||||
"qty": 200,
|
{
|
||||||
"vehicle_code": "X00021",
|
"qty": 200,
|
||||||
"create_time": null,
|
"vehicle_code": "X00021",
|
||||||
"update_time": null,
|
"create_time": null,
|
||||||
"stor_code": null,
|
"update_time": null,
|
||||||
"task_type": "PK20241017002",
|
"stor_code": null,
|
||||||
"material_name": "测试物料",
|
"task_type": "PK20241017002",
|
||||||
"material_code": null,
|
"material_name": "测试物料",
|
||||||
"material_spec": "test_zz",
|
"material_code": null,
|
||||||
"assign_qty": 4,
|
"material_spec": "test_zz",
|
||||||
"single_weight": 15.70,
|
"assign_qty": 4,
|
||||||
"theory_qty": 0,
|
"single_weight": 15.70,
|
||||||
"actual_weight": 0,
|
"theory_qty": 0,
|
||||||
"remaining_qty": 200,
|
"actual_weight": 0,
|
||||||
"form_data": "{\"stor_code\": \"FStockId\", \"point_code\": \"1311\", \"product_area\": \"A1\", \"vehicle_code\": \"X00021\"}",
|
"remaining_qty": 200,
|
||||||
"product_area": "A1"
|
"form_data": "{\"stor_code\": \"FStockId\", \"point_code\": \"1311\", \"product_area\": \"A1\", \"vehicle_code\": \"X00021\"}",
|
||||||
|
"product_area": "A1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
pointInfo: {
|
||||||
|
is_used: false
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -193,22 +193,26 @@ export default {
|
|||||||
},
|
},
|
||||||
async _pickingInfo () {
|
async _pickingInfo () {
|
||||||
let res = await pickingInfo(this.value)
|
let res = await pickingInfo(this.value)
|
||||||
this.itemData = [...res]
|
if (res) {
|
||||||
|
if (res.taskList) {
|
||||||
|
this.itemData = [...res.taskList]
|
||||||
|
}
|
||||||
|
if (res.pointInfo) {
|
||||||
|
this.isUsed = res.pointInfo.is_used
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async _queryPickingPoint () {
|
async _queryPickingPoint () {
|
||||||
let res = await queryPickingPoint()
|
let res = await queryPickingPoint()
|
||||||
this.options = [...res]
|
this.options = [...res]
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
this.value = res[0].code
|
this.value = res[0].code
|
||||||
this.isUsed = res[0].is_used
|
|
||||||
this._pickingInfo()
|
this._pickingInfo()
|
||||||
this.timerFun(this._pickingInfo, this.interTime)()
|
this.timerFun(this._pickingInfo, this.interTime)()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
change (e) {
|
change (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
const item = this.options.find(item => item.code === e)
|
|
||||||
this.isUsed = item.is_used
|
|
||||||
if (this.intervalId !== null) {
|
if (this.intervalId !== null) {
|
||||||
clearTimeout(this.intervalId)
|
clearTimeout(this.intervalId)
|
||||||
this.intervalId = null
|
this.intervalId = null
|
||||||
|
|||||||
Reference in New Issue
Block a user