upload-stock-out.vue
1.71 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<template>
<Modal
v-model="showModal"
@on-ok="ok"
@on-cancel="cancel"
width="auto"
class-name="out-stock-modal"
cancel-text="取消"
ok-text="提交">
<div class="detail">
<Table
stripe
:columns="tableCols"
:data="tableData">
</Table>
</div>
<p class="danger-tip">
*缺货数量提交后无法更改,平台将对顾客订单商品进行退单处理,请慎重操作!
</p>
</Modal>
</template>
<script>
import tradeService from 'trade-service';
import _ from 'lodash';
export default {
name: 'OutStock',
props: {
},
data() {
return {
showModal: false,
showLoading: true,
tableCols: [
{
title: '商品图片',
key: 'image'
},
{
title: '商品信息',
key: 'info'
},
{
title: '缺货数',
key: 'shortNum'
}
],
tableData: [
{
shortNum: 2
}
]
};
},
watch: {
},
methods: {
ok(){
// todo
},
cancel(){
this.$Message.info('click cancel')
}
}
};
</script>
<style lang="scss">
.out-stock-modal {
.detail {
height: 200px;
}
.danger-tip {
color: #ff0000;
text-align: center;
}
.ivu-modal {
width: 70%;
}
}
</style>