@qqt-product/system 0.0.2 → 0.0.16

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.
Files changed (105) hide show
  1. package/dist/index.es.js +53240 -10634
  2. package/dist/index.umd.js +94 -21
  3. package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +2878 -0
  4. package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +2871 -0
  5. package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +2878 -0
  6. package/dist/lib/components/QAccountList/src/QAccountList.vue.d.ts +23 -4
  7. package/dist/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue.d.ts +9 -4
  8. package/dist/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue.d.ts +9 -4
  9. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +2864 -0
  10. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue.d.ts +2 -3
  11. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +2864 -0
  12. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +2876 -0
  13. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +29 -14
  14. package/dist/lib/components/QI18nList/src/QI18nList.vue.d.ts +2 -6
  15. package/dist/lib/components/QImChatGroupList/src/QImChatGroupList.vue.d.ts +5 -8
  16. package/dist/lib/components/QMqRecordList/src/QMqRecordList.vue.d.ts +9 -4
  17. package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +2872 -0
  18. package/dist/lib/components/QPermissionDataList/src/QPermissionDataList.vue.d.ts +126 -0
  19. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +2864 -0
  20. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +2887 -0
  21. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue.d.ts +25 -5
  22. package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +7 -0
  23. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +221 -28
  24. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue.d.ts +45 -0
  25. package/dist/lib/components/QQuartzJobList/src/QQuartzJobList.vue.d.ts +24 -5
  26. package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +23 -7
  27. package/dist/lib/components/QRoleList/src/useConfigData.d.ts +1 -11
  28. package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +7 -3
  29. package/dist/lib/components/QUsageList/src/QUsageList.vue.d.ts +15 -35
  30. package/dist/lib/components/QUsageList/src/useConfigData.d.ts +111 -10
  31. package/dist/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue.d.ts +25 -0
  32. package/dist/lib/components/QcustomConfigEdit/component/regexComponent.d.ts +9 -10
  33. package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +1209 -0
  34. package/dist/lib/components/QcustomConfigEdit/src/useConfigData.d.ts +1 -1
  35. package/dist/lib/components/QcustomConfigList/src/QcustomConfigList.vue.d.ts +8 -7
  36. package/dist/lib/components/QsysConfigList/src/QsysConfigList.vue.d.ts +2 -3
  37. package/dist/lib/components/index.d.ts +2 -2
  38. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +2863 -0
  39. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +2872 -0
  40. package/dist/lib/components/integratedNodesList/src/index.vue.d.ts +8 -11
  41. package/dist/lib/components/integratedReportSearchList/src/index.vue.d.ts +16 -10
  42. package/dist/lib/components/loginAbnormalLogList/src/index.vue.d.ts +2 -9
  43. package/dist/lib/components/loginLogList/src/index.vue.d.ts +2 -8
  44. package/dist/lib/components/loginSupplierLogList/src/index.vue.d.ts +2 -12
  45. package/dist/lib/components/operateLogList/src/index.vue.d.ts +2 -13
  46. package/dist/style.css +1 -1
  47. package/dist/vite-env.d.ts +13 -13
  48. package/package.json +13 -11
  49. package/src/lib/components/QAccountList/src/QAccountCreate.vue +272 -0
  50. package/src/lib/components/QAccountList/src/QAccountDetail.vue +82 -14
  51. package/src/lib/components/QAccountList/src/QAccountEdit.vue +65 -33
  52. package/src/lib/components/QAccountList/src/QAccountList.vue +532 -530
  53. package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +143 -137
  54. package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +172 -166
  55. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +123 -124
  56. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +66 -18
  57. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +151 -122
  58. package/src/lib/components/QI18nList/src/QI18nList.vue +365 -361
  59. package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +103 -94
  60. package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +109 -105
  61. package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +3 -3
  62. package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +218 -221
  63. package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +110 -117
  64. package/src/lib/components/QPermissionDataList/src/form.vue +109 -109
  65. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +1 -1
  66. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +120 -32
  67. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +189 -163
  68. package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +84 -0
  69. package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +22 -22
  70. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +134 -85
  71. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +91 -0
  72. package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +276 -263
  73. package/src/lib/components/QRoleList/src/QRoleList.vue +332 -288
  74. package/src/lib/components/QRoleList/src/useConfigData.ts +1 -6
  75. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +304 -302
  76. package/src/lib/components/QUsageList/src/QUsageList.vue +287 -82
  77. package/src/lib/components/QUsageList/src/useConfigData.ts +147 -13
  78. package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +140 -140
  79. package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +28 -28
  80. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +130 -42
  81. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +2 -2
  82. package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +2 -2
  83. package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +12 -12
  84. package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +276 -268
  85. package/src/lib/components/QcustomConfigList/src/useConfigData.ts +1 -1
  86. package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +124 -125
  87. package/src/lib/components/index.ts +78 -78
  88. package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +2 -10
  89. package/src/lib/components/integratedNodesList/src/index.vue +130 -136
  90. package/src/lib/components/integratedReportList/src/index.vue +55 -30
  91. package/src/lib/components/integratedReportSearchList/src/index.vue +106 -66
  92. package/src/lib/components/loginAbnormalLogList/src/index.vue +43 -50
  93. package/src/lib/components/loginLogList/src/index.vue +51 -57
  94. package/src/lib/components/loginSupplierLogList/src/index.vue +53 -63
  95. package/src/lib/components/operateLogList/src/index.vue +46 -57
  96. package/src/vite-env.d.ts +13 -13
  97. package/tsconfig.json +24 -24
  98. package/vite.config.ts +1 -1
  99. package/dist/lib/components/QCompanyermissionList/src/form.vue.d.ts +0 -80
  100. package/dist/lib/components/QCompanyermissionList/src/types.d.ts +0 -44
  101. package/dist/lib/components/integratedReportList/src/index.vue.d.ts +0 -70
  102. package/src/lib/components/QCompanyermissionList/src/editTree.vue +0 -291
  103. package/src/lib/components/QCompanyermissionList/src/form.vue +0 -238
  104. package/src/lib/components/QCompanyermissionList/src/index.vue +0 -309
  105. package/src/lib/components/QCompanyermissionList/src/types.ts +0 -44
