小程序编译0.0.0
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<template>
|
||||
<view class="Box">
|
||||
<navseat :opacity='false' :title='"极速开票"' :titleshow='true' :namecolor='"#fff"' iconcolor='#fff'></navseat>
|
||||
<view class="Box_box_O">
|
||||
<view class="Box_box flex-between" @click="showpopupclick">
|
||||
<view>*项目名称</view>
|
||||
<view class=""
|
||||
style="width: 60%; overflow:hidden; font-size:32rpx;text-overflow: ellipsis;white-space: nowrap; "
|
||||
v-model="form.article">{{ form.article}} <text v-if="!form.article"
|
||||
style="color: #86909c;">选择项目名称</text>
|
||||
style="width: 60%; overflow:hidden; font-size:32rpx;text-overflow: ellipsis;white-space: nowrap;">
|
||||
<text v-if="form.article"> {{ form.article}} </text>
|
||||
<text v-else style="color: #86909c;">选择项目名称</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Box_box flex-between">
|
||||
@@ -27,13 +28,15 @@
|
||||
</view>
|
||||
<view class="Box_box flex-between">
|
||||
<view>*税额</view>
|
||||
<view><input type="text" disabled='false' v-model="form.tax_amount" placeholder="请填写税额"
|
||||
data-key="mobile" /></view>
|
||||
<view class="Box_box_bouttme_item_T">
|
||||
<text>{{ form.tax_amount || '请填写税额' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Box_box flex-between">
|
||||
<view>*单价</view>
|
||||
<view><input type="text" disabled='false' v-model="form.d_price" placeholder="请填写单价"
|
||||
data-key="mobile" /></view>
|
||||
<view class="Box_box_bouttme_item_T">
|
||||
<text>{{ form.d_price || '请填写单价' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Box_box flex-between" @click="Issuedbyshowpicker = true">
|
||||
<view class="Box_boxlang Box_box_bouttme_item_O">*开票人</view>
|
||||
@@ -68,7 +71,7 @@
|
||||
<view class="preservation flex-colum">
|
||||
<view class="preservation_box" @tap="$u.throttle(saveMerchantBaseInfoV2, 1000)">提交</view>
|
||||
</view>
|
||||
<u-popup :show="showpopup" @close="showpopup = false" @open="openpopup">
|
||||
<u-popup :show="showpopup" @close="showpopup = false">
|
||||
<view class="popupshow">
|
||||
<view class="popupshowone">请选择项目名称</view>
|
||||
<view class="popupshowone_item" style=" border-bottom: 1rpx solid #E5E5E5;" v-if="keyword">
|
||||
@@ -86,10 +89,14 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import navseat from '@/components/navseat.vue'
|
||||
export default {
|
||||
components: {
|
||||
navseat
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
keyword: uni.getStorageSync('keyword').name,
|
||||
keyword: uni.getStorageSync('keyword').name ? uni.getStorageSync('keyword').name : '',
|
||||
showpopup: false,
|
||||
showpicker: false,
|
||||
Issuedbyshowpicker: false,
|
||||
@@ -101,7 +108,7 @@
|
||||
showElse: false,
|
||||
form: {
|
||||
store_id: uni.getStorageSync('userId'),
|
||||
article: uni.cache.get('keyword').name,
|
||||
article: uni.cache.get('keyword').name ? uni.getStorageSync('keyword').name : '',
|
||||
type: '',
|
||||
price: '',
|
||||
se_amount: '',
|
||||
@@ -109,7 +116,7 @@
|
||||
tax_amount: '',
|
||||
d_price: '',
|
||||
notes: '',
|
||||
mcc: uni.cache.get('keyword').code,
|
||||
mcc: uni.cache.get('keyword').code ? uni.getStorageSync('keyword').code : '',
|
||||
dlzh: '',
|
||||
dlzhid: "",
|
||||
is_new: 1,
|
||||
@@ -148,7 +155,7 @@
|
||||
},
|
||||
methods: {
|
||||
showpopupclick() {
|
||||
this.keyword = uni.getStorageSync('keyword').name
|
||||
this.keyword = uni.getStorageSync('keyword').name ? uni.getStorageSync('keyword').name : ''
|
||||
this.showpopup = true
|
||||
},
|
||||
popupshowone_itemone() {
|
||||
@@ -296,13 +303,14 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if([...this.form.dw].length > 22){
|
||||
if ([...this.form.dw].length > 22) {
|
||||
uni.showToast({
|
||||
title: '单位不能多余22个字体!',
|
||||
icon: 'none'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
console.log(this.form)
|
||||
let res = await this.api.storesubinvoicing(this.form)
|
||||
if (res) {
|
||||
this.form = {
|
||||
@@ -321,7 +329,17 @@
|
||||
ggxh: '',
|
||||
dw: ''
|
||||
}
|
||||
// #ifdef MP-WEIXIN
|
||||
let params = JSON.stringify(res.data.invoice_records);
|
||||
params = encodeURIComponent(params);
|
||||
// 跳转页面,附带编码后的参数
|
||||
uni.navigateTo({
|
||||
url: "/pages/index/wxinvoicing?data=" + params
|
||||
});
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
uni.pro.navigateTo('index/wxinvoicing', res.data.invoice_records)
|
||||
// #endif
|
||||
}
|
||||
|
||||
}
|
||||
@@ -333,24 +351,26 @@
|
||||
page {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
|
||||
.t {
|
||||
margin-right: 8upx;
|
||||
color: #808080;
|
||||
font-size: 32upx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
|
||||
.arrow-icon {
|
||||
transition: all 0.3s ease-in-out;
|
||||
|
||||
|
||||
&.active {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.Box {
|
||||
.Box_box_O {
|
||||
padding: 0 28rpx;
|
||||
@@ -374,6 +394,10 @@
|
||||
color: #808080;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.Box_box_T {
|
||||
@@ -399,7 +423,7 @@
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx;
|
||||
border: 2rpx dashed #707070;
|
||||
background: url(@/static/my2.png) no-repeat;
|
||||
background: url(https://czg-invoicing.oss-cn-beijing.aliyuncs.com/static/my2.png) no-repeat;
|
||||
background-position: 50% 50%;
|
||||
background-size: 50%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user