- 每张外箱标签数量 = 每箱内包数 × 内箱数量;外箱/内箱余数均单独成张标签
+ {{ $t('shipment.print.printHint') }}
-
计算结果(不可修改)
+
{{ $t('shipment.print.calcResult') }}
{{ formatLabelQtySummary(calculatedOuterQtyList) }}
{{ formatLabelQtySummary(calculatedInnerQtyList) }}
@@ -747,21 +747,21 @@
- 打印总数
- {{ shipmentLinePrintTotal }} 张
+ {{ $t('shipment.print.printTotal') }}
+ {{ $t('shipment.print.sheetUnit', { count: shipmentLinePrintTotal }) }}
- 外箱标签
- {{ calculatedOuterQtyList.length }} 张
+ {{ $t('shipment.print.outerBoxLabel') }}
+ {{ $t('shipment.print.sheetUnit', { count: calculatedOuterQtyList.length }) }}
- 内箱标签
- {{ calculatedInnerQtyList.length }} 张
+ {{ $t('shipment.print.innerBoxLabel') }}
+ {{ $t('shipment.print.sheetUnit', { count: calculatedInnerQtyList.length }) }}
@@ -861,8 +861,8 @@ export default {
columnsProp: ['createBy', 'updateBy'],
// 导出 start
exportData: [],
- exportName: '收货入库' + this.dayjs().format('YYYYMMDDHHmmss'),
- exportHeader: ['收货入库'],
+ exportName: this.$t('shipment.table.exportName') + this.dayjs().format('YYYYMMDDHHmmss'),
+ exportHeader: [this.$t('shipment.table.exportName')],
exportFooter: [],
exportList: [],
// 导出 end
@@ -960,11 +960,11 @@ export default {
functionId: 610,
serialNumber: '610Table1OrderNo',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'notifyNo',
headerAlign: 'center',
align: 'center',
- columnLabel: '单据号',
+ columnLabel: this.$t('shipment.search.notifyNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -978,11 +978,11 @@ export default {
functionId: 610,
serialNumber: '610Table1OrderType',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'orderType',
headerAlign: 'center',
align: 'center',
- columnLabel: '单据类型',
+ columnLabel: this.$t('shipment.fields.orderType'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -996,11 +996,11 @@ export default {
functionId: 610,
serialNumber: '610Table1OrderStatus',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'status',
headerAlign: 'center',
align: 'left',
- columnLabel: '单据状态',
+ columnLabel: this.$t('shipment.fields.orderStatusCol'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1014,11 +1014,11 @@ export default {
functionId: 610,
serialNumber: '610Table1SupplierId',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'supplierId',
headerAlign: 'center',
align: 'left',
- columnLabel: '供应商编码',
+ columnLabel: this.$t('shipment.fields.supplierCode'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1032,11 +1032,11 @@ export default {
functionId: 610,
serialNumber: '610Table1SupplierName',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'supplierName',
headerAlign: 'center',
align: 'left',
- columnLabel: '供应商名称',
+ columnLabel: this.$t('shipment.fields.supplierName'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1050,11 +1050,11 @@ export default {
functionId: 610,
serialNumber: '610Table1RequiredInboundDate',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'notifyDate',
headerAlign: 'center',
align: 'center',
- columnLabel: '申请单日期',
+ columnLabel: this.$t('shipment.fields.applyDate'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1068,11 +1068,11 @@ export default {
functionId: 610,
serialNumber: '610Table1CreatedDate',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'enteredDate',
headerAlign: 'center',
align: 'center',
- columnLabel: '创建时间',
+ columnLabel: this.$t('shipment.fields.createTime'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1086,11 +1086,11 @@ export default {
functionId: 610,
serialNumber: '610Table1CreatedBy',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'username',
headerAlign: 'center',
align: 'center',
- columnLabel: '创建人',
+ columnLabel: this.$t('shipment.fields.createBy'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1105,11 +1105,11 @@ export default {
functionId: 610,
serialNumber: '610Table1PushWcsFlag',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'pushWcsFlag',
headerAlign: 'center',
align: 'center',
- columnLabel: '推送WCS',
+ columnLabel: this.$t('shipment.fields.pushWcs'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1123,11 +1123,11 @@ export default {
functionId: 610,
serialNumber: '610Table1UpdatedDate',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'updatedDate',
headerAlign: 'center',
align: 'center',
- columnLabel: '更新时间',
+ columnLabel: this.$t('shipment.fields.updateTime'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1141,11 +1141,11 @@ export default {
functionId: 610,
serialNumber: '610Table1UpdatedBy',
tableId: '610Table1',
- tableName: '收货入库任务表',
+ tableName: this.$t('shipment.table.inboundTask'),
columnProp: 'updatedBy',
headerAlign: 'center',
align: 'center',
- columnLabel: '更新人',
+ columnLabel: this.$t('shipment.fields.updateBy'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1161,7 +1161,7 @@ export default {
functionId: 701001,
serialNumber: '701001Table2Orderno',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'orderNo',
headerAlign: 'center',
align: 'center',
@@ -1179,11 +1179,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2Itemno',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'itemNo',
headerAlign: 'center',
align: 'right',
- columnLabel: '工序',
+ columnLabel: this.$t('shipment.fields.process'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1197,11 +1197,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2ItemDesc',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'itemDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '工序名称',
+ columnLabel: this.$t('shipment.fields.processName'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1215,11 +1215,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2PartNo',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'partNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料编码',
+ columnLabel: this.$t('shipment.fields.partNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1233,11 +1233,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2Qtyrequired',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'qtyRequired',
headerAlign: 'center',
align: 'right',
- columnLabel: '工单数量',
+ columnLabel: this.$t('shipment.fields.workOrderQty'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1251,11 +1251,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2Qtyreported',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'qtyReported',
headerAlign: 'center',
align: 'right',
- columnLabel: '报工数量',
+ columnLabel: this.$t('shipment.fields.reportedQty'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1269,11 +1269,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2SScheduleddate',
tableId: '701001Table2',
- tableName: '查询工单',
+ tableName: this.$t('shipment.table.workOrder'),
columnProp: 'sScheduledDate',
headerAlign: 'center',
align: 'left',
- columnLabel: '工单日期',
+ columnLabel: this.$t('shipment.fields.workOrderDate'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1287,11 +1287,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2SWorkcenterno',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'sWorkCenterNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '加工中心编码',
+ columnLabel: this.$t('shipment.fields.workCenterCode'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1305,11 +1305,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2WorkCenterDesc',
tableId: '701001Table2',
- tableName: '查询工单',
+ tableName: this.$t('shipment.table.workOrder'),
columnProp: 'workCenterDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '加工中心名称',
+ columnLabel: this.$t('shipment.fields.workCenterName'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1323,11 +1323,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2SResourceid',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'sResourceID',
headerAlign: 'center',
align: 'left',
- columnLabel: '机台编码',
+ columnLabel: this.$t('shipment.fields.machineCode'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1341,11 +1341,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2ResourceDesc',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'resourceDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '机台名称',
+ columnLabel: this.$t('shipment.fields.machineName'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1359,11 +1359,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2OperatorDesc',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'operatorDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '操作员',
+ columnLabel: this.$t('shipment.fields.operator'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1379,11 +1379,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table3ComponentPartNo',
tableId: '701001Table3',
- tableName: '领料申请BOM子表',
+ tableName: this.$t('shipment.table.issueBom'),
columnProp: 'componentPartNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料编码',
+ columnLabel: this.$t('shipment.fields.partNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1397,11 +1397,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table3IsInWh',
tableId: '701001Table3',
- tableName: '领料申请BOM子表',
+ tableName: this.$t('shipment.table.issueBom'),
columnProp: 'isInWh',
headerAlign: 'center',
align: 'center',
- columnLabel: '是否在立库',
+ columnLabel: this.$t('shipment.fields.inAsrs'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1416,11 +1416,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table3AvailableQty',
tableId: '701001Table3',
- tableName: '领料申请BOM子表',
+ tableName: this.$t('shipment.table.issueBom'),
columnProp: 'availableQty',
headerAlign: 'center',
align: 'right',
- columnLabel: '可用库存',
+ columnLabel: this.$t('shipment.fields.availableStock'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1434,11 +1434,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table3PartDesc',
tableId: '701001Table3',
- tableName: '领料申请BOM子表',
+ tableName: this.$t('shipment.table.issueBom'),
columnProp: 'componentPartDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料描述',
+ columnLabel: this.$t('shipment.fields.partDesc'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1452,11 +1452,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table3QtyToIssue',
tableId: '701001Table3',
- tableName: '领料申请BOM子表',
+ tableName: this.$t('shipment.table.issueBom'),
columnProp: 'qtyOnHand',
headerAlign: 'center',
align: 'right',
- columnLabel: '可发数量',
+ columnLabel: this.$t('shipment.fields.issuableQty'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1470,11 +1470,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table3QtyToIssue',
tableId: '701001Table3',
- tableName: '领料申请BOM子表',
+ tableName: this.$t('shipment.table.issueBom'),
columnProp: 'qtyToIssue',
headerAlign: 'center',
align: 'right',
- columnLabel: '本次发料数量',
+ columnLabel: this.$t('shipment.fields.thisIssueQtyCol'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1488,11 +1488,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table3Remark',
tableId: '701001Table3',
- tableName: '领料申请BOM子表',
+ tableName: this.$t('shipment.table.issueBom'),
columnProp: 'remark',
headerAlign: 'center',
align: 'left',
- columnLabel: '备注',
+ columnLabel: this.$t('shipment.fields.remark'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1508,7 +1508,7 @@ export default {
functionId: 701001,
serialNumber: '701001Table2Orderno',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'soorderNo',
headerAlign: 'center',
align: 'center',
@@ -1526,11 +1526,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2PartNo',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'fgpartNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料编码',
+ columnLabel: this.$t('shipment.fields.partNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1544,11 +1544,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2PartNo',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'partDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料名称',
+ columnLabel: this.$t('shipment.fields.partName'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1563,11 +1563,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2Qtyrequired',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'lotSize',
headerAlign: 'center',
align: 'right',
- columnLabel: '工单数量',
+ columnLabel: this.$t('shipment.fields.workOrderQty'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1581,11 +1581,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2Qtyreported',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'unissureQty',
headerAlign: 'center',
align: 'right',
- columnLabel: '退料数量',
+ columnLabel: this.$t('shipment.fields.returnQty'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1599,11 +1599,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2SScheduleddate',
tableId: '701001Table2',
- tableName: '查询工单',
+ tableName: this.$t('shipment.table.workOrder'),
columnProp: 'needDate',
headerAlign: 'center',
align: 'left',
- columnLabel: '运输日期',
+ columnLabel: this.$t('shipment.fields.transportDate'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1617,11 +1617,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2PushWcsTime',
tableId: '701001Table2',
- tableName: '查询工单',
+ tableName: this.$t('shipment.table.workOrder'),
columnProp: 'pushWcsTime',
headerAlign: 'center',
align: 'center',
- columnLabel: '推送WCS时间',
+ columnLabel: this.$t('shipment.fields.pushWcsTime'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1635,11 +1635,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2PushWmsFlag',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'pushWmsFlag',
headerAlign: 'center',
align: 'center',
- columnLabel: '是否推送WCS',
+ columnLabel: this.$t('shipment.fields.pushWcsFlag'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1653,11 +1653,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2TransportFlag',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'transportFlag',
headerAlign: 'center',
align: 'center',
- columnLabel: '立库取出',
+ columnLabel: this.$t('shipment.fields.asrsTakeOut'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1671,11 +1671,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2AreaDesc',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'areaDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '配送区域',
+ columnLabel: this.$t('shipment.fields.deliveryArea'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1689,11 +1689,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2SScheduleddate',
tableId: '701001Table2',
- tableName: '查询工单',
+ tableName: this.$t('shipment.table.workOrder'),
columnProp: 'finishDate',
headerAlign: 'center',
align: 'left',
- columnLabel: '工单结束日期',
+ columnLabel: this.$t('shipment.fields.workOrderEndDate'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1707,11 +1707,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2SWorkcenterno',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'sWorkCenterNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '加工中心编码',
+ columnLabel: this.$t('shipment.fields.workCenterCode'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1725,11 +1725,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2WorkCenterDesc',
tableId: '701001Table2',
- tableName: '查询工单',
+ tableName: this.$t('shipment.table.workOrder'),
columnProp: 'workCenterDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '加工中心名称',
+ columnLabel: this.$t('shipment.fields.workCenterName'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1743,11 +1743,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2SResourceid',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'sResourceID',
headerAlign: 'center',
align: 'left',
- columnLabel: '机台编码',
+ columnLabel: this.$t('shipment.fields.machineCode'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1761,11 +1761,11 @@ export default {
functionId: 701001,
serialNumber: '701001Table2OperatorDesc',
tableId: '701001Table2',
- tableName: '查询派工单',
+ tableName: this.$t('shipment.table.dispatchOrder'),
columnProp: 'operatorDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '操作员',
+ columnLabel: this.$t('shipment.fields.operator'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1780,7 +1780,7 @@ export default {
columnProp: 'subNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '标签条码',
+ columnLabel: this.$t('shipment.fields.labelBarcode'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1793,7 +1793,7 @@ export default {
columnProp: 'subQty',
headerAlign: 'center',
align: 'right',
- columnLabel: '入库数量',
+ columnLabel: this.$t('shipment.fields.inboundQty'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1806,7 +1806,7 @@ export default {
columnProp: 'orderRef3',
headerAlign: 'center',
align: 'left',
- columnLabel: '入库仓库',
+ columnLabel: this.$t('shipment.fields.inboundWarehouse'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1819,7 +1819,7 @@ export default {
columnProp: 'orderRef4',
headerAlign: 'center',
align: 'left',
- columnLabel: '入库库位',
+ columnLabel: this.$t('shipment.fields.inboundLocation'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1832,7 +1832,7 @@ export default {
columnProp: 'userName',
headerAlign: 'center',
align: 'left',
- columnLabel: '操作员',
+ columnLabel: this.$t('shipment.fields.operator'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1845,7 +1845,7 @@ export default {
columnProp: 'transDate',
headerAlign: 'center',
align: 'center',
- columnLabel: '操作时间',
+ columnLabel: this.$t('shipment.fields.operateTime'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1863,11 +1863,11 @@ export default {
functionId: 444002,
serialNumber: '444002Table6ItemNo',
tableId: '444002Table6',
- tableName: '预留标签清单表',
+ tableName: this.$t('shipment.table.reservedLabel'),
columnProp: 'itemNo',
headerAlign: 'center',
align: 'right',
- columnLabel: '订单序号',
+ columnLabel: this.$t('shipment.fields.orderSeq'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1881,11 +1881,11 @@ export default {
functionId: 444002,
serialNumber: '444002Table6BomItemNo',
tableId: '444002Table6',
- tableName: '预留标签清单表',
+ tableName: this.$t('shipment.table.reservedLabel'),
columnProp: 'bomItemNo',
headerAlign: 'center',
align: 'right',
- columnLabel: '订单物料行号',
+ columnLabel: this.$t('shipment.fields.orderPartLineNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1899,11 +1899,11 @@ export default {
functionId: 444002,
serialNumber: '444002Table6SerialNo',
tableId: '444002Table6',
- tableName: '预留标签清单表',
+ tableName: this.$t('shipment.table.reservedLabel'),
columnProp: 'serialNo',
headerAlign: 'center',
align: 'center',
- columnLabel: '标签号',
+ columnLabel: this.$t('shipment.fields.labelNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1917,11 +1917,11 @@ export default {
functionId: 444002,
serialNumber: '444002Table6TaskRef',
tableId: '444002Table6',
- tableName: '预留标签清单表',
+ tableName: this.$t('shipment.table.reservedLabel'),
columnProp: 'taskRef',
headerAlign: 'center',
align: 'center',
- columnLabel: '立库任务号',
+ columnLabel: this.$t('shipment.fields.asrsTaskNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1935,11 +1935,11 @@ export default {
functionId: 444002,
serialNumber: '444002Table6TaskItem',
tableId: '444002Table6',
- tableName: '预留标签清单表',
+ tableName: this.$t('shipment.table.reservedLabel'),
columnProp: 'taskItem',
headerAlign: 'center',
align: 'right',
- columnLabel: '立库任务行号',
+ columnLabel: this.$t('shipment.fields.asrsTaskLineNo'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1953,11 +1953,11 @@ export default {
functionId: 444002,
serialNumber: '444002Table6OutWcsFlag',
tableId: '444002Table6',
- tableName: '预留标签清单表',
+ tableName: this.$t('shipment.table.reservedLabel'),
columnProp: 'outWcsFlag',
headerAlign: 'center',
align: 'center',
- columnLabel: '立库取出',
+ columnLabel: this.$t('shipment.fields.asrsTakeOut'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1971,11 +1971,11 @@ export default {
functionId: 444002,
serialNumber: '444002Table6OutWcsTime',
tableId: '444002Table6',
- tableName: '预留标签清单表',
+ tableName: this.$t('shipment.table.reservedLabel'),
columnProp: 'outWcsTime',
headerAlign: 'center',
align: 'center',
- columnLabel: '取出时间',
+ columnLabel: this.$t('shipment.fields.takeOutTime'),
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -2075,7 +2075,7 @@ export default {
columnProp: 'shipmentLineNo',
headerAlign: 'center',
align: 'right',
- columnLabel: '行号',
+ columnLabel: this.$t('shipment.fields.lineNo'),
columnHidden: false,
columnSortable: false,
columnWidth: 60,
@@ -2084,7 +2084,7 @@ export default {
columnProp: 'inventoryPartNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '库存物料号',
+ columnLabel: this.$t('shipment.fields.inventoryPartNo'),
columnHidden: false,
columnSortable: false,
columnWidth: 120,
@@ -2093,7 +2093,7 @@ export default {
columnProp: 'sourcePartDescription',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料描述',
+ columnLabel: this.$t('shipment.fields.partDesc'),
columnHidden: false,
columnSortable: false,
columnWidth: 150,
@@ -2103,7 +2103,7 @@ export default {
columnProp: 'inventoryQty',
headerAlign: 'center',
align: 'right',
- columnLabel: '库存数量',
+ columnLabel: this.$t('shipment.fields.inventoryQty'),
columnHidden: false,
columnSortable: false,
columnWidth: 100,
@@ -2112,7 +2112,7 @@ export default {
columnProp: 'qtyAssigned',
headerAlign: 'center',
align: 'right',
- columnLabel: '已分配数量',
+ columnLabel: this.$t('shipment.fields.qtyAssigned'),
columnHidden: false,
columnSortable: false,
columnWidth: 100,
@@ -2121,7 +2121,7 @@ export default {
columnProp: 'qtyPicked',
headerAlign: 'center',
align: 'right',
- columnLabel: '已拣货数量',
+ columnLabel: this.$t('shipment.fields.qtyPicked'),
columnHidden: false,
columnSortable: false,
columnWidth: 100,
@@ -2130,7 +2130,7 @@ export default {
columnProp: 'qtyShipped',
headerAlign: 'center',
align: 'right',
- columnLabel: '已发货数量',
+ columnLabel: this.$t('shipment.fields.qtyShipped'),
columnHidden: false,
columnSortable: false,
columnWidth: 100,
@@ -2139,7 +2139,7 @@ export default {
columnProp: 'inventoryUom',
headerAlign: 'center',
align: 'center',
- columnLabel: '单位',
+ columnLabel: this.$t('shipment.fields.uom'),
columnHidden: false,
columnSortable: false,
columnWidth: 60,
@@ -2148,7 +2148,7 @@ export default {
columnProp: 'sourceRef1',
headerAlign: 'center',
align: 'center',
- columnLabel: '源引用1',
+ columnLabel: this.$t('shipment.fields.sourceRef1'),
columnHidden: false,
columnSortable: false,
columnWidth: 100,
@@ -2157,7 +2157,7 @@ export default {
columnProp: 'sourceRef2',
headerAlign: 'center',
align: 'right',
- columnLabel: '源引用2',
+ columnLabel: this.$t('shipment.fields.sourceRef2'),
columnHidden: false,
columnSortable: false,
columnWidth: 80,
@@ -2166,7 +2166,7 @@ export default {
columnProp: 'sourceRef3',
headerAlign: 'center',
align: 'center',
- columnLabel: '源引用3',
+ columnLabel: this.$t('shipment.fields.sourceRef3'),
columnHidden: false,
columnSortable: false,
columnWidth: 80,
@@ -2325,7 +2325,7 @@ export default {
updateModal(row) {
if (this.currentRow.orderType === '采购入库') {
- this.$message.warning('采购入库单据不能编辑!')
+ this.$message.warning(this.$t('shipment.message.cannotEditPoInbound'))
return
}
this.modalData = {
@@ -2347,14 +2347,14 @@ export default {
saveData() {
if (this.modalData.orderType === '' || this.modalData.orderType == null) {
- this.$message.warning('请选择单据类型!')
+ this.$message.warning(this.$t('shipment.message.selectOrderType'))
return
}
if (
this.modalData.requiredInboundDate === '' ||
this.modalData.requiredInboundDate == null
) {
- this.$message.warning('请选择要求入库日期!')
+ this.$message.warning(this.$t('shipment.message.selectRequiredInboundDate'))
return
}
this.saveLoading = true
@@ -2367,7 +2367,7 @@ export default {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
this.$message.error(data.msg)
}
@@ -2382,7 +2382,7 @@ export default {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
this.$message.error(data.msg)
}
@@ -2396,19 +2396,19 @@ export default {
// 删除
deleteModal() {
if (this.currentRow.orderType === '采购入库') {
- this.$message.warning('采购入库单据不能编辑!')
+ this.$message.warning(this.$t('shipment.message.cannotEditPoInbound'))
return
}
if (this.inboundSelection.length === 0) {
- this.$message.warning('请勾选要删除的单据!')
+ this.$message.warning(this.$t('shipment.message.selectDeleteDocs'))
return
}
this.$confirm(
- `是否删除该 ` + this.inboundSelection.length + ` 条记录?`,
- '提示',
+ this.$t('shipment.message.confirmDeleteRecords', { count: this.inboundSelection.length }),
+ this.$t('shipment.common.tip'),
{
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ confirmButtonText: this.$t('shipment.common.confirm'),
+ cancelButtonText: this.$t('shipment.common.cancel'),
type: 'warning',
}
).then(() => {
@@ -2419,7 +2419,7 @@ export default {
if (data && data.code === 0) {
this.getDataList()
this.inboundSelection = []
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
this.$message.error(data.msg)
}
@@ -2433,18 +2433,18 @@ export default {
// 关闭
closeModal(row) {
this.$confirm(
- `确认关闭 ` + row.notifyNo + ` 记录?`,
- '提示',
+ this.$t('shipment.message.confirmCloseRecord', { notifyNo: row.notifyNo }),
+ this.$t('shipment.common.tip'),
{
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ confirmButtonText: this.$t('shipment.common.confirm'),
+ cancelButtonText: this.$t('shipment.common.cancel'),
type: 'warning',
}
).then(() => {
closeInboundNotification(row).then(({ data }) => {
if (data && data.code === 0) {
this.getDataList()
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
this.$message.error(data.msg)
}
@@ -2456,13 +2456,13 @@ export default {
// 下达
issueModal(row) {
if (this.currentRow.orderType === '采购入库') {
- this.$message.warning('采购入库单据不能编辑!')
+ this.$message.warning(this.$t('shipment.message.cannotEditPoInbound'))
return
}
issueInboundNotification(row).then(({ data }) => {
if (data && data.code === 0) {
this.getDataList()
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
this.$message.error(data.msg)
}
@@ -2562,7 +2562,7 @@ export default {
// 新增明细
addInboundDetailModal() {
if (this.currentRow.orderType === '采购入库') {
- this.$message.warning('采购入库单据不能编辑!')
+ this.$message.warning(this.$t('shipment.message.cannotEditPoInbound'))
return
}
this.detailSearchData = {
@@ -2653,8 +2653,8 @@ export default {
}
}
if (stop) {
- this.$alert('已经选择过此派工单,请返回点击明细直接操作!!', '提示', {
- confirmButtonText: '确定',
+ this.$alert(this.$t('shipment.message.alreadySelectedDispatch'), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
})
return false
}
@@ -2682,7 +2682,7 @@ export default {
this.notifyOrderData.needDate == null ||
this.notifyOrderData.needDate == ''
) {
- this.$message.warning('请选择时间!')
+ this.$message.warning(this.$t('shipment.message.selectTime'))
return false
}
if (
@@ -2690,7 +2690,7 @@ export default {
this.notifyOrderData.issureQty == '' ||
this.notifyOrderData.issureQty <= 0
) {
- this.$message.warning('请填写领取数量!')
+ this.$message.warning(this.$t('shipment.message.inputIssueQty'))
return false
}
let row = this.notifyOrderData
@@ -2702,15 +2702,15 @@ export default {
}
}
if (stop) {
- this.$alert('已经选择过此工单,请返回点击明细直接操作!!', '提示', {
- confirmButtonText: '确定',
+ this.$alert(this.$t('shipment.message.alreadySelectedDispatch'), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
})
return false
}
}
- this.$confirm('确定选择工单' + row.seqno + '?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(this.$t('shipment.message.confirmChooseWorkOrder', { seqno: row.seqno }), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
+ cancelButtonText: this.$t('shipment.common.cancel'),
type: 'warning',
}).then(() => {
let inData = {
@@ -2731,8 +2731,8 @@ export default {
this.enterSOS(row)
this.itemNo = data.itemNo
} else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定',
+ this.$alert(data.msg, this.$t('shipment.common.error'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
})
}
})
@@ -2796,7 +2796,7 @@ export default {
// 添加物料
addPart() {
if (this.partSelections1 == null || this.partSelections1.length === 0) {
- this.$message.warning('请选择可选物料!')
+ this.$message.warning(this.$t('shipment.message.selectOptionalPart'))
return
}
this.partSelections1.forEach((item) => {
@@ -2808,7 +2808,7 @@ export default {
// 删除物料
deletePart() {
if (this.partSelections2 == null || this.partSelections2.length === 0) {
- this.$message.warning('请选择已选物料!')
+ this.$message.warning(this.$t('shipment.message.selectSelectedPart'))
return
}
this.partSelections2.forEach((item) => {
@@ -2833,7 +2833,7 @@ export default {
if (data && data.code === 0) {
this.getInboundDetail()
this.detailModal = false
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
this.$message.error(data.msg)
}
@@ -2846,19 +2846,19 @@ export default {
// 删除物料缺陷跟踪
deleteInboundDetail() {
if (this.currentRow.orderType === '采购入库') {
- this.$message.warning('采购入库单据不能编辑!')
+ this.$message.warning(this.$t('shipment.message.cannotEditPoInbound'))
return
}
if (this.inboundDetailSelection.length === 0) {
- this.$message.warning('请勾选要删除的单据!')
+ this.$message.warning(this.$t('shipment.message.selectDeleteDocs'))
return
}
this.$confirm(
- `是否删除该 ` + this.inboundDetailSelection.length + ` 条记录?`,
- '提示',
+ this.$t('shipment.message.confirmDeleteRecords', { count: this.inboundDetailSelection.length }),
+ this.$t('shipment.common.tip'),
{
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ confirmButtonText: this.$t('shipment.common.confirm'),
+ cancelButtonText: this.$t('shipment.common.cancel'),
type: 'warning',
}
).then(() => {
@@ -2869,7 +2869,7 @@ export default {
if (data && data.code === 0) {
this.getInboundDetail()
this.inboundDetailSelection = []
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
this.$message.error(data.msg)
}
@@ -2880,7 +2880,7 @@ export default {
// 批量编辑模态框
editBatchModel() {
if (this.currentRow.orderType === '采购入库') {
- this.$message.warning('采购入库单据不能编辑!')
+ this.$message.warning(this.$t('shipment.message.cannotEditPoInbound'))
return
}
if (this.editBatchVisible) {
@@ -2960,8 +2960,8 @@ export default {
let materialList = this.sobomList.filter((item) => item.qtyToIssue > 0)
if (materialList.length == 0) {
- this.$alert('没有需要保存的内容!', '提示', {
- confirmButtonText: '确定',
+ this.$alert(this.$t('shipment.message.noContentToSave'), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
})
return false
}
@@ -2969,10 +2969,10 @@ export default {
saveShipmentMaterialDetail(materialList).then(({ data }) => {
if (data.code === 0) {
this.materialModalFlag = false
- this.$message.success('操作成功')
+ this.$message.success(this.$t('shipment.common.success'))
} else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定',
+ this.$alert(data.msg, this.$t('shipment.common.error'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
})
}
})
@@ -3070,9 +3070,9 @@ export default {
},
// 删除
deleteNotifySOS(row) {
- this.$confirm(`是否删除这个工单的申请信息?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(this.$t('shipment.message.confirmDeleteWorkOrderApply'), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
+ cancelButtonText: this.$t('shipment.common.cancel'),
type: 'warning',
})
.then(() => {
@@ -3080,14 +3080,14 @@ export default {
if (data && data.code === 0) {
this.getNotifyNoDetail()
this.$message({
- message: '操作成功',
+ message: this.$t('shipment.common.success'),
type: 'success',
duration: 1500,
onClose: () => {},
})
} else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定',
+ this.$alert(data.msg, this.$t('shipment.common.error'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
})
}
})
@@ -3150,16 +3150,16 @@ export default {
if (data && data.code === 0) {
// 如果有未下达的申请单 - rqrq
if (data.row != null) {
- this.$alert('该用户有未下达的申请单,请先处理', '提示', {
- confirmButtonText: '确定'
+ this.$alert(this.$t('shipment.message.userHasUnissueNotify'), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm')
})
return
}
// 没有未下达的申请单,执行取消下达 - rqrq
- this.$confirm(`确定取消下达发货申请单【${row.notifyNo}】吗?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(this.$t('shipment.message.confirmCancelIssue', { notifyNo: row.notifyNo }), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
+ cancelButtonText: this.$t('shipment.common.cancel'),
type: 'warning'
}).then(() => {
let cancelData = {
@@ -3169,27 +3169,27 @@ export default {
cancelIssueShipment(cancelData).then(({ data }) => {
if (data && data.code === 0) {
- this.$message.success('取消下达成功')
+ this.$message.success(this.$t('shipment.message.cancelIssueSuccess'))
// 重新加载数据 - rqrq
this.getDataList()
} else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定'
+ this.$alert(data.msg, this.$t('shipment.common.error'), {
+ confirmButtonText: this.$t('shipment.common.confirm')
})
}
}).catch(() => {
- this.$message.error('取消下达失败')
+ this.$message.error(this.$t('shipment.message.cancelIssueFailed'))
})
}).catch(() => {
// 用户取消操作 - rqrq
})
} else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定'
+ this.$alert(data.msg, this.$t('shipment.common.error'), {
+ confirmButtonText: this.$t('shipment.common.confirm')
})
}
}).catch(() => {
- this.$message.error('检查用户申请单失败')
+ this.$message.error(this.$t('shipment.message.checkUserNotifyFailed'))
})
},
@@ -3213,13 +3213,13 @@ export default {
if (data && data.code === 0) {
this.previewData = data.rows || []
} else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定'
+ this.$alert(data.msg, this.$t('shipment.common.error'), {
+ confirmButtonText: this.$t('shipment.common.confirm')
})
}
}).catch(() => {
this.previewLoading = false
- this.$message.error('获取库存预览失败')
+ this.$message.error(this.$t('shipment.message.getInventoryPreviewFailed'))
})
},
@@ -3228,20 +3228,20 @@ export default {
*/
pushToWcs() {
if (!this.previewData || this.previewData.length === 0) {
- this.$message.warning('没有可推送的数据')
+ this.$message.warning(this.$t('shipment.message.noPushData'))
return
}
// 检查是否有满足条件的数据(orderSatisfactionStatus === 1,绿色) - rqrq
const validData = this.previewData.filter(item => item.orderSatisfactionStatus === 1)
if (validData.length === 0) {
- this.$message.warning('没有满足库存要求的订单,无法推送')
+ this.$message.warning(this.$t('shipment.message.noSatisfiedOrder'))
return
}
- this.$confirm('确认推送至WCS?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(this.$t('shipment.message.confirmPushWcs'), this.$t('shipment.common.tip'), {
+ confirmButtonText: this.$t('shipment.common.confirm'),
+ cancelButtonText: this.$t('shipment.common.cancel'),
type: 'warning'
}).then(() => {
this.pushLoading = true
@@ -3255,19 +3255,19 @@ export default {
pushShipmentInventoryToWcs(pushData).then(({data}) => {
if (data && data.code === 0) {
this.$message({
- message: '推送WCS成功',
+ message: this.$t('shipment.message.pushWcsSuccess'),
type: 'success',
duration: 1500
})
this.previewDialogVisible = false
this.getDataList() // 刷新列表
} else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定'
+ this.$alert(data.msg, this.$t('shipment.common.error'), {
+ confirmButtonText: this.$t('shipment.common.confirm')
})
}
}).catch(() => {
- this.$message.error('推送WCS失败')
+ this.$message.error(this.$t('shipment.message.pushWcsFailed'))
}).finally(() => {
this.pushLoading = false
})
@@ -3291,7 +3291,7 @@ export default {
async handleShipmentRowDblClick(row) {
const shipmentId = row.soorderNo
if (!shipmentId) {
- this.$message.warning('该行没有SHIPMENTID')
+ this.$message.warning(this.$t('shipment.message.noShipmentId'))
return
}
this.currentShipmentId = shipmentId
@@ -3307,7 +3307,7 @@ export default {
}
if (!receiverId) {
- this.$message.warning('未获取到receiverId')
+ this.$message.warning(this.$t('shipment.message.noReceiverId'))
}
this.currentReceiverId = receiverId || ''
this.currentReceiverAddress = receiverAddress || ''
@@ -3331,7 +3331,7 @@ export default {
async searchShipmentLineByDialog() {
const shipmentId = (this.dialogShipmentId || '').trim()
if (!shipmentId) {
- this.$message.warning('请输入SHIPMENT')
+ this.$message.warning(this.$t('shipment.message.inputShipment'))
return
}
this.currentShipmentId = shipmentId
@@ -3344,14 +3344,14 @@ export default {
try {
const shipmentInfo = await this.fetchShipmentReceiverInfo(shipmentId, site)
if (!shipmentInfo.receiverId) {
- this.$message.warning('未获取到receiverId')
+ this.$message.warning(this.$t('shipment.message.noReceiverId'))
}
this.currentReceiverId = shipmentInfo.receiverId || ''
this.currentReceiverAddress = shipmentInfo.receiverAddress || ''
await this.loadShipmentLineList({ soorderNo: shipmentId, site }, false)
} catch (e) {
this.shipmentLineList = []
- this.$message.error('查询Shipment失败')
+ this.$message.error(this.$t('shipment.message.queryShipmentFailed'))
this.shipmentLineLoading = false
}
},
@@ -3373,7 +3373,7 @@ export default {
}
}
} catch (e) {
- this.$message.error('获取shipment信息失败')
+ this.$message.error(this.$t('shipment.message.getShipmentInfoFailed'))
}
return {
receiverId: '',
@@ -3412,16 +3412,16 @@ export default {
this.activeTable = 'shipmentLinePrint'
}
if (this.shipmentLineList.length === 0) {
- this.$message.warning('未查询到ShipmentLine数据')
+ this.$message.warning(this.$t('shipment.message.noShipmentLine'))
}
} else {
this.shipmentLineList = []
- this.$message.error(data.msg || '获取ShipmentLine失败')
+ this.$message.error(data.msg || this.$t('shipment.message.getShipmentLineFailed'))
}
})
.catch(() => {
this.shipmentLineList = []
- this.$message.error('获取ShipmentLine失败')
+ this.$message.error(this.$t('shipment.message.getShipmentLineFailed'))
})
.finally(() => {
this.shipmentLineLoading = false
@@ -3430,7 +3430,7 @@ export default {
printShipmentLine(row) {
if (!this.currentReceiverId) {
- this.$message.warning('未获取到receiverId,请先查询SHIPMENT')
+ this.$message.warning(this.$t('shipment.message.queryShipmentFirst'))
return
}
this.printShipmentLineRow = row
@@ -3487,15 +3487,15 @@ export default {
formatLabelQtySummary(qtyList) {
if (!qtyList || !qtyList.length) {
- return '请先完整输入外箱总数、内箱数量、每箱内包数'
+ return this.$t('shipment.print.inputPrintParams')
}
const countMap = {}
qtyList.forEach(qty => {
countMap[qty] = (countMap[qty] || 0) + 1
})
return Object.keys(countMap)
- .map(qty => `${countMap[qty]}张×${qty}`)
- .join(',')
+ .map(qty => this.$t('shipment.print.qtySummaryItem', { count: countMap[qty], qty }))
+ .join(this.$t('shipment.print.qtySummarySeparator'))
},
// 红框相关:模板/打印机加载已停用,由后端按 customerId(receiverId) 自动匹配
@@ -3555,17 +3555,17 @@ export default {
async confirmShipmentLinePrint() {
if (!this.canStartShipmentLinePrint) {
- this.$message.warning('请完善打印参数')
+ this.$message.warning(this.$t('shipment.message.completePrintParams'))
return
}
const row = this.printShipmentLineRow
if (!this.currentReceiverId) {
- this.$message.warning('未获取到receiverId,无法打印')
+ this.$message.warning(this.$t('shipment.message.cannotPrintNoReceiverId'))
return
}
if (!row.shipmentId || !row.sourceRef1 || row.sourceRef2 == null || row.sourceRef3 == null || row.shipmentLineNo == null) {
- this.$message.warning('当前行缺少打印所需的IFS参数')
+ this.$message.warning(this.$t('shipment.message.missingIfsParams'))
return
}
@@ -3573,19 +3573,19 @@ export default {
const innerPackQty = Number(this.printForm.innerPackQty)
const boxPackCount = Number(this.printForm.boxPackCount)
if (!(outerTotal > 0)) {
- this.$message.warning('外箱总数必须大于0')
+ this.$message.warning(this.$t('shipment.message.outerTotalMustGtZero'))
return
}
if (!(innerPackQty > 0)) {
- this.$message.warning('内箱数量必须大于0')
+ this.$message.warning(this.$t('shipment.message.innerPackQtyMustGtZero'))
return
}
if (!(boxPackCount > 0)) {
- this.$message.warning('每箱内包数必须大于0')
+ this.$message.warning(this.$t('shipment.message.boxPackCountMustGtZero'))
return
}
if (!this.calculatedOuterQtyList.length || !this.calculatedInnerQtyList.length) {
- this.$message.warning('标签数量计算失败,请检查输入参数')
+ this.$message.warning(this.$t('shipment.message.calcLabelQtyFailed'))
return
}
@@ -3594,13 +3594,13 @@ export default {
const printRequest = this.buildShipmentLinePrintRequest()
const { data } = await printLabelCommon(printRequest)
if (data && (data.code === 200 || data.code === 0)) {
- this.$message.success(data.msg || '打印任务已发送成功')
+ this.$message.success(data.msg || this.$t('shipment.message.printTaskSent'))
this.shipmentLinePrintDialogVisible = false
} else {
- this.$message.error((data && data.msg) || '打印失败')
+ this.$message.error((data && data.msg) || this.$t('shipment.message.printFailed'))
}
} catch (error) {
- this.$message.error(`打印失败: ${error.message || error}`)
+ this.$message.error(this.$t('shipment.message.printFailedWithReason', { reason: error.message || error }))
} finally {
this.printLoading = false
}