@@ -28,8 +28,8 @@
28
28
  />
29
29
  </a-row>
30
30
  <!--表格-->
31
- <a-form ref="formRef" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }" :model="form" class="ant-advanced-rule-form" layout="inline">
32
- <a-row :getterr="12">
31
+ <a-form ref="formRef" :label-col="{ span: 7 }" :wrapper-col="{ span: 16 }" :model="form">
32
+ <a-row :getterr="15">
33
33
  <a-col :span="20">
34
34
  <a-form-item name="templateNumber" label="模板编号">
35
35
  <a-input disabled v-model:value="form.templateNumber" placeholder="请输入模板编号" />
@@ -48,6 +48,8 @@
48
48
  :disabled="currentEditRow.id ? true : false"
49
49
  dict-code="srmBusinessType"
50
50
  placeholder="请选择业务类型"
51
+ show-search
52
+ :filter-option="filterOption"
51
53
  @change="changeBusinessTypeEvent"
52
54
  />
53
55
  <!-- <a-select v-model:value="form.businessType"></a-select> -->
@@ -60,17 +62,17 @@
60
62
  </a-col>
61
63
  <a-col :span="20">
62
64
  <a-form-item name=" company" label="公司代码">
63
- <q-select :busAccount="busAccount" v-model:value="form.company" :dict-code="companyCode" placeholder="请选择公司代码" />
65
+ <q-select show-search :filter-option="filterOption" :busAccount="busAccount" v-model:value="form.company" :dict-code="companyCode" placeholder="请选择公司代码" />
64
66
  </a-form-item>
65
67
  </a-col>
66
68
  <a-col :span="20">
67
69
  <a-form-item name="purchaseOrg" label="采购组织">
68
- <q-select :busAccount="busAccount" v-model:value="form.purchaseOrg" :dict-code="purchaseOrganization" placeholder="请选择采购组织" />
70
+ <q-select show-search :filter-option="filterOption" :busAccount="busAccount" v-model:value="form.purchaseOrg" :dict-code="purchaseOrganization" placeholder="请选择采购组织" />
69
71
  </a-form-item>
