|
|
|
@ -32,12 +32,8 @@ class OrderInInfo {
|
|
|
|
|
name: "raw.ingoods.dnReceipt",
|
|
|
|
|
})
|
|
|
|
|
export class ReceiptModule extends VuexModule {
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
// 是否有
|
|
|
|
|
isState = true;
|
|
|
|
|
>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f
|
|
|
|
|
sendSpot = "";
|
|
|
|
|
/**
|
|
|
|
|
* sap库存地点列表
|
|
|
|
@ -168,117 +164,122 @@ export class ReceiptModule extends VuexModule {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
=======
|
|
|
|
|
* 查询单号
|
|
|
|
|
* 查询盘点单号
|
|
|
|
|
* @param pddNo
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async rawMaterialInventoryCheckRaw(pddNo: string) {
|
|
|
|
|
|
|
|
|
|
const { msg }: any = await http.post(url.material.rawMaterialInventory.checkRaw, {
|
|
|
|
|
pddNo,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
});
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 扫描物料号检查
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawProductCode(form:any) {
|
|
|
|
|
|
|
|
|
|
const { code,msg }: any = await http.post(url.material.rawMaterialInventory.productCode, {
|
|
|
|
|
productCode:form.productCode,
|
|
|
|
|
pddNo:form.pddNo,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
});
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
console.log('code:::',code,msg)
|
|
|
|
|
const isState = !!+code
|
|
|
|
|
return {isState}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 新增单号、物料信息
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawCreateInfo(form:any) {
|
|
|
|
|
|
|
|
|
|
const { msg }: any = await http.post(url.material.rawMaterialInventory.createInfo, {
|
|
|
|
|
...form,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
});
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料盘点确定
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawProductComplete(form:any) {
|
|
|
|
|
|
|
|
|
|
const { msg }: any = await http.post(url.material.rawMaterialInventory.productComplete, {
|
|
|
|
|
...form,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
});
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料盘点完成
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawOrderComplete(pddNo?: string|null) {
|
|
|
|
|
|
|
|
|
|
const { msg }: any = await http.post(url.material.rawMaterialInventory.orderComplete, {
|
|
|
|
|
@Action
|
|
|
|
|
async rawMaterialInventoryCheckRaw(pddNo: string) {
|
|
|
|
|
const { msg }: any = await http.post(
|
|
|
|
|
url.material.rawMaterialInventory.checkRaw,
|
|
|
|
|
{
|
|
|
|
|
pddNo,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
});
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 扫描物料号检查
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawProductCode(form: any) {
|
|
|
|
|
const { code, msg }: any = await http.post(
|
|
|
|
|
url.material.rawMaterialInventory.productCode,
|
|
|
|
|
{
|
|
|
|
|
productCode: form.productCode,
|
|
|
|
|
pddNo: form.pddNo,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
console.log("code:::", code, msg);
|
|
|
|
|
const isState = !!+code;
|
|
|
|
|
return { isState };
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 新增单号、物料信息
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawCreateInfo(form: any) {
|
|
|
|
|
const { msg }: any = await http.post(
|
|
|
|
|
url.material.rawMaterialInventory.createInfo,
|
|
|
|
|
{
|
|
|
|
|
...form,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料盘点确定
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawProductComplete(form: any) {
|
|
|
|
|
const { msg }: any = await http.post(
|
|
|
|
|
url.material.rawMaterialInventory.productComplete,
|
|
|
|
|
{
|
|
|
|
|
...form,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料盘点完成
|
|
|
|
|
*
|
|
|
|
|
* @param {string} productCode
|
|
|
|
|
* @param {string} pddNo
|
|
|
|
|
* @memberof ReceiptModule
|
|
|
|
|
*/
|
|
|
|
|
@Action
|
|
|
|
|
async checkRawOrderComplete(pddNo?: string | null) {
|
|
|
|
|
const { msg }: any = await http.post(
|
|
|
|
|
url.material.rawMaterialInventory.orderComplete,
|
|
|
|
|
{
|
|
|
|
|
pddNo,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: msg,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f
|
|
|
|
|
* 提交看单明细
|
|
|
|
|
*/
|
|
|
|
|
@MutationAction
|
|
|
|
|