修改点发票开始之前提交版本
This commit is contained in:
@@ -18,14 +18,7 @@
|
||||
<view><input type="number" v-model="form.number" @input="handleInputChange" placeholder="请填写数量"
|
||||
data-key="mobile" /></view>
|
||||
</view>
|
||||
<view class="Box_box flex-between">
|
||||
<view>规格型号</view>
|
||||
<view><input v-model="form.ggxh" placeholder="请填写规格型号" data-key="mobile" /></view>
|
||||
</view>
|
||||
<view class="Box_box flex-between">
|
||||
<view>单位</view>
|
||||
<view><input v-model="form.dw" placeholder="请填写单位" data-key="mobile" /></view>
|
||||
</view>
|
||||
|
||||
<view class="Box_box flex-between" @click="showpicker = true">
|
||||
<view class="Box_boxlang Box_box_bouttme_item_O">*发票类型</view>
|
||||
<view class="Box_box_bouttme_item_T">
|
||||
@@ -48,6 +41,25 @@
|
||||
<text type="text" v-model="form.dlzhid">{{ form.dlzhid || '请选择开票人' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<template>
|
||||
<view class="Box_box flex-between" @click="showElse = !showElse">
|
||||
<view class="Box_boxone">其他信息</view>
|
||||
<view class="arrow">
|
||||
<text class="t">规格、单位</text>
|
||||
<u-icon name="arrow-down" class="arrow-icon" :class="{ active: showElse }"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<template v-if="showElse">
|
||||
<view class="Box_box flex-between">
|
||||
<view>规格型号</view>
|
||||
<view><input v-model="form.ggxh" placeholder="请填写规格型号" data-key="mobile" /></view>
|
||||
</view>
|
||||
<view class="Box_box flex-between">
|
||||
<view>单位</view>
|
||||
<view><input v-model="form.dw" placeholder="请填写单位" data-key="mobile" /></view>
|
||||
</view>
|
||||
</template>
|
||||
</template>
|
||||
<view class="Box_box flex-between">
|
||||
<view>备注:</view>
|
||||
<u--textarea v-model="form.notes" placeholder="请输入内容"></u--textarea>
|
||||
@@ -86,13 +98,14 @@
|
||||
Uploadurlnumber: '',
|
||||
namelang: '',
|
||||
merchantAuditStatus: '',
|
||||
showElse: false,
|
||||
form: {
|
||||
store_id: uni.getStorageSync('userId'),
|
||||
article: uni.cache.get('keyword').name,
|
||||
type: '',
|
||||
price: '',
|
||||
se_amount: '',
|
||||
number: '',
|
||||
number: 1,
|
||||
tax_amount: '',
|
||||
d_price: '',
|
||||
notes: '',
|
||||
@@ -172,6 +185,7 @@
|
||||
}
|
||||
},
|
||||
async showpickerconfirm(e) {
|
||||
console.log(e, 1)
|
||||
if (this.form.price == null || this.form.price == '') {
|
||||
uni.showToast({
|
||||
title: '请输入开票金额',
|
||||
@@ -193,6 +207,17 @@
|
||||
} else {
|
||||
this.form.se_amount = 3
|
||||
}
|
||||
switch (e.value[1]) {
|
||||
case '1%':
|
||||
this.form.se_amount = 1
|
||||
break;
|
||||
case '3%':
|
||||
this.form.se_amount = 3
|
||||
break;
|
||||
case '6%':
|
||||
this.form.se_amount = 6
|
||||
break;
|
||||
}
|
||||
this.form.type = e.value.toString();
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -271,6 +296,13 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if([...this.form.dw].length > 22){
|
||||
uni.showToast({
|
||||
title: '单位不能多余22个字体!',
|
||||
icon: 'none'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
let res = await this.api.storesubinvoicing(this.form)
|
||||
if (res) {
|
||||
this.form = {
|
||||
@@ -301,7 +333,24 @@
|
||||
page {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.t {
|
||||
margin-right: 8upx;
|
||||
color: #808080;
|
||||
font-size: 32upx;
|
||||
}
|
||||
|
||||
.arrow-icon {
|
||||
transition: all 0.3s ease-in-out;
|
||||
|
||||
&.active {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
.Box {
|
||||
.Box_box_O {
|
||||
padding: 0 28rpx;
|
||||
|
||||
@@ -79,6 +79,14 @@
|
||||
} catch (e) {
|
||||
//TODO handle the exception
|
||||
}
|
||||
let token = await this.api.h5encryption({
|
||||
store_id: uni.cache.get('userId')
|
||||
})
|
||||
if (token.code == 1) {
|
||||
uni.cache.set('token', token.data.token);
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.list = []
|
||||
|
||||
@@ -65,20 +65,27 @@
|
||||
};
|
||||
},
|
||||
async onLoad(e) {
|
||||
// await this.$onLaunched;
|
||||
|
||||
// alert(location.href.split('#')[0])
|
||||
if (e.userId) {
|
||||
// this.onLoaduserId = e.userId
|
||||
uni.cache.set('Type', e.type);
|
||||
uni.cache.set('userId', e.userId);
|
||||
}
|
||||
// this.jumpToMiniProgram()
|
||||
let token = await this.api.h5encryption({
|
||||
store_id: uni.cache.get('userId')
|
||||
})
|
||||
if (token.code == 1) {
|
||||
uni.cache.set('token', token.data.token);
|
||||
}
|
||||
console.log(token)
|
||||
let res = await this.api.storestorestatus({
|
||||
store_id: uni.cache.get('userId')
|
||||
})
|
||||
if (res.code == 1) {
|
||||
this.improveinformationform = res.data.store
|
||||
uni.cache.set('form', this.improveinformationform);
|
||||
// uni.cache.set('userId', this.improveinformationform.id);
|
||||
if (res.data.sz_status == 0) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/information'
|
||||
@@ -198,7 +205,7 @@
|
||||
let res = await this.api.szzpyhurl({
|
||||
store_id: uni.getStorageSync('userId')
|
||||
})
|
||||
if(res){
|
||||
if (res) {
|
||||
uni.pro.navigateTo('webview/webview', {
|
||||
url: res.data.url,
|
||||
tape: 1
|
||||
|
||||
Reference in New Issue
Block a user