70
72
  </a-col>
71
73
  <a-col :span="20">
72
74
  <a-form-item name=" purchaseGroup" label="采购组">
73
- <q-select v-model:value="form.purchaseGroup" :dict-code="purchaseGroup" placeholder="请选择采购组" />
75
+ <q-select show-search :filter-option="filterOption" v-model:value="form.purchaseGroup" :dict-code="purchaseGroup" placeholder="请选择采购组" />
74
76
  </a-form-item>
75
77
  </a-col>
76
78
  <a-col :span="20">
@@ -79,7 +81,7 @@
79
81
  编辑布局
80
82
  <a-tooltip title="暂business模板支持"> <exclamation-circle-outlined /> </a-tooltip>
81
83
  </template>
82
- <q-select v-model:value="form.editLayout" dict-code="srmLayout" placeholder="请选择布局样式" />
84
+ <q-select show-search :filter-option="filterOption" v-model:value="form.editLayout" dict-code="srmLayout" placeholder="请选择布局样式" />
83
85
  </a-form-item>
84
86
  </a-col>
85
87
  <a-col :span="20">
@@ -90,7 +92,7 @@
90
92
  <exclamation-circle-outlined />
91
93
  </a-tooltip>
92
94
  </template>
93
- <q-select v-model:value="form.examineLayout" dict-code="srmLayout" placeholder="请选择布局样式" />
95
+ <q-select show-search :filter-option="filterOption" v-model:value="form.examineLayout" dict-code="srmLayout" placeholder="请选择布局样式" />
94
96
  </a-form-item>
95
97
  </a-col>
96
98
  <a-col :span="20">
@@ -225,11 +227,11 @@
225
227
  <template #toolbar_buttons>
226
228
  <a-button type="primary" @click="() => headGridAddEvent()"> 新增 </a-button>
227
229
  <a-button @click="() => gridDeleteEvent('headGridRef')"> 删除</a-button>
228
- <a-button @click="() => exportHeadEvent('TemplateConfigHeadList', 'head')"> 导出</a-button>
230
+ <a-button @click="() => exportHeadEvent()"> 导出</a-button>
229
231
  </template>
230
232
  <template #custom_render="{ row }">
231
233
  <a @click="() => showDictModal(row)">{{ row.dictCode || '请选择' }}</a>
232
- <a-icon v-show="row.dictCode" style="margin-left: 6px" type="close-circle" @click="() => removeDictCode(row)"></a-icon>
234
+ <close-circle-outlined v-show="row.dictCode" style="margin-left: 6px" @click="() => removeDictCode(row)" />
233
235
  </template>
234
236
 
235
237
  <template #switch_render="{ row, column }">
@@ -354,13 +356,13 @@
354
356
  </template>
355
357
 
356
358
  <template #toolbar_buttons>
357
- <a-button type="primary" @click="() => headGridAddEvent()"> 新增 </a-button>
358
- <a-button @click="() => gridDeleteEvent('headGridRef')"> 删除</a-button>
359
- <a-button @click="() => exportHeadEvent('TemplateConfigHeadList', 'head')"> 导出</a-button>
359
+ <a-button type="primary" @click="() => headItemAddEvent()"> 新增 </a-button>
360
+ <a-button @click="() => gridDeleteEvent('itemGrid')"> 删除</a-button>
361
+ <a-button @click="() => exportItemEvent()"> 导出</a-button>
360
362
  </template>
361
363
  <template #custom_render="{ row }">
362
364
  <a @click="() => showDictModal(row)">{{ row.dictCode || '请选择' }}</a>
363
- <a-icon v-show="row.dictCode" style="margin-left: 6px" type="close-circle" @click="() => removeDictCode(row)"></a-icon>
365
+ <close-circle-outlined v-show="row.dictCode" style="margin-left: 6px" @click="() => removeDictCode(row)" />
364
366
  </template>
365
367
 
366
368
  <template #switch_render="{ row, column }">
@@ -536,7 +538,7 @@
536
538
  <div>
537
539
  {{ tabItem.title }}
538
540
  <a-tooltip v-if="tabItem.helpText" :title="tabItem.helpText">
