cloud-web-corejs 1.0.54-dev.138 → 1.0.54-dev.140

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.
@@ -157,7 +157,8 @@
157
157
  max="200"
158
158
  v-model="szTaMb.sszstEn"
159
159
  @clear="
160
- szTaMb.sszst = '';
160
+ szTaMb.sszst = null;
161
+ szTaMb.sszstBm = null;
161
162
  $forceUpdate();
162
163
  "
163
164
  :disabled="szTaMb.taType == 0"
@@ -441,6 +442,7 @@
441
442
  clearable
442
443
  @clear="$forceUpdate()"
443
444
  v-el-readonly
445
+ :disabled="!!row.systems || !!row.relationZd"
444
446
  >
445
447
  <i
446
448
  slot="suffix"
@@ -449,6 +451,21 @@
449
451
  ></i>
450
452
  </el-input>
451
453
  </template>
454
+ <template #treeFlag="{ row }">
455
+ <el-select
456
+ v-model="row.treeFlag"
457
+ clearable
458
+ :disabled="!!row.systems || !!row.relationZd || szTaMb.taRule!==1"
459
+ >
460
+ <el-option value="name" :label="$t1('名称')"></el-option>
461
+ <el-option value="wbs" :label="$t1('WBS码')"></el-option>
462
+ <el-option value="parent" :label="$t1('上级ID')"></el-option>
463
+ <el-option value="treePath" :label="$t1('树ID路径')"></el-option>
464
+ <el-option value="treePathName" :label="$t1('树名称路径')"></el-option>
465
+ <el-option value="hasChild" :label="$t1('是否有下级')"></el-option>
466
+ <el-option value="grade" :label="$t1('层级')"></el-option>
467
+ </el-select>
468
+ </template>
452
469
  </vxe-grid>
453
470
  </div>
454
471
  <table class="table-detail">
@@ -559,7 +576,7 @@
559
576
  <i
560
577
  slot="suffix"
561
578
  class="el-input__icon el-icon-search"
562
- @click="showEntityFieldDialog1 = true"
579
+ @click="openEntityFieldDialog1"
563
580
  ></i>
564
581
  </el-input>
565
582
  </el-form-item>
@@ -584,7 +601,7 @@
584
601
  <i
585
602
  slot="suffix"
586
603
  class="el-input__icon el-icon-search"
587
- @click="showEntityFieldDialog2 = true"
604
+ @click="openEntityFieldDialog2"
588
605
  ></i>
589
606
  </el-input>
590
607
  </el-form-item>
@@ -689,6 +706,117 @@
689
706
  </el-button>
690
707
  </span>
691
708
  </el-dialog>
