vue2-client 1.18.34 → 1.18.35

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 (22) hide show
  1. package/package.json +1 -1
  2. package/src/assets/svg/female.svg +1 -1
  3. package/src/assets/svg/male.svg +1 -1
  4. package/src/base-client/components/common/AmapMarker/index.js +3 -3
  5. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  6. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +42 -53
  7. package/src/base-client/components/common/XAddNativeForm/demo.vue +7 -2
  8. package/src/base-client/components/common/XCollapse/XCollapse.vue +830 -830
  9. package/src/base-client/components/common/XDetailsView/index.js +3 -3
  10. package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
  11. package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
  12. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  13. package/src/base-client/components/his/XList/XList.vue +938 -938
  14. package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
  15. package/src/base-client/components/his/XTitle/XTitle.vue +314 -314
  16. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
  17. package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
  18. package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
  19. package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
  20. package/src/router/async/router.map.js +2 -2
  21. package/src-base-client/components/common/HIS/HForm/HForm.vue +0 -347
  22. /package/{src-base-client/components/common/XCollapse/XCollapse.vue → tests/unit/a.log} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.18.34",
3
+ "version": "1.18.35",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#D15DFF" fill-opacity="1"/></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#D15DFF" fill-opacity="1"/></g></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#0057FE" fill-opacity="1"/></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#0057FE" fill-opacity="1"/></g></svg>
@@ -1,3 +1,3 @@
1
- import AmapPointRendering from './AmapPointRendering'
2
-
3
- export default AmapPointRendering
1
+ import AmapPointRendering from './AmapPointRendering'
2
+
3
+ export default AmapPointRendering
@@ -1,3 +1,3 @@
1
- import HFormGroup from './HFormGroup.vue'
2
-
3
- export default HFormGroup
1
+ import HFormGroup from './HFormGroup.vue'
2
+
3
+ export default HFormGroup
@@ -683,11 +683,8 @@ export default {
683
683
  }
684
684
  // 处理表单校验情况
685
685
  if (item.rule) {
686
- if (groupItem) {
687
- this.rules[groupItem] = []
688
- } else {
689
- this.rules[rulesKey] = []
690
- }
686
+ const rulesArrayKey = groupItem || rulesKey
687
+ this.rules[rulesArrayKey] = []
691
688
  const required = item.rule.required ? item.rule.required === true || item.rule.required === 'true' : false
692
689
  let trigger
693
690
  let message
@@ -713,19 +710,26 @@ export default {
713
710
  message = '请输入' + item.name
714
711
  trigger = 'blur'
715
712
  }
716
- if (groupItem) {
717
- this.rules[groupItem].push({
718
- required: true,
719
- message: message,
720
- trigger: trigger
721
- })
722
- } else {
723
- this.rules[rulesKey].push({
724
- required: true,
725
- message: message,
726
- trigger: trigger
727
- })
728
- }
713
+ this.rules[rulesArrayKey].push({
714
+ required: true,
715
+ message: message,
716
+ trigger: trigger
717
+ })
718
+ }
719
+ // 文件/图片上传最小数量校验:必填时强制校验;非必填但已上传时也需校验
720
+ if (['file', 'image'].includes(item.type) && item.minAcceptCount) {
721
+ const minCount = Number(item.minAcceptCount)
722
+ this.rules[rulesArrayKey].push({
723
+ validator: (rule, value, callback) => {
724
+ const count = Array.isArray(value) ? value.length : (value ? 1 : 0)
725
+ if ((required || count > 0) && count < minCount) {
726
+ callback(new Error(`请至少上传${minCount}个${item.name}`))
727
+ } else {
728
+ callback()
729
+ }
730
+ },
731
+ trigger: 'change'
732
+ })
729
733
  }
730
734
 
