ci-plus 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils/cardPrint.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* @module cardPrint
|
|
3
3
|
* @author : 卖女孩的小火柴
|
|
4
4
|
* !description : 标识卡打印
|
|
5
|
-
* @version : 1.
|
|
5
|
+
* @version : 1.5.6
|
|
6
6
|
* @since : 创建时间 2024-03-15 15:16:12
|
|
7
7
|
* @update : 2024-11-5 13:26:12更新标识卡模板,删除为尚工厂的一些字段
|
|
8
|
+
* !update : 2024-11.12 芜湖伦比公司的成品工厂的"毛坯标识卡"使用为尚工厂的"产品标识卡"模板
|
|
8
9
|
*/
|
|
9
10
|
// import { scan_card_code_get } from '@/api/InventoryBatch'
|
|
10
11
|
import { ElMessage, MessageParamsWithType } from 'element-plus'
|
|
@@ -905,7 +906,7 @@ export const cardPrint = (
|
|
|
905
906
|
r7c4: item.center_data[0]?.material_batch_number,
|
|
906
907
|
data: [
|
|
907
908
|
{
|
|
908
|
-
opt_time:
|
|
909
|
+
opt_time: item.opt_time, // 日期
|
|
909
910
|
sr: item.record_type === 1 ? item.inventory : '', // 收入
|
|
910
911
|
fc: item.record_type === 2 ? item.inventory : '', // 发出
|
|
911
912
|
balance_count: item.balance_count, //结存
|
|
@@ -925,48 +926,111 @@ export const cardPrint = (
|
|
|
925
926
|
// 工厂类型:1:为尚工厂 | 2:成品工厂
|
|
926
927
|
factoryType: item.is_finished_goods,
|
|
927
928
|
r1c2: '毛坯标识卡',
|
|
928
|
-
r1c3: '产品类别',
|
|
929
|
+
r1c3: '产品类别', // (为 类型/名称 拼接)
|
|
929
930
|
r1c4: item.material_name,
|
|
930
|
-
r2c1: '
|
|
931
|
-
r2c2: item.
|
|
931
|
+
r2c1: '分布场所代号',
|
|
932
|
+
r2c2: item.center_data[0]?.distribute_place_name,
|
|
932
933
|
r2c4: baseUrls + item.qr_code_path, // 二维码地址
|
|
933
|
-
r3c1: '
|
|
934
|
-
r3c2: item.
|
|
934
|
+
r3c1: '客户名称',
|
|
935
|
+
r3c2: item.customer_name || item.center_data[0]?.customer_name || '',
|
|
935
936
|
r4c1: '供应商',
|
|
936
937
|
r4c2: item.center_data[0]?.supplier_name,
|
|
937
|
-
r5c1: '
|
|
938
|
+
r5c1: '材料厂家',
|
|
938
939
|
r5c2: item.center_data[0]?.material_manufacturer,
|
|
939
940
|
r5c4: item.card_code, // 标识卡号
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
941
|
+
|
|
942
|
+
r6c1: '淬火件型号',
|
|
943
|
+
r6c2: item.quenching_material_model,
|
|
944
|
+
r6c3: '材料炉号',
|
|
945
|
+
r6c4: item.center_data[0]?.material_heat_number,
|
|
946
|
+
r7c1: '淬火件编码',
|
|
947
|
+
r7c2: item.quenching_material_code,
|
|
948
|
+
r7c3: '材料牌号',
|
|
949
|
+
r7c4: item.center_data[0]?.material_mark,
|
|
950
|
+
r8c1: '产品物料号',
|
|
951
|
+
r8c2: item.material_code,
|
|
952
|
+
r8c3: '库位',
|
|
953
|
+
r8c4: item.location_name,
|
|
954
|
+
r9c1: '产品型号',
|
|
955
|
+
r9c2: item.material_model,
|
|
956
|
+
r9c3: '收货人员',
|
|
957
|
+
r9c4: item.center_data[0]?.consignee,
|
|
958
|
+
r10c1: '净重',
|
|
959
|
+
r10c2: item.net_weight,
|
|
960
|
+
r10c3: '单重',
|
|
961
|
+
r10c4: item.piece_weight,
|
|
962
|
+
r11c1: '产线',
|
|
963
|
+
r11c2: item.line_name,
|
|
964
|
+
r11c3: '工单号',
|
|
965
|
+
r11c4: item.wip_order_number,
|
|
966
|
+
r12c1: '本箱数量',
|
|
967
|
+
r12c2: item.current_inventory,
|
|
968
|
+
r12c3: '本批数量',
|
|
969
|
+
r12c4: item.center_data[0]?.batch_count,
|
|
970
|
+
r13c1: '总箱数',
|
|
971
|
+
r13c2: item.total_row,
|
|
972
|
+
r13c3: '生产日期',
|
|
973
|
+
r13c4: item.product_date,
|
|
974
|
+
r14c1: '热处理批号',
|
|
975
|
+
r14c2: item.center_data[0]?.heat_batch_number,
|
|
976
|
+
r14c3: '件数规格',
|
|
977
|
+
r14c4: item.center_data[0]?.case_count_str,
|
|
978
|
+
r15c1: '包装方式',
|
|
979
|
+
r15c2: item.packaging_specifications_name,
|
|
980
|
+
r15c3: '',
|
|
981
|
+
r15c4: '',
|
|
982
|
+
|
|
966
983
|
r40c1: '备注', // 备注
|
|
967
|
-
r40c2: item.remark, // 备注
|
|
968
|
-
r41c1: item.center_data[0]?.b2b_batch_number || '', //条形码文本
|
|
984
|
+
r40c2: item.remark, // 备注key
|
|
985
|
+
r41c1: item.center_data[0]?.b2b_batch_number || '', //条形码文本666
|
|
969
986
|
}
|
|
987
|
+
// obj = {
|
|
988
|
+
// card_state: item.card_state, // 标识卡类型
|
|
989
|
+
// // 工厂类型:1:为尚工厂 | 2:成品工厂
|
|
990
|
+
// factoryType: item.is_finished_goods,
|
|
991
|
+
// r1c2: '毛坯标识卡',
|
|
992
|
+
// r1c3: '产品类别',
|
|
993
|
+
// r1c4: item.material_name,
|
|
994
|
+
// r2c1: '物料编码',
|
|
995
|
+
// r2c2: item.material_code,
|
|
996
|
+
// r2c4: baseUrls + item.qr_code_path, // 二维码地址
|
|
997
|
+
// r3c1: '产品型号',
|
|
998
|
+
// r3c2: item.material_model,
|
|
999
|
+
// r4c1: '供应商',
|
|
1000
|
+
// r4c2: item.center_data[0]?.supplier_name,
|
|
1001
|
+
// r5c1: '材料厂商',
|
|
1002
|
+
// r5c2: item.center_data[0]?.material_manufacturer,
|
|
1003
|
+
// r5c4: item.card_code, // 标识卡号
|
|
1004
|
+
// r6c1: '本箱数量',
|
|
1005
|
+
// r6c2: item.current_inventory,
|
|
1006
|
+
// r6c3: '生产日期',
|
|
1007
|
+
// r6c4: item.product_date,
|
|
1008
|
+
// r7c1: '检验员',
|
|
1009
|
+
// r7c2: item.center_data[0]?.inspector,
|
|
1010
|
+
// r7c3: '检验日期',
|
|
1011
|
+
// r7c4: item.center_data[0]?.inspect_time,
|
|
1012
|
+
// r8c1: '材料炉号',
|
|
1013
|
+
// r8c2: item.center_data[0]?.material_heat_number,
|
|
1014
|
+
// r8c3: '材料批次',
|
|
1015
|
+
// r8c4: item.center_data[0]?.material_batch_number,
|
|
1016
|
+
// r9c1: '本批数量',
|
|
1017
|
+
// r9c2: item.center_data[0]?.batch_count,
|
|
1018
|
+
// r9c3: '件数规格',
|
|
1019
|
+
// r9c4: item.center_data[0]?.case_count_str,
|
|
1020
|
+
// r10c1: '规值',
|
|
1021
|
+
// r10c2: item.value,
|
|
1022
|
+
// r10c3: '采购单号',
|
|
1023
|
+
// r10c4: item.center_data[0]?.purchase_number,
|
|
1024
|
+
// r11c1: '批次序列号',
|
|
1025
|
+
// r11c2: item.center_data[0]?.b2b_batch_number,
|
|
1026
|
+
// r11c3: '采购单行号',
|
|
1027
|
+
// r11c4: item.center_data[0]?.purchase_order,
|
|
1028
|
+
// r12c1: '热处理批号',
|
|
1029
|
+
// r12c2: item.center_data[0]?.heat_batch_number,
|
|
1030
|
+
// r40c1: '备注', // 备注
|
|
1031
|
+
// r40c2: item.remark, // 备注
|
|
1032
|
+
// r41c1: item.center_data[0]?.b2b_batch_number || '', //条形码文本
|
|
1033
|
+
// }
|
|
970
1034
|
}
|
|
971
1035
|
// 为尚工厂-毛坯标识卡
|
|
972
1036
|
else if (item.card_state == 'MAOPI' && item.is_finished_goods == 1) {
|