709
+
710
+ <!--begin-->
711
+ <el-dialog
712
+ :title="$t1('数据值对应表字段')"
713
+ v-if="showToTaBmZdDialog"
714
+ :visible.sync="showToTaBmZdDialog"
715
+ :modal-append-to-body="false"
716
+ :close-on-click-modal="false"
717
+ :modal="false"
718
+ custom-class="dialog-style wf-dialog"
719
+ v-el-drag-dialog
720
+ v-el-dialog-center
721
+ >
722
+ <el-form>
723
+ <div id="containt">
724
+ <table class="table-detail">
725
+ <tbody>
726
+ <tr>
727
+ <th>
728
+ <span class="t">
729
+ {{ $t1("对应表") }}
730
+ </span>
731
+ </th>
732
+ <td>
733
+ <el-form-item label="">
734
+ <el-input
735
+ class="search-input"
736
+ max="200"
737
+ v-model="toTaBmZdEntity"
738
+ @clear="
739
+ toTaBmZdEntity = null;
740
+ toTaBmZdField = null;
741
+ "
742
+ v-el-readonly
743
+ clearable
744
+ >
745
+ <i
746
+ slot="suffix"
747
+ class="el-input__icon el-icon-search"
748
+ @click="showEntityDialog3 = true"
749
+ ></i>
750
+ </el-input>
751
+ </el-form-item>
752
+ </td>
753
+ </tr>
754
+ <tr>
755
+ <th>
756
+ <span class="t">
757
+ {{ $t1("对应表字段") }}
758
+ </span>
759
+ </th>
760
+ <td>
761
+ <el-form-item label="">
762
+ <el-input
763
+ class="search-input"
764
+ max="200"
765
+ v-model="toTaBmZdField"
766
+ @clear="toTaBmZdField = null"
767
+ v-el-readonly
768
+ clearable
769
+ >
770
+ <i
771
+ slot="suffix"
772
+ class="el-input__icon el-icon-search"
773
+ @click="openEntityFieldDialog3"
774
+ ></i>
775
+ </el-input>
776
+ </el-form-item>
777
+ </td>
778
+ </tr>
779
+ </tbody>
780
+ </table>
781
+ </div>
782
+ </el-form>
783
+ <span slot="footer" class="dialog-footer">
784
+ <el-button
785
+ type="primary"
786
+ plain
787
+ class="button-sty"
788
+ @click="showToTaBmZdDialog = false"
789
+ >
790
+ <i class="el-icon-close el-icon"></i>
791
+ {{ $t1("取 消") }}
792
+ </el-button>
793
+ <el-button
794
+ type="primary"
795
+ @click="confirmToTaBmZdDialog"
796
+ class="button-sty"
797
+ >
798
+ <i class="el-icon-check el-icon"></i>
799
+ {{ $t1("确 定") }}
800
+ </el-button>
801
+ </span>
802
+ </el-dialog>
803
+
804
+ <szTaMbDialog
805
+ v-if="showEntityDialog3"
806
+ :visiable.sync="showEntityDialog3"
807
+ @confirm="confirmEntityDialog3"
808
+ :multi="false"
809
+ />
810
+
811
+ <zdDialog
812
+ v-if="showEntityFieldDialog3"
813
+ :visiable.sync="showEntityFieldDialog3"
814
+ @confirm="confirmEntityFieldDialog3"
815
+ :taBm="toTaBmZdEntity"
816
+ :multi="false"
817
+ />
818
+ <!--end-->
819
+
692
820
  </div>
693
821
  </template>
694
822
 
@@ -43,6 +43,7 @@ modules = {
43
43
  sszstEn: null,
44
44
  taEn: null,
45
45
  taBm: null,
46
+ sszstBm: null,
46
47
  },
47
48
  treeDefaultZds: [],
48
49
  productOption: {},
@@ -78,6 +79,8 @@ modules = {
78
79
  showToTaBmZdDialog: false,
79
80
  toTaBmZdEntity: null,
80
81
  toTaBmZdField: null,
82
+ showEntityDialog3: false,
83
+ showEntityFieldDialog3: false,
81
84
  };
82
85
  },
83
86
  created() {
@@ -298,6 +301,14 @@ modules = {
298
301
  default: "zdType",
299
302
  },
300
303
  },
