Blame view

components/InvoiceInfo/InvoiceInfo.vue 3.23 KB
c7add6cf   “wangming”   初始版本开发完毕
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
  <template>

  	<view class="page-total">

  		<view class="cu-modal bottom-modal" :class="{ show: isShow }" @click="hide">

  			<view class="cu-dialog">

  				<view class="invoice-title">

  					<view class="title">发票</view>

  					<view class="notice">发票须知</view>

  				</view>

  				<!-- 发票数据 -->

  				<view class="invoice-data" @click.stop="onStop">

  					<view class="invoice-type">

  						<view class="title">发票类型</view>

  						<view class="type-list">

  							<view class="list" :class="{'action':InvoiceType===0}" @click.stop="onInvoiceType(0)">

  								<text>普通发票</text>

  							</view>

  							<view class="list" :class="{'action':InvoiceType===1}" @click.stop="onInvoiceType(1)">

  								<text>增值营业专业税</text>

  							</view>

  						</view>

  					</view>

  					<view class="invoice-rise">

  						<view class="title">发票抬头</view>

  						<view class="type-list">

  							<view class="list" :class="{'action':InvoiceRise===0}" @click.stop="onInvoiceRise(0)">

  								<text>个人</text>

  							</view>

  							<view class="list" :class="{'action':InvoiceRise===1}" @click.stop="onInvoiceRise(1)">

  								<text>单位</text>

  							</view>

  						</view>

  						<view class="invoice-input">

  							<view class="list">

  								<text>单位名称</text>

  								<input type="text" placeholder="请填写单位名称" />

  							</view>

  							<view class="list">

  								<text>纳税人识别号</text>

  								<input type="text" placeholder="请填写纳税人识别号" />

  							</view>

  						</view>

  					</view>

  					<view class="invoice-rise">

  						<view class="title">收票人信息</view>

  						<view class="invoice-input">

  							<view class="list">

  								<text>收票人手机*</text>

  								<input type="text" placeholder="可通过手机号在发票服务平台查询" />

  							</view>

  							<view class="list">

  								<text>收票人邮箱</text>

  								<input type="text" placeholder="用来接收电子发票邮箱,可选填" />

  							</view>

  						</view>

  					</view>

  					<view class="invoice-rise">

  						<view class="title">发票内容</view>

  						<view class="type-list">

  							<view class="list action">

  								<text>商品明细</text>

  							</view>

  						</view>

  					</view>

  				</view>

  				<!-- 确认 -->

  				<view class="footer-Affirm">

  					<view class="no-invoice" @click.stop="onNoInvoice">不开发票</view>

  					<view class="Affirm-invoice" @click.stop="onAffirmInvoice">确定</view>

  				</view>

  			</view>

  		</view>

  	</view>

  </template>

  

  <script>

  export default {

  	data() {

  		return {

  			isShow: false,

  			InvoiceType: 0,

  			InvoiceRise: 0,

  		};

  	},

  	methods:{

  		show(){

  			this.isShow = true;

  		},

  		hide(){

  			this.isShow = false;

  		},

  		/**

  		 * 阻止冒泡

  		 */

  		onStop(){

  			

  		},

  		/**

  		 * 发票类型点击

  		 */

  		onInvoiceType(type){

  			this.InvoiceType = type;

  		},

  		/**

  		 * 发票抬头点击

  		 */

  		onInvoiceRise(type){

  			this.InvoiceRise = type;

  		},

  		/**

  		 * 不开发票点击

  		 */

  		onNoInvoice(){

  			this.hide();

  		},

  		/**

  		 * 开发票点击

  		 */

  		onAffirmInvoice(){

  			this.hide();

  		}

  	}

  };

  </script>

  

  <style scoped lang="scss">

  @import 'InvoiceInfo.scss';

  </style>