kz-ui-base 1.0.155 → 1.0.157

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 (36) hide show
  1. package/common/src/components/base/dialog/BaseDialog.vue +15 -4
  2. package/common/src/components/base/dialog/editDialog.vue +0 -3
  3. package/components/base/dialog/MultiLanguageDialog.vue +0 -3
  4. package/components/customForm/OpMenus.vue +5 -5
  5. package/list-base-page/listBasePageTs.vue +1 -4
  6. package/package.json +1 -1
  7. package/views/bd/common/modal/AddressInfoModal.vue +8 -8
  8. package/views/bd/common/modal/BankInfoModal.vue +10 -10
  9. package/views/bd/common/modal/CustomerContactsModal.vue +13 -13
  10. package/views/bd/common/modal/ItemModalBk.vue +8 -8
  11. package/views/bd/common/modal/NumberingRuleModal.vue +8 -8
  12. package/views/bd/common/modal/PostModal.vue +22 -22
  13. package/views/bd/common/modal/ProjectModal.vue +8 -8
  14. package/views/bd/common/modal/SalesmanInfoModel.vue +7 -7
  15. package/views/bd/common/modal/materialCodeModal.vue +23 -30
  16. package/views/fd/common/modal/AddResourceModal.vue +8 -6
  17. package/views/fd/common/modal/AssetModal.vue +17 -17
  18. package/views/fd/common/modal/EquipmentModal.vue +10 -10
  19. package/views/fd/common/modal/FactoryTreeModal.vue +3 -1
  20. package/views/fd/common/modal/ResourceModal.vue +6 -6
  21. package/views/fd/common/modal/SiteModal.vue +9 -11
  22. package/views/fd/common/modal/StorageUnitModal.vue +9 -9
  23. package/views/fd/common/modal/StorageZoneModal.vue +11 -11
  24. package/views/fd/common/modal/WorkAreaModal.vue +9 -9
  25. package/views/fd/common/modal/WorkCenterModal.vue +9 -9
  26. package/views/fd/common/modal/WorkUnitModal.vue +9 -9
  27. package/views/pd/common/modal/BopModal.vue +10 -10
  28. package/views/pd/common/modal/DrawingPathModal.vue +52 -52
  29. package/views/pd/common/modal/ParameterModal.vue +18 -18
  30. package/views/pd/common/modal/ProcessModal.vue +15 -15
  31. package/views/pd/common/modal/ProdRoutingDtlModal.vue +19 -19
  32. package/views/pd/common/modal/ProdRoutingModal.vue +14 -14
  33. package/views/pd/common/modal/ProdStructureModal.vue +14 -14
  34. package/views/pd/common/modal/ProdstructTemplateHdrModal.vue +27 -25
  35. package/views/pd/common/modal/ProductionVersionModal.vue +35 -35
  36. 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
  },
@@ -241,9 +241,6 @@ export default {
241
241
  console.log("editDialog");
242
242
  },
