更新优化电子发票
This commit is contained in:
parent
235d68a0fb
commit
c15348514a
@ -15,28 +15,34 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<lsjUpload ref="lsjUpload" childId="upload1" :size="10" :option="fileOption" height="200rpx" :debug="false"
|
<lsjUpload ref="lsjUpload" childId="upload1" :size="10" :option="fileOption" height="200rpx" style="margin-top: 28rpx;" :debug="false" :formats="'pdf'"
|
||||||
:multiple="false" :count="1" :instantly="true" @change="changeFile">
|
:multiple="false" :count="1" :instantly="true" @change="changeFile">
|
||||||
<view class="change-file">选择附件</view>
|
<view class="change-file">请选择PDF类型的发票</view>
|
||||||
</lsjUpload>
|
</lsjUpload>
|
||||||
<view class="fileList" v-for="(item,index) in files.values()" :key="index">
|
<view class="fileList" v-for="(item,index) in files.values()" :key="index">
|
||||||
<view class="name">{{item.name}}</view>
|
<view class="name">
|
||||||
|
<image src="../../static/img/contract/pdf.png" style="width: 40rpx;height: 40rpx;margin-right: 12rpx;"></image>
|
||||||
|
{{item.name}}
|
||||||
|
</view>
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
<text @click="resetUpload(item.name)" v-if="item.type=='fail'">重新上传</text>
|
<text @click="resetUpload(item.name)" v-if="item.type=='fail'">重新上传</text>
|
||||||
<text @click="clear(item.name)">删除</text>
|
<text @click="clearShow(item.name)">删除</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tip">
|
<view class="tip">
|
||||||
<view class="title">提示</view>
|
<view class="title">提示</view>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
上一周期截至时间是<text>{{payMoney.end_cycle}}</text>;<br />
|
上一周期截至时间是<text>{{payMoney.end_cycle}}</text>;<br />
|
||||||
可提现金额是每一个提现周期内的收益,当前是上一个周期的可提现金额,并不是当前公司收益金额,提现后将会由后台审核,审核通过后会直接往您所上传的银行卡汇款,请耐心等待;
|
可提现金额是上一个周期的收益金额,并不是当前公司收益金额,提现后将会由后台审核,审核通过后会直接往您所上传的银行卡汇款,请耐心等待;<br/>
|
||||||
|
<text style="color: #ff7c32;">提现时请注意,需要先上传PDF类型的电子发票后方可提现</text>
|
||||||
<!-- <text @click="copyPhone('4008888888')">4008888888</text> -->
|
<!-- <text @click="copyPhone('4008888888')">4008888888</text> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="price" style="margin-top: 0;">
|
<view class="price" style="margin-top: 0;">
|
||||||
<button class="btn" @click="pay">全部提现</button>
|
<button class="btn" @click="pay">全部提现</button>
|
||||||
</view>
|
</view>
|
||||||
|
<u-modal :show="modelShow" title="提醒" content="删除后上传的文件将会消失,你确定要删除吗?" showCancelButton
|
||||||
|
@confirm="clear(del_name);modelShow=false" @cancel="modelShow=false"></u-modal>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -65,7 +71,9 @@
|
|||||||
payTimer: null,
|
payTimer: null,
|
||||||
timeCount: 5,
|
timeCount: 5,
|
||||||
fileOption: {},
|
fileOption: {},
|
||||||
files: new Map()
|
files: new Map(),
|
||||||
|
modelShow: false,
|
||||||
|
del_name: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 点击提现记录
|
// 点击提现记录
|
||||||
@ -97,7 +105,6 @@
|
|||||||
*/
|
*/
|
||||||
onuploadEnd(item) {
|
onuploadEnd(item) {
|
||||||
console.log(`${item.name}已上传结束,上传状态=${item.type}`);
|
console.log(`${item.name}已上传结束,上传状态=${item.type}`);
|
||||||
console.log(item);
|
|
||||||
// 更新当前窗口状态变化的文件
|
// 更新当前窗口状态变化的文件
|
||||||
this.files.set(item.name, item);
|
this.files.set(item.name, item);
|
||||||
// 强制更新视图
|
// 强制更新视图
|
||||||
@ -140,6 +147,11 @@
|
|||||||
// name=指定文件名,不传name默认移除所有文件
|
// name=指定文件名,不传name默认移除所有文件
|
||||||
this.$refs.lsjUpload.clear(name);
|
this.$refs.lsjUpload.clear(name);
|
||||||
},
|
},
|
||||||
|
clearShow(name) {
|
||||||
|
console.log(name);
|
||||||
|
this.del_name = name;
|
||||||
|
this.modelShow = true;
|
||||||
|
},
|
||||||
copyPhone(str = "") {
|
copyPhone(str = "") {
|
||||||
uni.setClipboardData({
|
uni.setClipboardData({
|
||||||
data: str + "",
|
data: str + "",
|
||||||
@ -175,7 +187,9 @@
|
|||||||
})
|
})
|
||||||
file = JSON.parse(file);
|
file = JSON.parse(file);
|
||||||
this.payMoney.invoice = file.data.uri;
|
this.payMoney.invoice = file.data.uri;
|
||||||
if(this.payMoney.invoice.slice(-4)!='.pdf') return false;
|
if (this.payMoney.invoice.slice(-4) != '.pdf') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false
|
return false
|
||||||
@ -183,7 +197,7 @@
|
|||||||
},
|
},
|
||||||
// 提现
|
// 提现
|
||||||
pay() {
|
pay() {
|
||||||
if (!this.isFile()) return Toast('请先上传PDF类型附件!')
|
if (!this.isFile()) return Toast('请先上传PDF类型的发票!')
|
||||||
if (+this.payMoney.money <= 0) return Toast('提现金额不能小于0!')
|
if (+this.payMoney.money <= 0) return Toast('提现金额不能小于0!')
|
||||||
if (!this.payTimer) {
|
if (!this.payTimer) {
|
||||||
this.goApply();
|
this.goApply();
|
||||||
@ -377,7 +391,7 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 694rpx;
|
width: 694rpx;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
border: 2px solid #ccc;
|
border: 2px dashed #ccc;
|
||||||
border-radius: 14rpx;
|
border-radius: 14rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user