kz-ui-base 1.0.156 → 1.0.158

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 (33) hide show
  1. package/common/src/components/base/dialog/BaseDialog.vue +15 -4
  2. package/list-base-page/listBasePageTs.vue +47 -50
  3. package/package.json +1 -1
  4. package/views/bd/common/modal/AddressInfoModal.vue +8 -8
  5. package/views/bd/common/modal/BankInfoModal.vue +10 -10
  6. package/views/bd/common/modal/CustomerContactsModal.vue +13 -13
  7. package/views/bd/common/modal/ItemModalBk.vue +8 -8
  8. package/views/bd/common/modal/NumberingRuleModal.vue +8 -8
  9. package/views/bd/common/modal/PostModal.vue +22 -22
  10. package/views/bd/common/modal/ProjectModal.vue +8 -8
  11. package/views/bd/common/modal/SalesmanInfoModel.vue +7 -7
  12. package/views/bd/common/modal/materialCodeModal.vue +23 -30
  13. package/views/fd/common/modal/AddResourceModal.vue +8 -6
  14. package/views/fd/common/modal/AssetModal.vue +17 -17
  15. package/views/fd/common/modal/EquipmentModal.vue +10 -10
  16. package/views/fd/common/modal/FactoryTreeModal.vue +3 -1
  17. package/views/fd/common/modal/ResourceModal.vue +6 -6
  18. package/views/fd/common/modal/SiteModal.vue +9 -11
  19. package/views/fd/common/modal/StorageUnitModal.vue +9 -9
  20. package/views/fd/common/modal/StorageZoneModal.vue +11 -11
  21. package/views/fd/common/modal/WorkAreaModal.vue +9 -9
  22. package/views/fd/common/modal/WorkCenterModal.vue +9 -9
  23. package/views/fd/common/modal/WorkUnitModal.vue +9 -9
  24. package/views/pd/common/modal/BopModal.vue +10 -10
  25. package/views/pd/common/modal/DrawingPathModal.vue +52 -52
  26. package/views/pd/common/modal/ParameterModal.vue +18 -18
  27. package/views/pd/common/modal/ProcessModal.vue +15 -15
  28. package/views/pd/common/modal/ProdRoutingDtlModal.vue +19 -19
  29. package/views/pd/common/modal/ProdRoutingModal.vue +14 -14
  30. package/views/pd/common/modal/ProdStructureModal.vue +14 -14
  31. package/views/pd/common/modal/ProdstructTemplateHdrModal.vue +27 -25
  32. package/views/pd/common/modal/ProductionVersionModal.vue +35 -35
  33. package/views/pd/common/modal/technicalStandardModal.vue +17 -17
@@ -22,12 +22,12 @@
22
22
  size="small"
23
23
  type="primary"
24
24
  @click="handleConfirm"
25
- >{{ confirmText }}
25
+ >{{ _confirmText }}
26
26
  </el-button>
27
27
  <el-button
28
28
  size="small"
29
29
  @click="handleClose"
30
- >{{ cancelText }}
30
+ >{{ _cancelText }}
31
31
  </el-button>
32
32
  </div>
33
33
  </div>
@@ -44,11 +44,11 @@ export default {
44
44
  },
45
45
  confirmText: {
46
46
  type: String,
47
- default: '确定'
47
+ default: ''
48
48
  },
49
49
  cancelText: {
50
50
  type: String,
51
- default: '关闭'
51
+ default: ''
52
52
  },
53
53
  visible: {
54
54
  type: Boolean,
@@ -66,12 +66,23 @@ export default {
66
66
  submitLoading: false
67
67
  }
68
68
  },
69
+ computed: {
70
+ // 确定按钮文本,支持国际化
71
+ _confirmText() {
72
+ return this.confirmText || this.t('component.dialog.confirm') || '确定'
73
+ },
74
+ // 取消按钮文本,支持国际化
75
+ _cancelText() {
76
+ return this.cancelText || this.t('component.dialog.cancel') || '关闭'
77
+ }
78
+ },
69
79
  watch: {
70
80
  visible(val) {
71
81
  this.modalState = val
72
82
  }
73
83
  },
