ci-plus 1.1.1 → 1.1.3

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.
@@ -0,0 +1,4 @@
1
+ import _IdentificationCard from './identificationCard.vue'
2
+ import { withInstall } from '../utils/index';
3
+ export const IdentificationCard = withInstall(_IdentificationCard)
4
+ export default IdentificationCard
@@ -0,0 +1,64 @@
1
+ ## 依赖
2
+
3
+ "jsbarcode": "^3.11.6",
4
+
5
+ ## 使用
6
+
7
+ ```js
8
+ <el-dialog
9
+ v-model="store.showTag" //弹窗控制
10
+ title="标签"
11
+ destroy-on-close
12
+ style="width: 580px; height: 630px; overflow: auto" // 弹窗大小
13
+ >
14
+ <identification-card
15
+ :list="printList" // 循环渲染卡片的数据
16
+ :cardName="'库存台账标识卡'" // 卡片名称
17
+ ref="goodsPrintRef" // 控制打印的ref(可调用里面暴露的 打印方法)
18
+ style="width: 100%; height: 500px" // 设置标签的宽高
19
+ ></identification-card>
20
+ </el-dialog>
21
+
22
+
23
+ // 点击按钮弹出标识卡调用的方法
24
+ function handlePrintAll() {
25
+ if (multipleSelection.value.length < 1)
26
+ return ElMessage.warning('请选择要操作的数据!')
27
+ // multipleSelection.value 为要渲染的源数组对象
28
+ // printList.value 为传递到组件的 实际数组对象
29
+ multipleSelection.value.forEach((val) => {
30
+ let obj = {
31
+ serialNumber: val.center_data[0].b2b_batch_number, //'1001', // 条码文本
32
+ qr_code_path: baseUrls + val.qr_code_path, // 二维码图片路径
33
+ material_name: val.material_type, //'文件编号1',
34
+ store_code: val.material_name, //'名称/类型1',
35
+ customer_name: val.material_model, //'产品型号1',
36
+ supplier_name: val.material_code, //'物料编号1',
37
+ material_model: val.center_data[0].flow_lot_number
38
+ ? val.center_data[0].flow_lot_number
39
+ : '', //'批号1',
40
+ card_code: val.card_code, //'标识卡号',
41
+ material_code: val.center_data[0].value, //'规值1',
42
+ location_name: val.center_data[0].supplier_name, //'供应商1',
43
+ data: [
44
+ {
45
+ opt_time: setDate(val.opt_time), // 日期
46
+ sr: val.record_type === 1 ? val.current_inventory : '', // 收入
47
+ fc: val.record_type === 2 ? val.current_inventory : '', // 发出
48
+ balance_count: val.balance_count, //结转
49
+ remark: val.remark, // 签字/备注
50
+ },
51
+ ],
52
+ }
53
+ printList.value.push(obj)
54
+ })
55
+
56
+
57
+ setTimeout(function () {
58
+ // goodsPrintRef.value.print()
59
+ store.showTag = true
60
+ }, 100)
61
+ }
62
+
63
+
64
+ ```
package/src/index.ts CHANGED
@@ -6,6 +6,13 @@ export * from './ccapp';
6
6
  export * from './svgicon';// svg图标
7
7
  export * from './selectSuffix';
8
8
  export * from './sortableTable/index/headButtons'; // 导出排序表头按钮
9
+ export * from './sortableTable/index/headerInput'; // 导出筛选面板
9
10
  export * from './sortableTable/index/sortableTable'; // 导出排序表格
10
11
  export * from './sortableTable/index/sortableTableDialog'; // 导出表排序组件
11
- export * from './sortableTable/index/sortableTableColumnCell'; // 导出表列组件
12
+ export * from './sortableTable/index/sortableTableColumnCell'; // 导出表列组件
13
+
14
+ export * from './identificationCard'; // 导出标识卡模板组件
15
+
16
+ export * from './fileRelated/index/ciseeFile'; // 导出附件查看组件
17
+ export * from './fileRelated/index/ciupload'; // 导出附件上传组件
18
+ export * from './fileRelated/index/ciuploadV2'; // 导出附件上传v2组件