539
- <a-icon type="question-circle-o" />
541
+ <question-circle-outlined />
540
542
  </a-tooltip>
541
543
  </div>
542
544
  <q-switch :disabled="tabItem.disabled || (tabItem.field === 'sys' && busAccount !== '100000')" :configData="currentDrawer" v-model="currentDrawer[tabItem.field]" />
@@ -545,7 +547,7 @@
545
547
  <div>
546
548
  {{ tabItem.title }}
547
549
  <a-tooltip v-if="tabItem.helpText" :title="tabItem.helpText">
548
- <a-icon type="question-circle-o" />
550
+ <question-circle-outlined />
549
551
  </a-tooltip>
550
552
  </div>
551
553
  <q-switch :disabled="tabItem.disabled" :configData="currentDrawer" v-model="currentDrawer[tabItem.field]" />
@@ -585,12 +587,7 @@
585
587
  currentDrawer.alertMsg = msg
586
588
  }
587
589
  "
588
- :value="currentDrawer[tabItem.field]"
589
- @change="
590
- ({ msg }) => {
591
- currentDrawer[tabItem.field] = msg
592
- }
593
- "
590
+ v-model="currentDrawer[tabItem.field]"
594
591
  />
595
592
  </a-col>
596
593
  </template>
@@ -621,11 +618,11 @@
621
618
 
622
619
  <!-- <codemirror v-if="editorModalFlag" v-model="sampleCode" :options="editorOption"> </codemirror> -->
623
620
  <q-code-editor-model
624
- zIndex="1001"
621
+ :zIndex="1001"
625
622
  :isAllowToOpenMode="true"
626
- v-if="editorModalFlags"
623
+ :editorModalFlag="editorModalFlag"
627
624
  :value="sampleCode ? sampleCode : ''"
628
- @handleSureColse="editorModalFlags = false"
625
+ @handleSureClose="sampleSureClose"
629
626
  @handleSureClick="sampleSureClick"
630
627
  ></q-code-editor-model>
631
628
  <!-- {{ currentRow }} -->
@@ -636,7 +633,7 @@
636
633
 
637
634
  <script lang="ts">
638
635
  //JS引入
639
- import { defineComponent, reactive, inject, onMounted, toRefs, nextTick, shallowReactive } from 'vue'
636
+ import { defineComponent, reactive, inject, onMounted, toRefs, nextTick, shallowReactive, ref } from 'vue'
640
637
  import Sortable from 'sortablejs'
641
638
  //组件
642
639
  import { message } from '@qqt-product/ui'
@@ -646,13 +643,14 @@ import regexComponent from '../component/regexComponent'
646
643
  import TempalePreviewModal from '../component/TempalePreviewModal.vue'
647
644
  //ts
648
645
  import * as customConfigEdits from './types'
649
- import type { VxeTableDefines, VxeGridDefines, VxeGlobalRendererHandles } from 'vxe-table'
646
+ import type { VxeTableDefines, VxeGridDefines } from 'vxe-table'
650
647
  import { useConfigData } from './useConfigData'
651
648
  import { useConfigComputed } from './useConfigComputed'
652
649
  import { useConfigMethods, useConfigElsAccountMethods, useConigApiMethods } from './useConfigMethods'
653
650
  import { useColumnSlots } from './QcustomConfigRender'
654
651
  import { EditSample, url } from './useConstant'
655
652
  import qqtUtils from '@qqt-product/utils'