74
84
  methods: {
85
+
75
86
  handleConfirm() {
76
87
  this.$emit('on-confirm')
77
88
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-loading="exportButton"
4
- element-loading-text="数据加载中..."
4
+ :element-loading-text="t('common.loading')"
5
5
  :class="{
6
6
  'dialog-body-wrapper': true,
7
7
  }"
@@ -31,7 +31,7 @@
31
31
  icon="el-icon-plus"
32
32
  type="primary"
33
33
  size="mini"
34
- >添加下层</el-button
34
+ >{{ t('common.addSubLevel') }}</el-button
35
35
  >
36
36
  <el-button
37
37
  style="flex: 1"
@@ -40,7 +40,7 @@
40
40
  icon="el-icon-edit"
41
41
  type="success"
42
42
  size="mini"
43
- >修改本层</el-button
43
+ >{{ t('common.editCurrentLevel') }}</el-button
44
44
  >
45
45
  <el-button
46
46
  style="flex: 1"
@@ -49,7 +49,7 @@
49
49
  icon="el-icon-delete"
50
50
  type="danger"
51
51
  size="mini"
52
- >删除本层</el-button
52
+ >{{ t('common.deleteCurrentLevel') }}</el-button
53
53
  >
54
54
  </div>
55
55
  <div
@@ -284,13 +284,13 @@
284
284
  icon="el-icon-search"
285
285
  size="mini"
286
286
  @click="handleQuery"
287
- >{{ this.t('common.search') }}</el-button
287
+ >{{ t('common.search') }}</el-button
288
288
  >
289
289
  <el-button
290
290
  icon="el-icon-refresh"
291
291
  size="mini"
292
292
  @click="resetQuery"
293
- >{{ this.t('common.reset') }}</el-button
293
+ >{{ t('common.reset') }}</el-button
294
294
  >
295
295
  <AdvancedQueryClose
296
296
  style="
@@ -312,7 +312,7 @@
312
312
 
313
313
  <div
314
314
  v-loading="contentLoading"
315
- element-loading-text="数据加载中..."
315
+ :element-loading-text="t('common.loading')"
316
316
  class="content-container"
317
317
  >
318
318
  <div
@@ -380,7 +380,7 @@
380
380
  >
381
381
  <el-dropdown>
382
382
  <el-button type="info" size="mini">
383
- 审批<i class="el-icon-arrow-down el-icon--right"></i>
383
+ {{ t('common.approve') }}<i class="el-icon-arrow-down el-icon--right"></i>
384
384
  </el-button>
385
385
  <el-dropdown-menu slot="dropdown">
386
386
  <template v-for="(opMenu, index) in opMenus">
@@ -468,7 +468,7 @@
468
468
  :height="tableHeight"
469
469
  :border="true"
470
470
  v-loading="loading"
471
- element-loading-text="数据加载中..."
471
+ :element-loading-text="t('common.loading')"
472
472
  :data="listData"
473
473
  :show-summary="listSetting.isShowSumRow"
474
474
  :summary-method="getSummaries"
@@ -599,10 +599,10 @@
599
599
  "
600
600
  >
601
601
  {{
602
- String(scope.row[column.property]) === "1" ? "是" : ""
602
+ String(scope.row[column.property]) === "1" ? t('common.yes') : ""
603
603
  }}
604
604
  {{
605
- String(scope.row[column.property]) === "0" ? "否" : ""
605
+ String(scope.row[column.property]) === "0" ? t('common.no') : ""
606
606
  }}
607
607
  </span>
608
608
  <el-tag
@@ -864,7 +864,7 @@
864
864
  </template>
865
865
 
866
866
  <el-table-column
867
- label="操作"
867
+ :label="t('common.operation')"
868
868
  align="center"
869
869
  min-width="160"
870
870
  class-name="small-padding fixed-width"
@@ -911,7 +911,7 @@
911
911
  :height="tableHeight"
912
912
  :border="true"
913
913
  v-loading="loading"
914
- element-loading-text="数据加载中..."
914
+ :element-loading-text="t('common.loading')"
915
915
  :data="dataForTables[index]"
916
916
  :show-summary="listSetting.isShowSumRow"
917
917
  :summary-method="getSummaries"
@@ -996,12 +996,12 @@
996
996
  >
997
997
  {{
998
998
  String(scope.row[column.property]) === "1"
999
- ? "是"
999
+ ? t('common.yes')
1000
1000
  : ""
1001
1001
  }}
1002
1002
  {{
1003
1003
  String(scope.row[column.property]) === "0"
1004
- ? "否"
1004
+ ? t('common.no')
1005
1005
  : ""
1006
1006
  }}
1007
1007
  </span>
@@ -1147,7 +1147,7 @@
1147
1147
  </template>
1148
1148
 
1149
1149
  <el-table-column
1150
- label="操作"
1150
+ :label="t('common.operation')"
1151
1151
  align="center"
1152
1152
  min-width="160"
1153
1153
  class-name="small-padding fixed-width"
@@ -1190,8 +1190,8 @@
1190
1190
  </el-col>
1191
1191
  </el-row>
1192
1192
  <div v-if="value && value.btnShow" class="dialog-footer">
1193
- <el-button type="primary" @click="submitForm">确 定</el-button>
1194
- <el-button @click="cancel">取 消</el-button>
1193
+ <el-button type="primary" @click="submitForm">{{ t('common.confirm') }}</el-button>
1194
+ <el-button @click="cancel">{{ t('common.cancel') }}</el-button>
1195
1195
  </div>
1196
1196
 
1197
1197
  <!-- 添加或修改参数配置对话框 -->
@@ -1294,7 +1294,7 @@ import { getToken } from "@utils/auth";
1294
1294
  import _ from "lodash";
1295
1295
  import KZ_DropDownList from "@srcComponents/customForm/dropDownList.vue";
1296
1296
  import KZ_TextBox from "@srcComponents/customForm/textBox.vue";
1297
- import EditDialog from "./common/src/components/base/dialog/editDialog.vue";
1297
+ import EditDialog from "@components/base/dialog/editDialog.vue";
1298
1298
  import KZ_CheckBox from "@srcComponents/customForm/checkBox.vue";
1299
1299
  import KZ_DatePicker from "@srcComponents/customForm/datePicker.vue";
1300
1300
  import KZ_Switch from "@srcComponents/customForm/switch.vue";
@@ -1305,7 +1305,7 @@ import KZ_Radio from "@srcComponents/customForm/radio.vue";
1305
1305
  import UploadDialog from "@srcComponents/customForm/uploadDialog.vue";
1306
1306
  import PrintDialog from "@srcComponents/customForm/printDialog.vue";
1307
1307
  import KZ_Lookup from "@srcComponents/customForm/lookup.vue";
1308
- import MultiLanguageDialog from ".components/base/dialog/MultiLanguageDialog.vue";
1308
+ import MultiLanguageDialog from "@srcComponents/base/dialog/MultiLanguageDialog.vue";
1309
1309
  import { batchGetTranslation } from "@srcComponents/base/dialog/config.js";
1310
1310
  @Component({
1311
1311
  components: {
@@ -1701,7 +1701,7 @@ export default class listBasePage extends Vue {
1701
1701
  name: "basic",
1702
1702
  visable: true,
1703
1703
  icon: "ion-plus-round",
1704
- text: '基本信息',
1704
+ text: (this as any).t('common.basicInfo'),
1705
1705
  type: "area",
1706
1706
  },
1707
1707
  ];
@@ -1746,7 +1746,7 @@ export default class listBasePage extends Vue {
1746
1746
  // 是否显示编辑窗口
1747
1747
  isShow: false,
1748
1748
  // 弹出层标题(用户导入)
1749
- title: '打印模版',
1749
+ title: (this as any).t('common.printTemplate'),
1750
1750
  //打印类型
1751
1751
  templateType: "",
1752
1752
  // 保存时是否自动关闭
@@ -1883,7 +1883,7 @@ export default class listBasePage extends Vue {
1883
1883
  initField(this.moduleName, data)
1884
1884
  .then((response) => {
1885
1885
  if ((response as any).code != 200) {
1886
- (this as any).msgError("初始化失败!");
1886
+ (this as any).msgError((this as any).t('common.initFailed'));
1887
1887
  }
1888
1888
  listEntity(
1889
1889
  this.moduleName,
@@ -2038,7 +2038,7 @@ export default class listBasePage extends Vue {
2038
2038
  }
2039
2039
  /** 自定义列显示格式方法 */
2040
2040
  remarkFormat(data, column) {
2041
- return data.remark ? "有备注" : "无备注";
2041
+ return data.remark ? (this as any).t('common.hasRemark') : (this as any).t('common.noRemark');
2042
2042
  }
2043
2043
  /** 自定义列点击方法 */
2044
2044
  onFilePriview(data, column) {
@@ -2047,7 +2047,7 @@ export default class listBasePage extends Vue {
2047
2047
  /** 自定义列显示Html */
2048
2048
  getFilePriviewLink(data, column) {
2049
2049
  return `<a href="${this.getFilePriviewUrl(data.remark)}" target="_blank">${
2050
- data.remark ? "自定义预览" : ""
2050
+ data.remark ? (this as any).t('common.customPreview') : ""
2051
2051
  }</a>`;
2052
2052
  }
2053
2053
  getSummaries(param) {
@@ -2055,7 +2055,7 @@ export default class listBasePage extends Vue {
2055
2055
  const sums = [];
2056
2056
  columns.forEach((column, index) => {
2057
2057
  if (index === 0) {
2058
- sums[index] = '合计';
2058
+ sums[index] = (this as any).t('common.total');
2059
2059
  return;
2060
2060
  }
2061
2061
  const values = data.map((item) => Number(item[column.property]));
@@ -2171,10 +2171,7 @@ export default class listBasePage extends Vue {
2171
2171
  console.log(args);
2172
2172
  }
2173
2173
 
2174
- /** 国际化方法 */
2175
- t(key: string) {
2176
- return (this as any).$t(key) || key
2177
- }
2174
+
2178
2175
 
2179
2176
  /** 查询用户列表 */
2180
2177
  getList() {
@@ -2543,7 +2540,7 @@ export default class listBasePage extends Vue {
2543
2540
  var setting = JSON.parse(args.data.setting);
2544
2541
  }
2545
2542
  } catch (ex) {
2546
- (self as any).msgError("验证规则设置有误,JSON格式不正确,请检查!");
2543
+ (self as any).msgError((self as any).t('common.validationRulesJsonError'));
2547
2544
  this.$set(this.editSetting, "submitLoading", false);
2548
2545
  return;
2549
2546
  }
@@ -2582,7 +2579,7 @@ export default class listBasePage extends Vue {
2582
2579
  updateEntity(self.moduleName, self.serviceName, args.data).then(
2583
2580
  (response) => {
2584
2581
  self.getList();
2585
- (self as any).msgSuccess("修改成功");
2582
+ (self as any).msgSuccess((self as any).t('common.updateSuccess'));
2586
2583
  if (self.editSetting.isCloseOnSave) self.editSetting.isShow = false;
2587
2584
  self.$set(this.editSetting, "submitLoading", false);
2588
2585
  //self.editSetting.isShow = false;
@@ -2623,7 +2620,7 @@ export default class listBasePage extends Vue {
2623
2620
  addEntity(self.moduleName, self.serviceName, args.data).then(
2624
2621
  (response) => {
2625
2622
  self.getList();
2626
- (self as any).msgSuccess("新增成功");
2623
+ (self as any).msgSuccess((self as any).t('common.addSuccess'));
2627
2624
  if (self.editSetting.isCloseOnSave) self.editSetting.isShow = false;
2628
2625
  self.$set(this.editSetting, "submitLoading", false);
2629
2626
  },
@@ -2787,7 +2784,7 @@ export default class listBasePage extends Vue {
2787
2784
  this.serviceName == "search")
2788
2785
  ) {
2789
2786
  if (this.currentSelectTreeId == undefined) {
2790
- (this as any).msgError("请在左侧选择一个界面设置!");
2787
+ (this as any).msgError((this as any).t('common.pleaseSelectInterfaceSetting'));
2791
2788
  } else {
2792
2789
  Vue.set(
2793
2790
  this.currentEntity,
@@ -2795,7 +2792,7 @@ export default class listBasePage extends Vue {
2795
2792
  this.currentSelectTreeId
2796
2793
  );
2797
2794
  this.editSetting.isShow = true;
2798
- this.editSetting.title = "添加";
2795
+ this.editSetting.title = (this as any).t('common.add');
2799
2796
  }
2800
2797
  } else {
2801
2798
  this.editColumns.forEach((item) => {
@@ -2804,7 +2801,7 @@ export default class listBasePage extends Vue {
2804
2801
  }
2805
2802
  });
2806
2803
  this.editSetting.isShow = true;
2807
- this.editSetting.title = "添加";
2804
+ this.editSetting.title = (this as any).t('common.add');
2808
2805
  }
2809
2806
  }
2810
2807
  /** 复制按钮操作 */
@@ -2831,9 +2828,9 @@ export default class listBasePage extends Vue {
2831
2828
  }
2832
2829
  }
2833
2830
  });
2834
- self.editSetting.title = "修改";
2831
+ self.editSetting.title = (self as any).t('common.edit');
2835
2832
  if (row == "detail") {
2836
- self.editSetting.title = "查看";
2833
+ self.editSetting.title = (self as any).t('common.view');
2837
2834
  this.oldeditColumns = [];
2838
2835
  this.oldeditColumns = JSON.parse(JSON.stringify(this.editColumns));
2839
2836
  this.oldeditColumns.forEach((item) => {
@@ -2866,9 +2863,9 @@ export default class listBasePage extends Vue {
2866
2863
  const text = this.idsText;
2867
2864
  let $this = this;
2868
2865
  (this as any)
2869
- .$confirm("是否确认删除?", "警告", {
2870
- confirmButtonText: "确定",
2871
- cancelButtonText: "取消",
2866
+ .$confirm((this as any).t('common.confirmDelete'), (this as any).t('common.warning'), {
2867
+ confirmButtonText: (this as any).t('common.confirm'),
2868
+ cancelButtonText: (this as any).t('common.cancel'),
2872
2869
  type: "warning",
2873
2870
  })
2874
2871
  .then(function () {
@@ -2880,7 +2877,7 @@ export default class listBasePage extends Vue {
2880
2877
  })
2881
2878
  .then(() => {
2882
2879
  $this.getList();
2883
- ($this as any).msgSuccess("删除成功");
2880
+ ($this as any).msgSuccess(($this as any).t('common.deleteSuccess'));
2884
2881
  });
2885
2882
 
2886
2883
  this.submitLoading = false;
@@ -2888,7 +2885,7 @@ export default class listBasePage extends Vue {
2888
2885
  /** 导出按钮操作 */
2889
2886
  handleExport() {
2890
2887
  if (this.exportButton) {
2891
- (this as any).msgError("请勿重复点击");
2888
+ (this as any).msgError((this as any).t('common.doNotClickRepeatedly'));
2892
2889
  return;
2893
2890
  }
2894
2891
  this.exportButton = true;
@@ -2912,7 +2909,7 @@ export default class listBasePage extends Vue {
2912
2909
  }
2913
2910
  /** 导入按钮操作 */
2914
2911
  handleImport() {
2915
- this.uploadSetting.title = "导入";
2912
+ this.uploadSetting.title = (this as any).t('common.import');
2916
2913
  // 上传的地址
2917
2914
  this.uploadSetting.url =
2918
2915
  process.env.VUE_APP_BASE_API +
@@ -2936,7 +2933,7 @@ export default class listBasePage extends Vue {
2936
2933
  this.getList();
2937
2934
  }
2938
2935
  handlePrint() {
2939
- this.printSetting.title = "打印模板";
2936
+ this.printSetting.title = (this as any).t('common.printTemplate');
2940
2937
  this.printSetting.currentEntity = this.currentEntity;
2941
2938
  this.printSetting.templateType = `/${this.moduleName}/${this.serviceName}`;
2942
2939
  (this.$refs.printDialog as any).show();
@@ -3086,9 +3083,9 @@ export default class listBasePage extends Vue {
3086
3083
  };
3087
3084
 
3088
3085
  (this as any)
3089
- .$prompt("请输入审批流标题(可为空)", "是否确认发起审批?", {
3090
- confirmButtonText: "确定",
3091
- cancelButtonText: "取消",
3086
+ .$prompt((this as any).t('common.pleaseEnterWorkflowTitle'), (this as any).t('common.confirmStartApproval'), {
3087
+ confirmButtonText: (this as any).t('common.confirm'),
3088
+ cancelButtonText: (this as any).t('common.cancel'),
3092
3089
  //inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
3093
3090
  // inputErrorMessage: '邮箱格式不正确'
3094
3091
  })
@@ -3099,7 +3096,7 @@ export default class listBasePage extends Vue {
3099
3096
  startWorkflow(this.moduleName, this.serviceName, params, this.wfKey)
3100
3097
  .then((response) => {
3101
3098
  (this as any).exportButton = false;
3102
- (this as any).$message.success("发起审批成功");
3099
+ (this as any).$message.success((this as any).t('common.startApprovalSuccess'));
3103
3100
  (this as any).getList();
3104
3101
  })
3105
3102
  .catch((e) => {
@@ -3122,7 +3119,7 @@ export default class listBasePage extends Vue {
3122
3119
  component: WfDialog,
3123
3120
  setting: {
3124
3121
  isShow: true,
3125
- title: "审批进度",
3122
+ title: (this as any).t('common.approvalProgress'),
3126
3123
  size: "full", //可选项tiny/small/large/full
3127
3124
  // height: "80vh",
3128
3125
  labelWidth: "120px", //input标题宽度 不传默认为100px
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.156",
3
+ "version": "1.0.158",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,22 +27,22 @@ export default class AddressInfoModal extends ListBasePage {
27
27
  // 列表列信息
28
28
  listColumns = [
29
29
  //{key: 0, label: "序号", visible: true},
30
- { text: "收件人", property: "addressee" },
31
- { text: "移动电话", property: "telNo" },
32
- { text: "邮编", property: "postalNo" },
33
- { text: "地址", property: "address" },
30
+ { text: this.t('bd.customerAddress.addressee'), property: "addressee" },
31
+ { text: this.t('bd.customerAddress.telNo'), property: "telNo" },
32
+ { text: this.t('bd.customerAddress.postalNo'), property: "postalNo" },
33
+ { text: this.t('bd.customerAddress.address'), property: "address" },
34
34
  {
35
- text: "是否为收货地址", property: "isDefaultAddressee", setting: {
35
+ text: this.t('bd.customerAddress.isDefaultAddressee'), property: "isDefaultAddressee", setting: {
36
36
  type: 'bool'
37
37
  },
38
38
  },
39
- { text: "备注", property: "remark" },
39
+ { text: this.t('bd.customerAddress.remark'), property: "remark" },
40
40
  ];
41
41
 
42
42
  // 查询条件
43
43
  searchRules = [
44
- { text: "客户ID", property: "customerId", displayType: "TextBox", disabled: true, visible: false},
45
- { text: "收件人", property: "addressee" ,displayType: "TextBox",op: "LI",principal:true, },
44
+ { text: this.t('bd.customerAddress.customerId'), property: "customerId", displayType: "TextBox", disabled: true, visible: false},
45
+ { text: this.t('bd.customerAddress.addressee'), property: "addressee" ,displayType: "TextBox",op: "LI",principal:true, },
46
46
  ];
47
47
  // 列信息
48
48
  editColumns = [
@@ -27,32 +27,32 @@ export default class BankInfoModal extends ListBasePage {
27
27
  listColumns = [
28
28
  //{key: 0, label: "序号", visible: true},
29
29
  {
30
- text: "开户国家", property: "countryCode", setting: {
30
+ text: this.t('bd.customerBank.countryCode'), property: "countryCode", setting: {
31
31
  dictType: "country_code",
32
32
  }
33
33
  },
34
- { text: "开户银行", property: "bankName" },
35
- { text: "银行账户", property: "bankAccount" },
36
- { text: "账户名称", property: "accountName" },
37
- { text: "币种ID", property: "currencyId" },
34
+ { text: this.t('bd.customerBank.bankName'), property: "bankName" },
35
+ { text: this.t('bd.customerBank.bankAccount'), property: "bankAccount" },
36
+ { text: this.t('bd.customerBank.accountName'), property: "accountName" },
37
+ { text: this.t('bd.customerBank.currencyId'), property: "currencyId" },
38
38
  {
39
- text: "是否默认账户", property: "isDefaultAccount", setting: {
39
+ text: this.t('bd.customerBank.isDefaultAccount'), property: "isDefaultAccount", setting: {
40
40
  type: "bool"
41
41
  },
42
42
  },
43
- { text: "备注", property: "remark" },
43
+ { text: this.t('bd.customerBank.remark'), property: "remark" },
44
44
  ];
45
45
 
46
46
  // 查询条件
47
47
  searchRules = [
48
- { text: "客户ID", property: "customerId", displayType: "TextBox", disabled: true, visible: false},
48
+ { text: this.t('bd.customerBank.customerId'), property: "customerId", displayType: "TextBox", disabled: true, visible: false},
49
49
  {
50
- text: "开户国家", property: "countryCode", displayType: "DropDownList",
50
+ text: this.t('bd.customerBank.countryCode'), property: "countryCode", displayType: "DropDownList",
51
51
  setting: {
52
52
  dictType: "country_code",
53
53
  }
54
54
  },
55
- { text: "开户银行", property: "bankName", displayType: "TextBox" },
55
+ { text: this.t('bd.customerBank.bankName'), property: "bankName", displayType: "TextBox" },
56
56
  ];
57
57
  opMenus = [];
58
58
 
@@ -30,32 +30,32 @@ export default class CustomercontactsList extends ListBasePage {
30
30
  listColumns = [
31
31
  //{key: 0, label: "序号", visible: true},
32
32
  //{text: "客户ID", property: "customerId" },
33
- { text: "姓名", property: "contactName" },
33
+ { text: this.t('bd.customerContacts.contactName'), property: "contactName" },
34
34
  {
35
- text: "性别", property: "sexCode", setting: {
35
+ text: this.t('bd.customerContacts.sexCode'), property: "sexCode", setting: {
36
36
  dictType: "sex_code",
37
37
  }
38
38
  },
39
- { text: "职务", property: "titleDesc" },
40
- { text: "移动电话", property: "mobilePhone" },
41
- { text: "固定电话", property: "fixedTelephone" },
42
- { text: "传真", property: "faxNo" },
43
- { text: "邮箱", property: "email" },
44
- { text: "地址", property: "address" },
39
+ { text: this.t('bd.customerContacts.titleDesc'), property: "titleDesc" },
40
+ { text: this.t('bd.customerContacts.mobilePhone'), property: "mobilePhone" },
41
+ { text: this.t('bd.customerContacts.fixedTelephone'), property: "fixedTelephone" },
42
+ { text: this.t('bd.customerContacts.faxNo'), property: "faxNo" },
43
+ { text: this.t('bd.customerContacts.email'), property: "email" },
44
+ { text: this.t('bd.customerContacts.address'), property: "address" },
45
45
  {
46
- text: "是否为收货地址", property: "isShippingAddress",
46
+ text: this.t('bd.customerContacts.isShippingAddress'), property: "isShippingAddress",
47
47
  setting: {
48
48
  type: "bool"
49
49
  },
50
50
  },
51
- { text: "备注", property: "remark" },
51
+ { text: this.t('bd.customerContacts.remark'), property: "remark" },
52
52
  ];
53
53
 
54
54
  // 查询条件
55
55
  searchRules = [
56
- { text: "客户ID", property: "customerId", displayType: "TextBox", disabled: true, visible: false},
57
- { text: "姓名", property: "contactName",op: "LI",principal:true, },
58
- { text: "职务", property: "titleDesc", displayType: "TextBox" },
56
+ { text: this.t('bd.customerContacts.customerId'), property: "customerId", displayType: "TextBox", disabled: true, visible: false},
57
+ { text: this.t('bd.customerContacts.contactName'), property: "contactName",op: "LI",principal:true, },
58
+ { text: this.t('bd.customerContacts.titleDesc'), property: "titleDesc", displayType: "TextBox" },
59
59
  ];
60
60
  // 列信息
61
61
  editColumns = [];
@@ -33,23 +33,23 @@ export default class ItemList extends ListBasePage {
33
33
  // 列表列信息
34
34
  listColumns = [
35
35
  //{key: 0, label: "序号", visible: true},
36
- { text: "物料编号", property: "itemNo" },
37
- { text: "物料名称", property: "itemName" },
38
- { text: "规格型号", property: "itemSpec" },
39
- { text: "物料状态", property: "itemStatusCode" },
40
- { text: "基本单位", property: "baseUomCode" },
36
+ { text: this.t('bd.item.itemNo'), property: "itemNo" },
37
+ { text: this.t('bd.item.itemName'), property: "itemName" },
38
+ { text: this.t('bd.item.itemSpec'), property: "itemSpec" },
39
+ { text: this.t('bd.item.itemStatusCode'), property: "itemStatusCode" },
40
+ { text: this.t('bd.item.baseUom'), property: "baseUomCode" },
41
41
  ];
42
42
  // 查询条件
43
43
  searchRules = [
44
- { text: "物料编号", property: "itemNo", displayType: "TextBox", op: "LI" },
44
+ { text: this.t('bd.item.itemNo'), property: "itemNo", displayType: "TextBox", op: "LI" },
45
45
  {
46
- text: "物料名称",
46
+ text: this.t('bd.item.itemName'),
47
47
  property: "itemName",
48
48
  displayType: "TextBox",
49
49
  op: "LI",
50
50
  },
51
51
  {
52
- text: "规格型号",
52
+ text: this.t('bd.item.itemSpec'),
53
53
  property: "itemSpec",
54
54
  displayType: "TextBox",
55
55
  op: "LI",
@@ -11,20 +11,20 @@ export default class NumberingRuleModal extends ListBasePage {
11
11
  labelwidth = "100px";
12
12
  // 列表列信息
13
13
  listColumns = [
14
- {text: "编码规则编号", property: "numberingRuleNo"},
15
- {text: "编码规则名称", property: "numberingRuleName"},
14
+ {text: this.t('bd.numberingRule.numberingRuleNo'), property: "numberingRuleNo"},
15
+ {text: this.t('bd.numberingRule.numberingRuleName'), property: "numberingRuleName"},
16
16
  ];
17
17
  //是否展示勾选框
18
18
  isMultiple = true;
19
19
  // 查询条件
20
20
  searchRules = [
21
- {text: "编码规则编号", op: "LI", property: "numberingRuleNo", displayType: "TextBox", width:9},
22
- {text: "编码规则名称", op: "LI", property: "numberingRuleName", displayType: "TextBox", width:9},
21
+ {text: this.t('bd.numberingRule.numberingRuleNo'), op: "LI", property: "numberingRuleNo", displayType: "TextBox", width:9},
22
+ {text: this.t('bd.numberingRule.numberingRuleName'), op: "LI", property: "numberingRuleName", displayType: "TextBox", width:9},
23
23
  ];
24
24
  // 列信息
25
25
  editColumns = [
26
- {text: "编码规则编号", property: "numberingRuleNo", displayType: "TextBox"},
27
- {text: "编码规则名称", property: "numberingRuleName", displayType: "TextBox"},
26
+ {text: this.t('bd.numberingRule.numberingRuleNo'), property: "numberingRuleNo", displayType: "TextBox"},
27
+ {text: this.t('bd.numberingRule.numberingRuleName'), property: "numberingRuleName", displayType: "TextBox"},
28
28
  ];
29
29
  opMenus = [
30
30
  ];
@@ -52,10 +52,10 @@ export default class NumberingRuleModal extends ListBasePage {
52
52
  // 表单校验
53
53
  editRules = {
54
54
  vendorNo: [
55
- {required: true, message: "编码规则编号不能为空", trigger: "blur"}
55
+ {required: true, message: this.t('bd.numberingRule.required.numberingRuleNo'), trigger: "blur"}
56
56
  ],
57
57
  vendorName: [
58
- {required: true, message: "编码规则名称不能为空", trigger: "blur"}
58
+ {required: true, message: this.t('bd.numberingRule.required.numberingRuleName'), trigger: "blur"}
59
59
  ],
60
60
  };
61
61
  mounted() {