1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
| <template>
| <el-dialog :visible.sync="currentVisible" title="批量更改折扣率">
| <el-alert title="提示:1、请输入折扣率;" type="success"></el-alert>
| <el-form :inline="true" :model="form" class="demo-form-inline">
| <el-form-item :label-width="formLabelWidth" label="批量更改折扣率:">
| <el-col :span="20">
| <el-input v-model="form.DiscountRate" auto-complete="off"></el-input>
| </el-col>
| </el-form-item>
| </el-form>
| <div slot="footer" class="dialog-footer">
| <el-button @click="currentVisible = false">取 消</el-button>
| <el-button type="primary" @click="batchupdate">确 定</el-button>
| </div>
| </el-dialog>
| </template>
|
| <script>
| export default {
| name: "order-barcode",
| components: {},
| props: {
| visible: {
| type: Boolean,
| default: false,
| required: true
| }
| },
| data() {
| return {
| id: "",
| form: {
| DiscountRate: "0"
| },
| Order_Id: 0,
| formLabelWidth: "150px",
| DetailIdList: []
| };
| },
| computed: {
| currentVisible: {
| get: function() {
| return this.visible;
| },
| set: function(val) {
| this.$emit("update:visible", val);
| }
| }
| },
| methods: {
| showDetailIdList(rows) {
| this.DetailIdList = rows;
| },
| batchupdate() {
| const url = "/api/Purchase_Order/DiscountRate";
| const params = {
| DiscountRate: this.form.DiscountRate,
| DetailIdList: this.DetailIdList
| };
| var callback = res => {
| this.common.showMsg(res);
| };
| this.common.ajax(url, params, callback, null);
| }
| }
| };
| </script>
| <style lang="less" scoped>
| @deep: ~">>>";
| @{deep} .el-dialog__body {
| padding: 0px 10px;
| }
| </style>
|
|