|
@@ -15,52 +15,19 @@
|
15
|
15
|
<div>
|
16
|
16
|
<el-select
|
17
|
17
|
v-model="type_name"
|
18
|
|
- style="width: 140px; margin-right: 10px"
|
19
|
|
- placeholder="请选择"
|
|
18
|
+ style="width: 170px; margin-right: 10px"
|
|
19
|
+ placeholder="请选择供应商类别"
|
20
|
20
|
@change="changeTypeName"
|
21
|
21
|
>
|
22
|
22
|
<el-option
|
23
|
|
- v-for="item in types"
|
|
23
|
+ v-for="item in sType"
|
24
|
24
|
:key="item.id"
|
25
|
|
- :label="item.type_name"
|
26
|
|
- :value="item.id"
|
|
25
|
+ :label="item.name"
|
|
26
|
+ :value="item.value"
|
27
|
27
|
>
|
28
|
28
|
</el-option>
|
29
|
29
|
</el-select>
|
30
|
|
- <el-date-picker
|
31
|
|
- size="small"
|
32
|
|
- v-model="start_time"
|
33
|
|
- prefix-icon="el-icon-date"
|
34
|
|
- :editable="false"
|
35
|
|
- style="width: 196px"
|
36
|
|
- type="date"
|
37
|
|
- placeholder="选择日期时间"
|
38
|
|
- align="right"
|
39
|
|
- format="yyyy-MM-dd"
|
40
|
|
- value-format="yyyy-MM-dd"
|
41
|
|
- @change="startTimeChange"
|
42
|
|
- ></el-date-picker
|
43
|
|
- >-
|
44
|
|
- <el-date-picker
|
45
|
|
- size="small"
|
46
|
|
- v-model="end_time"
|
47
|
|
- prefix-icon="el-icon-date"
|
48
|
|
- :editable="false"
|
49
|
|
- style="width: 196px"
|
50
|
|
- type="date"
|
51
|
|
- placeholder="选择日期时间"
|
52
|
|
- align="right"
|
53
|
|
- format="yyyy-MM-dd"
|
54
|
|
- value-format="yyyy-MM-dd"
|
55
|
|
- @change="endTimeChange"
|
56
|
|
- ></el-date-picker>
|
57
|
|
- <el-input
|
58
|
|
- size="small"
|
59
|
|
- style="width: 200px; margin-left: 10px"
|
60
|
|
- class="filter-item"
|
61
|
|
- v-model.trim="keywords"
|
62
|
|
- placeholder="耗材名称"
|
63
|
|
- />
|
|
30
|
+
|
64
|
31
|
<el-button
|
65
|
32
|
size="small"
|
66
|
33
|
class="filter-item"
|
|
@@ -90,7 +57,7 @@
|
90
|
57
|
>
|
91
|
58
|
<el-table-column prop="SupplierType" label="供应商类别" align="center">
|
92
|
59
|
<template slot-scope="scope">
|
93
|
|
- <span>{{ scope.row.SupplierType }}</span>
|
|
60
|
+ <span>{{ scope.row.TypeName }}</span>
|
94
|
61
|
</template>
|
95
|
62
|
</el-table-column>
|
96
|
63
|
<el-table-column prop="SupplierCode" label="供应商编码" align="center">
|
|
@@ -175,13 +142,11 @@
|
175
|
142
|
<script>
|
176
|
143
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
177
|
144
|
import addSupply from "./components/addSupply.vue";
|
178
|
|
-import {
|
179
|
|
- getexporthistory,
|
180
|
|
- delsupplys
|
181
|
|
-} from "@/api/supply";
|
|
145
|
+import { getexporthistory, delsupplys, getsupplytype } from "@/api/supply";
|
182
|
146
|
export default {
|
183
|
147
|
name: "stockIn",
|
184
|
148
|
created() {
|
|
149
|
+ this.getsupplytype();
|
185
|
150
|
// this.initSupplierData()
|
186
|
151
|
this.org_id = this.$store.getters.xt_user.org_id;
|
187
|
152
|
|
|
@@ -207,7 +172,7 @@ export default {
|
207
|
172
|
page: 1,
|
208
|
173
|
limit: 10,
|
209
|
174
|
|
210
|
|
- type_name: "",
|
|
175
|
+ type_name: 0,
|
211
|
176
|
crumbs: [
|
212
|
177
|
{ path: false, name: "采购管理" },
|
213
|
178
|
{ path: "/supply/good/order/query", name: "供应商管理" },
|
|
@@ -226,13 +191,16 @@ export default {
|
226
|
191
|
types: [],
|
227
|
192
|
tableList: [],
|
228
|
193
|
tyep_name: "",
|
|
194
|
+ sType: [],
|
229
|
195
|
};
|
230
|
196
|
},
|
|
197
|
+
|
231
|
198
|
methods: {
|
232
|
199
|
initData() {
|
233
|
200
|
let params = {
|
234
|
201
|
limit: this.limit,
|
235
|
202
|
page: this.page,
|
|
203
|
+ ctype: this.type_name,
|
236
|
204
|
};
|
237
|
205
|
getexporthistory(params).then((res) => {
|
238
|
206
|
if (res.data.state == 1) {
|
|
@@ -242,6 +210,15 @@ export default {
|
242
|
210
|
});
|
243
|
211
|
},
|
244
|
212
|
|
|
213
|
+ getsupplytype() {
|
|
214
|
+ getsupplytype().then((res) => {
|
|
215
|
+ if (res.data.state == 1) {
|
|
216
|
+ this.sType = res.data.data.list;
|
|
217
|
+ }
|
|
218
|
+ console.log(res, "oo");
|
|
219
|
+ });
|
|
220
|
+ },
|
|
221
|
+
|
245
|
222
|
toDelete(val, index) {
|
246
|
223
|
delsupplys(val.ID)
|
247
|
224
|
.then((res) => {
|
|
@@ -257,15 +234,15 @@ export default {
|
257
|
234
|
});
|
258
|
235
|
},
|
259
|
236
|
|
260
|
|
-
|
261
|
|
-
|
262
|
237
|
toAdd(val) {
|
263
|
238
|
this.$refs.addSupply.show(1, val);
|
264
|
239
|
},
|
265
|
240
|
toClick(data, val) {
|
266
|
241
|
this.$refs.addSupply.show(data, val);
|
267
|
242
|
},
|
268
|
|
- changeTypeName() {},
|
|
243
|
+ changeTypeName() {
|
|
244
|
+ this.initData();
|
|
245
|
+ },
|
269
|
246
|
startTimeChange() {},
|
270
|
247
|
endTimeChange() {},
|
271
|
248
|
search() {},
|