diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts index b2174e2..3644efb 100644 --- a/src/i18n/lang/cn.ts +++ b/src/i18n/lang/cn.ts @@ -195,6 +195,7 @@ export default { return_Tip4: '退料数量不能大于总数', quantitys: '不能大于应退货数量', actual: '实际退货数量不等于应退货数量', + greater: '不能大于总数', receiveAStation: '接收工位', //库内主菜单 @@ -205,7 +206,9 @@ export default { Inventory: '成品盘点', raw_Inventory: '原材料盘点', Transfer: '移库码', + LibraryCode: '请生成移库码', generate: '生成', + TargetLocation: '请选择不同目标库位', RowWarehouse: '原材料库内', SemiProductZC: '半成品转储', @@ -237,6 +240,9 @@ export default { // 委外-出库 CommissionGoOut: '委外出库', + Outbound: '出库库位', + Warehousing: '入库库位', + PleaseQuantity: '请输入本次数量', CommissionedGoOutDetails: '出库明细', CommissionedGoOutNumber: '出库数量', // 委外-提示 diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 7d9761a..aafa0c9 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -228,12 +228,18 @@ export default { CommissionedThisNumber: 'quantity', CommissionedNumber: 'Receipt quantity', CommissionedEntrantDetails: 'Warehousing', + greater: 'Cannot be greater than total', + LibraryCode: 'Please change the library code', CommissionedReceiptQuantity: 'Receipt quantity', + TargetLocation: 'Please select a different target location', subcontract: 'subcontract', // 委外-出库 CommissionGoOut: 'Subcontracting issue', + Outbound: 'Outbound location', + Warehousing: 'Warehousing location', CommissionedGoOutDetails: 'Delivery details', + PleaseQuantity: 'Please enter this quantity', CommissionedGoOutNumber: 'Outbound quantity', // 委外-提示 Commission_tips1: 'Please enter the order No', diff --git a/src/pages/product/warehouse/wholeTransfer/index.vue b/src/pages/product/warehouse/wholeTransfer/index.vue index 37403c9..372d87f 100644 --- a/src/pages/product/warehouse/wholeTransfer/index.vue +++ b/src/pages/product/warehouse/wholeTransfer/index.vue @@ -1,147 +1,72 @@ - - diff --git a/src/pages/raw/warehouse/rowTransfer/model.ts b/src/pages/raw/warehouse/rowTransfer/model.ts index 2c78d2a..ce7f7fc 100644 --- a/src/pages/raw/warehouse/rowTransfer/model.ts +++ b/src/pages/raw/warehouse/rowTransfer/model.ts @@ -37,6 +37,8 @@ export class rowTransfer extends VuexModule { * 看单明细 */ orderInInfoList: OrderInInfo[] = []; + materielList = []; + code = ''; /** * 看单明细未通过明细 */ @@ -58,9 +60,15 @@ export class rowTransfer extends VuexModule { factoryCode: session.factoryCode, loginName: session.loginName, }); + console.log('records', records); + const code = records.code; const orderInInfoList = records.data.records; - console.log('获取来的数据', orderInInfoList); - return { orderInInfoList }; + const materielList = orderInInfoList.map((item: any) => ({ + label: item.productCode, + value: item.stoItem, + ...item, + })); + return { orderInInfoList, materielList, code }; } catch { uni.showToast({ icon: 'none', title: vm.$t('message.Warehouse_Tip11') as any }); } @@ -69,16 +77,14 @@ export class rowTransfer extends VuexModule { @MutationAction async onTakeoutConfirm(list: any) { const records: any = await http.post(url.warehouse.rowTransfer.commit, list); - if (records.code == 1) { - uni.showToast({ - icon: 'success', - title: 'success', - }); - // setTimeout(() => { - // uni.navigateTo({ url: page.raw.warehouse.rowTransfer.index }); - // }, 2000); - } - return {}; + const code = records.code; + return { code }; + } + //清除数据 + @MutationAction + async empty() { + const materielList = []; + return { materielList }; } }