人工叫料
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# 注意事项
|
||||
+ 原生APP云打包使用自有证书
|
||||
+ 证书别名:testalias
|
||||
+ 接口在线地址:(https://apifox.com/apidoc/shared-e9d4798e-2db1-493d-a0cb-7a0e881c4bd6/api-160097540)
|
||||
+ app图标为lms
|
||||
+ 接口在线地址:http://47.98.105.245:8001/project/21/interface/api/cat_122
|
||||
+ 接口在线地址:(https://s.apifox.cn/9f222323-1b67-426d-856c-e4a4006fdbed/api-344691545)
|
||||
@@ -99,7 +99,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': !this.index || !this.index2 || !this.currentData.material_code || !this.index4}" :disabled="disabled" @tap="_checkoutbillcallMaterial">确认</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': !this.index2 || !this.index4 || JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_checkoutbillcallMaterial">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -190,12 +190,12 @@
|
||||
},
|
||||
async _checkoutbillcallMaterial () {
|
||||
this.disabled = true
|
||||
if (!this.index || !this.index2 || !this.currentData.material_code || !this.index4) {
|
||||
if (!this.index2 || !this.index4 || JSON.stringify(this.currentData) === '{}') {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await checkoutbillcallMaterial(this.index2, this.index, this.currentData.material_code, this.index4, this.currentData.supp_code, this.currentData.supp_name)
|
||||
let res = await checkoutbillcallMaterial(this.index2, this.index4, this.currentData.storagevehicleext_id)
|
||||
if (res.code === '200') {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -263,9 +263,9 @@ export const getPointCodeByVehicleCode = (vcode) => request({
|
||||
|
||||
// 手工叫料/退料
|
||||
// 手工叫料
|
||||
export const checkoutbillcallMaterial = (dcode, scode, mcode, type, spcode, spname) => request({
|
||||
export const checkoutbillcallMaterial = (dcode, type, id) => request({
|
||||
url:'api/checkoutbill/callMaterial',
|
||||
data: {device_code: dcode, struct_code: scode, material_code: mcode, task_type: type, supp_code: spcode, supp_name: spname}
|
||||
data: {device_code: dcode, task_type: type, storagevehicleext_id: id}
|
||||
})
|
||||
// 手工退料
|
||||
export const checkoutbillBackMaterial = (code, type, qty) => request({
|
||||
|
||||
@@ -396,4 +396,102 @@ export const getStructCount = (code) => {
|
||||
z: 300
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
export const getPdaCallEquipment = () => {
|
||||
let res = {
|
||||
data: [{text: '1', value: '1'}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const getPdaCallMaterialSect = (pcode) => {
|
||||
let res = {
|
||||
data: [{text: '2', value: '2'}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const getStructivtByMaterialAndSectCode = (scode, mcode) => {
|
||||
let res = {
|
||||
"code": "200",
|
||||
"message": "操作成功!",
|
||||
"data": [
|
||||
{
|
||||
"supp_code": "hk",
|
||||
"create_time": "2025-08-29 16:34:28",
|
||||
"supp_name": "海康",
|
||||
"material_model": "加钠",
|
||||
"remark": null,
|
||||
"storagevehicle_code": "LT0060",
|
||||
"stor_name": "料桶缓存库",
|
||||
"qty": 10.000,
|
||||
"qty_unit_name": "Pcs",
|
||||
"pcsn": "pc",
|
||||
"struct_name": "T95",
|
||||
"sect_name": "超细区",
|
||||
"frozen_qty": 0.000,
|
||||
"struct_code": "T95",
|
||||
"material_name": "钨粉2",
|
||||
"storagevehicleext_id": "1961346700035624960",
|
||||
"material_code": "wu2"
|
||||
},
|
||||
{
|
||||
"supp_code": null,
|
||||
"create_time": "2025-08-14 15:52:31",
|
||||
"supp_name": null,
|
||||
"material_model": null,
|
||||
"remark": null,
|
||||
"storagevehicle_code": "LT0011",
|
||||
"stor_name": "料桶缓存库",
|
||||
"qty": 1.000,
|
||||
"qty_unit_name": "Pcs",
|
||||
"pcsn": "空料桶入库",
|
||||
"struct_name": "A11",
|
||||
"sect_name": "超细区",
|
||||
"frozen_qty": 0.000,
|
||||
"struct_code": "A11",
|
||||
"material_name": "空料桶",
|
||||
"storagevehicleext_id": "1955900325860872192",
|
||||
"material_code": "KLT001"
|
||||
},
|
||||
{
|
||||
"supp_code": null,
|
||||
"create_time": "2025-08-14 15:50:52",
|
||||
"supp_name": null,
|
||||
"material_model": "加钠",
|
||||
"remark": null,
|
||||
"storagevehicle_code": "LT0076",
|
||||
"stor_name": "料桶缓存库",
|
||||
"qty": 10.000,
|
||||
"qty_unit_name": "Pcs",
|
||||
"pcsn": "退料",
|
||||
"struct_name": "T97",
|
||||
"sect_name": "超细区",
|
||||
"frozen_qty": 0.000,
|
||||
"struct_code": "T97",
|
||||
"material_name": "钨粉2",
|
||||
"storagevehicleext_id": "1955899913837613056",
|
||||
"material_code": "wu2"
|
||||
},
|
||||
{
|
||||
"supp_code": null,
|
||||
"create_time": "2025-08-14 10:21:30",
|
||||
"supp_name": null,
|
||||
"material_model": null,
|
||||
"remark": null,
|
||||
"storagevehicle_code": "LT0080",
|
||||
"stor_name": "料桶缓存库",
|
||||
"qty": 1.000,
|
||||
"qty_unit_name": "Pcs",
|
||||
"pcsn": "空料桶入库",
|
||||
"struct_name": "T96",
|
||||
"sect_name": "超细区",
|
||||
"frozen_qty": 1.000,
|
||||
"struct_code": "T96",
|
||||
"material_name": "空料桶",
|
||||
"storagevehicleext_id": "1955817020029276160",
|
||||
"material_code": "KLT001"
|
||||
}
|
||||
]
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user