kz-ui-base 1.0.47 → 1.0.49

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 (562) hide show
  1. package/components/eam/Editor/index.vue +200 -0
  2. package/components/eam/Process/BpmData.js +68 -0
  3. package/components/eam/Process/PropertyPanel.vue +169 -0
  4. package/components/eam/Process/common/customTranslate.js +20 -0
  5. package/components/eam/Process/common/mixinExecutionListener.js +24 -0
  6. package/components/eam/Process/common/mixinPanel.js +70 -0
  7. package/components/eam/Process/common/mixinXcrud.js +22 -0
  8. package/components/eam/Process/common/parseElement.js +53 -0
  9. package/components/eam/Process/components/custom/customContextPad.vue +24 -0
  10. package/components/eam/Process/components/nodePanel/gateway.vue +81 -0
  11. package/components/eam/Process/components/nodePanel/process.vue +113 -0
  12. package/components/eam/Process/components/nodePanel/property/executionListener.vue +194 -0
  13. package/components/eam/Process/components/nodePanel/property/listenerParam.vue +96 -0
  14. package/components/eam/Process/components/nodePanel/property/multiInstance.vue +117 -0
  15. package/components/eam/Process/components/nodePanel/property/signal.vue +124 -0
  16. package/components/eam/Process/components/nodePanel/property/taskListener.vue +196 -0
  17. package/components/eam/Process/components/nodePanel/sequenceFlow.vue +92 -0
  18. package/components/eam/Process/components/nodePanel/startEnd.vue +94 -0
  19. package/components/eam/Process/components/nodePanel/task.vue +426 -0
  20. package/components/eam/Process/flowable/flowable.json +1194 -0
  21. package/components/eam/Process/flowable/init.js +24 -0
  22. package/components/eam/Process/flowable/showConfig.js +55 -0
  23. package/components/eam/Process/index.js +5 -0
  24. package/components/eam/Process/index.vue +463 -0
  25. package/components/eam/Process/lang/zh.js +227 -0
  26. package/components/eam/changeValuePopover/index.vue +54 -0
  27. package/components/eam/customBpmn/index.js +12 -0
  28. package/components/eam/eam-capi/EamAsideListPanel.vue +85 -0
  29. package/components/eam/eam-capi/EamAsideListPanelTemp.vue +8 -0
  30. package/components/eam/eam-capi/EamCommonQueryTerm.vue +267 -0
  31. package/components/eam/eam-capi/EamFlowRecord.vue +92 -0
  32. package/components/eam/eam-capi/EamGraphQueryTerm.vue +302 -0
  33. package/components/eam/eam-capi/EamListPanel.vue +91 -0
  34. package/components/eam/eam-capi/EamListPanelTemp.vue +14 -0
  35. package/components/eam/eam-capi/EamPopoverConfirm.vue +95 -0
  36. package/components/eam/eam-capi/EamUploadImgDialog.vue +258 -0
  37. package/components/eam/eam-capi/icon/IconAdd.vue +44 -0
  38. package/components/eam/eam-capi/icon/IconAgree.vue +35 -0
  39. package/components/eam/eam-capi/icon/IconCanceled.vue +38 -0
  40. package/components/eam/eam-capi/icon/IconDate.vue +34 -0
  41. package/components/eam/eam-capi/icon/IconDateWhite.vue +33 -0
  42. package/components/eam/eam-capi/icon/IconDelete.vue +64 -0
  43. package/components/eam/eam-capi/icon/IconDetail.vue +55 -0
  44. package/components/eam/eam-capi/icon/IconDiscard.vue +17 -0
  45. package/components/eam/eam-capi/icon/IconDispatch.vue +38 -0
  46. package/components/eam/eam-capi/icon/IconDispatchWork.vue +29 -0
  47. package/components/eam/eam-capi/icon/IconEdit.vue +48 -0
  48. package/components/eam/eam-capi/icon/IconFolderDownload.vue +20 -0
  49. package/components/eam/eam-capi/icon/IconFolderUpload.vue +17 -0
  50. package/components/eam/eam-capi/icon/IconHistory.vue +35 -0
  51. package/components/eam/eam-capi/icon/IconImage.vue +39 -0
  52. package/components/eam/eam-capi/icon/IconList.vue +33 -0
  53. package/components/eam/eam-capi/icon/IconListWhite.vue +31 -0
  54. package/components/eam/eam-capi/icon/IconParts.vue +35 -0
  55. package/components/eam/eam-capi/icon/IconPrint.vue +56 -0
  56. package/components/eam/eam-capi/icon/IconReject.vue +35 -0
  57. package/components/eam/eam-capi/icon/IconSave.vue +17 -0
  58. package/components/eam/eam-capi/icon/IconSaveFill.vue +17 -0
  59. package/components/eam/eam-capi/icon/IconSub.vue +35 -0
  60. package/{views/eam/sparePartMain/sparePartBasic/SparePartBasicMain.vue → components/eam/eam-capi/table-column/EamTableColumnIndex.vue} +6 -8
  61. package/{views/eam/sparePartMain/SparePartMain.vue → components/eam/eam-capi/table-column/EamTableColumnSelection.vue} +6 -8
  62. package/components/eam/eam-capi/table-column/EamTableColumnUser.vue +66 -0
  63. package/components/eam/ins-capi/InsFormItemUpload.vue +292 -0
  64. package/components/eam/ins-capi/InsLogin.vue +444 -0
  65. package/components/eam/ins-capi/InsTopDialog.vue +134 -0
  66. package/components/eam/parser/Parser.vue +197 -0
  67. package/components/eam/parser/README.md +17 -0
  68. package/components/eam/parser/example/Index.vue +324 -0
  69. package/components/eam/parser/index.js +3 -0
  70. package/components/eam/parser/package.json +25 -0
  71. package/components/eam/render/package.json +19 -0
  72. package/components/eam/render/render.js +122 -0
  73. package/components/eam/render/slots/el-button.js +5 -0
  74. package/components/eam/render/slots/el-checkbox-group.js +13 -0
  75. package/components/eam/render/slots/el-input.js +8 -0
  76. package/components/eam/render/slots/el-radio-group.js +13 -0
  77. package/components/eam/render/slots/el-select.js +9 -0
  78. package/components/eam/render/slots/el-upload.js +17 -0
  79. package/components/eam/taskIntervalEditor/index.vue +259 -0
  80. package/list-base-page/listBasePageTs.vue +1 -1
  81. package/package.json +1 -1
  82. package/views/basicdata/employeeSkill/index.vue +157 -0
  83. package/views/pd/prodstructTemplate/components/DocModifyDialog.vue +237 -0
  84. package/views/pd/prodstructTemplate/components/ProddesignDocDialog.vue +224 -0
  85. package/views/pd/prodstructTemplate/components/TemplateEditDialog.vue +407 -0
  86. package/views/system/common/modal/UserModal.vue +440 -0
  87. package/api/DPS/BomMaterial.js +0 -34
  88. package/api/DPS/WorkOrder.js +0 -44
  89. package/api/DPS/WorkOrderLed.js +0 -19
  90. package/api/DPS/XgateControl.js +0 -10
  91. package/api/DPS/factory.js +0 -36
  92. package/api/DPS/produce.js +0 -52
  93. package/api/PPMS/collection.js +0 -111
  94. package/api/PPMS/facility.js +0 -10
  95. package/api/ScrewDeviceDA/tighteningDataDetail.js +0 -10
  96. package/api/lowcode/fieldDefinition.js +0 -4
  97. package/api/lowcode/interfaceSetting.js +0 -12
  98. package/api/monitor/job.js +0 -71
  99. package/api/monitor/jobLog.js +0 -26
  100. package/api/monitor/online.js +0 -18
  101. package/api/pdds/pdds.js +0 -182
  102. package/api/sample/audio.js +0 -46
  103. package/api/sample/document.js +0 -55
  104. package/api/sample/screen.js +0 -46
  105. package/api/tool/gen.js +0 -83
  106. package/views/bd/attribute/index.vue +0 -559
  107. package/views/bd/collectionAgreement/add.vue +0 -270
  108. package/views/bd/collectionAgreement/index.vue +0 -176
  109. package/views/bd/costCenter/components/costCenterModal.vue +0 -141
  110. package/views/bd/costCenter/index.vue +0 -304
  111. package/views/bd/currency/index.vue +0 -180
  112. package/views/bd/customer/components/customer-info-tab/AddressInfoTab.vue +0 -91
  113. package/views/bd/customer/components/customer-info-tab/BankInfoTab.vue +0 -94
  114. package/views/bd/customer/components/customer-info-tab/BaseInfoTab.vue +0 -153
  115. package/views/bd/customer/components/customer-info-tab/BusinessInfoTab.vue +0 -140
  116. package/views/bd/customer/components/customer-info-tab/ContactInfoTab.vue +0 -103
  117. package/views/bd/customer/components/customer-info-tab/SalesmanInfoTab.vue +0 -87
  118. package/views/bd/customer/index.vue +0 -150
  119. package/views/bd/customerArea/index.vue +0 -392
  120. package/views/bd/customerIndustry/index.vue +0 -392
  121. package/views/bd/customeraddress/index.vue +0 -76
  122. package/views/bd/customerbank/index.vue +0 -77
  123. package/views/bd/customercontacts/index.vue +0 -79
  124. package/views/bd/customersalesman/index.vue +0 -47
  125. package/views/bd/employee/index.vue +0 -219
  126. package/views/bd/exchangeRate/index.vue +0 -232
  127. package/views/bd/item/index.vue +0 -535
  128. package/views/bd/itemCategory/index.vue +0 -397
  129. package/views/bd/itemClass/index.vue +0 -445
  130. package/views/bd/itemList/index.vue +0 -445
  131. package/views/bd/itemcategorysoattribute/index.vue +0 -56
  132. package/views/bd/numberingrule/index.vue +0 -191
  133. package/views/bd/productLine/index.vue +0 -387
  134. package/views/bd/productusage/index.vue +0 -579
  135. package/views/bd/productusage/productUsageEditModal.vue +0 -96
  136. package/views/bd/project/index.vue +0 -145
  137. package/views/bd/settlementMethod/index.vue +0 -210
  138. package/views/bd/uom/UomEditDialog.vue +0 -157
  139. package/views/bd/uom/index.vue +0 -256
  140. package/views/bd/vendor/components/VendorEditDialog.vue +0 -203
  141. package/views/bd/vendor/components/vendor-info-tab/ContactInfoTab.vue +0 -74
  142. package/views/bd/vendor/index.vue +0 -140
  143. package/views/bd/workGroup/index.vue +0 -651
  144. package/views/eam/annualTesting/LubWaitPartsApplyDialog.vue +0 -767
  145. package/views/eam/annualTesting/SpareDialog.vue +0 -476
  146. package/views/eam/annualTesting/annualList/LubWaitPartsApplyDialog.vue +0 -938
  147. package/views/eam/annualTesting/annualList/index.vue +0 -1019
  148. package/views/eam/annualTesting/index.vue +0 -698
  149. package/views/eam/annualTesting/indexAdd.vue +0 -1195
  150. package/views/eam/annualTesting/indexList.vue +0 -1026
  151. package/views/eam/annualTesting/indexMaintenance.vue +0 -1340
  152. package/views/eam/annualTesting/issued.vue +0 -709
  153. package/views/eam/asset/assetAttachment/assetBomAttachment.vue +0 -253
  154. package/views/eam/asset/assetAttachment/fileUpload.vue +0 -238
  155. package/views/eam/asset/assetAttachment/index.vue +0 -360
  156. package/views/eam/asset/assetAttachment2/AssetAttachmentDialog.vue +0 -199
  157. package/views/eam/asset/assetAttachment2/assetBomAttachment.vue +0 -253
  158. package/views/eam/asset/assetAttachment2/fileUpload.vue +0 -296
  159. package/views/eam/asset/assetAttachment2/index.vue +0 -477
  160. package/views/eam/asset/assetAttachment2/index2.vue +0 -152
  161. package/views/eam/asset/assetBaseInfo/components/applyComment.vue +0 -265
  162. package/views/eam/asset/assetBaseInfo/convert.vue +0 -1297
  163. package/views/eam/asset/assetBaseInfo/idle.vue +0 -612
  164. package/views/eam/asset/assetBaseInfo/index.vue +0 -1486
  165. package/views/eam/asset/assetBaseInfo/lent.vue +0 -662
  166. package/views/eam/asset/assetBaseInfo/newPurchase.vue +0 -1379
  167. package/views/eam/asset/assetBaseInfo/permanent.vue +0 -624
  168. package/views/eam/asset/assetBaseInfo/safeAttchment.vue +0 -368
  169. package/views/eam/asset/assetBaseInfo/special.vue +0 -645
  170. package/views/eam/asset/assetBaseInfo/usage.vue +0 -1062
  171. package/views/eam/asset/assetBaseInfo/usageInternal.vue +0 -1080
  172. package/views/eam/asset/assetBaseInfo/value.vue +0 -615
  173. package/views/eam/asset/assetDetail/index.vue +0 -198
  174. package/views/eam/asset/assetDetail/safeAttachment.vue +0 -41
  175. package/views/eam/asset/assetInfo/attachment.vue +0 -178
  176. package/views/eam/asset/assetInfo/bom.vue +0 -1170
  177. package/views/eam/asset/assetInfo/components/PlanDetailsDialog.vue +0 -236
  178. package/views/eam/asset/assetInfo/components/SpareBomDialog.vue +0 -448
  179. package/views/eam/asset/assetInfo/components/SpareDialog.vue +0 -450
  180. package/views/eam/asset/assetInfo/components/TaskDetailsDialog.vue +0 -529
  181. package/views/eam/asset/assetInfo/components/common.js +0 -30
  182. package/views/eam/asset/assetInfo/components/infoDialog.vue +0 -179
  183. package/views/eam/asset/assetInfo/dailyPoint.vue +0 -1487
  184. package/views/eam/asset/assetInfo/index.vue +0 -1845
  185. package/views/eam/asset/assetInfo/info.vue +0 -1798
  186. package/views/eam/asset/assetInfo/lubrication.vue +0 -2259
  187. package/views/eam/asset/assetInfo/maintain.vue +0 -1958
  188. package/views/eam/asset/assetInfo/point.vue +0 -1844
  189. package/views/eam/asset/assetInfo/polling.vue +0 -1853
  190. package/views/eam/asset/assetInfo/printDetail.vue +0 -115
  191. package/views/eam/asset/assetInfo/printDetailcopy.vue +0 -132
  192. package/views/eam/asset/assetInfo/resume.vue +0 -421
  193. package/views/eam/asset/assetInfo/testingStandards.vue +0 -2155
  194. package/views/eam/asset/assetList/convert.vue +0 -921
  195. package/views/eam/asset/assetList/idle.vue +0 -787
  196. package/views/eam/asset/assetList/index.vue +0 -1018
  197. package/views/eam/asset/assetList/lent.vue +0 -778
  198. package/views/eam/asset/assetList/newPurchase.vue +0 -952
  199. package/views/eam/asset/assetList/permanent.vue +0 -790
  200. package/views/eam/asset/assetList/printDetail.vue +0 -193
  201. package/views/eam/asset/assetList/safeAttachment.vue +0 -552
  202. package/views/eam/asset/assetList/special.vue +0 -794
  203. package/views/eam/asset/assetList/usage.vue +0 -875
  204. package/views/eam/asset/assetList/usageInternal.vue +0 -785
  205. package/views/eam/asset/assetList/value.vue +0 -767
  206. package/views/eam/asset/assetListInfo/index.vue +0 -252
  207. package/views/eam/asset/assetListLog/convert.vue +0 -324
  208. package/views/eam/asset/assetListLog/idle.vue +0 -323
  209. package/views/eam/asset/assetListLog/index.vue +0 -345
  210. package/views/eam/asset/assetListLog/lent.vue +0 -328
  211. package/views/eam/asset/assetListLog/newPurchase.vue +0 -324
  212. package/views/eam/asset/assetListLog/permanent.vue +0 -346
  213. package/views/eam/asset/assetListLog/special.vue +0 -325
  214. package/views/eam/asset/assetListLog/usage.vue +0 -327
  215. package/views/eam/asset/assetListLog/value.vue +0 -324
  216. package/views/eam/asset/assetStandardList/index.vue +0 -876
  217. package/views/eam/asset/bom/assetBom.vue +0 -2061
  218. package/views/eam/asset/bom/assetBomReadOnly.vue +0 -2054
  219. package/views/eam/asset/category/index.vue +0 -821
  220. package/views/eam/asset/category/readOnly.vue +0 -823
  221. package/views/eam/asset/construction/index.vue +0 -710
  222. package/views/eam/asset/deviceCategory/index.vue +0 -583
  223. package/views/eam/asset/emAssetPrintItems/index.vue +0 -395
  224. package/views/eam/asset/generalAssetUpload/index.vue +0 -1049
  225. package/views/eam/asset/location/index.vue +0 -500
  226. package/views/eam/asset/newPurchaseAssetUpload/index.vue +0 -916
  227. package/views/eam/asset/part/partSelect.vue +0 -126
  228. package/views/eam/asset/testDIa.vue +0 -133
  229. package/views/eam/asset/userOwnership/index.vue +0 -761
  230. package/views/eam/assetListReport/DeviceInfoPanel.vue +0 -146
  231. package/views/eam/assetListReport/index.vue +0 -311
  232. package/views/eam/assetReport/DeviceInfoPanel.vue +0 -144
  233. package/views/eam/assetReport/DeviceOperateStatus.vue +0 -44
  234. package/views/eam/assetReport/components/AssetPicAndStatus.vue +0 -41
  235. package/views/eam/assetReport/components/AvailabilityAndProficiency.vue +0 -112
  236. package/views/eam/assetReport/components/BootTimeAndPayloadWeight.vue +0 -51
  237. package/views/eam/assetReport/components/MaintenanceStatus.vue +0 -185
  238. package/views/eam/assetReport/components/RealTimeTemperature.vue +0 -45
  239. package/views/eam/assetReport/index.vue +0 -268
  240. package/views/eam/assetattribute/index.vue +0 -67
  241. package/views/eam/assetcategoryattribute/index.vue +0 -58
  242. package/views/eam/equipmentInspection/inspectionPlan/components/SpecialSendDialogCreated.vue +0 -890
  243. package/views/eam/equipmentInspection/inspectionPlan/components/index.vue +0 -1542
  244. package/views/eam/equipmentInspection/inspectionPlan/index.vue +0 -656
  245. package/views/eam/equipmentInspection/lims/components/LimsDetailDialog.vue +0 -323
  246. package/views/eam/equipmentInspection/lims/index.vue +0 -267
  247. package/views/eam/equipmentInspection/special/components/SpecialCancelDialog.vue +0 -137
  248. package/views/eam/equipmentInspection/special/components/SpecialSendDialog.vue +0 -380
  249. package/views/eam/equipmentInspection/special/index.vue +0 -276
  250. package/views/eam/equipmentInspection/specialNew/components/EquipmentLocation.vue +0 -312
  251. package/views/eam/equipmentInspection/specialNew/components/InspectionReport.vue +0 -977
  252. package/views/eam/equipmentInspection/specialNew/components/SpecialCancelDialog.vue +0 -137
  253. package/views/eam/equipmentInspection/specialNew/components/SpecialSendDialog.vue +0 -456
  254. package/views/eam/equipmentInspection/specialNew/components/SpecialSendDialogRegister.vue +0 -439
  255. package/views/eam/equipmentInspection/specialNew/index.vue +0 -575
  256. package/views/eam/flowable/definition/index.vue +0 -584
  257. package/views/eam/flowable/definition/model.vue +0 -145
  258. package/views/eam/flowable/finished/index.vue +0 -352
  259. package/views/eam/flowable/form/index.vue +0 -308
  260. package/views/eam/flowable/process/index.vue +0 -490
  261. package/views/eam/flowable/record/components/Tip.vue +0 -235
  262. package/views/eam/flowable/record/components/dialog/ExceptionDetailsDialog.vue +0 -308
  263. package/views/eam/flowable/record/components/lubrication.vue +0 -2115
  264. package/views/eam/flowable/record/components/maintain.vue +0 -2014
  265. package/views/eam/flowable/record/components/point.vue +0 -1677
  266. package/views/eam/flowable/record/components/polling.vue +0 -1735
  267. package/views/eam/flowable/record/components/regularPlanAudit.vue +0 -639
  268. package/views/eam/flowable/record/components/sparePartsDemandList.vue +0 -259
  269. package/views/eam/flowable/record/components/taskAudit.vue +0 -555
  270. package/views/eam/flowable/record/flow.vue +0 -28
  271. package/views/eam/flowable/record/flowview.vue +0 -243
  272. package/views/eam/flowable/record/index.vue +0 -959
  273. package/views/eam/flowable/todo/index.vue +0 -297
  274. package/views/eam/front/index.vue +0 -17
  275. package/views/eam/idle/idleApply/components/idleApplyAddDialog.vue +0 -237
  276. package/views/eam/idle/idleApply/components/idleApplyCancelDialog.vue +0 -6
  277. package/views/eam/idle/idleApply/index.vue +0 -0
  278. package/views/eam/indexPage/assetCurrentStatus/index.vue +0 -123
  279. package/views/eam/indexPage/assetRunningStatus/index.vue +0 -145
  280. package/views/eam/indexPage/index.vue +0 -78
  281. package/views/eam/indexPage/maintenanceStatistic/index.vue +0 -139
  282. package/views/eam/indexPage/messages/index.vue +0 -106
  283. package/views/eam/indexPage/monthFaultRanking/index.vue +0 -168
  284. package/views/eam/indexPage/monthMaintenanceCalendar/index.vue +0 -182
  285. package/views/eam/indexPage/monthRepairRequest/index.vue +0 -323
  286. package/views/eam/indexPage/monthStopRanking/index.vue +0 -192
  287. package/views/eam/indexPage/monthlyAssetAvailability/index.vue +0 -203
  288. package/views/eam/indexPage/panelContainer.vue +0 -87
  289. package/views/eam/indexPage/todayAlarm/index.vue +0 -165
  290. package/views/eam/inventory/assetInventory/index.vue +0 -381
  291. package/views/eam/inventory/assetInventoryDetail/detailAdd.vue +0 -709
  292. package/views/eam/inventory/assetInventoryDetail/index.vue +0 -625
  293. package/views/eam/lubrication/lubWaitDispatch/LubWaitCancelBatchDialog.vue +0 -200
  294. package/views/eam/lubrication/lubWaitDispatch/LubWaitCancelDialog.vue +0 -146
  295. package/views/eam/lubrication/lubWaitDispatch/LubWaitDispatchBatchDialog.vue +0 -293
  296. package/views/eam/lubrication/lubWaitDispatch/LubWaitDispatchDialog.vue +0 -558
  297. package/views/eam/lubrication/lubWaitDispatch/LubWaitPartsApplyDialog.vue +0 -508
  298. package/views/eam/lubrication/lubWaitDispatch/index.vue +0 -598
  299. package/views/eam/lubrication/lubWaitHandle/LubWaitHandleCancelBatchDialog.vue +0 -198
  300. package/views/eam/lubrication/lubWaitHandle/LubWaitHandleCancelDialog.vue +0 -139
  301. package/views/eam/lubrication/lubWaitHandle/LubWaitHandleReportDialog.vue +0 -600
  302. package/views/eam/lubrication/lubWaitHandle/index.vue +0 -486
  303. package/views/eam/lubrication/lubricationMoon/LubricationMoonCancelPlanDialog.vue +0 -122
  304. package/views/eam/lubrication/lubricationMoon/LubricationMoonDetailDialog.vue +0 -82
  305. package/views/eam/lubrication/lubricationMoon/LubricationMoonSubmitDialog.vue +0 -149
  306. package/views/eam/lubrication/lubricationMoon/index.vue +0 -592
  307. package/views/eam/lubrication/lubricationSummar/index.vue +0 -482
  308. package/views/eam/lubrication/lubricationTemporary/index.vue +0 -381
  309. package/views/eam/lubrication/lubricationYear/LubricationCancelDialog.vue +0 -166
  310. package/views/eam/lubrication/lubricationYear/LubricationDetailDialog.vue +0 -250
  311. package/views/eam/lubrication/lubricationYear/LubricationYearExportDialog.vue +0 -151
  312. package/views/eam/lubrication/lubricationYear/index.vue +0 -542
  313. package/views/eam/mst/emMstAttachAuthority/index.vue +0 -244
  314. package/views/eam/mst/emMstFactory/index.vue +0 -379
  315. package/views/eam/mst/emMstLine/index.vue +0 -395
  316. package/views/eam/mst/emMstLocation/index copy 2.vue +0 -460
  317. package/views/eam/mst/emMstLocation/index copy.vue +0 -461
  318. package/views/eam/mst/emMstLocation/index.vue +0 -591
  319. package/views/eam/mst/emSysParameter/index.vue +0 -259
  320. package/views/eam/mst/emSysParameter/modal/modalEditEamSysParameter.vue +0 -363
  321. package/views/eam/repair/repairApply/components/RepairApplyAddDialog.vue +0 -765
  322. package/views/eam/repair/repairApply/components/RepairApplyCancelDialog.vue +0 -139
  323. package/views/eam/repair/repairApply/index copy.vue +0 -1574
  324. package/views/eam/repair/repairApply/index.vue +0 -601
  325. package/views/eam/repair/repairCalendar/RepairCalendarReportDialog.vue +0 -989
  326. package/views/eam/repair/repairCalendar/index.vue +0 -875
  327. package/views/eam/repair/repairDispatch/components/RepairApplyPartsDialog.vue +0 -474
  328. package/views/eam/repair/repairDispatch/components/RepairDispatchCancelDialog.vue +0 -140
  329. package/views/eam/repair/repairDispatch/components/RepairSelectPartsDialog.vue +0 -332
  330. package/views/eam/repair/repairDispatch/components/RepariApplyPartsDialog.vue +0 -474
  331. package/views/eam/repair/repairDispatch/index.vue +0 -1820
  332. package/views/eam/repair/repairDispatch/index_old.vue +0 -2005
  333. package/views/eam/repair/repairPlan/components/PlanBottomEdit.vue +0 -291
  334. package/views/eam/repair/repairPlan/components/PlanSubmitDialog.vue +0 -126
  335. package/views/eam/repair/repairPlan/components/PlanTableCalendar.vue +0 -172
  336. package/views/eam/repair/repairPlan/components/PlanTableList.vue +0 -143
  337. package/views/eam/repair/repairPlan/components/RepairPlanDetailDialog.vue +0 -72
  338. package/views/eam/repair/repairPlan/index.vue +0 -308
  339. package/views/eam/repair/repairScrap/index.vue +0 -557
  340. package/views/eam/reportCenter/assetStatusAnalysis/index.vue +0 -476
  341. package/views/eam/reportCenter/costing/components/deviceCosting.vue +0 -914
  342. package/views/eam/reportCenter/costing/index.vue +0 -807
  343. package/views/eam/reportCenter/equipFailure/index.vue +0 -615
  344. package/views/eam/reportCenter/faultAnalysis/index.vue +0 -1231
  345. package/views/eam/reportCenter/kpiFailure/index.vue +0 -583
  346. package/views/eam/reportCenter/sparePartsRate/index.vue +0 -715
  347. package/views/eam/reportCenter/workOrderAnalysis/index.vue +0 -696
  348. package/views/eam/scrap/scrapApply/component/ScrapApplyCancelDialog.vue +0 -141
  349. package/views/eam/scrap/scrapApply/component/ScrapApplyEditDialog.vue +0 -530
  350. package/views/eam/scrap/scrapApply/index copy.vue +0 -556
  351. package/views/eam/scrap/scrapApply/index.vue +0 -386
  352. package/views/eam/spareParts/sparePartsBasic/index.vue +0 -676
  353. package/views/eam/spareParts/sparePartsDemand/index.vue +0 -658
  354. package/views/eam/spareParts/sparePartsInventory/index.vue +0 -425
  355. package/views/eam/spareParts/sparePartsLibrary/index.vue +0 -426
  356. package/views/eam/spareParts/sparePartsRecord/index.vue +0 -476
  357. package/views/eam/spareParts/sparePartsType/index.vue +0 -654
  358. package/views/eam/spareParts/sparePartsUse/index.vue +0 -550
  359. package/views/eam/spotCheck/components/InspectionCancelDialog.vue +0 -162
  360. package/views/eam/spotCheck/inspectionStatus/DetailDialog.vue +0 -364
  361. package/views/eam/spotCheck/inspectionStatus/UnassignedWorkersDialog.vue +0 -256
  362. package/views/eam/spotCheck/inspectionStatus/index.vue +0 -989
  363. package/views/eam/spotCheck/planAction/index.vue +0 -1193
  364. package/views/eam/spotCheck/specialEquipmentInspect/index.vue +0 -928
  365. package/views/eam/spotCheck/spotCheckMoon/index.vue +0 -1235
  366. package/views/eam/spotCheck/spotCheckUnusual/index.vue +0 -1131
  367. package/views/eam/spotCheck/spotCheckYear/index.vue +0 -1123
  368. package/views/eam/spotCheck/waitDispatch/index.vue +0 -1554
  369. package/views/eam/spotCheck/waitHandle/index.vue +0 -2058
  370. package/views/eam/tallyModule/dailyWaitHandle/index.vue +0 -1816
  371. package/views/eam/tallyModule/planAction/components/planActionAddDialog.vue +0 -414
  372. package/views/eam/tallyModule/planAction/index.vue +0 -832
  373. package/views/eam/tallyModule/spotCheckUnusual/AbnormalInfoDialog.vue +0 -165
  374. package/views/eam/tallyModule/spotCheckUnusual/index.vue +0 -971
  375. package/views/eam/tallyModule/statusSummary/index.vue +0 -1189
  376. package/views/eam/tallyModule/taskProcessed/index.vue +0 -1891
  377. package/views/eam/tallyModule/waitHandle/index.vue +0 -1984
  378. package/views/eam/techInnovation/techInnovationDispatch/components/DispatchApplyPartsDialog.vue +0 -523
  379. package/views/eam/techInnovation/techInnovationDispatch/components/DispatchBottomEdit.vue +0 -501
  380. package/views/eam/techInnovation/techInnovationDispatch/components/DispatchCancelDialog.vue +0 -138
  381. package/views/eam/techInnovation/techInnovationDispatch/components/DispatchSelectPartsDialog.vue +0 -389
  382. package/views/eam/techInnovation/techInnovationDispatch/components/DispatchSubmitDialog.vue +0 -146
  383. package/views/eam/techInnovation/techInnovationDispatch/components/DispatchTableCalendar.vue +0 -205
  384. package/views/eam/techInnovation/techInnovationDispatch/components/DispatchTableList.vue +0 -174
  385. package/views/eam/techInnovation/techInnovationDispatch/index.vue +0 -296
  386. package/views/eam/techInnovation/techInnovationPlan/components/PlanBottomEdit.vue +0 -469
  387. package/views/eam/techInnovation/techInnovationPlan/components/PlanDetailDialog.vue +0 -77
  388. package/views/eam/techInnovation/techInnovationPlan/components/PlanSelectPartsDialog.vue +0 -336
  389. package/views/eam/techInnovation/techInnovationPlan/components/PlanSubmitDialog.vue +0 -149
  390. package/views/eam/techInnovation/techInnovationPlan/components/PlanTableCalendar.vue +0 -171
  391. package/views/eam/techInnovation/techInnovationPlan/components/PlanTableList.vue +0 -144
  392. package/views/eam/techInnovation/techInnovationPlan/index.vue +0 -271
  393. package/views/eam/techInnovation/techInnovationReport/components/ReportApplyPartsDialog.vue +0 -523
  394. package/views/eam/techInnovation/techInnovationReport/components/ReportBottomEdit.vue +0 -615
  395. package/views/eam/techInnovation/techInnovationReport/components/ReportDetailDialog.vue +0 -76
  396. package/views/eam/techInnovation/techInnovationReport/components/ReportSelectPartsDialog.vue +0 -389
  397. package/views/eam/techInnovation/techInnovationReport/components/ReportSubmitDialog.vue +0 -146
  398. package/views/eam/techInnovation/techInnovationReport/components/ReportTableCalendar.vue +0 -145
  399. package/views/eam/techInnovation/techInnovationReport/components/ReportTableList.vue +0 -143
  400. package/views/eam/techInnovation/techInnovationReport/index.vue +0 -256
  401. package/views/eam/technicalRenovation/TRPlan/index.vue +0 -941
  402. package/views/eam/technicalRenovation/TRTaskReport/index.vue +0 -1056
  403. package/views/eam/technicalRenovation/TRTaskWaitDispatch/index.vue +0 -945
  404. package/views/sm/asm/AsmComplaintHandling/add.vue +0 -669
  405. package/views/sm/asm/AsmComplaintHandling/index.vue +0 -1103
  406. package/views/sm/asm/AsmDemand/add.vue +0 -602
  407. package/views/sm/asm/AsmDemand/index.vue +0 -1074
  408. package/views/sm/asm/AsmDemandPlan/add.vue +0 -481
  409. package/views/sm/asm/AsmDemandPlan/index.vue +0 -570
  410. package/views/sm/asm/AsmEvaluation/add.vue +0 -539
  411. package/views/sm/asm/AsmEvaluation/index.vue +0 -509
  412. package/views/sm/asm/AsmEvaluationItems/index.vue +0 -204
  413. package/views/sm/asm/AsmQualityComplaintFeedback/add.vue +0 -763
  414. package/views/sm/asm/AsmQualityComplaintFeedback/index.vue +0 -686
  415. package/views/sm/asm/AsmQualityComplaintFeedback/orderDetails.vue +0 -738
  416. package/views/sm/bd/customerCreditRating/index.vue +0 -291
  417. package/views/sm/bd/documentType/index.vue +0 -181
  418. package/views/sm/bd/exchangeRate/index.vue +0 -283
  419. package/views/sm/bd/groupingManagement/addItemDialog.vue +0 -559
  420. package/views/sm/bd/groupingManagement/index.vue +0 -317
  421. package/views/sm/bd/groupingManagement/selectItemDialog.vue +0 -424
  422. package/views/sm/bd/priceGroup/dialog/treeEdit.vue +0 -135
  423. package/views/sm/bd/priceGroup/index.vue +0 -207
  424. package/views/sm/bd/salesTeam/add.vue +0 -542
  425. package/views/sm/bd/salesTeam/index.vue +0 -225
  426. package/views/sm/bd/shipreturnbillType/index.vue +0 -248
  427. package/views/sm/bd/smInterface/index.vue +0 -246
  428. package/views/sm/bd/smSysSetting/index.vue +0 -146
  429. package/views/sm/bd/user/index.vue +0 -787
  430. package/views/sm/bd/websiteAccountManagement/index.vue +0 -174
  431. package/views/sm/bm/bidding/add.vue +0 -864
  432. package/views/sm/bm/bidding/index.vue +0 -778
  433. package/views/sm/bm/biddingApproval/add.vue +0 -711
  434. package/views/sm/bm/biddingApproval/index.vue +0 -1336
  435. package/views/sm/bm/biddingFeedback/add.vue +0 -377
  436. package/views/sm/bm/biddingFeedback/index.vue +0 -435
  437. package/views/sm/cm/alterationResume/add.vue +0 -2341
  438. package/views/sm/cm/alterationResume/addAlteration.vue +0 -3201
  439. package/views/sm/cm/alterationResume/dialog/stockInquiryDialog.vue +0 -824
  440. package/views/sm/cm/alterationResume/index.vue +0 -1154
  441. package/views/sm/cm/contractType/add.vue +0 -218
  442. package/views/sm/cm/contractType/index.vue +0 -289
  443. package/views/sm/cm/salesContract/add.vue +0 -1746
  444. package/views/sm/cm/salesContract/index.vue +0 -1214
  445. package/views/sm/cm/salesContractList/index.vue +0 -405
  446. package/views/sm/cm/salesOrder/add.vue +0 -2487
  447. package/views/sm/cm/salesOrder/addAlteration.vue +0 -2685
  448. package/views/sm/cm/salesOrder/dialog/stockInquiryDialog.vue +0 -824
  449. package/views/sm/cm/salesOrder/index.vue +0 -1270
  450. package/views/sm/cm/salesOrderList/index.vue +0 -667
  451. package/views/sm/cm/salesOrderResume/add.vue +0 -2329
  452. package/views/sm/cm/salesOrderResume/index.vue +0 -1144
  453. package/views/sm/dm/DelProductionAppointment/dialog/add.vue +0 -974
  454. package/views/sm/dm/DelProductionAppointment/dialog/forceRecord.vue +0 -267
  455. package/views/sm/dm/DelProductionAppointment/index.vue +0 -855
  456. package/views/sm/dm/DelProductionAppointmentForceRecord/index.vue +0 -521
  457. package/views/sm/dm/DelSalesDeliveryOrder/add.vue +0 -1895
  458. package/views/sm/dm/DelSalesDeliveryOrder/batchDialog.vue +0 -519
  459. package/views/sm/dm/DelSalesDeliveryOrder/index.vue +0 -1257
  460. package/views/sm/dm/DelSalesDeliveryOrder/signerDialog.vue +0 -132
  461. package/views/sm/dm/DelSalesReturn/add.vue +0 -582
  462. package/views/sm/dm/DelSalesReturn/dialog/add.vue +0 -922
  463. package/views/sm/dm/DelSalesReturn/dialog/saleOrderDialog.vue +0 -740
  464. package/views/sm/dm/DelSalesReturn/index.vue +0 -1225
  465. package/views/sm/dm/DelSalesReturn/orderDetails.vue +0 -694
  466. package/views/sm/dm/branchFactory/index.vue +0 -272
  467. package/views/sm/dm/branchFactory/saleOrderDialogSelect.vue +0 -532
  468. package/views/sm/dm/deldeliverynotice/dialog/add.vue +0 -1173
  469. package/views/sm/dm/deldeliverynotice/dialog/saleOrderDialog.vue +0 -958
  470. package/views/sm/dm/deldeliverynotice/dialog/saleOrderDialogSelect.vue +0 -520
  471. package/views/sm/dm/deldeliverynotice/index.vue +0 -888
  472. package/views/sm/dm/smDelInventoryReservation/add.vue +0 -899
  473. package/views/sm/dm/smDelInventoryReservation/index.vue +0 -1101
  474. package/views/sm/dm/smdelproductsign/editDialog.vue +0 -359
  475. package/views/sm/dm/smdelproductsign/index.vue +0 -209
  476. package/views/sm/em/EmExportReturn/add.vue +0 -515
  477. package/views/sm/em/EmExportReturn/dialog/add.vue +0 -584
  478. package/views/sm/em/EmExportReturn/dialog/orderDetails.vue +0 -653
  479. package/views/sm/em/EmExportReturn/exportShipmentModal.vue +0 -97
  480. package/views/sm/em/EmExportReturn/index.vue +0 -905
  481. package/views/sm/em/EmExportReversalOrder/add.vue +0 -1746
  482. package/views/sm/em/EmExportReversalOrder/index.vue +0 -697
  483. package/views/sm/em/EmExportReversalOrder/receiptadd.vue +0 -714
  484. package/views/sm/em/EmExportReversalOrder/saleslnvoicingadd.vue +0 -961
  485. package/views/sm/em/EmExportShipmentOrder/dialog/add.vue +0 -1554
  486. package/views/sm/em/EmExportShipmentOrder/dialog/customsDialog.vue +0 -256
  487. package/views/sm/em/EmExportShipmentOrder/dialog/customsDialogData.vue +0 -207
  488. package/views/sm/em/EmExportShipmentOrder/dialog/saleOrderDialog.vue +0 -891
  489. package/views/sm/em/EmExportShipmentOrder/index.vue +0 -874
  490. package/views/sm/em/ExportDeliveryOrder/add.vue +0 -1845
  491. package/views/sm/em/ExportDeliveryOrder/batchDialog.vue +0 -519
  492. package/views/sm/em/ExportDeliveryOrder/index.vue +0 -1191
  493. package/views/sm/em/ExportDeliveryOrder/signerDialog.vue +0 -132
  494. package/views/sm/em/SmEmInvoice/dialog/addDialog.vue +0 -537
  495. package/views/sm/em/SmEmInvoice/dialog/updateDialog.vue +0 -533
  496. package/views/sm/em/SmEmInvoice/index.vue +0 -512
  497. package/views/sm/em/components/modal/ShipmentOrderModal.vue +0 -119
  498. package/views/sm/fm/components/model/SalesContractModel.vue +0 -342
  499. package/views/sm/fm/components/model/SalesDeliveryOrderModel.vue +0 -408
  500. package/views/sm/fm/components/model/SalesOrderModel.vue +0 -322
  501. package/views/sm/fm/components/model/SettlementModel.vue +0 -226
  502. package/views/sm/fm/receipt/add.vue +0 -824
  503. package/views/sm/fm/receipt/index.vue +0 -763
  504. package/views/sm/fm/reversalOrder/add.vue +0 -1746
  505. package/views/sm/fm/reversalOrder/index.vue +0 -694
  506. package/views/sm/fm/reversalOrder/receiptadd.vue +0 -714
  507. package/views/sm/fm/reversalOrder/saleslnvoicingadd.vue +0 -961
  508. package/views/sm/fm/salesInvoicing/add.vue +0 -670
  509. package/views/sm/fm/salesInvoicing/index.vue +0 -689
  510. package/views/sm/fm/smFmSettlement/add.vue +0 -680
  511. package/views/sm/fm/smFmSettlement/edit.vue +0 -821
  512. package/views/sm/fm/smFmSettlement/index.vue +0 -990
  513. package/views/sm/pm/planCustomerVisit/add.vue +0 -802
  514. package/views/sm/pm/planCustomerVisit/index.vue +0 -527
  515. package/views/sm/pm/planCustomerVisitDetail/index.vue +0 -82
  516. package/views/sm/pm/planCustomerVisitFeedback/add.vue +0 -944
  517. package/views/sm/pm/planCustomerVisitFeedback/index.vue +0 -469
  518. package/views/sm/pm/planMarketVisit/add.vue +0 -1151
  519. package/views/sm/pm/planMarketVisit/index.vue +0 -595
  520. package/views/sm/pm/planMarketVisitDetail/index.vue +0 -82
  521. package/views/sm/pm/planMarketVisitFeedback/add.vue +0 -1214
  522. package/views/sm/pm/planMarketVisitFeedback/index.vue +0 -525
  523. package/views/sm/pm/salesPlan/addBut.vue +0 -766
  524. package/views/sm/pm/salesPlan/index.vue +0 -612
  525. package/views/sm/pm/salesPlanAdjust/addBut.vue +0 -902
  526. package/views/sm/pm/salesPlanAdjust/index.vue +0 -467
  527. package/views/sm/pm/salesTask/addBut.vue +0 -1247
  528. package/views/sm/pm/salesTask/index.vue +0 -586
  529. package/views/sm/pm/salesTaskAdjust/addBut.vue +0 -1613
  530. package/views/sm/pm/salesTaskAdjust/index.vue +0 -460
  531. package/views/sm/prm/contractDeclare/add.vue +0 -834
  532. package/views/sm/prm/contractDeclare/index.vue +0 -786
  533. package/views/sm/prm/poostPrice/add.vue +0 -318
  534. package/views/sm/prm/poostPrice/index.vue +0 -192
  535. package/views/sm/prm/productTrial/add.vue +0 -989
  536. package/views/sm/prm/productTrial/detail.vue +0 -777
  537. package/views/sm/prm/productTrial/index.vue +0 -623
  538. package/views/sm/prm/productTrialDetails/index.vue +0 -149
  539. package/views/sm/prm/specialContract/add.vue +0 -1039
  540. package/views/sm/prm/specialContract/index.vue +0 -805
  541. package/views/sm/qm/historicalPrice/index.vue +0 -210
  542. package/views/sm/qm/priceadJustmentSheetOverWrite/Dialog/addDialog.vue +0 -696
  543. package/views/sm/qm/priceadJustmentSheetOverWrite/Dialog/editPriceadJustmentSheetDialog.vue +0 -1080
  544. package/views/sm/qm/priceadJustmentSheetOverWrite/Dialog/queryDialog.vue +0 -872
  545. package/views/sm/qm/priceadJustmentSheetOverWrite/index.vue +0 -566
  546. package/views/sm/qm/productPriceOverWrite/Dialog/add.vue +0 -1242
  547. package/views/sm/qm/productPriceOverWrite/Dialog/areaModal.vue +0 -101
  548. package/views/sm/qm/productPriceOverWrite/Dialog/itemGroupingModal.vue +0 -367
  549. package/views/sm/qm/productPriceOverWrite/Dialog/priceAdjustment.vue +0 -1580
  550. package/views/sm/qm/productPriceOverWrite/index.vue +0 -692
  551. package/views/sm/qm/quotation/add.vue +0 -1397
  552. package/views/sm/qm/quotation/index.vue +0 -866
  553. package/views/sm/re/salesPlanStatistics/addBut.vue +0 -614
  554. package/views/sm/re/salesPlanStatistics/index.vue +0 -589
  555. package/views/sm/re/salesTaskStatistics/addBut.vue +0 -614
  556. package/views/sm/re/salesTaskStatistics/index.vue +0 -590
  557. package/views/sm/tm/smTmLogisticsTracking/add.vue +0 -396
  558. package/views/sm/tm/smTmLogisticsTracking/index.vue +0 -673
  559. package/views/sm/tm/smTmProductHandover/add.vue +0 -1193
  560. package/views/sm/tm/smTmProductHandover/addDialog.vue +0 -1119
  561. package/views/sm/tm/smTmProductHandover/index.vue +0 -1206
  562. package/views/sm/tm/smTmProductHandover/stocktransferDialog.vue +0 -192
