diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts
index 5e7ae52..45aa4c2 100644
--- a/src/i18n/lang/cn.ts
+++ b/src/i18n/lang/cn.ts
@@ -557,5 +557,13 @@ export default {
Reasonname: '原因名称',
responsiblepersonname: '责任人名称',
Linesideinventory: '线边库盘点',
+ stoOutbound: 'STO出库',
+ stoOrderNo: 'STO单号',
+ stoLine: 'STO行项目',
+ stoPleaseScan: '请扫描STO单号',
+ stoPleaseInput: '请输入STO单号',
+ reqQty: '计划数量',
+ finQty: '扫描数量',
+ confirm: '确认',
},
};
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts
index 3b3676a..352f903 100644
--- a/src/i18n/lang/en.ts
+++ b/src/i18n/lang/en.ts
@@ -556,5 +556,13 @@ export default {
Reasonname: 'Reason name',
responsiblepersonname: 'Name of responsible person',
Linesideinventory: 'Line side inventory',
+ stoOutbound: 'STO Outbound',
+ stoOrderNo: 'STO No',
+ stoLine: 'STO Item',
+ stoPleaseScan: 'Please scan STO',
+ stoPleaseInput: 'Please input STO No',
+ reqQty: 'Req Qty',
+ finQty: 'Scan Qty',
+ confirm: 'Confirm',
},
};
diff --git a/src/i18n/lang/ru.ts b/src/i18n/lang/ru.ts
index ddf9abd..d2a3f5f 100644
--- a/src/i18n/lang/ru.ts
+++ b/src/i18n/lang/ru.ts
@@ -556,5 +556,13 @@ export default {
Reasonname: 'Причина называется',
responsiblepersonname: 'Имя ответственного лица',
Linesideinventory: 'инвентаризация бокового хранилища',
+ stoOutbound: 'Скачать STO',
+ stoOrderNo: 'Номер STO',
+ stoLine: 'Строка STO',
+ stoPleaseScan: 'Просканируйте номер STO.',
+ stoPleaseInput: 'Введите номер STO.',
+ reqQty: 'Запланированная численность',
+ finQty: 'Количество сканирования',
+ confirm: 'Подтверждениe',
},
};
diff --git a/src/pages.json b/src/pages.json
index 861359d..8f5ade7 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1290,6 +1290,14 @@
"navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一
}
},
+ {
+ "path": "pages/product/stoOutbound/index",
+ "style": {
+ "navigationBarTitleText": "成品STO出库",//成品sto出库(越南按照sto单号出库)
+ "navigationStyle": "custom", // 隐藏系统导航栏
+ "navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一
+ }
+ },
{
"path": "pages/demo/index",
"style": {
diff --git a/src/pages/product/stoOutbound/index.vue b/src/pages/product/stoOutbound/index.vue
new file mode 100644
index 0000000..b51c40a
--- /dev/null
+++ b/src/pages/product/stoOutbound/index.vue
@@ -0,0 +1,478 @@
+
+
+
+
+
+
+
+
+ {{ $t('message.stoOrderNo') }}
+
+
+
+ {{ $t('message.Query') }}
+
+
+
+
+
+ {{ $t('message.stoLine') }}
+
+
+
+
+
+
+ {{ $t('message.matcode') }}
+ {{ TheItem.matCode }}
+
+
+
+
+
+ {{ $t('message.po_MaterielDes') }}
+ {{ TheItem.matDesc }}
+
+
+
+
+
+ {{ $t('message.reqQty') }}
+
+
+
+ {{ $t('message.finQty') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('message.confirm') }}
+
+
+
+ {{ $t('message.po_Return') }}
+
+
+
+
+
+
+
diff --git a/src/pages/product/stoOutbound/model.ts b/src/pages/product/stoOutbound/model.ts
new file mode 100644
index 0000000..8960eb0
--- /dev/null
+++ b/src/pages/product/stoOutbound/model.ts
@@ -0,0 +1,90 @@
+/*
+ * @Author: zhou lei
+ * @Date: 2022-10-10 15:40:04
+ * @LastEditTime: 2022-10-12 11:35:25
+ * @LastEditors: zhou lei
+ * @Description:
+ * @FilePath: \hgwms-factory-app\src\pages\product\STO-Outbound\model.ts
+ * 联系方式:910592680@qq.com 18669792120 科海达信息技术有限公司
+ */
+import { 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';
+@Module({
+ namespaced: true,
+ dynamic: true,
+ store,
+ name: 'product.STO.STO-Outbound.index',
+})
+export class ReceiptModule extends VuexModule {
+ //越南 STO出库 扫描DN单号
+ stoNoList: any = [];
+ stoItemList: any = [];
+ res: any = '';
+ @MutationAction
+ async QuerySto(stoNo: any) {
+ console.log('stoNo', stoNo);
+ const res: any = await http.post(url.outbound.stoOutbound.stoQuery, {
+ factoryCode: session.factoryCode,
+ loginName: session.loginName,
+ stoNo,
+ });
+ const stoNoList = res.data;
+ const stoItemList = [];
+ stoNoList.forEach((item: any) => {
+ const obj = {
+ value: item.stoItem, //行项目
+ lable: item.stoItem,
+ };
+ stoItemList.push(obj);
+ });
+ return { stoNoList, stoItemList };
+ }
+ //越南sto成品扫码出库
+ @MutationAction
+ async stoScan(list: any) {
+ const res: any = await http.post(url.outbound.stoOutbound.stoScan, list);
+ //const resCode = res.code;
+ return { res };
+ }
+ //越南 STO出库 查询库位
+ LocList: any = [];
+ @MutationAction
+ async QueryLoc(sendSpot: any) {
+ const res: any = await http.post(url.auth.query.queryByFactoryCodeAndWorkAreaCode, {
+ factoryCode: session.factoryCode,
+ loginName: session.loginName,
+ workArea: session.workareaCode,
+ sendSpot,
+ });
+ const LocList = [];
+ res.forEach((item: any) => {
+ const obj = {
+ value: item.locationCode,
+ lable: item.locationCode,
+ };
+ LocList.push(obj);
+ });
+ return { LocList };
+ }
+ //越南 sto确认
+ ReturnCode: any = '';
+ @MutationAction
+ async ConfirmList(list: any) {
+ const res: any = await http.post(url.outbound.stoOutbound.stoConfirm, list);
+ const ReturnCode = res.code;
+ return { ReturnCode };
+ }
+ //越南 出库提交
+ SubCode: any = '';
+ @MutationAction
+ async SubmitList(list: any) {
+ const res: any = await http.post(url.outbound.stoOutbound.stoPost, list);
+ const SubCode = res.code;
+ return { SubCode };
+ }
+}
+
+export default getModule(ReceiptModule);
diff --git a/src/utils/url.ts b/src/utils/url.ts
index 062b67e..9008c97 100644
--- a/src/utils/url.ts
+++ b/src/utils/url.ts
@@ -175,6 +175,10 @@ export const url = {
Posting: '/wmspda/fg/dnPosting',
RusPosting: '/wmspda/fg/dnPosting/russia',
stoDnProdScanDel: '/wmspda/fg/stoDnProdScanDel/russia',
+ stoQuery: '/wmspda/fg/stoOutbound/query',
+ stoScan: '/wmspda/fg/stoOutbound/scan',
+ stoConfirm: '/wmspda/fg/stoOutbound/confirm',
+ stoPost: '/wmspda/fg/stoOutbound/post',
},
},
inbound: {