diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts
index 4d4447c..2cc8e55 100644
--- a/src/i18n/lang/cn.ts
+++ b/src/i18n/lang/cn.ts
@@ -314,9 +314,11 @@ export default {
product_item3: '半成品空调/洗衣机下线',
product_item4: '半成品门体上线',
product_item5: '半成品箱体上线',
+ LocationInventory: '库位盘点',
//成品下线
product_Location: '库位',
+ LocationScanned: '库位已扫',
product_barCode: '条码',
barcode: '请输入条码',
product_TransferCar: '周转车',
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts
index 8b03c3f..ee35337 100644
--- a/src/i18n/lang/en.ts
+++ b/src/i18n/lang/en.ts
@@ -275,8 +275,10 @@ export default {
//移库
Warehouse_QueryCriteria: 'Query criteria',
Warehouse_TransferOrderNo: 'Transfer order No',
+ LocationInventory: 'Location inventory',
Warehouse_TransferDetails: 'Transfer detail',
Warehouse_OrderNo: 'Order No',
+ LocationScanned: 'Location scanned',
Warehouse_OriginalLocation: 'Original Loc',
code: 'code',
Warehouse_TargetLocation: 'Target Loc',
diff --git a/src/pages.json b/src/pages.json
index d745c1f..523d6de 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -33,6 +33,14 @@
"navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一
}
},
+ {
+ "path": "pages/product/warehouse/LocationInventory/index",
+ "style": {
+ "navigationBarTitleText": "库位盘点",
+ "navigationStyle": "custom", // 隐藏系统导航栏
+ "navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一
+ }
+ },
{
"path": "pages/product/outbound/index",
"style": {
diff --git a/src/pages/product/warehouse/LocationInventory/index.vue b/src/pages/product/warehouse/LocationInventory/index.vue
index e69de29..2dd349e 100644
--- a/src/pages/product/warehouse/LocationInventory/index.vue
+++ b/src/pages/product/warehouse/LocationInventory/index.vue
@@ -0,0 +1,304 @@
+
+
+
+
+
+
+
+ {{ $t('message.code') }}
+
+
+
+ {{ $t('message.Query') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('message.product_Confirm') }}
+
+
+ {{ $t('message.po_Return') }}
+
+
+
+
+
+
+
diff --git a/src/pages/product/warehouse/LocationInventory/model.ts b/src/pages/product/warehouse/LocationInventory/model.ts
index e69de29..33465ef 100644
--- a/src/pages/product/warehouse/LocationInventory/model.ts
+++ b/src/pages/product/warehouse/LocationInventory/model.ts
@@ -0,0 +1,90 @@
+import { Action, getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
+import store from '@/store';
+import http from '@/utils/request';
+import { url } from '@/utils/url';
+import { session } from '@/store/modules/session';
+// import { page } from '@/utils/page';
+import vm from '@/main';
+
+class OrderInInfo {
+ productDescZh?: string;
+ qty?: string;
+ custCode?: string;
+ custCodeName?: string;
+ productCode?: string;
+ locCode?: string;
+ costCenter?: string;
+}
+
+@Module({
+ namespaced: true,
+ dynamic: true,
+ store,
+ name: 'product.warehouse.wholeCollect',
+})
+export class wholeCollect extends VuexModule {
+ WlList = [];
+ code: any = '';
+ recordsList: any = [];
+ choiceCodeList: any = [];
+ dnNo = '';
+ orderInInfo: OrderInInfo = new OrderInInfo();
+ modelList: any = [];
+ status: any = '';
+
+ @MutationAction
+ async queryLocation() {
+ const result: any = await http.get(url.warehouse.wholeTransfer.list, {
+ params: {
+ factoryCode: session.factoryCode,
+ loginName: session.loginName,
+ },
+ });
+ // console.log('库位数据',result)
+ const WlList = result.data.map((_: any) => ({
+ label: _.locationCode,
+ value: _.locationCode,
+ }));
+ return { WlList };
+ }
+
+ @MutationAction
+ async queryScrapList(param: any) {
+ const res: any = await http.post(url.warehouse.LocationInventory.list, param);
+ const code = res.code;
+ const modelList = res.data;
+ return { code, modelList };
+ }
+ /**
+ * 查询单号
+ * 查询DN单号
+ * @param dnNo
+ */
+ @MutationAction
+ async getProductCode(params: any) {
+ const res: any = await http.post(url.warehouse.LocationInventory.content, params);
+ const code = res.code;
+ console.log('resssss', res);
+ return { code };
+ }
+
+ @MutationAction
+ async onTakeoutConfirm(params: any) {
+ const records: any = await http.post(url.warehouse.LocationInventory.commit, params);
+ const status = records.data.status;
+ return { status };
+ }
+
+ @Action({ commit: 'updateCheckedOrderInInfoListKw' })
+ async changeOrderInLocation(kw: string) {
+ await http.post('/wmspda/material/orderin/enter', {
+ loginName: session.loginName,
+ warehouseCode: '',
+ factoryCode: session.factoryCode,
+ locationCode: kw,
+ });
+ return kw;
+ }
+}
+
+export default getModule(wholeCollect);
diff --git a/src/pages/product/warehouse/MaterialInventory/index.vue b/src/pages/product/warehouse/MaterialInventory/index.vue
index 418fb2e..c96b9e3 100644
--- a/src/pages/product/warehouse/MaterialInventory/index.vue
+++ b/src/pages/product/warehouse/MaterialInventory/index.vue
@@ -143,6 +143,12 @@ export default class ProductCheckReceipt extends BasePage {
title: this.$t('message.scrapForm') as string,
});
}
+ if (!this.form.barcode) {
+ uni.showToast({
+ icon: 'none',
+ title: this.$t('message.barcode') as string,
+ });
+ }
let params = {
factoryCode: session.factoryCode,
user: session.loginName,
@@ -163,9 +169,10 @@ export default class ProductCheckReceipt extends BasePage {
title: this.$t('message.product_Tip8') as string,
});
this.total += 1;
- this.model.modelList.forEach((item: any, index: any) => {
+ this.model.modelList.forEach((item: any) => {
if (item.productCode == this.wl.value) {
- this.model.modelList[index].spQty += 1;
+ item.spQty += 1;
+ this.Some = item;
}
});
this.form.barcode = '';
diff --git a/src/pages/product/warehouse/wholeTransfer/Local-details.vue b/src/pages/product/warehouse/wholeTransfer/Local-details.vue
index d2ebbfd..ec31dda 100644
--- a/src/pages/product/warehouse/wholeTransfer/Local-details.vue
+++ b/src/pages/product/warehouse/wholeTransfer/Local-details.vue
@@ -9,7 +9,7 @@
-
+
{{ $t('message.Query') }}
@@ -33,7 +33,7 @@ export default class RawReceiptDetail extends BasePage {
this.generate();
}
async generate() {
- if (model.userDefined4 == '') {
+ if (model.userDefined == '') {
uni.showToast({
icon: 'none',
title: this.$t('message._tips6') as any,
@@ -43,7 +43,7 @@ export default class RawReceiptDetail extends BasePage {
let person = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any);
let content = {
loginName: person.session.user.loginName,
- cpRef4: model.userDefined4,
+ cpRef4: model.userDefined,
};
await this.model.querydetaildlist(content);
let arr = this.model.detailedList;
diff --git a/src/pages/product/warehouse/wholeTransfer/index.vue b/src/pages/product/warehouse/wholeTransfer/index.vue
index 1cb685c..8d73b87 100644
--- a/src/pages/product/warehouse/wholeTransfer/index.vue
+++ b/src/pages/product/warehouse/wholeTransfer/index.vue
@@ -10,7 +10,7 @@
-
+
{{ $t('message.generate') }}
@@ -131,7 +131,7 @@ export default class productCheckReceipt extends BasePage {
onSubmit() {
this.$form.validate(async (valid: boolean) => {
if (!valid) return;
- if (model.userDefined4 == ' ' || model.userDefined4.length == 0) {
+ if (model.userDefined == ' ' || model.userDefined.length == 0) {
uni.showToast({
icon: 'none',
title: this.$t('message.LibraryCode') as string,
@@ -169,7 +169,7 @@ export default class productCheckReceipt extends BasePage {
orderType: '0',
keepBy: session.loginName as string,
factoryCode: session.factoryCode as string,
- userDefined4: model.userDefined4,
+ userDefined4: model.userDefined,
},
];
await this.model.onTakeoutConfirm(orderlist);
diff --git a/src/pages/product/warehouse/wholeTransfer/model.ts b/src/pages/product/warehouse/wholeTransfer/model.ts
index dde70b0..798a8bf 100644
--- a/src/pages/product/warehouse/wholeTransfer/model.ts
+++ b/src/pages/product/warehouse/wholeTransfer/model.ts
@@ -27,7 +27,7 @@ export class wholeTransfer extends VuexModule {
* 库位地点列表
*/
WlList = [];
- userDefined4 = '';
+ userDefined: any = '';
detailedList: any;
code = '';
/**
@@ -108,10 +108,10 @@ export class wholeTransfer extends VuexModule {
@MutationAction
async empty() {
const orderInInfo: any = [];
- const userDefined4 = '';
+ const userDefined = '';
const WlList = [];
const code = '';
- return { orderInInfo, userDefined4, WlList, code };
+ return { orderInInfo, userDefined, WlList, code };
}
@MutationAction
async onTakeoutConfirm(list: any) {
@@ -123,8 +123,8 @@ export class wholeTransfer extends VuexModule {
@MutationAction
async getCpMoveBatchNo(loginName: any) {
let res: any = await http.post(url.warehouse.rowTransfer.getCode, loginName);
- let userDefined4 = res.data;
- return { userDefined4 };
+ let userDefined: any = res.data;
+ return { userDefined };
}
//查询明细
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
diff --git a/src/utils/page.ts b/src/utils/page.ts
index 3569f5f..0ff1b0a 100644
--- a/src/utils/page.ts
+++ b/src/utils/page.ts
@@ -47,6 +47,9 @@ export const page = {
MaterialInventory: {
index: '/pages/product/warehouse/MaterialInventory/index',
},
+ LocationInventory: {
+ index: '/pages/product/warehouse/LocationInventory/index',
+ },
wholeLnventory: {
index: '/pages/product/warehouse/wholeLnventory/index',
},
diff --git a/src/utils/url.ts b/src/utils/url.ts
index 98f13e4..efba2a8 100644
--- a/src/utils/url.ts
+++ b/src/utils/url.ts
@@ -204,6 +204,11 @@ export const url = {
content: '/wmspda/fg/inventoryUploadSn',
commit: '/wmspda/fg/completePd',
},
+ LocationInventory: {
+ list: '/wmspda/fg/findMaterialByPddNoKw',
+ content: '/wmspda/fg/inventoryUploadSn',
+ commit: '/wmspda/fg/completePd',
+ },
wholeTransfer: {
list: '/wmspda/fg/getMdLocation',
content: '/wmspda/fg/getMaterialByCode',