|
@@ -6,6 +6,7 @@
|
6
|
6
|
<div class="app-container ">
|
7
|
7
|
<div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
|
8
|
8
|
<div>
|
|
9
|
+ <span>供应商:</span>
|
9
|
10
|
<el-select v-model="supplier_name" style="width:140px;margin-right:10px;" placeholder="请选择"
|
10
|
11
|
@change="changeTypeName">
|
11
|
12
|
<el-option
|
|
@@ -15,6 +16,7 @@
|
15
|
16
|
:value="item.id">
|
16
|
17
|
</el-option>
|
17
|
18
|
</el-select>
|
|
19
|
+ <span>单据日期:</span>
|
18
|
20
|
<el-date-picker
|
19
|
21
|
size="small"
|
20
|
22
|
v-model="start_time"
|
|
@@ -27,7 +29,8 @@
|
27
|
29
|
format="yyyy-MM-dd"
|
28
|
30
|
value-format="yyyy-MM-dd"
|
29
|
31
|
@change="startTimeChange"
|
30
|
|
- ></el-date-picker>-
|
|
32
|
+ ></el-date-picker>
|
|
33
|
+ <span>交货日期:</span>
|
31
|
34
|
<el-date-picker
|
32
|
35
|
size="small"
|
33
|
36
|
v-model="end_time"
|
|
@@ -41,21 +44,8 @@
|
41
|
44
|
value-format="yyyy-MM-dd"
|
42
|
45
|
@change="endTimeChange"
|
43
|
46
|
></el-date-picker>
|
44
|
|
- <el-input
|
45
|
|
- size="small"
|
46
|
|
- style="width: 200px;margin-left:10px;"
|
47
|
|
- class="filter-item"
|
48
|
|
- v-model.trim="keywords"
|
49
|
|
- placeholder="耗材名称"
|
50
|
|
- />
|
51
|
|
- <el-button
|
52
|
|
- size="small"
|
53
|
|
- class="filter-item"
|
54
|
|
- type="primary"
|
55
|
|
- icon="el-icon-search"
|
56
|
|
- @click="search"
|
57
|
|
- >搜索</el-button
|
58
|
|
- >
|
|
47
|
+ <span>单据编码:</span>
|
|
48
|
+
|
59
|
49
|
</div>
|
60
|
50
|
<div>
|
61
|
51
|
<el-button size="small" type="primary" @click="savePurchaseOrder">保存</el-button>
|
|
@@ -161,7 +151,12 @@
|
161
|
151
|
</template>
|
162
|
152
|
</el-table-column>
|
163
|
153
|
</el-table>
|
164
|
|
-
|
|
154
|
+ <div style="margin-top:10px">
|
|
155
|
+ <span>优惠率:<el-input style="width:100px" v-model="rate_of_concession"></el-input>%</span>
|
|
156
|
+
|
|
157
|
+ <span>优惠金额:<el-input style="width:100px" v-model="discount_amount"></el-input></span>
|
|
158
|
+
|
|
159
|
+ </div>
|
165
|
160
|
</div>
|
166
|
161
|
</div>
|
167
|
162
|
</template>
|
|
@@ -220,6 +215,8 @@ return {
|
220
|
215
|
drugTypeList:[],
|
221
|
216
|
supplier_name:"",
|
222
|
217
|
supplyList:[],
|
|
218
|
+ rate_of_concession:"",
|
|
219
|
+ discount_amount:"",
|
223
|
220
|
};
|
224
|
221
|
},
|
225
|
222
|
methods:{
|
|
@@ -292,13 +289,11 @@ getInitOrder(){
|
292
|
289
|
})
|
293
|
290
|
},
|
294
|
291
|
changeGoodName(val){
|
295
|
|
- console.log("9媚23323232",val)
|
296
|
|
- this.currentIndex = val
|
|
292
|
+ this.currentIndex = val
|
297
|
293
|
},
|
298
|
294
|
changeName(val){
|
299
|
|
- console.log("val23322323",val)
|
300
|
295
|
|
301
|
|
- for(let i=0;i<this.tableList.length;i++){
|
|
296
|
+ for(let i=0;i<this.tableList.length;i++){
|
302
|
297
|
if(this.currentIndex == i){
|
303
|
298
|
this.tableList[i].id = val.id
|
304
|
299
|
this.tableList[i].type = val.type
|
|
@@ -313,9 +308,9 @@ changeName(val){
|
313
|
308
|
this.tableList[i].supply_manufacturer = val.supply_manufacturer
|
314
|
309
|
this.tableList[i].supply_license_number = val.supply_license_number
|
315
|
310
|
this.tableList[i].supply_remake = val.supply_remake
|
|
311
|
+ }
|
316
|
312
|
}
|
317
|
|
- }
|
318
|
|
- console.log("表哥332322332232323",this.tableList)
|
|
313
|
+
|
319
|
314
|
},
|
320
|
315
|
handleEdit(){
|
321
|
316
|
const tempObj = {}
|
|
@@ -343,8 +338,17 @@ handleDelete: function(index, row) {
|
343
|
338
|
}
|
344
|
339
|
},
|
345
|
340
|
savePurchaseOrder(){
|
346
|
|
- console.log("param323322332",this.tableList)
|
347
|
|
- savePurchaseOrder().then(response=>{
|
|
341
|
+
|
|
342
|
+ var params = {
|
|
343
|
+ supplier_name:this.supplier_name,
|
|
344
|
+ start_time:this.start_time,
|
|
345
|
+ end_time:this.end_time,
|
|
346
|
+ rate_of_concession:this.rate_of_concession,
|
|
347
|
+ discount_amount:this.discount_amount,
|
|
348
|
+ }
|
|
349
|
+ console.log("partam2332232332",params)
|
|
350
|
+ console.log("tablelsit323232",this.tabList)
|
|
351
|
+ savePurchaseOrder(this.tabList,this.supplier_name,this.start_time,this.end_time,this.rate_of_concession,this.discount_amount).then(response=>{
|
348
|
352
|
|
349
|
353
|
})
|
350
|
354
|
},
|