243
243
  methods: {
244
- t(key) {
245
- return this.$t(key) || key
246
- },
247
244
  //当前绑定实体字段值变更事件
248
245
  onChangeEvent(args) {
249
246
  this.$emit("change", args);
@@ -77,9 +77,6 @@ export default {
77
77
  }
78
78
  },
79
79
  methods: {
80
- t(key) {
81
- return this.$t(key) || key
82
- },
83
80
  getLabelByKey(key) {
84
81
  const labelMap = {
85
82
  configName: this.t('config.config_name'),
@@ -8,7 +8,7 @@
8
8
  opMenu.permission,
9
9
  `${moduleName}:${serviceName}:${opMenu.permission}`,
10
10
  ]">
11
- {{ opMenu.text }}
11
+ {{ opMenu.text || t(opMenu.i18nKey) }}
12
12
  </el-button>
13
13
  </el-col>
14
14
  </template>
@@ -20,7 +20,7 @@
20
20
  opMenu.permission,
21
21
  `${moduleName}:${serviceName}:${opMenu.permission}`,
22
22
  ]">
23
- {{ opMenu.text }}
23
+ {{ opMenu.text || t(opMenu.i18nKey) }}
24
24
  </el-button>
25
25
  </el-col>
26
26
  </template>
@@ -69,7 +69,7 @@ export default {
69
69
  default:()=>[
70
70
  {
71
71
  visible: true,
72
- text: "添加",
72
+ i18nKey: "opMenus.add",
73
73
  icon: "el-icon-plus",
74
74
  permission: "add",
75
75
  name: "add",
@@ -79,7 +79,7 @@ export default {
79
79
  },
80
80
  {
81
81
  visible: true,
82
- text: "修改",
82
+ i18nKey: "opMenus.update",
83
83
  icon: "el-icon-edit",
84
84
  permission: "edit",
85
85
  name: "update",
@@ -89,7 +89,7 @@ export default {
89
89
  },
90
90
  {
91
91
  visible: true,
92
- text: "删除",
92
+ i18nKey: "opMenus.delete",
93
93
  icon: "el-icon-delete",
94
94
  permission: "remove",
95
95
  name: "delete",
@@ -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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.155",
3
+ "version": "1.0.157",
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() {
@@ -7,7 +7,7 @@
7
7
  <div class="head-container">
8
8
  <el-input
9
9
  v-model="deptName"
10
- placeholder="请输入部门名称"
10
+ :placeholder="t('bd.post.placeholder.deptName')"
11
11
  clearable
12
12
  size="small"
13
13
  prefix-icon="el-icon-search"
@@ -32,26 +32,26 @@
32
32
  <el-col :span="20" :xs="24">
33
33
  <div class="wrapper-container" v-show="showSearch">
34
34
  <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
35
- <el-form-item label="岗位编码" prop="postCode">
35
+ <el-form-item :label="t('bd.post.postCode')" prop="postCode">
36
36
  <el-input
37
37
  v-model="queryParams.postCode"
38
- placeholder="请输入岗位编码"
38
+ :placeholder="t('bd.post.placeholder.postCode')"
39
39
  clearable
40
40
  size="small"
41
41
  @keyup.enter.native="handleQuery"
42
42
  />
43
43
  </el-form-item>
44
- <el-form-item label="岗位名称" prop="postName">
44
+ <el-form-item :label="t('bd.post.postName')" prop="postName">
45
45
  <el-input
46
46
  v-model="queryParams.postName"
47
- placeholder="请输入岗位名称"
47
+ :placeholder="t('bd.post.placeholder.postName')"
48
48
  clearable
49
49
  size="small"
50
50
  @keyup.enter.native="handleQuery"
51
51
  />
52
52
  </el-form-item>
53
- <el-form-item label="状态" prop="status">
54
- <el-select v-model="queryParams.status" placeholder="岗位状态" clearable size="small">
53
+ <el-form-item :label="t('bd.post.status')" prop="status">
54
+ <el-select v-model="queryParams.status" :placeholder="$t('bd.post.placeholder.postStatus')" clearable size="small">
55
55
  <el-option
56
56
  v-for="dict in statusOptions"
57
57
  :key="dict.dictValue"
@@ -61,8 +61,8 @@
61
61
  </el-select>
62
62
  </el-form-item>
63
63
  <el-form-item>
64
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
65
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
64
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ t('bd.post.search') }}</el-button>
65
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ t('bd.post.reset') }}</el-button>
66
66
  </el-form-item>
67
67
  </el-form>
68
68
  </div>
@@ -70,12 +70,12 @@
70
70
  <div class="wrapper-container">
71
71
  <el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange">
72
72
  <el-table-column type="selection" width="50" align="center" />
73
- <el-table-column label="岗位编码" align="center" prop="postCode" key="postCode" v-if="columns[0].visible" min-width="120"/>
74
- <el-table-column label="岗位名称" align="center" prop="postName" key="postName" v-if="columns[1].visible"
73
+ <el-table-column :label="t('bd.post.postCode')" align="center" prop="postCode" key="postCode" v-if="columns[0].visible" min-width="120"/>
74
+ <el-table-column :label="t('bd.post.postName')" align="center" prop="postName" key="postName" v-if="columns[1].visible"
75
75
  :show-overflow-tooltip="true" min-width="120"/>
76
- <el-table-column label="归属部门" align="center" prop="dept.deptName" key="dept.deptName"
76
+ <el-table-column :label="t('bd.post.deptName')" align="center" prop="dept.deptName" key="dept.deptName"
77
77
  v-if="columns[2].visible" :show-overflow-tooltip="true" min-width="120"/>
78
- <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat" key="status"
78
+ <el-table-column :label="t('bd.post.status')" align="center" prop="status" :formatter="statusFormat" key="status"
79
79
  v-if="columns[3].visible" :show-overflow-tooltip="true" min-width="120">
80
80
  <template slot-scope="scope">
81
81
  <el-switch
@@ -86,7 +86,7 @@
86
86
  ></el-switch>
87
87
  </template>
88
88
  </el-table-column>
89
- <el-table-column label="创建时间" align="center" prop="createTime" min-width="180" key="createTime"
89
+ <el-table-column :label="t('bd.post.createTime')" align="center" prop="createTime" min-width="180" key="createTime"
90
90
  v-if="columns[4].visible" :show-overflow-tooltip="true">
91
91
  <template slot-scope="scope">
92
92
  <span>{{ parseTime(scope.row.createTime) }}</span>
@@ -148,24 +148,24 @@ export default {
148
148
  },
149
149
  // 列信息
150
150
  columns: [
151
- {key: 0, label: `岗位编码`, visible: true},
152
- {key: 1, label: `岗位名称`, visible: true},
153
- {key: 2, label: `归属部门`, visible: true},
154
- {key: 3, label: `状态`, visible: true},
155
- {key: 4, label: `创建时间`, visible: true}
151
+ {key: 0, label: this.t('bd.post.postCode'), visible: true},
152
+ {key: 1, label: this.t('bd.post.postName'), visible: true},
153
+ {key: 2, label: this.t('bd.post.deptName'), visible: true},
154
+ {key: 3, label: this.t('bd.post.status'), visible: true},
155
+ {key: 4, label: this.t('bd.post.createTime'), visible: true}
156
156
  ],
157
157
  // 表单参数
158
158
  form: {},
159
159
  // 表单校验
160
160
  rules: {
161
161
  deptId: [
162
- {required: true, message: "归属部门不能为空", trigger: "blur"}
162
+ {required: true, message: this.t('bd.post.required.deptId'), trigger: "blur"}
163
163
  ],
164
164
  postCode: [
165
- {required: true, message: "岗位编码不能为空", trigger: "blur"}
165
+ {required: true, message: this.t('bd.post.required.postCode'), trigger: "blur"}
166
166
  ],
167
167
  postName: [
168
- {required: true, message: "岗位名称不能为空", trigger: "blur"}
168
+ {required: true, message: this.t('bd.post.required.postName'), trigger: "blur"}
169
169
  ]
170
170
  },
171
171
  // 部门树选项
@@ -11,20 +11,20 @@ export default class ProjectList extends ListBasePage {
11
11
  // 列表列信息
12
12
  listColumns = [
13
13
  //{key: 0, label: "序号", visible: true},
14
- {text: "项目编号", property: "projectNo"},
15
- {text: "项目名称", property: "projectName"},
14
+ {text: this.t('bd.project.projectNo'), property: "projectNo"},
15
+ {text: this.t('bd.project.projectName'), property: "projectName"},
16
16
  ];
17
17
  //是否多选
18
18
  isMultiple = true;
19
19
  // 查询条件
20
20
  searchRules = [
21
- {text: "项目编号", op: "LI", property: "projectNo", displayType: "TextBox"},
22
- {text: "项目名称", op: "LI", property: "projectName", displayType: "TextBox"},
21
+ {text: this.t('bd.project.projectNo'), op: "LI", property: "projectNo", displayType: "TextBox"},
22
+ {text: this.t('bd.project.projectName'), op: "LI", property: "projectName", displayType: "TextBox"},
23
23
  ];
24
24
  // 列信息
25
25
  editColumns = [
26
- {text: "项目编号", property: "projectNo", displayType: "TextBox"},
27
- {text: "项目名称", property: "projectName", displayType: "TextBox"},
26
+ {text: this.t('bd.project.projectNo'), property: "projectNo", displayType: "TextBox"},
27
+ {text: this.t('bd.project.projectName'), property: "projectName", displayType: "TextBox"},
28
28
  ];
29
29
  opMenus = [
30
30
  ];
@@ -51,10 +51,10 @@ export default class ProjectList extends ListBasePage {
51
51
  // 表单校验
52
52
  editRules = {
53
53
  projectNo: [
54
- {required: true, message: "项目编号不能为空", trigger: "blur"}
54
+ {required: true, message: this.t('bd.project.required.projectNo'), trigger: "blur"}
55
55
  ],
56
56
  projectName: [
57
- {required: true, message: "项目名称不能为空", trigger: "blur"}
57
+ {required: true, message: this.t('bd.project.required.projectName'), trigger: "blur"}
58
58
  ],
59
59
  };
60
60
  mounted() {
@@ -26,17 +26,17 @@ export default class SalesmanInfoModel extends ListLocalDataPage {
26
26
  // 列表列信息
27
27
  listColumns = [
28
28
  //{key: 0, label: "序号", visible: true},
29
- { text: "员工编号", property: "employeeNo" },
30
- { text: "员工姓名", property: "employeeName" },
31
- { text: "备注", property: "remark" },
29
+ { text: this.t('bd.customerSalesman.employeeNo'), property: "employeeNo" },
30
+ { text: this.t('bd.customerSalesman.employeeName'), property: "employeeName" },
31
+ { text: this.t('bd.customerSalesman.remark'), property: "remark" },
32
32
  ];
33
33
  // 列信息
34
34
  editColumns = [
35
35
  {
36
- text: "客户ID", property: "customerId", displayType: "TextBox", disabled: true
36
+ text: this.t('bd.customerSalesman.customerId'), property: "customerId", displayType: "TextBox", disabled: true
37
37
  },
38
38
  {
39
- text: "员工选择", property: "employeeId", displayType: "DropDownList",
39
+ text: this.t('bd.customerSalesman.employeeId'), property: "employeeId", displayType: "DropDownList",
40
40
  setting: {
41
41
  url: "/bd/employee/list",
42
42
  //指定显示字段和取值字段
@@ -44,13 +44,13 @@ export default class SalesmanInfoModel extends ListLocalDataPage {
44
44
  valueField: "id"
45
45
  }
46
46
  },
47
- { text: "备注", property: "remark", displayType: "TextBox" },
47
+ { text: this.t('bd.customerSalesman.remark'), property: "remark", displayType: "TextBox" },
48
48
  ];
49
49
 
50
50
  // 表单校验
51
51
  editRules = {
52
52
  employeeId: [
53
- { required: true, message: "员工不可为空", trigger: "blur" }
53
+ { required: true, message: this.t('bd.customerSalesman.required.employeeId'), trigger: "blur" }
54
54
  ],
55
55
  };
56
56
  created() {
@@ -11,37 +11,30 @@ export default class CustomerList extends ListBasePage {
11
11
  // 列表列信息
12
12
  listColumns = [
13
13
  //{key: 0, label: "序号", visible: true},
14
- { text: "物料编号", property: "itemNo" },
15
- { text: "物料名称", property: "itemName" },
16
- { text: "英文物料名称", property: "itemNameEng" },
17
- { text: "规格型号", property: "itemSpec" },
18
- { text: "英文规格型号", property: "itemSpecEng" },
19
- { text: "存货分类ID", property: "itemClassId" },
20
- { text: "物料种类ID", property: "itemCategoryId" },
21
- { text: "产品种类", property: "prodCategoryCode" },
22
- { text: "生产线id", property: "productLineId" },
23
- { text: "内销标志", property: "isDomesticSale" },
24
- { text: "外销标志", property: "isExportSale" },
25
- { text: "自制标志", property: "isSelfMade" },
26
- { text: "委外标志", property: "isSubcontract" },
27
- { text: "采购标志", property: "isPurchase" },
28
- { text: "基本单位编码", property: "baseUomCode" },
29
- { text: "辅助单位编码", property: "subUomCode" },
30
- { text: "基本单位换算值", property: "baseUomValue" },
31
- { text: "辅助单位换算值", property: "subUomValue" },
32
- { text: "是否管理批次", property: "isManageLot" },
33
- // { text: "经营状况", property: "businessStatus" },
34
- // { text: "客户等级", property: "customerGradeCode" },
35
- // { text: "销售类型", property: "salesTypeCode" },
36
- // { text: "纳税分类", property: "taxClassCode" },
37
- // { text: "发票类型", property: "invoiceTypeCode" },
38
- // { text: "税率类型", property: "taxrateTypeCode" },
39
-
14
+ { text: this.t('bd.item.itemNo'), property: "itemNo" },
15
+ { text: this.t('bd.item.itemName'), property: "itemName" },
16
+ { text: this.t('bd.item.itemNameEng'), property: "itemNameEng" },
17
+ { text: this.t('bd.item.itemSpec'), property: "itemSpec" },
18
+ { text: this.t('bd.item.itemSpecEng'), property: "itemSpecEng" },
19
+ { text: this.t('bd.item.itemClassId'), property: "itemClassId" },
20
+ { text: this.t('bd.item.itemCategoryId'), property: "itemCategoryId" },
21
+ { text: this.t('bd.item.prodCategoryCode'), property: "prodCategoryCode" },
22
+ { text: this.t('bd.item.productLineId'), property: "productLineId" },
23
+ { text: this.t('bd.item.isDomesticSale'), property: "isDomesticSale" },
24
+ { text: this.t('bd.item.isExportSale'), property: "isExportSale" },
25
+ { text: this.t('bd.item.isSelfMade'), property: "isSelfMade" },
26
+ { text: this.t('bd.item.isSubcontract'), property: "isSubcontract" },
27
+ { text: this.t('bd.item.isPurchase'), property: "isPurchase" },
28
+ { text: this.t('bd.item.baseUomCode'), property: "baseUomCode" },
29
+ { text: this.t('bd.item.subUomCode'), property: "subUomCode" },
30
+ { text: this.t('bd.item.baseUomValue'), property: "baseUomValue" },
31
+ { text: this.t('bd.item.subUomValue'), property: "subUomValue" },
32
+ { text: this.t('bd.item.isManageLot'), property: "isManageLot" },
40
33
  ];
41
34
  // 查询条件
42
35
  searchRules = [
43
- { text: "物料编号", op: "LI", property: "itemNo", displayType: "TextBox" },
44
- { text: "物料名称", op: "LI", property: "itemName", displayType: "TextBox",principal:true, },
36
+ { text: this.t('bd.item.itemNo'), op: "LI", property: "itemNo", displayType: "TextBox" },
37
+ { text: this.t('bd.item.itemName'), op: "LI", property: "itemName", displayType: "TextBox",principal:true, },
45
38
  ];
46
39
  //是否多选
47
40
  isMultiple = true;
@@ -60,10 +53,10 @@ export default class CustomerList extends ListBasePage {
60
53
  // 表单校验
61
54
  editRules = {
62
55
  itemNo: [
63
- { required: true, message: "物料编号不能为空", trigger: "blur" }
56
+ { required: true, message: this.t('bd.item.required.itemNo'), trigger: "blur" }
64
57
  ],
65
58
  itemName: [
66
- { required: true, message: "物料名称不能为空", trigger: "blur" }
59
+ { required: true, message: this.t('bd.item.required.itemName'), trigger: "blur" }
67
60
  ]
68
61
  };
69
62
  created() {