vue2-client 1.15.123 → 1.15.126
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/package.json +1 -1
- package/src/base-client/components/common/HIS/HButtons/HButtons.vue +749 -0
- package/src/base-client/components/common/HIS/HButtons/index.js +3 -0
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +155 -0
- package/src/base-client/components/common/HIS/HFormTable/index.js +3 -0
- package/src/base-client/components/common/HIS/HTab/HTab.vue +111 -0
- package/src/base-client/components/common/HIS/HTab/index.js +3 -0
- package/src/base-client/components/common/HIS/demo.vue +46 -0
- package/src/base-client/components/common/XButtons/XButtons.vue +1 -1
- package/src/base-client/components/common/XCollapse/XCollapse.vue +2 -1
- package/src/base-client/components/common/XConversation/XConversation.vue +0 -6
- package/src/base-client/components/common/XReportGrid/XReport.vue +0 -11
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +36 -51
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +133 -48
- package/src/base-client/components/common/XTab/XTab.vue +12 -6
- package/src/base-client/components/his/XChart/XChart.vue +282 -282
- package/src/base-client/components/his/XChart/dome.vue +19 -19
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +0 -1
- package/src/base-client/components/his/XImageReport/ImagePreview.vue +393 -0
- package/src/base-client/components/his/XImageReport/XImageReport copy.vue +361 -0
- package/src/base-client/components/his/XImageReport/XImageReport.vue +200 -0
- package/src/base-client/components/his/XImageReport/XImageReportDemo.vue +29 -0
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaire.vue +1 -1
- package/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +1 -1
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/components/STable/index.js +11 -4
- package/src/router/async/router.map.js +2 -1
- package/.history/public/his/editor/editor_20250606134713.html +0 -51
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +0 -207
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +0 -211
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +0 -212
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +0 -212
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +0 -731
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +0 -1071
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +0 -1078
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +0 -1077
- package/.history/src/base-client/components/his/XChart/XChart_20250812134005.vue +0 -160
- package/.history/src/base-client/components/his/XChart/XChart_20250812134010.vue +0 -160
- package/.history/src/base-client/components/his/XChart/XChart_20250812134019.vue +0 -160
- package/.history/src/base-client/components/his/XChart/XChart_20250812134037.vue +0 -160
- package/.history/src/base-client/components/his/XChart/XChart_20250812134112.vue +0 -160
- package/.history/src/base-client/components/his/XChart/XChart_20250812134114.vue +0 -160
- package/.history/src/base-client/components/his/XChart/XChart_20250812134828.vue +0 -148
- package/.history/src/base-client/components/his/XChart/XChart_20250812134838.vue +0 -155
- package/.history/src/base-client/components/his/XChart/XChart_20250812134846.vue +0 -155
- package/.history/src/base-client/components/his/XChart/XChart_20250812134917.vue +0 -155
- package/.history/src/base-client/components/his/XChart/XChart_20250812151145.vue +0 -149
- package/.history/src/base-client/components/his/XChart/XChart_20250812151810.vue +0 -153
- package/.history/src/base-client/components/his/XChart/XChart_20250812151822.vue +0 -153
- package/.history/src/base-client/components/his/XChart/XChart_20250812151910.vue +0 -153
- package/.history/src/base-client/components/his/XChart/XChart_20250812152858.vue +0 -258
- package/.history/src/base-client/components/his/XChart/XChart_20250812152902.vue +0 -258
- package/.history/src/base-client/components/his/XChart/XChart_20250812152907.vue +0 -258
- package/.history/src/base-client/components/his/XChart/XChart_20250812152919.vue +0 -258
- package/.history/src/base-client/components/his/XChart/XChart_20250812153141.vue +0 -269
- package/.history/src/base-client/components/his/XChart/XChart_20250812153149.vue +0 -276
- package/.history/src/base-client/components/his/XChart/XChart_20250812153153.vue +0 -276
- package/.history/src/base-client/components/his/XChart/XChart_20250812153155.vue +0 -276
- package/.history/src/base-client/components/his/XChart/XChart_20250812153157.vue +0 -276
- package/.history/src/base-client/components/his/XChart/XChart_20250812153158.vue +0 -276
- package/.history/src/base-client/components/his/XChart/XChart_20250812153200.vue +0 -276
- package/.history/src/base-client/components/his/XChart/XChart_20250812153210.vue +0 -276
- package/.history/src/base-client/components/his/XChart/XChart_20250812153918.vue +0 -275
- package/.history/src/base-client/components/his/XChart/XChart_20250812154157.vue +0 -280
- package/.history/src/base-client/components/his/XChart/XChart_20250812154212.vue +0 -280
- package/.history/src/base-client/components/his/XChart/XChart_20250812154250.vue +0 -280
- package/.history/src/base-client/components/his/XChart/XChart_20250812154252.vue +0 -280
- package/.history/src/base-client/components/his/XChart/XChart_20250812154444.vue +0 -280
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +0 -131
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +0 -158
- package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
- package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
- package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
- package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250704142024.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142033.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142040.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142211.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142214.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704143010.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704143203.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250707095101.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100152.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100200.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100208.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100259.vue +0 -488
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134604.vue +0 -263
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134615.vue +0 -302
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134621.vue +0 -301
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134634.vue +0 -311
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134644.vue +0 -330
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134653.vue +0 -330
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134836.vue +0 -330
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135247.vue +0 -330
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135303.vue +0 -354
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135316.vue +0 -363
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135323.vue +0 -363
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135334.vue +0 -366
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135342.vue +0 -364
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135349.vue +0 -364
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135351.vue +0 -346
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135354.vue +0 -346
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135401.vue +0 -346
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135406.vue +0 -346
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135424.vue +0 -346
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807143043.vue +0 -254
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155506.vue +0 -329
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155535.vue +0 -330
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155543.vue +0 -330
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155926.vue +0 -304
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155928.vue +0 -304
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172548.vue +0 -298
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172609.vue +0 -298
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172623.vue +0 -298
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172631.vue +0 -298
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172701.vue +0 -298
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172704.vue +0 -298
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807175937.vue +0 -290
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807175942.vue +0 -290
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180210.vue +0 -290
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180424.vue +0 -290
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180448.vue +0 -290
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180915.vue +0 -262
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180917.vue +0 -262
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101106.vue +0 -283
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101112.vue +0 -289
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101118.vue +0 -289
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101129.vue +0 -294
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101137.vue +0 -318
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101145.vue +0 -320
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101154.vue +0 -320
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101211.vue +0 -320
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101236.vue +0 -320
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101239.vue +0 -320
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114001.vue +0 -342
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114005.vue +0 -342
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114014.vue +0 -345
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114020.vue +0 -345
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114028.vue +0 -345
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114108.vue +0 -345
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114115.vue +0 -345
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114333.vue +0 -346
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114339.vue +0 -350
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114344.vue +0 -355
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114351.vue +0 -355
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114408.vue +0 -355
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114410.vue +0 -355
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154330.vue +0 -389
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154338.vue +0 -389
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154402.vue +0 -389
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154425.vue +0 -389
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154428.vue +0 -389
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813171922.vue +0 -391
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813171957.vue +0 -391
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172004.vue +0 -391
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172012.vue +0 -391
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172241.vue +0 -391
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172242.vue +0 -391
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103845.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103852.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103857.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103859.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103907.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103910.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103911.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103913.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103916.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103931.vue +0 -142
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145127.vue +0 -85
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145136.vue +0 -81
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145142.vue +0 -81
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145145.vue +0 -81
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145148.vue +0 -81
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145151.vue +0 -81
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145155.vue +0 -81
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -213
- package/src/base-client/components/TreeList/TreeList.vue +0 -91
- package/src/base-client/components/TreeList/TreeNode.vue +0 -81
- package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
- package/src/base-client/components/his/XHisEditor/dome.vue +0 -145
package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172609.vue
DELETED
@@ -1,298 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div v-if="pattern == 'schedule'">
|
3
|
-
<a-table
|
4
|
-
:columns="columns"
|
5
|
-
:data-source="data"
|
6
|
-
:rowSelection="rowSelection"
|
7
|
-
:scroll="{ y: '70vh' }">
|
8
|
-
<span slot="time" class="time-title">
|
9
|
-
<span v-for="(item, index) in configData.timePeriod" :key="index">{{ item }}</span>
|
10
|
-
</span>
|
11
|
-
<div v-for="(item, index) in weekDays" :key="index" :slot="item.key" class="week_last_next_btn">
|
12
|
-
<a-button slot="lastWeek" icon="left" size="large" @click="handleLastWeek" v-if="item.title == '周一'" />
|
13
|
-
<div class="time-title">
|
14
|
-
<span>{{ item.title }}</span>
|
15
|
-
<span>{{ currentWeekDates[index].toLocaleDateString() }}</span>
|
16
|
-
</div>
|
17
|
-
<a-button slot="nextWeek" icon="right" size="large" @click="handleNextWeek" v-if="item.title == '周日'"/>
|
18
|
-
</div>
|
19
|
-
<template :slot="day.key" slot-scope="text, record" v-for="day in shiftTable">
|
20
|
-
<div class="time-title" :key="day.key">
|
21
|
-
<a-button v-for="(item, index) in record[day.key]" :key="index" @click="handleShiftChange(day.key, index, record)">{{ item === 1 || item === '1' ? '坐诊' : '休息' }}</a-button>
|
22
|
-
</div>
|
23
|
-
</template>
|
24
|
-
<template slot="sk_limit" slot-scope="text, record">
|
25
|
-
<a-input-number id="inputNumber" v-model="record.sk_limit" :min="configData.sk_limitMin" :max="configData.sk_limitMax" />
|
26
|
-
</template>
|
27
|
-
</a-table>
|
28
|
-
</div>
|
29
|
-
<div v-else-if="pattern == 'form'">
|
30
|
-
<a-table :columns="columns" :data-source="data" :row-selection="rowSelection" bordered>
|
31
|
-
<!-- 输入型列 -->
|
32
|
-
<template v-for="col in inputColumns" :slot="col.dataIndex" slot-scope="{ record }">
|
33
|
-
<div class="a-div">
|
34
|
-
<a-input
|
35
|
-
v-for="idx in col.row"
|
36
|
-
:key="record.key + '-' + col.dataIndex + '-' + idx"
|
37
|
-
v-model="inputValues[record.key][col.dataIndex][idx - 1]"
|
38
|
-
placeholder=""
|
39
|
-
class="ant-input"
|
40
|
-
/>
|
41
|
-
</div>
|
42
|
-
</template>
|
43
|
-
<!-- 数字型列(如 number) -->
|
44
|
-
<template v-for="col in numberColumns" :slot="col.dataIndex" slot-scope="{ record }">
|
45
|
-
<div class="a-div">
|
46
|
-
<div v-for="idx in col.row" :key="record.key + '-' + col.dataIndex + '-' + idx" class="ant-input">{{ idx }}</div>
|
47
|
-
</div>
|
48
|
-
</template>
|
49
|
-
</a-table>
|
50
|
-
</div>
|
51
|
-
</template>
|
52
|
-
<script>
|
53
|
-
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
54
|
-
|
55
|
-
export default {
|
56
|
-
data () {
|
57
|
-
return {
|
58
|
-
// 模式
|
59
|
-
pattern: 'schedule',
|
60
|
-
data: [],
|
61
|
-
// 列配置
|
62
|
-
columns: [],
|
63
|
-
// 列名
|
64
|
-
columnNames: [],
|
65
|
-
// 选中的行键值集合
|
66
|
-
selectedRows: [],
|
67
|
-
// 选中的行信息集合
|
68
|
-
selectedRowKeys: [],
|
69
|
-
// 原始数据备份
|
70
|
-
originalData: [],
|
71
|
-
// 配置参数
|
72
|
-
configData: {},
|
73
|
-
// 当前显示的周次日期
|
74
|
-
currentWeekDates: [],
|
75
|
-
weekDays: [...['周一', '周二', '周三', '周四', '周五', '周六', '周日'].map((title, index) => {
|
76
|
-
const key = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'][index]
|
77
|
-
return { title, key }
|
78
|
-
})],
|
79
|
-
// 排班时间表
|
80
|
-
shiftTable: [...['周一', '周二', '周三', '周四', '周五', '周六', '周日'].map((title, index) => {
|
81
|
-
const key = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'][index]
|
82
|
-
return {
|
83
|
-
key, dataIndex: key, scopedSlots: { customRender: key }, slots: { title: key }, align: 'center', width: key === 'Monday' || key === 'Sunday' ? 170 : 120
|
84
|
-
}
|
85
|
-
}),
|
86
|
-
{
|
87
|
-
title: '排班数',
|
88
|
-
key: 'sk_limit',
|
89
|
-
dataIndex: 'sk_limit',
|
90
|
-
scopedSlots: { customRender: 'sk_limit' },
|
91
|
-
align: 'center'
|
92
|
-
}
|
93
|
-
],
|
94
|
-
// 新增:输入型字段值
|
95
|
-
inputValues: {}
|
96
|
-
}
|
97
|
-
},
|
98
|
-
props: {
|
99
|
-
// 配置名
|
100
|
-
queryParamsName: {
|
101
|
-
type: String,
|
102
|
-
default: ''
|
103
|
-
},
|
104
|
-
// 服务名
|
105
|
-
serviceName: {
|
106
|
-
type: String,
|
107
|
-
default: 'af-his'
|
108
|
-
}
|
109
|
-
},
|
110
|
-
computed: {
|
111
|
-
rowSelection () {
|
112
|
-
return {
|
113
|
-
selectedRowKeys: this.selectedRowKeys,
|
114
|
-
onChange: (selectedRowKeys, selectedRows) => {
|
115
|
-
this.onSelectChange(selectedRowKeys, selectedRows)
|
116
|
-
}
|
117
|
-
}
|
118
|
-
},
|
119
|
-
inputColumns () {
|
120
|
-
return this.columns.filter(col => col.type === 'input')
|
121
|
-
},
|
122
|
-
numberColumns () {
|
123
|
-
return this.columns.filter(col => col.type === 'number')
|
124
|
-
}
|
125
|
-
},
|
126
|
-
mounted () {
|
127
|
-
this.initWeekDates()
|
128
|
-
},
|
129
|
-
methods: {
|
130
|
-
handleShiftChange (day, index, record) {
|
131
|
-
// 找到当前记录在data中的索引
|
132
|
-
const dataIndex = this.data.findIndex(item => item.id === record.id)
|
133
|
-
if (dataIndex === -1) return
|
134
|
-
// 获取当前状态
|
135
|
-
const currentValue = record[day][index]
|
136
|
-
const newValue = currentValue === 1 || currentValue === '1' ? 0 : 1
|
137
|
-
// 更新按钮显示
|
138
|
-
this.$set(record[day], index, newValue)
|
139
|
-
// 同步更新data中的数据
|
140
|
-
this.$set(this.data[dataIndex][day], index, newValue)
|
141
|
-
},
|
142
|
-
onSelectChange (selectedRowKeys, selectedRows) {
|
143
|
-
this.selectedRowKeys = selectedRowKeys
|
144
|
-
this.selectedRows = selectedRows
|
145
|
-
},
|
146
|
-
// 获取选中行数据,输入型字段为数组
|
147
|
-
getSelectedRowData () {
|
148
|
-
return this.selectedRowKeys.map(key => {
|
149
|
-
const row = this.data.find(r => r.key === key) || {}
|
150
|
-
const input = this.inputValues[key] || {}
|
151
|
-
return {
|
152
|
-
...row,
|
153
|
-
...input // 输入型字段为数组
|
154
|
-
}
|
155
|
-
})
|
156
|
-
},
|
157
|
-
// 获取全部数据
|
158
|
-
getAllTable () {
|
159
|
-
return this.data
|
160
|
-
},
|
161
|
-
// 初始化数据
|
162
|
-
async init (queryParamsName) {
|
163
|
-
getConfigByName(queryParamsName, this.serviceName, result => {
|
164
|
-
this.configData = result
|
165
|
-
runLogic(result.dataSource, {}, this.serviceName).then(res => {
|
166
|
-
this.columns = []
|
167
|
-
this.columns = JSON.parse(JSON.stringify(this.configData.columns))
|
168
|
-
this.pattern = result.pattern
|
169
|
-
if (this.pattern == 'schedule') {
|
170
|
-
for (let i = 0; i < this.shiftTable.length; i++) {
|
171
|
-
this.columns.push(this.shiftTable[i])
|
172
|
-
}
|
173
|
-
if (res && Array.isArray(res)) {
|
174
|
-
const weekDays = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
|
175
|
-
const shifts = ['am', 'pm', 'evening']
|
176
|
-
let key = 0
|
177
|
-
this.data = res.map(item => {
|
178
|
-
const scheduleData = {
|
179
|
-
key: key++
|
180
|
-
}
|
181
|
-
this.configData.columnsName.forEach(columnName => { scheduleData[columnName] = item[columnName] })
|
182
|
-
weekDays.forEach(day => {
|
183
|
-
scheduleData[day.charAt(0).toUpperCase() + day.slice(1)] = shifts.map(shift => item[`f_${day}_${shift}`] === '1' ? 1 : 0)
|
184
|
-
})
|
185
|
-
return scheduleData
|
186
|
-
})
|
187
|
-
// 保存原始数据
|
188
|
-
this.originalData = JSON.parse(JSON.stringify(this.data))
|
189
|
-
}
|
190
|
-
} else if (this.pattern == 'form') {
|
191
|
-
this.data = res
|
192
|
-
this.initInputValues(res)
|
193
|
-
}
|
194
|
-
})
|
195
|
-
})
|
196
|
-
},
|
197
|
-
// 初始化 inputValues
|
198
|
-
initInputValues (dataArr) {
|
199
|
-
this.inputValues = {}
|
200
|
-
dataArr.forEach(row => {
|
201
|
-
this.$set(this.inputValues, row.key, {})
|
202
|
-
this.inputColumns.forEach(col => {
|
203
|
-
// 初始化为数组,长度为col.row
|
204
|
-
this.$set(this.inputValues[row.key], col.dataIndex, Array(col.row).fill(''))
|
205
|
-
})
|
206
|
-
})
|
207
|
-
},
|
208
|
-
// 查询数据函数
|
209
|
-
filterTableData (filters) {
|
210
|
-
if (!filters || Object.keys(filters).length === 0) {
|
211
|
-
// 如果没有过滤条件,恢复原始数据
|
212
|
-
this.data = JSON.parse(JSON.stringify(this.originalData))
|
213
|
-
return
|
214
|
-
}
|
215
|
-
// 从原始数据开始过滤
|
216
|
-
this.data = this.originalData.filter(item => {
|
217
|
-
// 检查每一项是否满足所有过滤条件
|
218
|
-
return Object.entries(filters).every(([key, value]) => {
|
219
|
-
// 如果过滤值是字符串,进行模糊匹配
|
220
|
-
if (typeof value === 'string') {
|
221
|
-
return item[key] && item[key].toString().toLowerCase().includes(value.toLowerCase())
|
222
|
-
}
|
223
|
-
// 如果过滤值是数字,进行精确匹配
|
224
|
-
return item[key] === value
|
225
|
-
})
|
226
|
-
})
|
227
|
-
},
|
228
|
-
// 初始化周次日期
|
229
|
-
initWeekDates () {
|
230
|
-
const today = new Date()
|
231
|
-
const currentDay = today.getDay() || 7 // 将周日的0转换为7
|
232
|
-
const monday = new Date(today)
|
233
|
-
monday.setDate(today.getDate() - currentDay + 1) // 设置为本周一
|
234
|
-
this.currentWeekDates = Array.from({ length: 7 }, (_, index) => {
|
235
|
-
const date = new Date(monday)
|
236
|
-
date.setDate(monday.getDate() + index)
|
237
|
-
return date
|
238
|
-
})
|
239
|
-
},
|
240
|
-
// 切换到上一周
|
241
|
-
handleLastWeek () {
|
242
|
-
const monday = new Date(this.currentWeekDates[0])
|
243
|
-
monday.setDate(monday.getDate() - 7)
|
244
|
-
this.updateWeekDates(monday)
|
245
|
-
},
|
246
|
-
// 切换到下一周
|
247
|
-
handleNextWeek () {
|
248
|
-
const monday = new Date(this.currentWeekDates[0])
|
249
|
-
monday.setDate(monday.getDate() + 7)
|
250
|
-
this.updateWeekDates(monday)
|
251
|
-
},
|
252
|
-
// 更新周次日期
|
253
|
-
updateWeekDates (monday) {
|
254
|
-
this.currentWeekDates = Array.from({ length: 7 }, (_, index) => {
|
255
|
-
const date = new Date(monday)
|
256
|
-
date.setDate(monday.getDate() + index)
|
257
|
-
return date
|
258
|
-
})
|
259
|
-
}
|
260
|
-
},
|
261
|
-
watch: {
|
262
|
-
queryParamsName: {
|
263
|
-
handler (newValue) {
|
264
|
-
this.init(newValue)
|
265
|
-
},
|
266
|
-
deep: true,
|
267
|
-
immediate: true
|
268
|
-
}
|
269
|
-
}
|
270
|
-
}
|
271
|
-
</script>
|
272
|
-
|
273
|
-
<style scoped>
|
274
|
-
.time-title {
|
275
|
-
display: flex !important;
|
276
|
-
flex-direction: column !important;
|
277
|
-
align-items: center !important;
|
278
|
-
}
|
279
|
-
.week_last_next_btn {
|
280
|
-
display: flex;
|
281
|
-
flex-direction: row;
|
282
|
-
align-items: center;
|
283
|
-
justify-content: center;
|
284
|
-
gap: 16px;
|
285
|
-
}
|
286
|
-
::v-deep .ant-table-thead > tr > th,
|
287
|
-
::v-deep .ant-table-tbody > tr > td {
|
288
|
-
padding: 8px 16px !important;
|
289
|
-
overflow-wrap: break-word;
|
290
|
-
}
|
291
|
-
.ant-input {
|
292
|
-
width: 100%;
|
293
|
-
}
|
294
|
-
.a-div{
|
295
|
-
display: flex;
|
296
|
-
flex-direction: column;
|
297
|
-
}
|
298
|
-
</style>
|
package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172623.vue
DELETED
@@ -1,298 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div v-if="pattern == 'schedule'">
|
3
|
-
<a-table
|
4
|
-
:columns="columns"
|
5
|
-
:data-source="data"
|
6
|
-
:rowSelection="rowSelection"
|
7
|
-
:scroll="{ y: '70vh' }">
|
8
|
-
<span slot="time" class="time-title">
|
9
|
-
<span v-for="(item, index) in configData.timePeriod" :key="index">{{ item }}</span>
|
10
|
-
</span>
|
11
|
-
<div v-for="(item, index) in weekDays" :key="index" :slot="item.key" class="week_last_next_btn">
|
12
|
-
<a-button slot="lastWeek" icon="left" size="large" @click="handleLastWeek" v-if="item.title == '周一'" />
|
13
|
-
<div class="time-title">
|
14
|
-
<span>{{ item.title }}</span>
|
15
|
-
<span>{{ currentWeekDates[index].toLocaleDateString() }}</span>
|
16
|
-
</div>
|
17
|
-
<a-button slot="nextWeek" icon="right" size="large" @click="handleNextWeek" v-if="item.title == '周日'"/>
|
18
|
-
</div>
|
19
|
-
<template :slot="day.key" slot-scope="text, record" v-for="day in shiftTable">
|
20
|
-
<div class="time-title" :key="day.key">
|
21
|
-
<a-button v-for="(item, index) in record[day.key]" :key="index" @click="handleShiftChange(day.key, index, record)">{{ item === 1 || item === '1' ? '坐诊' : '休息' }}</a-button>
|
22
|
-
</div>
|
23
|
-
</template>
|
24
|
-
<template slot="sk_limit" slot-scope="text, record">
|
25
|
-
<a-input-number id="inputNumber" v-model="record.sk_limit" :min="configData.sk_limitMin" :max="configData.sk_limitMax" />
|
26
|
-
</template>
|
27
|
-
</a-table>
|
28
|
-
</div>
|
29
|
-
<div v-else-if="pattern == 'form'">
|
30
|
-
<a-table :columns="columns" :data-source="data" :row-selection="rowSelection" bordered>
|
31
|
-
<!-- 输入型列 -->
|
32
|
-
<template v-for="col in inputColumns" :slot="col.dataIndex" slot-scope="{ record }">
|
33
|
-
<div class="a-div" :key="record.key + '-' + col.dataIndex">
|
34
|
-
<a-input
|
35
|
-
v-for="idx in col.row"
|
36
|
-
:key="record.key + '-' + col.dataIndex + '-' + idx"
|
37
|
-
v-model="inputValues[record.key][col.dataIndex][idx - 1]"
|
38
|
-
placeholder=""
|
39
|
-
class="ant-input"
|
40
|
-
/>
|
41
|
-
</div>
|
42
|
-
</template>
|
43
|
-
<!-- 数字型列(如 number) -->
|
44
|
-
<template v-for="col in numberColumns" :slot="col.dataIndex" slot-scope="{ record }">
|
45
|
-
<div class="a-div" :key="record.key + '-' + col.dataIndex">
|
46
|
-
<div v-for="idx in col.row" :key="record.key + '-' + col.dataIndex + '-' + idx" class="ant-input">{{ idx }}</div>
|
47
|
-
</div>
|
48
|
-
</template>
|
49
|
-
</a-table>
|
50
|
-
</div>
|
51
|
-
</template>
|
52
|
-
<script>
|
53
|
-
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
54
|
-
|
55
|
-
export default {
|
56
|
-
data () {
|
57
|
-
return {
|
58
|
-
// 模式
|
59
|
-
pattern: 'schedule',
|
60
|
-
data: [],
|
61
|
-
// 列配置
|
62
|
-
columns: [],
|
63
|
-
// 列名
|
64
|
-
columnNames: [],
|
65
|
-
// 选中的行键值集合
|
66
|
-
selectedRows: [],
|
67
|
-
// 选中的行信息集合
|
68
|
-
selectedRowKeys: [],
|
69
|
-
// 原始数据备份
|
70
|
-
originalData: [],
|
71
|
-
// 配置参数
|
72
|
-
configData: {},
|
73
|
-
// 当前显示的周次日期
|
74
|
-
currentWeekDates: [],
|
75
|
-
weekDays: [...['周一', '周二', '周三', '周四', '周五', '周六', '周日'].map((title, index) => {
|
76
|
-
const key = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'][index]
|
77
|
-
return { title, key }
|
78
|
-
})],
|
79
|
-
// 排班时间表
|
80
|
-
shiftTable: [...['周一', '周二', '周三', '周四', '周五', '周六', '周日'].map((title, index) => {
|
81
|
-
const key = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'][index]
|
82
|
-
return {
|
83
|
-
key, dataIndex: key, scopedSlots: { customRender: key }, slots: { title: key }, align: 'center', width: key === 'Monday' || key === 'Sunday' ? 170 : 120
|
84
|
-
}
|
85
|
-
}),
|
86
|
-
{
|
87
|
-
title: '排班数',
|
88
|
-
key: 'sk_limit',
|
89
|
-
dataIndex: 'sk_limit',
|
90
|
-
scopedSlots: { customRender: 'sk_limit' },
|
91
|
-
align: 'center'
|
92
|
-
}
|
93
|
-
],
|
94
|
-
// 新增:输入型字段值
|
95
|
-
inputValues: {}
|
96
|
-
}
|
97
|
-
},
|
98
|
-
props: {
|
99
|
-
// 配置名
|
100
|
-
queryParamsName: {
|
101
|
-
type: String,
|
102
|
-
default: ''
|
103
|
-
},
|
104
|
-
// 服务名
|
105
|
-
serviceName: {
|
106
|
-
type: String,
|
107
|
-
default: 'af-his'
|
108
|
-
}
|
109
|
-
},
|
110
|
-
computed: {
|
111
|
-
rowSelection () {
|
112
|
-
return {
|
113
|
-
selectedRowKeys: this.selectedRowKeys,
|
114
|
-
onChange: (selectedRowKeys, selectedRows) => {
|
115
|
-
this.onSelectChange(selectedRowKeys, selectedRows)
|
116
|
-
}
|
117
|
-
}
|
118
|
-
},
|
119
|
-
inputColumns () {
|
120
|
-
return this.columns.filter(col => col.type === 'input')
|
121
|
-
},
|
122
|
-
numberColumns () {
|
123
|
-
return this.columns.filter(col => col.type === 'number')
|
124
|
-
}
|
125
|
-
},
|
126
|
-
mounted () {
|
127
|
-
this.initWeekDates()
|
128
|
-
},
|
129
|
-
methods: {
|
130
|
-
handleShiftChange (day, index, record) {
|
131
|
-
// 找到当前记录在data中的索引
|
132
|
-
const dataIndex = this.data.findIndex(item => item.id === record.id)
|
133
|
-
if (dataIndex === -1) return
|
134
|
-
// 获取当前状态
|
135
|
-
const currentValue = record[day][index]
|
136
|
-
const newValue = currentValue === 1 || currentValue === '1' ? 0 : 1
|
137
|
-
// 更新按钮显示
|
138
|
-
this.$set(record[day], index, newValue)
|
139
|
-
// 同步更新data中的数据
|
140
|
-
this.$set(this.data[dataIndex][day], index, newValue)
|
141
|
-
},
|
142
|
-
onSelectChange (selectedRowKeys, selectedRows) {
|
143
|
-
this.selectedRowKeys = selectedRowKeys
|
144
|
-
this.selectedRows = selectedRows
|
145
|
-
},
|
146
|
-
// 获取选中行数据,输入型字段为数组
|
147
|
-
getSelectedRowData () {
|
148
|
-
return this.selectedRowKeys.map(key => {
|
149
|
-
const row = this.data.find(r => r.key === key) || {}
|
150
|
-
const input = this.inputValues[key] || {}
|
151
|
-
return {
|
152
|
-
...row,
|
153
|
-
...input // 输入型字段为数组
|
154
|
-
}
|
155
|
-
})
|
156
|
-
},
|
157
|
-
// 获取全部数据
|
158
|
-
getAllTable () {
|
159
|
-
return this.data
|
160
|
-
},
|
161
|
-
// 初始化数据
|
162
|
-
async init (queryParamsName) {
|
163
|
-
getConfigByName(queryParamsName, this.serviceName, result => {
|
164
|
-
this.configData = result
|
165
|
-
runLogic(result.dataSource, {}, this.serviceName).then(res => {
|
166
|
-
this.columns = []
|
167
|
-
this.columns = JSON.parse(JSON.stringify(this.configData.columns))
|
168
|
-
this.pattern = result.pattern
|
169
|
-
if (this.pattern == 'schedule') {
|
170
|
-
for (let i = 0; i < this.shiftTable.length; i++) {
|
171
|
-
this.columns.push(this.shiftTable[i])
|
172
|
-
}
|
173
|
-
if (res && Array.isArray(res)) {
|
174
|
-
const weekDays = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
|
175
|
-
const shifts = ['am', 'pm', 'evening']
|
176
|
-
let key = 0
|
177
|
-
this.data = res.map(item => {
|
178
|
-
const scheduleData = {
|
179
|
-
key: key++
|
180
|
-
}
|
181
|
-
this.configData.columnsName.forEach(columnName => { scheduleData[columnName] = item[columnName] })
|
182
|
-
weekDays.forEach(day => {
|
183
|
-
scheduleData[day.charAt(0).toUpperCase() + day.slice(1)] = shifts.map(shift => item[`f_${day}_${shift}`] === '1' ? 1 : 0)
|
184
|
-
})
|
185
|
-
return scheduleData
|
186
|
-
})
|
187
|
-
// 保存原始数据
|
188
|
-
this.originalData = JSON.parse(JSON.stringify(this.data))
|
189
|
-
}
|
190
|
-
} else if (this.pattern == 'form') {
|
191
|
-
this.data = res
|
192
|
-
this.initInputValues(res)
|
193
|
-
}
|
194
|
-
})
|
195
|
-
})
|
196
|
-
},
|
197
|
-
// 初始化 inputValues
|
198
|
-
initInputValues (dataArr) {
|
199
|
-
this.inputValues = {}
|
200
|
-
dataArr.forEach(row => {
|
201
|
-
this.$set(this.inputValues, row.key, {})
|
202
|
-
this.inputColumns.forEach(col => {
|
203
|
-
// 初始化为数组,长度为col.row
|
204
|
-
this.$set(this.inputValues[row.key], col.dataIndex, Array(col.row).fill(''))
|
205
|
-
})
|
206
|
-
})
|
207
|
-
},
|
208
|
-
// 查询数据函数
|
209
|
-
filterTableData (filters) {
|
210
|
-
if (!filters || Object.keys(filters).length === 0) {
|
211
|
-
// 如果没有过滤条件,恢复原始数据
|
212
|
-
this.data = JSON.parse(JSON.stringify(this.originalData))
|
213
|
-
return
|
214
|
-
}
|
215
|
-
// 从原始数据开始过滤
|
216
|
-
this.data = this.originalData.filter(item => {
|
217
|
-
// 检查每一项是否满足所有过滤条件
|
218
|
-
return Object.entries(filters).every(([key, value]) => {
|
219
|
-
// 如果过滤值是字符串,进行模糊匹配
|
220
|
-
if (typeof value === 'string') {
|
221
|
-
return item[key] && item[key].toString().toLowerCase().includes(value.toLowerCase())
|
222
|
-
}
|
223
|
-
// 如果过滤值是数字,进行精确匹配
|
224
|
-
return item[key] === value
|
225
|
-
})
|
226
|
-
})
|
227
|
-
},
|
228
|
-
// 初始化周次日期
|
229
|
-
initWeekDates () {
|
230
|
-
const today = new Date()
|
231
|
-
const currentDay = today.getDay() || 7 // 将周日的0转换为7
|
232
|
-
const monday = new Date(today)
|
233
|
-
monday.setDate(today.getDate() - currentDay + 1) // 设置为本周一
|
234
|
-
this.currentWeekDates = Array.from({ length: 7 }, (_, index) => {
|
235
|
-
const date = new Date(monday)
|
236
|
-
date.setDate(monday.getDate() + index)
|
237
|
-
return date
|
238
|
-
})
|
239
|
-
},
|
240
|
-
// 切换到上一周
|
241
|
-
handleLastWeek () {
|
242
|
-
const monday = new Date(this.currentWeekDates[0])
|
243
|
-
monday.setDate(monday.getDate() - 7)
|
244
|
-
this.updateWeekDates(monday)
|
245
|
-
},
|
246
|
-
// 切换到下一周
|
247
|
-
handleNextWeek () {
|
248
|
-
const monday = new Date(this.currentWeekDates[0])
|
249
|
-
monday.setDate(monday.getDate() + 7)
|
250
|
-
this.updateWeekDates(monday)
|
251
|
-
},
|
252
|
-
// 更新周次日期
|
253
|
-
updateWeekDates (monday) {
|
254
|
-
this.currentWeekDates = Array.from({ length: 7 }, (_, index) => {
|
255
|
-
const date = new Date(monday)
|
256
|
-
date.setDate(monday.getDate() + index)
|
257
|
-
return date
|
258
|
-
})
|
259
|
-
}
|
260
|
-
},
|
261
|
-
watch: {
|
262
|
-
queryParamsName: {
|
263
|
-
handler (newValue) {
|
264
|
-
this.init(newValue)
|
265
|
-
},
|
266
|
-
deep: true,
|
267
|
-
immediate: true
|
268
|
-
}
|
269
|
-
}
|
270
|
-
}
|
271
|
-
</script>
|
272
|
-
|
273
|
-
<style scoped>
|
274
|
-
.time-title {
|
275
|
-
display: flex !important;
|
276
|
-
flex-direction: column !important;
|
277
|
-
align-items: center !important;
|
278
|
-
}
|
279
|
-
.week_last_next_btn {
|
280
|
-
display: flex;
|
281
|
-
flex-direction: row;
|
282
|
-
align-items: center;
|
283
|
-
justify-content: center;
|
284
|
-
gap: 16px;
|
285
|
-
}
|
286
|
-
::v-deep .ant-table-thead > tr > th,
|
287
|
-
::v-deep .ant-table-tbody > tr > td {
|
288
|
-
padding: 8px 16px !important;
|
289
|
-
overflow-wrap: break-word;
|
290
|
-
}
|
291
|
-
.ant-input {
|
292
|
-
width: 100%;
|
293
|
-
}
|
294
|
-
.a-div{
|
295
|
-
display: flex;
|
296
|
-
flex-direction: column;
|
297
|
-
}
|
298
|
-
</style>
|