731
735
  switch (item.rule.type) {
@@ -753,33 +757,18 @@ export default {
753
757
  defaultValue = 0.0
754
758
  break
755
759
  }
756
- if (groupItem) {
757
- this.rules[groupItem].push({
758
- type: item.rule.type,
759
- message: item.name + '必须为' + message,
760
- transform: (value) => {
761
- if (value && value.length !== 0) {
762
- return Number(value)
763
- } else {
764
- return defaultValue
765
- }
766
- },
767
- trigger: 'blur'
768
- })
769
- } else {
770
- this.rules[rulesKey].push({
771
- type: item.rule.type,
772
- message: item.name + '必须为' + message,
773
- transform: (value) => {
774
- if (value && value.length !== 0) {
775
- return Number(value)
776
- } else {
777
- return defaultValue
778
- }
779
- },
780
- trigger: 'blur'
781
- })
782
- }
760
+ this.rules[rulesArrayKey].push({
761
+ type: item.rule.type,
762
+ message: item.name + '必须为' + message,
763
+ transform: (value) => {
764
+ if (value && value.length !== 0) {
765
+ return Number(value)
766
+ } else {
767
+ return defaultValue
768
+ }
769
+ },
770
+ trigger: 'blur'
771
+ })
783
772
  break
784
773
  case 'email': {
785
774
  const validator = (rule, value, callback) => {
@@ -789,7 +778,7 @@ export default {
789
778
  callback()
790
779
  }
791
780
  }
792
- this.rules[groupItem || rulesKey].push({
781
+ this.rules[rulesArrayKey].push({
793
782
  type: 'email',
794
783
  validator: validator,
795
784
  message: '请输入正确的邮箱地址',
@@ -798,7 +787,7 @@ export default {
798
787
  break
799
788
  }
800
789
  case 'userPhone': {
801
- this.rules[groupItem || rulesKey].push({
790
+ this.rules[rulesArrayKey].push({
802
791
  type: 'userPhone',
803
792
  validator: (rule, value, callback) => {
804
793
  if (value && !REG_PHONE.test(value)) {
@@ -813,7 +802,7 @@ export default {
813
802
  break
814
803
  }
815
804
  case 'idNumber': {
816
- this.rules[groupItem || rulesKey].push({
805
+ this.rules[rulesArrayKey].push({
817
806
  validator: (rule, value, callback) => {
818
807
  if (value && !checkIdNumber(value)) {
819
808
  callback(new Error('请输入正确的身份证号码'))
@@ -826,7 +815,7 @@ export default {
826
815
  break
827
816
  }
828
817
  case 'landlineNumber': {
829
- this.rules[rulesKey].push({
818
+ this.rules[rulesArrayKey].push({
830
819
  validator: (rule, value, callback) => {
831
820
  if (value && !REG_LANDLINE.test(value)) {
832
821
  callback(new Error('请输入正确的座机号码'))
@@ -841,7 +830,7 @@ export default {
841
830
  // 大于0
842
831
  case 'greaterThanZero': {
843
832
  item.numberInput = true
844
- this.rules[rulesKey].push({
833
+ this.rules[rulesArrayKey].push({
845
834
  validator: (rule, value, callback) => {
846
835
  if (isNaN(value) || value <= 0) {
847
836
  callback(new Error('请输入一个大于0的数字'))
@@ -856,7 +845,7 @@ export default {
856
845
  // 大于等于0
857
846
  case 'greaterThanOrEqualZero': {
858
847
  item.numberInput = true
859
- this.rules[rulesKey].push({
848
+ this.rules[rulesArrayKey].push({
860
849
  validator: (rule, value, callback) => {
861
850
  if (isNaN(value) || value < 0) {
862
851
  callback(new Error('请输入一个大于等于0的数字'))
@@ -869,7 +858,7 @@ export default {
869
858
  break
870
859
  }
871
860
  case 'stringLength': {
872
- this.rules[rulesKey].push({
861
+ this.rules[rulesArrayKey].push({
873
862
  validator: (rule, value, callback) => {
874
863
  if (value && value.length < item.rule.minLen) {
875
864
  callback(new Error('长度不能少于' + item.rule.minLen + '个字符'))
@@ -884,7 +873,7 @@ export default {
884
873
  break
885
874
  }
886
875
  case 'customJs': {
887
- this.rules[rulesKey].push({
876
+ this.rules[rulesArrayKey].push({
888
877
  validator: (rule, value, callback) => {
889
878
  this.customJsValidate(rule, value, callback, item)
890
879
  },
@@ -11,7 +11,7 @@ export default {
11
11
  }
12
12
  },
13
13
  mounted () {
14
- getConfigByNameAsync('formtestForm', 'af-system').then(res => {
14
+ getConfigByNameAsync('SecurityPhotoForm', 'af-safecheck').then(res => {
15
15
  this.$refs.xAddFrom.init(Object.assign(res, {
16
16
  modifyModelData: {
17
17
  data: {}
@@ -26,6 +26,9 @@ export default {
26
26
  },
27
27
  singLocal () {
28
28
  console.log('singLocal')
29
+ },
30
+ onSubmit () {
31
+ this.$refs.xAddFrom.onSubmit()
29
32
  }
30
33
  }
31
34
  }
@@ -43,8 +46,10 @@ export default {
43
46
  </a-card>
44
47
  <a-card>
45
48
  <pre>{{
46
- form ? JSON.stringify(form, null, 2) : '请先点击获取表单数据' }}
49
+ form ? JSON.stringify(form, null, 2) : '请先点击获取表单数据11111' }}
50
+ <a-button type="primary" @click="onSubmit()">提交</a-button>
47
51
  </pre>
52
+
48
53
  </a-card>
49
54
  </div>
50
55
  </template>