@@ -0,0 +1,200 @@
1
+ <template>
2
+ <div class="editor" ref="editor" :style="styles"></div>
3
+ </template>
4
+
5
+ <script>
6
+ import Quill from "quill";
7
+ import "quill/dist/quill.core.css";
8
+ import "quill/dist/quill.snow.css";
9
+ import "quill/dist/quill.bubble.css";
10
+
11
+ export default {
12
+ name: "Editor",
13
+ props: {
14
+ /* 编辑器的内容 */
15
+ value: {
16
+ type: String,
17
+ default: "",
18
+ },
19
+ /* 高度 */
20
+ height: {
21
+ type: Number,
22
+ default: null,
23
+ },
24
+ /* 最小高度 */
25
+ minHeight: {
26
+ type: Number,
27
+ default: null,
28
+ },
29
+ /* 只读 */
30
+ readOnly: {
31
+ type: Boolean,
32
+ default: false,
33
+ }
34
+ },
35
+ data() {
36
+ return {
37
+ Quill: null,
38
+ currentValue: "",
39
+ options: {
40
+ theme: "snow",
41
+ bounds: document.body,
42
+ debug: "warn",
43
+ modules: {
44
+ // 工具栏配置
45
+ toolbar: [
46
+ ["bold", "italic", "underline", "strike"], // 加粗 斜体 下划线 删除线
47
+ ["blockquote", "code-block"], // 引用 代码块
48
+ [{ list: "ordered" }, { list: "bullet" }], // 有序、无序列表
49
+ [{ indent: "-1" }, { indent: "+1" }], // 缩进
50
+ [{ size: ["small", false, "large", "huge"] }], // 字体大小
51
+ [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
52
+ [{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色
53
+ [{ align: [] }], // 对齐方式
54
+ ["clean"], // 清除文本格式
55
+ ["link", "image", "video"] // 链接、图片、视频
56
+ ],
57
+ },
58
+ placeholder: "请输入内容",
59
+ readOnly: this.readOnly,
60
+ },
61
+ };
62
+ },
63
+ computed: {
64
+ styles() {
65
+ let style = {};
66
+ if (this.minHeight) {
67
+ style.minHeight = `${this.minHeight}px`;
68
+ }
69
+ if (this.height) {
70
+ style.height = `${this.height}px`;
71
+ }
72
+ return style;
73
+ },
74
+ },
75
+ watch: {
76
+ value: {
77
+ handler(val) {
78
+ if (val !== this.currentValue) {
79
+ this.currentValue = val === null ? "" : val;
80
+ if (this.Quill) {
81
+ this.Quill.pasteHTML(this.currentValue);
82
+ }
83
+ }
84
+ },
85
+ immediate: true,
86
+ },
87
+ },
88
+ mounted() {
89
+ this.init();
90
+ },
91
+ beforeDestroy() {
92
+ this.Quill = null;
93
+ },
94
+ methods: {
95
+ init() {
96
+ const editor = this.$refs.editor;
97
+ this.Quill = new Quill(editor, this.options);
98
+ this.Quill.pasteHTML(this.currentValue);
99
+ this.Quill.on("text-change", (delta, oldDelta, source) => {
100
+ const html = this.$refs.editor.children[0].innerHTML;
101
+ const text = this.Quill.getText();
102
+ const quill = this.Quill;
103
+ this.currentValue = html;
104
+ this.$emit("input", html);
105
+ this.$emit("on-change", { html, text, quill });
106
+ });
107
+ this.Quill.on("text-change", (delta, oldDelta, source) => {
108
+ this.$emit("on-text-change", delta, oldDelta, source);
109
+ });
110
+ this.Quill.on("selection-change", (range, oldRange, source) => {
111
+ this.$emit("on-selection-change", range, oldRange, source);
112
+ });
113
+ this.Quill.on("editor-change", (eventName, ...args) => {
114
+ this.$emit("on-editor-change", eventName, ...args);
115
+ });
116
+ },
117
+ },
118
+ };
119
+ </script>
120
+
121
+ <style>
122
+ .editor, .ql-toolbar {
123
+ white-space: pre-wrap!important;
124
+ line-height: normal !important;
125
+ }
126
+ .quill-img {
127
+ display: none;
128
+ }
129
+ .ql-snow .ql-tooltip[data-mode="link"]::before {
130
+ content: "请输入链接地址:";
131
+ }
132
+ .ql-snow .ql-tooltip.ql-editing a.ql-action::after {
133
+ border-right: 0px;
134
+ content: "保存";
135
+ padding-right: 0px;
136
+ }
137
+
138
+ .ql-snow .ql-tooltip[data-mode="video"]::before {
139
+ content: "请输入视频地址:";
140
+ }
141
+
142
+ .ql-snow .ql-picker.ql-size .ql-picker-label::before,
143
+ .ql-snow .ql-picker.ql-size .ql-picker-item::before {
144
+ content: "14px";
145
+ }
146
+ .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
147
+ .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before {
148
+ content: "10px";
149
+ }
150
+ .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
151
+ .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before {
152
+ content: "18px";
153
+ }
154
+ .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
155
+ .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before {
156
+ content: "32px";
157
+ }
158
+
159
+ .ql-snow .ql-picker.ql-header .ql-picker-label::before,
160
+ .ql-snow .ql-picker.ql-header .ql-picker-item::before {
161
+ content: "文本";
162
+ }
163
+ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
164
+ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
165
+ content: "标题1";
166
+ }
167
+ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
168
+ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
169
+ content: "标题2";
170
+ }
171
+ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
172
+ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
173
+ content: "标题3";
174
+ }
175
+ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
176
+ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
177
+ content: "标题4";
178
+ }
179
+ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
180
+ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
181
+ content: "标题5";
182
+ }
183
+ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
184
+ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
185
+ content: "标题6";
186
+ }
187
+
188
+ .ql-snow .ql-picker.ql-font .ql-picker-label::before,
189
+ .ql-snow .ql-picker.ql-font .ql-picker-item::before {
190
+ content: "标准字体";
191
+ }
192
+ .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
193
+ .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before {
194
+ content: "衬线字体";
195
+ }
196
+ .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
197
+ .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
198
+ content: "等宽字体";
199
+ }
200
+ </style>
@@ -0,0 +1,68 @@
1
+ /**
2
+ * 存储流程设计相关参数
3
+ */
4
+ export default class BpmData {
5
+ constructor() {
6
+ this.controls = [] // 设计器控件
7
+ this.init()
8
+ }
9
+
10
+ init() {
11
+ this.controls = [
12
+ {
13
+ action: 'create.start-event',
14
+ title: '开始'
15
+ },
16
+ {
17
+ action: 'create.intermediate-event',
18
+ title: '中间'
19
+ },
20
+ {
21
+ action: 'create.end-event',
22
+ title: '结束'
23
+ },
24
+ {
25
+ action: 'create.exclusive-gateway',
26
+ title: '网关'
27
+ },
28
+ {
29
+ action: 'create.task',
30
+ title: '任务'
31
+ },
32
+ {
33
+ action: 'create.user-task',
34
+ title: '用户任务'
35
+ },
36
+ {
37
+ action: 'create.user-sign-task',
38
+ title: '会签任务'
39
+ },
40
+ {
41
+ action: 'create.subprocess-expanded',
42
+ title: '子流程'
43
+ },
44
+ {
45
+ action: 'create.data-object',
46
+ title: '数据对象'
47
+ },
48
+ {
49
+ action: 'create.data-store',
50
+ title: '数据存储'
51
+ },
52
+ {
53
+ action: 'create.participant-expanded',
54
+ title: '扩展流程'
55
+ },
56
+ {
57
+ action: 'create.group',
58
+ title: '分组'
59
+ }
60
+ ]
61
+ }
62
+
63
+ // 获取控件配置信息
64
+ getControl(action) {
65
+ const result = this.controls.filter(item => item.action === action)
66
+ return result[0] || {}
67
+ }
68
+ }
@@ -0,0 +1,169 @@
1
+ <template>
2
+ <div ref="propertyPanel" class="property-panel">
3
+ <div v-if="nodeName" class="node-name">{{ nodeName }}</div>
4
+ <component
5
+ :is="getComponent"
6
+ v-if="element"
7
+ :element="element"
8
+ :modeler="modeler"
9
+ :users="users"
10
+ :groups="groups"
11
+ :categorys="categorys"
12
+ @dataType="dataType"
13
+ />
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ import taskPanel from './components/nodePanel/task'
19
+ import startEndPanel from './components/nodePanel/startEnd'
20
+ import processPanel from './components/nodePanel/process'
21
+ import sequenceFlowPanel from './components/nodePanel/sequenceFlow'
22
+ import gatewayPanel from './components/nodePanel/gateway'
23
+ import { NodeName } from './lang/zh'
24
+
25
+ export default {
26
+ name: 'PropertyPanel',
27
+ components: { processPanel, taskPanel, startEndPanel, sequenceFlowPanel, gatewayPanel },
28
+ props: {
29
+ users: {
30
+ type: Array,
31
+ required: true
32
+ },
33
+ groups: {
34
+ type: Array,
35
+ required: true
36
+ },
37
+ categorys: {
38
+ type: Array,
39
+ required: true
40
+ },
41
+ modeler: {
42
+ type: Object,
43
+ required: true
44
+ }
45
+ },
46
+ data() {
47
+ return {
48
+ element: null,
49
+ form: {
50
+ id: '',
51
+ name: '',
52
+ color: null
53
+ },
54
+ roles: [
55
+ { value: 'manager', label: '经理' },
56
+ { value: 'personnel', label: '人事' },
57
+ { value: 'charge', label: '主管' }
58
+ ]
59
+ }
60
+ },
61
+ computed: {
62
+ getComponent() {
63
+ const type = this.element?.type
64
+ if (['bpmn:IntermediateThrowEvent', 'bpmn:StartEvent', 'bpmn:EndEvent'].includes(type)) {
65
+ return 'startEndPanel'
66
+ }
67
+ if ([
68
+ 'bpmn:UserTask',
69
+ 'bpmn:Task',
70
+ 'bpmn:SendTask',
71
+ 'bpmn:ReceiveTask',
72
+ 'bpmn:ManualTask',
73
+ 'bpmn:BusinessRuleTask',
74
+ 'bpmn:ServiceTask',
75
+ 'bpmn:ScriptTask'
76
+ // 'bpmn:CallActivity',
77
+ // 'bpmn:SubProcess'
78
+ ].includes(type)) {
79
+ return 'taskPanel'
80
+ }
81
+ if (type === 'bpmn:SequenceFlow') {
82
+ return 'sequenceFlowPanel'
83
+ }
84
+ if ([
85
+ 'bpmn:InclusiveGateway',
86
+ 'bpmn:ExclusiveGateway',
87
+ 'bpmn:ParallelGateway',
88
+ 'bpmn:EventBasedGateway'
89
+ ].includes(type)) {
90
+ return 'gatewayPanel'
91
+ }
92
+ if (type === 'bpmn:Process') {
93
+ return 'processPanel'
94
+ }
95
+ return null
96
+ },
97
+ nodeName() {
98
+ if (this.element) {
99
+ const bizObj = this.element.businessObject
100
+ const type = bizObj?.eventDefinitions
101
+ ? bizObj.eventDefinitions[0].$type
102
+ : bizObj.$type
103
+ return NodeName[type] || type
104
+ }
105
+ return ''
106
+ }
107
+ },
108
+ mounted() {
109
+ this.handleModeler()
110
+ },
111
+ methods: {
112
+ handleModeler() {
113
+ this.modeler.on('root.added', e => {
114
+ if (e.element.type === 'bpmn:Process') {
115
+ this.element = null
116
+ this.$nextTick().then(() => {
117
+ this.element = e.element
118
+ })
119
+ }
120
+ })
121
+ this.modeler.on('element.click', e => {
122
+ const { element } = e
123
+ console.log(element)
124
+ if (element.type === 'bpmn:Process') {
125
+ this.element = element
126
+ }
127
+ })
128
+ this.modeler.on('selection.changed', e => {
129
+ // hack 同类型面板不刷新
130
+ this.element = null
131
+ const element = e.newSelection[0]
132
+ if (element) {
133
+ this.$nextTick().then(() => {
134
+ this.element = element
135
+ })
136
+ }
137
+ })
138
+ },
139
+ /** 获取数据类型 */
140
+ dataType(data){
141
+ this.$emit('dataType', data)
142
+ }
143
+ }
144
+ }
145
+ </script>
146
+
147
+ <style lang="scss">
148
+ .property-panel {
149
+ padding: 20px 20px;
150
+ // reset element css
151
+ .el-form--label-top .el-form-item__label {
152
+ padding: 0;
153
+ }
154
+ .el-form-item {
155
+ margin-bottom: 6px;
156
+ }
157
+ .tab-table .el-form-item {
158
+ margin-bottom: 16px;
159
+ }
160
+ .node-name{
161
+ border-bottom: 1px solid #ccc;
162
+ padding: 0 0 10px 20px;
163
+ margin-bottom: 10px;
164
+ font-size: 16px;
165
+ font-weight: bold;
166
+ color: #444;
167
+ }
168
+ }
169
+ </style>
@@ -0,0 +1,20 @@
1
+ import translations from '../lang/zh'
2
+
3
+ export default function customTranslate(template, replacements) {
4
+ replacements = replacements || {}
5
+
6
+ // Translate
7
+ template = translations[template] || template
8
+
9
+ // Replace
10
+ return template.replace(/{([^}]+)}/g, function(_, key) {
11
+ var str = replacements[key]
12
+ if (
13
+ translations[replacements[key]] !== null &&
14
+ translations[replacements[key]] !== 'undefined'
15
+ ) {
16
+ str = translations[replacements[key]]
17
+ }
18
+ return str || '{' + key + '}'
19
+ })
20
+ }
@@ -0,0 +1,24 @@
1
+
2
+ import executionListenerDialog from '../components/nodePanel/property/executionListener'
3
+ export default {
4
+ components: {
5
+ executionListenerDialog
6
+ },
7
+ data() {
8
+ return {
9
+ executionListenerLength: 0,
10
+ dialogName: null
11
+ }
12
+ },
13
+ methods: {
14
+ computedExecutionListenerLength() {
15
+ this.executionListenerLength = this.element.businessObject.extensionElements?.values?.length ?? 0
16
+ },
17
+ finishExecutionListener() {
18
+ if (this.dialogName === 'executionListenerDialog') {
19
+ this.computedExecutionListenerLength()
20
+ }
21
+ this.dialogName = ''
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,70 @@
1
+ import xcrud from 'xcrud'
2
+ import golbalConfig from 'xcrud/package/common/config'
3
+ import showConfig from '../flowable/showConfig'
4
+ golbalConfig.set({
5
+ input: {
6
+ // size: 'mini'
7
+ },
8
+ select: {
9
+ // size: 'mini'
10
+ },
11
+ colorPicker: {
12
+ showAlpha: true
13
+ },
14
+ xform: {
15
+ form: {
16
+ labelWidth: 'auto'
17
+ // size: 'mini'
18
+ }
19
+ }
20
+ })
21
+ export default {
22
+ components: { xForm: xcrud.xForm },
23
+ props: {
24
+ modeler: {
25
+ type: Object,
26
+ required: true
27
+ },
28
+ element: {
29
+ type: Object,
30
+ required: true
31
+ },
32
+ categorys: {
33
+ type: Array,
34
+ default: () => []
35
+ }
36
+ },
37
+ watch: {
38
+ 'formData.id': function(val) {
39
+ this.updateProperties({ id: val })
40
+ },
41
+ 'formData.name': function(val) {
42
+ this.updateProperties({ name: val })
43
+ },
44
+ 'formData.documentation': function(val) {
45
+ if (!val) {
46
+ this.updateProperties({ documentation: [] })
47
+ return
48
+ }
49
+ const documentationElement = this.modeler.get('moddle').create('bpmn:Documentation', { text: val })
50
+ this.updateProperties({ documentation: [documentationElement] })
51
+ }
52
+ },
53
+ methods: {
54
+ updateProperties(properties) {
55
+ const modeling = this.modeler.get('modeling')
56
+ modeling.updateProperties(this.element, properties)
57
+ }
58
+ },
59
+ computed: {
60
+ elementType() {
61
+ const bizObj = this.element.businessObject
62
+ return bizObj.eventDefinitions
63
+ ? bizObj.eventDefinitions[0].$type
64
+ : bizObj.$type
65
+ },
66
+ showConfig() {
67
+ return showConfig[this.elementType] || {}
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,22 @@
1
+ import xcrud from 'xcrud'
2
+ import golbalConfig from 'xcrud/package/common/config'
3
+ golbalConfig.set({
4
+ input: {
5
+ // size: 'mini'
6
+ },
7
+ select: {
8
+ // size: 'mini'
9
+ },
10
+ colorPicker: {
11
+ showAlpha: true
12
+ },
13
+ xform: {
14
+ form: {
15
+ labelWidth: 'auto'
16
+ // size: 'mini'
17
+ }
18
+ }
19
+ })
20
+ export default {
21
+ components: { xForm: xcrud.xForm }
22
+ }
@@ -0,0 +1,53 @@
1
+ export function commonParse(element) {
2
+ const result = {
3
+ ...element.businessObject,
4
+ ...element.businessObject.$attrs
5
+ }
6
+ return formatJsonKeyValue(result)
7
+ }
8
+
9
+ export function formatJsonKeyValue(result) {
10
+ // 移除flowable前缀,格式化数组
11
+ for (const key in result) {
12
+ if (key.indexOf('flowable:') === 0) {
13
+ const newKey = key.replace('flowable:', '')
14
+ result[newKey] = result[key]
15
+ delete result[key]
16
+ }
17
+ }
18
+ result = documentationParse(result)
19
+ return result
20
+ }
21
+
22
+ export function documentationParse(obj) {
23
+ if ('documentation' in obj) {
24
+ let str = ''
25
+ obj.documentation.forEach(item => {
26
+ str += item.text
27
+ })
28
+ obj.documentation = str
29
+ }
30
+ return obj
31
+ }
32
+
33
+ export function conditionExpressionParse(obj) {
34
+ if ('conditionExpression' in obj) {
35
+ obj.conditionExpression = obj.conditionExpression.body
36
+ }
37
+ return obj
38
+ }
39
+
40
+ export function userTaskParse(obj) {
41
+ for (const key in obj) {
42
+ if (key === 'candidateUsers') {
43
+ obj.userType = 'candidateUsers'
44
+ obj[key] = obj[key]?.split(',') || []
45
+ } else if (key === 'candidateGroups') {
46
+ obj.userType = 'candidateGroups'
47
+ obj[key] = obj[key]?.split(',') || []
48
+ } else if (key === 'assignee') {
49
+ obj.userType = 'assignee'
50
+ }
51
+ }
52
+ return obj
53
+ }
@@ -0,0 +1,24 @@
1
+ export default class CustomContextPad {
2
+ constructor(config, contextPad, create, elementFactory, injector, translate) {
3
+ this.create = create;
4
+ this.elementFactory = elementFactory;
5
+ this.translate = translate;
6
+
7
+ if (config.autoPlace !== false) {
8
+ this.autoPlace = injector.get('autoPlace', false);
9
+ }
10
+
11
+ contextPad.registerProvider(this); // 定义这是一个contextPad
12
+ }
13
+
14
+ getContextPadEntries(element) {}
15
+ }
16
+
17
+ CustomContextPad.$inject = [
18
+ 'config',
19
+ 'contextPad',
20
+ 'create',
21
+ 'elementFactory',
22
+ 'injector',
23
+ 'translate'
24
+ ];