小程序编译0.0.0
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="titletop flex-start" @click="addfourshow=!addfourshow">
|
||||
<text>数电票类型</text>
|
||||
<text class="titletoptext">数电票类型</text>
|
||||
<view class="flex-center titletopone" style="margin-left: 16rpx;">
|
||||
<view>
|
||||
{{form.typename?form.typename:'请选择'}}
|
||||
</view>
|
||||
<image src="@/static/electric/type1.png" mode=""></image>
|
||||
<image src="https://czg-invoicing.oss-cn-beijing.aliyuncs.com/static/electric/type1.png" mode="">
|
||||
</image>
|
||||
<!-- <u-icon name="arrow-rightward" color="#F39D52" size="14"></u-icon> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="titletop flex-start">
|
||||
<text>购买方信息</text>
|
||||
<text class="titletoptext">购买方信息</text>
|
||||
<view class="flex-center">
|
||||
<u-checkbox-group class="titletopcheckbox">
|
||||
<u-checkbox v-model="form.user_type"></u-checkbox>
|
||||
@@ -58,7 +59,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="titletop flex-start">
|
||||
<text>销售方信息</text>
|
||||
<text class="titletoptext">销售方信息</text>
|
||||
<view class="flex-center" style="margin-left: 16rpx;">
|
||||
<u-icon name="reload" color="#7db5fe" size="14"></u-icon>
|
||||
</view>
|
||||
@@ -94,11 +95,11 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="titletop flex-start">
|
||||
<text>收票方式</text>
|
||||
<view class="flex-center" style="margin-left: 16rpx;">
|
||||
<text class="titletoptext">收票方式</text>
|
||||
<!-- <view class="flex-center" style="margin-left: 16rpx;">
|
||||
<u-icon name="question-circle" color="#585858" size="14" @click="clickicon">
|
||||
</u-icon>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- <view class="listinput flex-between">
|
||||
<view class="listinput_left">
|
||||
@@ -111,7 +112,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="titletop flex-start">
|
||||
<text>开票商品({{`${form.is_tax?'含税':'不含税'}`}})</text>
|
||||
<text class="titletoptext">开票商品({{`${form.is_tax?'含税':'不含税'}`}})</text>
|
||||
<view class="flex-start" style="margin-right: 10rpx;">
|
||||
<text
|
||||
style="font-family: Source Han Sans CN, Source Han Sans CN;font-weight: 400;font-size: 28rpx;color: #333333;margin-right: 16rpx;"></text>
|
||||
@@ -151,7 +152,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="titletop flex-start">
|
||||
<text>备注信息</text>
|
||||
<text class="titletoptext">备注信息</text>
|
||||
</view>
|
||||
<view class="listinput flex-between">
|
||||
<view class="listinput_left">
|
||||
@@ -217,10 +218,9 @@
|
||||
<view class="addshowboxinput flex-colum-start">
|
||||
<text class="addshowboxinputtext">*商品编码</text>
|
||||
<view class="addshowboxinput_inp">
|
||||
<input type="text" placeholder="" v-model="addform.spbm" disabled
|
||||
<input type="text" placeholder="请选择" v-model="addform.spbm" disabled
|
||||
style="background: #f6f6f6;" />
|
||||
<view class="absolute"
|
||||
@click="addtowshow=!addtowshow,selectencoding({selected: true,pid: ''},'index')">
|
||||
<view class="absolute" @click="clickspbm">
|
||||
选择商品名称
|
||||
</view>
|
||||
</view>
|
||||
@@ -229,7 +229,7 @@
|
||||
<view class="addshowboxinput flex-colum-start">
|
||||
<text class="addshowboxinputtext">编码简称</text>
|
||||
<view class="addshowboxinput_inp">
|
||||
<input type="text" placeholder="" v-model="addform.abbreviation" disabled
|
||||
<input type="text" placeholder="请选择" v-model="addform.abbreviation" disabled
|
||||
style="background: #f6f6f6;" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -663,6 +663,15 @@
|
||||
this.form.typename = value[0].label
|
||||
},
|
||||
methods: {
|
||||
// 选项卡
|
||||
clickspbm() {
|
||||
console.log(1111)
|
||||
this.addtowshow = !this.addtowshow
|
||||
this.selectencoding({
|
||||
selected: true,
|
||||
pid: ''
|
||||
}, 'index')
|
||||
},
|
||||
//返回键
|
||||
selectencodingicon() {
|
||||
this.selectencodingitem = {}
|
||||
@@ -752,6 +761,10 @@
|
||||
this.form.dlzhname = i.name
|
||||
}
|
||||
})
|
||||
if (this.form.dlzh == '') {
|
||||
this.form.dlzh = res.data[0].dlzh
|
||||
this.form.dlzhname = res.data[0].name
|
||||
}
|
||||
console.log(res)
|
||||
},
|
||||
|
||||
@@ -894,10 +907,10 @@
|
||||
if (this.mxListform.spsl) {
|
||||
this.mxListform.dj = this.mxListform.je / this.mxListform.spsl
|
||||
}
|
||||
// if (this.mxListform.dj) {
|
||||
// this.mxListform.spsl = this.mxListform.je / this.mxListform.dj
|
||||
// }
|
||||
this.zongshui()
|
||||
if (this.mxListform.dj) {
|
||||
this.mxListform.spsl = this.mxListform.je / this.mxListform.dj
|
||||
}
|
||||
this.$u.debounce(this.zongshui, 500)
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
@@ -912,12 +925,15 @@
|
||||
if (this.mxListform.dj || this.mxListform.je) {
|
||||
if (this.mxListform.dj) {
|
||||
this.mxListform.je = this.mxListform.dj * this.mxListform.spsl
|
||||
this.$forceUpdate()
|
||||
}
|
||||
if (this.mxListform.je) {
|
||||
this.mxListform.dj = this.mxListform.je / this.mxListform.spsl
|
||||
}
|
||||
this.zongshui()
|
||||
if (this.mxListform.spsl == 0) {
|
||||
this.mxListform.se = 0
|
||||
}
|
||||
this.$u.debounce(this.zongshui, 500)
|
||||
this.$forceUpdate()
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
@@ -937,7 +953,7 @@
|
||||
if (this.mxListform.je) {
|
||||
this.mxListform.spsl = this.mxListform.je / this.mxListform.dj
|
||||
}
|
||||
this.zongshui()
|
||||
this.$u.debounce(this.zongshui, 500)
|
||||
this.$forceUpdate()
|
||||
} else {
|
||||
return false;
|
||||
@@ -948,7 +964,7 @@
|
||||
if (this.mxListform.sl == null || this.mxListform.sl == '') {
|
||||
return false;
|
||||
}
|
||||
this.$u.throttle(this.mxListformslshowtype, 500)
|
||||
this.mxListformslshowtype()
|
||||
},
|
||||
// 算税率
|
||||
async mxListformslshowtype(item) {
|
||||
@@ -1223,6 +1239,13 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (this.form.email == null || this.form.email == '') {
|
||||
uni.showToast({
|
||||
title: '邮箱地址不能为空',
|
||||
icon: 'none'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
this.form.is_tax = this.form.is_tax ? 1 : 2
|
||||
this.form.user_type = this.form.user_type ? 1 : 2 // 1 个人 2企业
|
||||
this.form.mxList = JSON.stringify(this.form.mxListes)
|
||||
@@ -1253,7 +1276,7 @@
|
||||
.titletop {
|
||||
padding-top: 32rpx;
|
||||
|
||||
text {
|
||||
.titletoptext {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
@@ -1571,6 +1594,7 @@
|
||||
color: #FFFFFF;
|
||||
right: 16rpx;
|
||||
top: 50%;
|
||||
z-index: 99;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
}
|
||||
@@ -1676,12 +1700,13 @@
|
||||
color: #333333;
|
||||
|
||||
input {
|
||||
height: 80rpx;
|
||||
width: auto;
|
||||
padding: 16rpx;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
|
||||
.listinput_leftrelative {
|
||||
|
||||
Reference in New Issue
Block a user