304
+ {
305
+ title: this.$t1("树标识"),
306
+ field: "treeFlag",
307
+ width: 150,
308
+ slots: {
309
+ default: "treeFlag",
310
+ },
311
+ },
301
312
  {
302
313
  title: this.$t1("关联字段"),
303
314
  field: "referenceZd",
@@ -311,10 +322,18 @@ modules = {
311
322
  field: "refServiceName",
312
323
  width: 200,
313
324
  },
325
+ {
326
+ title: this.$t1("数据值对应表的字段"),
327
+ field: "toTaBmZd",
328
+ width: 250,
329
+ slots: {
330
+ default: "toTaBmZd",
331
+ },
332
+ },
314
333
  {
315
334
  title: this.$t1("字段类型对应的默认值"),
316
335
  field: "zdTypeValues",
317
- width: 150,
336
+ width: 200,
318
337
  slots: {
319
338
  default: "zdTypeValues",
320
339
  /*default: ({row, rowIndex, $table}) => {
@@ -480,6 +499,8 @@ modules = {
480
499
  orders: newIndex,
481
500
  generateCode: false,
482
501
  fromTable: false,
502
+ toTaBmZd: null,
503
+ treeFlag: null,
483
504
  };
484
505
  this.szTaMb.szTaZdMbDTOs.splice(0, 0, item);
485
506
  },
@@ -497,6 +518,7 @@ modules = {
497
518
  let row = rows[0];
498
519
  this.$set(this.szTaMb, "sszst", row.taCode);
499
520
  this.$set(this.szTaMb, "sszstEn", row.taEn);
521
+ this.$set(this.szTaMb, "sszstBm", row.taBm);
500
522
  }
501
523
  },
502
524
  confirmInsertItemSzTaMb(rows) {
@@ -713,12 +735,26 @@ modules = {
713
735
  this.refServiceName = row.serviceName;
714
736
  }
715
737
  },
738
+ openEntityFieldDialog1() {
739
+ if (!this.referenceEntity) {
740
+ this.$baseAlert("关联表不能为空");
741
+ return;
742
+ }
743
+ this.showEntityFieldDialog1 = true;
744
+ },
716
745
  confirmEntityFieldDialog1(rows) {
717
746
  if (rows.length) {
718
747
  let row = rows[0];
719
748
  this.referenceKey = row.taZdMc;
720
749
  }
721
750
  },
751
+ openEntityFieldDialog2() {
752
+ if (!this.referenceEntity) {
753
+ this.$baseAlert("关联表不能为空");
754
+ return;
755
+ }
756
+ this.showEntityFieldDialog2 = true;
757
+ },
722
758
  confirmEntityFieldDialog2(rows) {
723
759
  if (rows.length) {
724
760
  this.referenceShowRows = rows;
@@ -956,13 +992,56 @@ modules = {
956
992
  toTaBmZdField = item;
957
993
  }
958
994
  });
995
+ } else {
996
+ if (this.szTaMb.taType == 1 && this.szTaMb.sszstBm) {
997
+ toTaBmZdEntity = this.szTaMb.sszstBm;
998
+ }
959
999
  }
960
1000
  this.toTaBmZdEntity = toTaBmZdEntity;
961
1001
  this.toTaBmZdField = toTaBmZdField;
962
1002
  this.currentIndex = rowIndex;
963
1003
  this.showToTaBmZdDialog = true;
964
1004
  },
965
- confirmToTaBmZdDialog(rows) {},
1005
+ confirmToTaBmZdDialog() {
1006
+ let toTaBmZdEntity = this.toTaBmZdEntity;
1007
+ let toTaBmZdField = this.toTaBmZdField;
1008
+ if (!toTaBmZdEntity) {
1009
+ this.$baseAlert(this.$t1("对应表不能为空"));
1010
+ return;
1011
+ }
1012
+ if (!toTaBmZdField) {
1013
+ this.$baseAlert(this.$t1("对应表字段不能为空"));
1014
+ return;
1015
+ }
1016
+ this.szTaMb.szTaZdMbDTOs[this.currentIndex].toTaBmZd =
1017
+ toTaBmZdEntity + "." + toTaBmZdField;
1018
+ this.showToTaBmZdDialog = false;
1019
+ },
1020
+ openEntityDialog3() {
1021
+ this.showEntityDialog3 = true;
1022
+ },
1023
+ confirmEntityDialog3(rows) {
1024
+ if (rows.length) {
1025
+ let row = rows[0];
1026
+ if (this.toTaBmZdEntity != row.taBm) {
1027
+ this.toTaBmZdEntity = row.taBm;
1028
+ this.toTaBmZdField = null;
1029
+ }
1030
+ }
1031
+ },
1032
+ openEntityFieldDialog3() {
1033
+ if (!this.toTaBmZdEntity) {
1034
+ this.$baseAlert(this.$t1("关联表不能为空"));
1035
+ return;
1036
+ }
1037
+ this.showEntityFieldDialog3 = true;
1038
+ },
1039
+ confirmEntityFieldDialog3(rows) {
1040
+ if (rows.length) {
1041
+ let row = rows[0];
1042
+ this.toTaBmZdField = row.taZdMc;
1043
+ }
1044
+ },
966
1045
  },
967
1046
  };
968
1047
  export default modules;