kz-ui-base 1.0.125 → 1.0.127
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.
|
@@ -17,6 +17,23 @@
|
|
|
17
17
|
<el-input clearable v-model="searchParams.salesContractName" placeholder="请输入销售合同名称"></el-input>
|
|
18
18
|
</el-form-item>
|
|
19
19
|
</el-col>
|
|
20
|
+
<el-col :span="6">
|
|
21
|
+
<el-form-item label="产品种类" prop="prodCategoryCode">
|
|
22
|
+
<dict-select clearable type="prod_category_code" v-model="searchParams.prodCategoryCode" placeholder="请输入产品种类"></dict-select>
|
|
23
|
+
</el-form-item>
|
|
24
|
+
</el-col>
|
|
25
|
+
<el-col :span="6">
|
|
26
|
+
<el-form-item label="物料种类" prop="materialClass">
|
|
27
|
+
<el-select v-model="searchParams.materialClass" clearable placeholder="请选择物料种类">
|
|
28
|
+
<el-option
|
|
29
|
+
v-for="item in itemCategoryOptions"
|
|
30
|
+
:key="item.id"
|
|
31
|
+
:label="item.itemCategoryName"
|
|
32
|
+
:value="item.id"
|
|
33
|
+
/>
|
|
34
|
+
</el-select>
|
|
35
|
+
</el-form-item>
|
|
36
|
+
</el-col>
|
|
20
37
|
</el-row>
|
|
21
38
|
|
|
22
39
|
<div style="float: right; margin-top: 6px">
|
|
@@ -88,6 +105,7 @@ import {getDictLabelByValue} from "@api/common/common";
|
|
|
88
105
|
import EntitySelect from "@srcComponents/selector/EntitySelect.vue";
|
|
89
106
|
import {tableHandleSelect, tableOnSelectionChange, tableRowClick, tableRowStyle} from "@utils/index";
|
|
90
107
|
import {salesOrderDetails} from "@srcApi/sm/cm/salesContract";
|
|
108
|
+
import { getItemCategoryAll } from '@srcApi/bd/itemCategory'
|
|
91
109
|
|
|
92
110
|
|
|
93
111
|
@Component({
|
|
@@ -108,6 +126,7 @@ export default class SmOrderSelectModal extends Vue {
|
|
|
108
126
|
dialogType = 2;
|
|
109
127
|
visible = false;
|
|
110
128
|
listData = [];
|
|
129
|
+
itemCategoryOptions: [];
|
|
111
130
|
tableLoading = false;
|
|
112
131
|
loadingParams = false;
|
|
113
132
|
// 点击的选中行
|
|
@@ -120,6 +139,8 @@ export default class SmOrderSelectModal extends Vue {
|
|
|
120
139
|
materialNo: undefined,
|
|
121
140
|
isFinished: true,
|
|
122
141
|
documentStatusCode: '3',
|
|
142
|
+
prodCategoryCode: undefined,
|
|
143
|
+
materialClass: undefined,
|
|
123
144
|
total: 0,
|
|
124
145
|
page:{
|
|
125
146
|
current: 1,
|
|
@@ -169,6 +190,12 @@ export default class SmOrderSelectModal extends Vue {
|
|
|
169
190
|
this.getList();
|
|
170
191
|
}
|
|
171
192
|
|
|
193
|
+
loadItemCategory() {
|
|
194
|
+
getItemCategoryAll().then(response => {
|
|
195
|
+
this.itemCategoryOptions = response.data
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
|
|
172
199
|
getList() {
|
|
173
200
|
this.tableLoading = true;
|
|
174
201
|
if (this.searchObj != null) {
|
|
@@ -203,6 +230,8 @@ export default class SmOrderSelectModal extends Vue {
|
|
|
203
230
|
resetQuery(){
|
|
204
231
|
this.$set(this.searchParams,'salesOrderNo', null);
|
|
205
232
|
this.$set(this.searchParams,'salesContractName', null);
|
|
233
|
+
this.$set(this.searchParams,'prodCategoryCode', null);
|
|
234
|
+
this.$set(this.searchParams,'materialClass', null);
|
|
206
235
|
}
|
|
207
236
|
|
|
208
237
|
clickRow(row) {
|
|
@@ -216,6 +245,7 @@ export default class SmOrderSelectModal extends Vue {
|
|
|
216
245
|
}
|
|
217
246
|
|
|
218
247
|
created() {
|
|
248
|
+
this.loadItemCategory()
|
|
219
249
|
this.getList();
|
|
220
250
|
}
|
|
221
251
|
}
|
package/package.json
CHANGED
|
@@ -356,6 +356,14 @@ export default class itemModal extends Vue {
|
|
|
356
356
|
this.listData = res.data;
|
|
357
357
|
this.tableLoading = false;
|
|
358
358
|
this.searchParams.total = (res as any).total;
|
|
359
|
+
//自动选中第一行
|
|
360
|
+
this.$nextTick(() => {
|
|
361
|
+
if (this.listData.length > 0 && this.$refs.multipleTable) {
|
|
362
|
+
const firstRow = this.listData[0];
|
|
363
|
+
(this.$refs.multipleTable as any).toggleRowSelection(firstRow, true);
|
|
364
|
+
this.currentEntities = [firstRow];
|
|
365
|
+
}
|
|
366
|
+
});
|
|
359
367
|
});
|
|
360
368
|
}
|
|
361
369
|
|
|
@@ -70,7 +70,7 @@ export default class StorageZoneModalList extends ListBasePage {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
created() {
|
|
73
|
-
listSite().then(res => {
|
|
73
|
+
listSite({pageSize: 99999}).then(res => {
|
|
74
74
|
this.siteMap = {};
|
|
75
75
|
this.siteList = res.data; // 条件部 - dropDownList用
|
|
76
76
|
for (let data of res.data) {
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
|
|
34
34
|
<el-col :span="6" style="white-space:nowrap">
|
|
35
35
|
<el-form-item label="标准名称" class="search-panel">
|
|
36
|
-
<el-input style="width:
|
|
36
|
+
<el-input style="width:80%;" v-model="searchParams.technicalStandardName"></el-input>
|
|
37
37
|
</el-form-item>
|
|
38
38
|
</el-col>
|
|
39
39
|
|
|
40
40
|
<el-col :span="6" style="white-space:nowrap">
|
|
41
41
|
<el-form-item label="标准代号" class="search-panel">
|
|
42
|
-
<el-input style="width:
|
|
42
|
+
<el-input style="width:80%;" v-model="searchParams.technicalStandardCode"></el-input>
|
|
43
43
|
</el-form-item>
|
|
44
44
|
</el-col>
|
|
45
45
|
|
|
46
46
|
<el-col :span="6" style="white-space:nowrap">
|
|
47
47
|
<el-form-item label="产品种类" class="search-panel">
|
|
48
|
-
<dict-select type="prod_category_code" v-model="searchParams.prodCategoryCode" style="width:
|
|
48
|
+
<dict-select type="prod_category_code" v-model="searchParams.prodCategoryCode" style="width:80%;" :disabled="prodCategoryCode != null" clearable></dict-select>
|
|
49
49
|
</el-form-item>
|
|
50
50
|
</el-col>
|
|
51
51
|
|