653
+ import { CloseCircleOutlined, QuestionCircleOutlined, ExclamationCircleOutlined } from '@ant-design/icons-vue'
656
654
  export default defineComponent({
657
655
  name: 'QcustomConfigEdit',
658
656
  emits: ['handleReturn'],
@@ -661,6 +659,9 @@ export default defineComponent({
661
659
  dataFormatComponent,
662
660
  regexComponent,
663
661
  TempalePreviewModal,
662
+ CloseCircleOutlined,
663
+ QuestionCircleOutlined,
664
+ ExclamationCircleOutlined,
664
665
  },
665
666
  props: {
666
667
  busAccount: {
@@ -682,14 +683,13 @@ export default defineComponent({
682
683
  const qHttp = inject(customConfigEdits.INJECT_HTTP) as customConfigEdits.HttpClient
683
684
  const { currentEditRow, busAccount } = toRefs(props)
684
685
  //常量
685
-
686
686
  /*
687
687
  data
688
688
  */
689
689
  const {
690
690
  switchFields,
691
691
  nowFieldType,
692
- editorModalFlags,
692
+ editorModalFlag,
693
693
  codeEditorFields,
694
694
  drawerVisible,
695
695
  currentDictRow,
@@ -1106,7 +1106,7 @@ export default defineComponent({
1106
1106
  },
1107
1107
  },
1108
1108
  ])
1109
-
1109
+ const allType = ref('')
1110
1110
  //computed
1111
1111
  const { showBusinessTips, gridHeight, commonDevelopTabs } = useConfigComputed()
1112
1112
  /*
@@ -1197,12 +1197,12 @@ export default defineComponent({
1197
1197
  const codeEditorSureClick = (contents: string) => {
1198
1198
  form.extend = contents
1199
1199
  }
1200
- const changeBusinessTypeEvent = (type: string) => {
1200
+ const changeBusinessTypeEvent = ({ value }: { value: string }) => {
1201
1201
  qHttp
1202
1202
  .get({
1203
1203
  url: '/template/templateHead/querySysByBusinessType',
1204
1204
  params: {
1205
- businessType: type,
1205
+ businessType: value,
1206
1206
  },
1207
1207
  })
1208
1208
  .then((res) => {
@@ -1377,7 +1377,25 @@ export default defineComponent({
1377
1377
  }
1378
1378
  }
1379
1379
 
1380
+ const getAllItemsDataPromiss = () => {
1381
+ if (form.businessType === 'costForm') {
1382
+ let url = '/cost/costField/queryAll'
1383
+ return qHttp.get({
1384
+ url,
1385
+ })
1386
+ } else {
1387
+ let url = '/template/templateHead/queryItemFieldsByBusinessType'
1388
+ return qHttp.get({
1389
+ url,
1390
+ params: {
1391
+ businessType: form.businessType,
1392
+ },
1393
+ })
1394
+ }
1395
+ }
1396
+
1380
1397
  const headGridAddEvent = () => {
1398
+ allType.value = 'headGrid'
1381
1399
  let { fullData } = headGrid.value.getTableData()
1382
1400
  if (busAccount.value == '100000') {
1383
1401
  let length = fullData.length
@@ -1406,6 +1424,46 @@ export default defineComponent({
1406
1424
  })
1407
1425
  }
1408
1426
 
1427
+ const headItemAddEvent = () => {
1428
+ allType.value = 'itemGrid'
1429
+ let { fullData } = itemGrid.value.getTableData()
1430
+ if (busAccount.value == '100000') {
1431
+ let length = fullData.length
1432
+ itemGrid.value.insertAt({ sortOrder: length + 1, groupType: 'head' }, -1)
1433
+ return
1434
+ }
1435
+ let fieldNameList = fullData.map((item: customConfigEdits.MapObjectNoneType) => {
1436
+ return item.fieldName + '_' + item.groupCode
1437
+ })
1438
+
1439
+ getAllItemsDataPromiss().then((res) => {
1440
+ if (res.success) {
1441
+ if (form.businessType === 'costForm') {
1442
+ fieldData.value = res.result
1443
+ visible.value = true
1444
+ } else {
1445
+ if (res.result.templateConfigItemList && res.result.templateConfigItemList.length) {
1446
+ if (res.result.businessType === 'supplierMasterData') {
1447
+ fieldData.value = res.result.templateConfigItemList
1448
+ visible.value = true
1449
+ } else {
1450
+ let fieldDatas = res.result.templateConfigItemList.filter((item: customConfigEdits.MapObjectNoneType) => {
1451
+ return !fieldNameList.includes(item.fieldName + '_' + item.groupCode)
1452
+ })
1453
+ fieldData.value = fieldDatas
1454
+ visible.value = true
1455
+ }
1456
+ } else {
1457
+ const t = '没有配置表行数据'
1458
+ message.warning(t)
1459
+ }
1460
+ }
1461
+ } else {
1462
+ message.warning(res.message)
1463
+ }
1464
+ })
1465
+ }
1466
+
1409
1467
  const gridDeleteEvent = (type: string) => {
1410
1468
  const CurentGridRef = getCurentGridRef(type)
1411
1469
  let checkboxRecords = CurentGridRef.value.getCheckboxRecords()
@@ -1429,17 +1487,26 @@ export default defineComponent({
1429
1487
  confirmLoading.value = !confirmLoading.value
1430
1488
  }
1431
1489
 
1432
- const exportHeadEvent = (type: string, sets: string) => {
1490
+ const exportHeadEvent = () => {
1433
1491
  if (!currentEditRow.value.id) {
1434
1492
  message.warning('请先保存模板配置')
1435
1493
  return
1436
1494
  }
1437
- // confirmLoading.value = true
1495
+ const sets = 'head'
1496
+ const type = 'TemplateConfigHeadList'
1438
1497
  handleExportXls('表头配置', currentEditRow.value.id, sets, type, '/template/templateHead/exportTemplateColumnConfig', handleEpritXisCallBack)
1439
1498
  }
1440
-
1499
+ const exportItemEvent = () => {
1500
+ if (!currentEditRow.value.id) {
1501
+ message.warning('请先保存模板配置')
1502
+ return
1503
+ }
1504
+ const sets = 'item'
1505
+ const type = 'TemplateConfigItemList'
1506
+ handleExportXls('表行配置', currentEditRow.value.id, sets, type, '/template/templateHead/exportTemplateColumnConfig', handleEpritXisCallBack)
1507
+ }
1441
1508
  let getCurentGridRef = (type: string) => {
1442
- const curGridRefObj: customConfigEdits.GridQConfigEditRef = { groupGridRef: groupGrid, headGridRef: headGrid }
1509
+ const curGridRefObj: customConfigEdits.GridQConfigEditRef = { groupGridRef: groupGrid, headGridRef: headGrid, itemGrid: itemGrid }
1443
1510
  return curGridRefObj[type]
1444
1511
  }
1445
1512
  const resetSortOrder = (type: string) => {
@@ -1455,13 +1522,22 @@ export default defineComponent({
1455
1522
  message.warning('请选择数据!')
1456
1523
  return
1457
1524
  }
1525
+ let fullData = []
1526
+ if (allType.value == 'headGrid') {
1527
+ fullData = headGrid.value.getTableData().fullData
1528
+ } else {
1529
+ fullData = itemGrid.value.getTableData().fullData
1530
+ }
1458
1531
 
1459
- let { fullData } = headGrid.value.getTableData()
1460
1532
  let length = fullData.length
1461
- checkboxRecords.forEach((item: customConfigEdits.MapObjectNoneType, index: customConfigEdits.MapObjectNoneType) => {
1533
+ checkboxRecords.forEach((item: customConfigEdits.MapObjectNoneType, index: number) => {
1462
1534
  item.sortOrder = length + index + 1
1463
1535
  })
1464
- headGrid.value?.insertAt(checkboxRecords, -1)
1536
+ if (allType.value == 'headGrid') {
1537
+ headGrid.value?.insertAt(checkboxRecords, -1)
1538
+ } else {
1539
+ itemGrid.value?.insertAt(checkboxRecords, -1)
1540
+ }
1465
1541
 
1466
1542
  visible.value = false
1467
1543
  }
@@ -1559,7 +1635,10 @@ export default defineComponent({
1559
1635
  } else if (field === 'formula') {
1560
1636
  sampleCode.value = currentStep.value === 2 ? EditSample.formulaHead : EditSample.formulaRow
1561
1637
  }
1562
- editorModalFlags.value = true
1638
+ editorModalFlag.value = true
1639
+ }
1640
+ const sampleSureClose = () => {
1641
+ editorModalFlag.value = false
1563
1642
  }
1564
1643
  const sampleSureClick = (coValue: string) => {
1565
1644
  let warnTips = false
@@ -1584,7 +1663,7 @@ export default defineComponent({
1584
1663
  message.warning('函数已存在,不可导入示例')
1585
1664
  return
1586
1665
  }
1587
- editorModalFlags.value = false
1666
+ editorModalFlag.value = false
1588
1667
  }
1589
1668
 
1590
1669
  const changeFixSummary = (currentDrawer: customConfigEdits.MapObjectNoneType) => {
@@ -1698,7 +1777,7 @@ export default defineComponent({
1698
1777
  // message.warning('请添加表行信息!')
1699
1778
  // return
1700
1779
  // }
1701
- // console.log('save', 1)
1780
+ console.log('save', 1)
1702
1781
  itemGrid.value.validate(fullData, (valid: customConfigEdits.MapObjectNoneType) => {
1703
1782
  if (!valid) {
1704
1783
  postData(type)
@@ -1712,6 +1791,11 @@ export default defineComponent({
1712
1791
  const handleReturn = () => {
1713
1792
  emit('handleReturn')
1714
1793
  }
1794
+
1795
+ const filterOption = (input: string, option: any) => {
1796
+ return option.title.toLowerCase().indexOf(input.toLowerCase()) >= 0
1797
+ }
1798
+
1715
1799
  //生命周期
1716
1800
 
1717
1801
  onMounted(() => {
@@ -1761,6 +1845,7 @@ export default defineComponent({
1761
1845
  selectGrid,
1762
1846
  selectedHeadOk,
1763
1847
  exportHeadEvent,
1848
+ exportItemEvent,
1764
1849
  rowChangeSummary,
1765
1850
  removeDictCode,
1766
1851
  showDictModal,
@@ -1770,7 +1855,7 @@ export default defineComponent({
1770
1855
  drawerVisible,
1771
1856
  commonDevelopTabs,
1772
1857
  codeEditorFields,
1773
- editorModalFlags,
1858
+ editorModalFlag,
1774
1859
  sampleCode,
1775
1860
  nowFieldType,
1776
1861
  showSample,
@@ -1779,6 +1864,7 @@ export default defineComponent({
1779
1864
  changeSummary,
1780
1865
  changeFixSummary,
1781
1866
  sampleSureClick,
1867
+ sampleSureClose,
1782
1868
  itemColumns,
1783
1869
  itemRowDrop,
1784
1870
  itemData,
@@ -1790,6 +1876,8 @@ export default defineComponent({
1790
1876
  // currentEditRow,
1791
1877
  currentRow,
1792
1878
  handleReturn,
1879
+ headItemAddEvent,
1880
+ filterOption,
1793
1881
  }
1794
1882
  },
1795
1883
  })
@@ -180,7 +180,7 @@ export function useColumnSlots(elsAccount: Ref) {
180
180
  } else if (row.fieldType == 'multiple' && row.dictCode) {
181
181
  editor = [<span>{getMultipleCurrentLabel(row.defaultValueOpts, row.defaultValue)}</span>]
182
182
  } else if (row.fieldType == 'switch') {
183
- editor = [<m-switch v-model={row.defaultValue} />]
183
+ editor = [<vxe-switch open-value="1" close-value="0" v-model={row.defaultValue}></vxe-switch>]
184
184
  } else {
185
185
  editor = [<span>{row.defaultValue}</span>]
186
186
  }
@@ -197,7 +197,7 @@ export function useColumnSlots(elsAccount: Ref) {
197
197
  }
198
198
  editor = [<vxe-select v-model={row.defaultValue} options={row.defaultValueOpts} clearable multiple />]
199
199
  } else if (row.fieldType == 'switch') {
200
- editor = [<m-switch v-model={row.defaultValue} />]
200
+ editor = [<vxe-switch open-value="1" close-value="0" v-model={row.defaultValue}></vxe-switch>]
201
201
  } else {
202
202
  editor = [<vxe-input clearable size="small" v-model={row.defaultValue} />]
203
203
  }
@@ -40,7 +40,7 @@ export function useConfigData() {
40
40
  const fieldData = ref<customConfigEdits.MapObjectNoneType[]>()
41
41
  const visible = ref<boolean>(false)
42
42
  const drawerVisible = ref<boolean>(false)
43
- const editorModalFlags = ref<boolean>(false)
43
+ const editorModalFlag = ref<boolean>(false)
44
44
  const perviewOpen = shallowRef<boolean>(false)
45
45
  const currentDrawer = ref<customConfigEdits.MapObjectNoneType>({})
46
46
  const sampleCode = ref<string>()
@@ -110,7 +110,7 @@ export function useConfigData() {
110
110
  currentItemGrid,
111
111
  drawerVisible,
112
112
  codeEditorFields,
113
- editorModalFlags,
113
+ editorModalFlag,
114
114
  sampleCode,
115
115
  nowFieldType,
116
116
  switchFields,
@@ -62,7 +62,7 @@ function callback(parentRef, pageData, groupData, value, opt, oldVal, form) {
62
62
  // ############## M端绑定函数: ####################
63
63
  const initFunctionHead =
64
64
  `/**
65
- * 业务规则
65
+ * 业务规则
66
66
  * 延期规则, prop: 'delayRule', 0 不允许延期,1 不限制延期次数, 2 有限制次数延期
67
67
  * 结束前多少分钟, prop: 'beforeEndMinute'
68
68
  * 延期多少分钟, prop: 'delayMinute'
@@ -143,23 +143,23 @@ const extendHead = `/* extend 原设计是对字段自定义配置,也是对
143
143
  field: 'toElsAccount',
144
144
  fieldLabelI18nKey: 'i18n_title_supplierAccount',
145
145
  title: '供应商ELS账号',
146
- with: 150,
146
+ width: 150,
147
147
  },
148
148
  {
149
149
  field: 'supplierCode',
150
150
  fieldLabelI18nKey: 'i18n_title_supplierCode',
151
151
  title: '供应商编码',
152
- with: 150,
152
+ width: 150,
153
153
  },
154
154
  {
155
155
  field: 'supplierName',
156
156
  fieldLabelI18nKey: 'i18n_title_supplierName',
157
157
  title: '供应商名称',
158
- with: 150,
158
+ width: 150,
159
159
  }
160
160
  ],
161
161
  modalUrl: '/supplier/supplierMaster/list',
162
- modalParams: {},
162
+ params: {},
163
163
  beforeCheckedCallBack: function (parentRef, pageData, groupData, form) {
164
164
  return new Promise((resolve, rejec) => {
165
165
  let orderStatus = form.orderStatus || '';
@@ -223,25 +223,25 @@ const extendRow = `/* extend 原设计是对字段自定义配置,也是对绑
223
223
  field: 'taxCode',
224
224
  title: '税码',
225
225
  fieldLabelI18nKey: 'i18n_field_taxCode',
226
- with: 150,
226
+ width: 150,
227
227
  }, {
228
228
  field: 'taxRate',
229
229
  title: '税率(%)',
230
230
  fieldLabelI18nKey: 'i18n_field_taxRate',
231
- with: 150,
231
+ width: 150,
232
232
  }, {
233
233
  field: 'taxName',
234
234
  title: '税码名称',
235
235
  fieldLabelI18nKey: 'i18n_field_taxName',
236
- with: 150,
236
+ width: 150,
237
237
  }, {
238
238
  field: 'remark',
239
239
  title: '备注',
240
240
  fieldLabelI18nKey: 'i18n_field_remark',
241
- with: 150,
241
+ width: 150,
242
242
  }],
243
243
  modalUrl: '/base/tax/list',
244
- modalParams: {},
244
+ params: {},
245
245
  // 表行弹窗清除按钮回调
246
246
  afterRowClearCallBack:function(Vue,row){
247
247
  row.taxCode = ''
@@ -255,12 +255,12 @@ const fieldValidatorRow = `/* 增强表单校验,表单配置的校验除了
255
255
  */
256
256
  /**
257
257
  * @param {*} _this
258
- * @param {*} item
258
+ * @param {*} item
259
259
  * @param {*} rule 规则
260
260
  * @param {*} value 当前值
261
261
  * @param {*} row 编辑态当前行
262
262
  * @param {*} column 编辑列
263
- *
263
+ *
264
264
  **/
265
265
  {
266
266
  validateMethod: function (that, item, rule, value, row, column) {