kz-ui-base 1.0.112 → 1.0.114

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,6 +157,7 @@ import {
157
157
  import { listEntity, ajaxUrl } from "kz-ui-base/common/src/api/common/common";
158
158
  import Treeselect from "@riophae/vue-treeselect";
159
159
  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
160
+ import store from "@/store";
160
161
  import {
161
162
  getSites,
162
163
  getWorkAreas,
@@ -627,7 +628,7 @@ export default class dropDownList extends Vue {
627
628
  "dictLabel",
628
629
  "dictValue"
629
630
  );
630
- let newitems = [{ text: this.setting.allName?this.setting.allName:"---请选择---", value: undefined }];
631
+ let newitems = [{ text: this.setting.allName?this.setting.allName:store.state.permission.allName?store.state.permission.allName:"---请选择---", value: undefined }];
631
632
  items.forEach((item) => {
632
633
  if (item.text.indexOf(this.setting.findValue) != -1) {
633
634
  newitems.push(item);
@@ -732,7 +733,7 @@ export default class dropDownList extends Vue {
732
733
  this.setting.displayField || "componentName",
733
734
  this.setting.valueField || "id"
734
735
  );
735
- let newitems = [{ text:this.setting.allName?this.setting.allName:"---请选择---", value: undefined }];
736
+ let newitems = [{ text:this.setting.allName?this.setting.allName:store.state.permission.allName?store.state.permission.allName:"---请选择---", value: undefined }];
736
737
  items.forEach((item: any) => {
737
738
  if (item.value) {
738
739
  if (
@@ -835,7 +836,7 @@ export default class dropDownList extends Vue {
835
836
  if (!valueField) valueField = this.setting.valueField;
836
837
  var items = [];
837
838
  if (this.setting.isShowPleaseChoose != false)
838
- items.push({ text:this.setting.allName?this.setting.allName:"---请选择---", value: undefined });
839
+ items.push({ text:this.setting.allName?this.setting.allName:store.state.permission.allName?store.state.permission.allName:"---请选择---", value: undefined });
839
840
  if (source) {
840
841
  this.itemList = source;
841
842
  for (var item of source) {
@@ -844,7 +845,7 @@ export default class dropDownList extends Vue {
844
845
  }
845
846
  /*console.log("下拉",items);*/
846
847
  if (this.column.setting && this.column.setting.chooseFirst) {
847
- if (items[0].text ==this.setting.allName?this.setting.allName:"---请选择---" || items[0].text == "请选择") {
848
+ if (items[0].text ==this.setting.allName?this.setting.allName:store.state.permission.allName?store.state.permission.allName:"---请选择---" || items[0].text == "请选择") {
848
849
  this.$set(this.entity, String(this.column.property), items[1].text);
849
850
  this.onChangeEvent(this.entity[this.column.property], true);
850
851
  } else {
@@ -103,7 +103,7 @@ export default class SmOrderSelectModal extends Vue {
103
103
  searchObj;
104
104
  @Prop({default: false})
105
105
  multipleChoice;
106
- @Prop({default: '物料选择'})
106
+ @Prop({default: '销售订单选择'})
107
107
  title;
108
108
  //表格是否自动加载数据
109
109
  dialogType = 2;
@@ -88,15 +88,15 @@ export enum ITEM_DIVISION_CODE {
88
88
  /**
89
89
  * 原材料
90
90
  */
91
- RAW_MATERIAL = '1',
91
+ RAW_MATERIAL = '01',
92
92
  /**
93
93
  * 半成品
94
94
  */
95
- SEMI_FINISHED_PRODUCT = '2',
95
+ SEMI_FINISHED_PRODUCT = '03',
96
96
  /**
97
97
  * 成品
98
98
  */
99
- FINISHED_PRODUCT = '3',
99
+ FINISHED_PRODUCT = '04',
100
100
  /**
101
101
  * 包装物
102
102
  */
@@ -108,7 +108,7 @@ export enum ITEM_DIVISION_CODE {
108
108
  /**
109
109
  * 备品备件
110
110
  */
111
- SPARE_PARTS = '6'
111
+ SPARE_PARTS = '05'
112
112
  }
113
113
 
114
114
  export enum INSPECTION_FREQUENCY_CODE {
@@ -201,33 +201,6 @@ export enum REEL_STATUS_CODE {
201
201
  CANCELLED = '60'
202
202
  }
203
203
 
204
- export enum ITEM_DIVISION_CODE {
205
- /**
206
- * 原材料
207
- */
208
- RAW_MATERIAL = '1',
209
- /**
210
- * 半成品
211
- */
212
- SEMI_FINISHED_PRODUCT = '2',
213
- /**
214
- * 产成品
215
- */
216
- FINISHED_PRODUCT = '3',
217
- /**
218
- * 包装物
219
- */
220
- PACKAGING = '4',
221
- /**
222
- * 低值易耗品
223
- */
224
- LOW_VALUE_CONSUMABLE = '5',
225
- /**
226
- * 备品备件
227
- */
228
- SPARE_PARTS = '6'
229
- }
230
-
231
204
  export enum NUMBERING_STAGE {
232
205
  /**
233
206
  * 计划阶段
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {