发票抬头部分对完了和发票流程
草稿箱修复:编辑草稿箱里的内容时,弹窗内协议按钮直接亮起来;草稿箱里编辑信息,不填活动分类,点确认发布,没有“平台分类必填”的提示;不上传群二维码,点击确认上传后,没有反应
This commit is contained in:
parent
b25aefce6b
commit
76a5c7b4c7
@ -58,11 +58,11 @@
|
|||||||
@click="toPay(item.id, item.order_no)">去支付</view>
|
@click="toPay(item.id, item.order_no)">去支付</view>
|
||||||
<view v-if="item.status == 2 || item.status == 3" class="btnhx"
|
<view v-if="item.status == 2 || item.status == 3" class="btnhx"
|
||||||
@click="toDetail(item.id, item.order_no, item.status)">核销码</view>
|
@click="toDetail(item.id, item.order_no, item.status)">核销码</view>
|
||||||
<!-- <view v-if="item.status == 9 && item.invoice_status == 0" class="btn_Inv"
|
<view v-if="item.status == 9 && item.invoice_status == 0 && item.detail.feel == 0" class="btn_Inv"
|
||||||
@click="toAddInvoic(item.id, item.order_no)">申请开票</view>
|
@click="toAddInvoic(item.id, item.order_no)">申请开票</view>
|
||||||
<view v-if="item.status == 9 && item.invoice_status == 1" class="btn_InvIng">开票中</view>
|
<view v-if="item.status == 9 && item.invoice_status == 1 && item.detail.feel == 0" class="btn_InvIng">开票中</view>
|
||||||
<view v-if="item.status == 9 && item.invoice_status == 2" class="btn_Inv"
|
<view v-if="item.status == 9 && item.invoice_status == 2 && item.detail.feel == 0" class="btn_Inv"
|
||||||
@click="checkInvoice(item.id, item.order_no)">查看开票</view> -->
|
@click="checkInvoice(item.user_invoice_apply_id, item.order_no)">查看开票</view>
|
||||||
<view v-if="item.status != 0" class="btn_xq"
|
<view v-if="item.status != 0" class="btn_xq"
|
||||||
@click="toDetail(item.id, item.order_no, item.status)">查看详情</view>
|
@click="toDetail(item.id, item.order_no, item.status)">查看详情</view>
|
||||||
</view>
|
</view>
|
||||||
@ -252,8 +252,9 @@
|
|||||||
},
|
},
|
||||||
//申请发票
|
//申请发票
|
||||||
toAddInvoic(id, order_no) {
|
toAddInvoic(id, order_no) {
|
||||||
|
const num = 1
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/packageB/invoice/addInvoice?id=' + id + "&order_no=" + order_no
|
url: '/packageB/invoice/addInvoice?id=' + id + "&order_nos=" + order_no + "&num=" + num
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查看发票
|
//查看发票
|
||||||
|
@ -56,12 +56,12 @@
|
|||||||
<view><u-icon name="arrow-right"></u-icon></view>
|
<view><u-icon name="arrow-right"></u-icon></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="list-item" @click="openUrl('/packageB/invoice/invoiceCenter')">
|
<view class="list-item" @click="openUrl('/packageB/invoice/invoiceCenter')">
|
||||||
<view class="left">发票中心</view>
|
<view class="left">发票中心</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view><u-icon name="arrow-right"></u-icon></view>
|
<view><u-icon name="arrow-right"></u-icon></view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view>
|
||||||
<view class="list-item" @click="openSfz()">
|
<view class="list-item" @click="openSfz()">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
身份信息
|
身份信息
|
||||||
|
@ -223,14 +223,14 @@
|
|||||||
<view class="confirmtk" @click="closetuikuan">确认</view>
|
<view class="confirmtk" @click="closetuikuan">确认</view>
|
||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y="true" class="popup-content">
|
<scroll-view scroll-y="true" class="popup-content">
|
||||||
<view class="popup-content-item flex align-items" :class="[{ active: currents === index }]"
|
<view class="popup-content-item flex align-items" :class="[{ active: currents === item.id }]"
|
||||||
v-for="(item, index) in refund_list" :key="index" @click="selectItem(index, item)">
|
v-for="(item, index) in refund_list" :key="index" @click="selectItem(index, item)">
|
||||||
<view style="width: 540rpx;">
|
<view style="width: 540rpx;">
|
||||||
<span class="popup-content-item-title">{{ item.title }}</span>
|
<span class="popup-content-item-title">{{ item.title }}</span>
|
||||||
<span v-html="item.desc" class="popup-content-item-content"
|
<span v-html="item.desc" class="popup-content-item-content"
|
||||||
style="margin-top: 20rpx;"></span>
|
style="margin-top: 20rpx;"></span>
|
||||||
</view>
|
</view>
|
||||||
<image v-if="currents === index" src="@/static/fabu/check.png" mode="widthFix"
|
<image v-if="currents === item.id" src="@/static/fabu/check.png" mode="widthFix"
|
||||||
style="width: 44rpx;height: 44rpx;" />
|
style="width: 44rpx;height: 44rpx;" />
|
||||||
<image v-else src="@/static/fabu/nocheck.png" mode="widthFix"
|
<image v-else src="@/static/fabu/nocheck.png" mode="widthFix"
|
||||||
style="width: 44rpx;height: 44rpx;" />
|
style="width: 44rpx;height: 44rpx;" />
|
||||||
@ -325,6 +325,7 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view>
|
<view>
|
||||||
<view @click="closebq" class="btn_1">确定选择</view>
|
<view @click="closebq" class="btn_1">确定选择</view>
|
||||||
|
<!-- <view @click="surebq" class="btn_1">确定选择</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -581,14 +582,11 @@
|
|||||||
//活动转换的时间
|
//活动转换的时间
|
||||||
times_b: '', //开始时间
|
times_b: '', //开始时间
|
||||||
times_e: '', //结束时间
|
times_e: '', //结束时间
|
||||||
|
|
||||||
times_b_int: '', //开始时间
|
times_b_int: '', //开始时间
|
||||||
times_e_int: '', //结束时间
|
times_e_int: '', //结束时间
|
||||||
|
|
||||||
//报名转换的时间
|
//报名转换的时间
|
||||||
times_sinb: '', //开始时间
|
times_sinb: '', //开始时间
|
||||||
times_sine: '', //结束时间
|
times_sine: '', //结束时间
|
||||||
|
|
||||||
times_sinb_int: '', //开始时间
|
times_sinb_int: '', //开始时间
|
||||||
times_sine_int: '', //结束时间
|
times_sine_int: '', //结束时间
|
||||||
|
|
||||||
@ -608,28 +606,6 @@
|
|||||||
loadStatus: "loading",
|
loadStatus: "loading",
|
||||||
selectHeadIndex: null,
|
selectHeadIndex: null,
|
||||||
draftSelectIndex: null,
|
draftSelectIndex: null,
|
||||||
selectDradtForm: {
|
|
||||||
cate_ids: '',
|
|
||||||
// 活动分类名字
|
|
||||||
cate_idsName: "",
|
|
||||||
content: '',
|
|
||||||
refund_id: '',
|
|
||||||
refund_idn: '',
|
|
||||||
price: '',
|
|
||||||
stock: '',
|
|
||||||
sign_time: '',
|
|
||||||
time: '',
|
|
||||||
images: '',
|
|
||||||
title: '',
|
|
||||||
address: '',
|
|
||||||
latitude: '',
|
|
||||||
longitude: '',
|
|
||||||
address_detail: '', //详细位置
|
|
||||||
date: dayjs().add(4, 'hour').valueOf(), //活动开始时间
|
|
||||||
date1: dayjs().add(8, 'hour').valueOf(), //活动结束时间
|
|
||||||
birth: dayjs().add(4, 'hour').valueOf(), //报名开始日期
|
|
||||||
birth1: dayjs().add(8, 'hour').valueOf(), //报名结束日期
|
|
||||||
},
|
|
||||||
draftId: null,
|
draftId: null,
|
||||||
baoDraftShow: false,
|
baoDraftShow: false,
|
||||||
draftCount: 0,
|
draftCount: 0,
|
||||||
@ -664,10 +640,6 @@
|
|||||||
this.isFormValid = false
|
this.isFormValid = false
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
}
|
}
|
||||||
// if(this.original_activity_id){
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// this.getDraftList();
|
// this.getDraftList();
|
||||||
//var c=uni.getSystemInfoSync();
|
//var c=uni.getSystemInfoSync();
|
||||||
//844-94-70-100 = 580
|
//844-94-70-100 = 580
|
||||||
@ -678,7 +650,7 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
this.draftList = [];
|
this.draftList = [];
|
||||||
this.show = false;
|
this.show = false;
|
||||||
this.getCardInfo();
|
// this.getCardInfo();
|
||||||
this.getDraftList();
|
this.getDraftList();
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
@ -712,16 +684,14 @@
|
|||||||
},
|
},
|
||||||
// 获取详情
|
// 获取详情
|
||||||
getDetail() {
|
getDetail() {
|
||||||
// uni.switchTab({
|
|
||||||
// url:
|
|
||||||
// })//跳转tabbar页面的
|
|
||||||
uni.$u.http.get('/api/school.new_activity/detail', {
|
uni.$u.http.get('/api/school.new_activity/detail', {
|
||||||
params: {
|
params: {
|
||||||
id: this.id || this.original_activity_id,
|
id: this.id || this.original_activity_id,
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
this.form = res.data.detail
|
this.form = res.data.detail;
|
||||||
|
// this.form.cate_ids = res.data.detail.cate_ids;
|
||||||
console.log('cate_ids', this.form.cate_ids);
|
console.log('cate_ids', this.form.cate_ids);
|
||||||
this.form.cate_idsName = this.form.classes_cate.join(',');
|
this.form.cate_idsName = this.form.classes_cate.join(',');
|
||||||
const idBqSet = new Set(this.form.cate_ids);
|
const idBqSet = new Set(this.form.cate_ids);
|
||||||
@ -732,22 +702,16 @@
|
|||||||
return acc;
|
return acc;
|
||||||
}, []);
|
}, []);
|
||||||
console.log('bqArray', bqArray);
|
console.log('bqArray', bqArray);
|
||||||
// let arrIdsName = bqArray.map((item) => {
|
this.list = bqArray;
|
||||||
// return item.name
|
console.log('getDetail——list', this.list);
|
||||||
// })
|
|
||||||
// this.form.cate_idsName = arrIdsName.join(',');
|
|
||||||
console.log('cate_idsName', this.form.cate_idsName);
|
|
||||||
this.list = bqArray
|
|
||||||
console.log('getDetail list', this.list);
|
|
||||||
this.form.cate_ids = res.data.detail.cate_ids;
|
|
||||||
console.log('cate_ids', this.form.cate_ids);
|
|
||||||
this.form.content = this.form.content.replace(/<[^>]+>/g, ''); // 输出: "运动"
|
this.form.content = this.form.content.replace(/<[^>]+>/g, ''); // 输出: "运动"
|
||||||
|
|
||||||
this.value_slide = res.data.detail.join_info.percent;
|
this.value_slide = res.data.detail.join_info.percent;
|
||||||
|
|
||||||
this.price = this.form.price
|
this.price = this.form.price
|
||||||
this.priceDo()
|
this.priceDo()
|
||||||
|
//退款类名
|
||||||
this.form.refund_idn = this.form.refund_info.title;
|
this.form.refund_idn = this.form.refund_info.title;
|
||||||
// 转换为 fileList 格式
|
// 转换为 fileList 格式
|
||||||
this.fileList1 = this.form.images.map(url => ({
|
this.fileList1 = this.form.images.map(url => ({
|
||||||
@ -764,23 +728,18 @@
|
|||||||
message: ''
|
message: ''
|
||||||
})
|
})
|
||||||
this.QunQrcode1 = this.qunQrcode
|
this.QunQrcode1 = this.qunQrcode
|
||||||
|
// console.log('qunQrcode', this.qunQrcode);
|
||||||
// formatDate(dateStr) {
|
this.currents = this.form.refund_id;
|
||||||
// if (!dateStr) return '';
|
//活动时间
|
||||||
// return dateStr.slice(5, 16);
|
|
||||||
// }
|
|
||||||
// this.times_b_int = this.form.start_time_text
|
|
||||||
// this.times_e_int = this.form.end_time_text
|
|
||||||
// res.data.detail
|
|
||||||
const time_start = this.form.start_time_text.slice(5, 16)
|
const time_start = this.form.start_time_text.slice(5, 16)
|
||||||
const time_end = this.form.end_time_text.slice(5, 16)
|
const time_end = this.form.end_time_text.slice(5, 16)
|
||||||
this.form.time = time_start + ' - ' + time_end
|
this.form.time = time_start + ' - ' + time_end
|
||||||
|
//报名时间
|
||||||
const signTime_start = this.form.sign_start_time_text.slice(5, 16)
|
const signTime_start = this.form.sign_start_time_text.slice(5, 16)
|
||||||
const signTime_end = this.form.sign_end_time_text.slice(5, 16)
|
const signTime_end = this.form.sign_end_time_text.slice(5, 16)
|
||||||
this.form.sign_time = signTime_start + ' - ' + signTime_end
|
this.form.sign_time = signTime_start + ' - ' + signTime_end
|
||||||
|
|
||||||
console.log('qunQrcode', this.qunQrcode);
|
|
||||||
if (!this.original_activity_id) {
|
if (!this.original_activity_id) {
|
||||||
//编辑情况
|
//编辑情况
|
||||||
this.times_b_int = this.form.start_time_text
|
this.times_b_int = this.form.start_time_text
|
||||||
@ -788,6 +747,7 @@
|
|||||||
this.times_sinb_int = this.form.sign_start_time_text
|
this.times_sinb_int = this.form.sign_start_time_text
|
||||||
this.times_sine_int = this.form.sign_end_time_text
|
this.times_sine_int = this.form.sign_end_time_text
|
||||||
} else {
|
} else {
|
||||||
|
//重发
|
||||||
this.times_b_int = ''
|
this.times_b_int = ''
|
||||||
this.times_e_int = ''
|
this.times_e_int = ''
|
||||||
this.times_sinb_int = ''
|
this.times_sinb_int = ''
|
||||||
@ -796,6 +756,7 @@
|
|||||||
this.form.time = ''
|
this.form.time = ''
|
||||||
}
|
}
|
||||||
if (this.type == 2) {
|
if (this.type == 2) {
|
||||||
|
//已取消重发
|
||||||
this.form.title = ''
|
this.form.title = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -810,7 +771,7 @@
|
|||||||
}
|
}
|
||||||
}).catch(error => {});
|
}).catch(error => {});
|
||||||
},
|
},
|
||||||
//草稿箱
|
//草稿箱详情
|
||||||
getDraftDetail() {
|
getDraftDetail() {
|
||||||
console.log('getDraftDetail', this.draftId);
|
console.log('getDraftDetail', this.draftId);
|
||||||
uni.$u.http.get('/api/school.newactivity.activity_drafts/detail', {
|
uni.$u.http.get('/api/school.newactivity.activity_drafts/detail', {
|
||||||
@ -820,11 +781,9 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
this.form = res.data.detail
|
this.form = res.data.detail
|
||||||
this.price = res.data.detail.price
|
this.form.cate_idsName = this.form.classes_cate.join(',');
|
||||||
this.priceDo()
|
// this.form.cate_ids = res.data.detail.cate_ids;
|
||||||
console.log('this.priceName',this.priceName,this.price);
|
console.log('cate_ids', this.form.cate_ids);
|
||||||
this.form.content = this.form.content.replace(/<[^>]+>/g, ''); // 输出: "运动"
|
|
||||||
this.value_slide = res.data.detail.join_info.percent;
|
|
||||||
const idBqSet = new Set(this.form.cate_ids);
|
const idBqSet = new Set(this.form.cate_ids);
|
||||||
const bqArray = this.bqList.reduce((acc, obj) => {
|
const bqArray = this.bqList.reduce((acc, obj) => {
|
||||||
if (this.form.cate_ids.includes(obj.id)) {
|
if (this.form.cate_ids.includes(obj.id)) {
|
||||||
@ -833,15 +792,15 @@
|
|||||||
return acc;
|
return acc;
|
||||||
}, []);
|
}, []);
|
||||||
console.log('bqArray', bqArray);
|
console.log('bqArray', bqArray);
|
||||||
let arrIdsName = bqArray.map((item) => {
|
|
||||||
return item.name
|
|
||||||
})
|
|
||||||
this.form.cate_idsName = arrIdsName.join(',');
|
|
||||||
console.log('cate_idsName', this.form.cate_idsName);
|
console.log('cate_idsName', this.form.cate_idsName);
|
||||||
this.list = bqArray
|
this.list = bqArray
|
||||||
this.form.cate_ids = res.data.detail.cate_ids;
|
console.log('getDraftDetail——list', this.list);
|
||||||
|
|
||||||
|
|
||||||
|
console.log('this.priceName',this.priceName,this.price);
|
||||||
|
this.form.content = this.form.content.replace(/<[^>]+>/g, ''); // 输出: "运动"
|
||||||
|
this.value_slide = res.data.detail.join_info.percent;
|
||||||
|
|
||||||
console.log('cate_ids', this.form.cate_ids);
|
|
||||||
this.form.refund_idn = this.form.refund_info.title;
|
this.form.refund_idn = this.form.refund_info.title;
|
||||||
// 转换为 fileList 格式
|
// 转换为 fileList 格式
|
||||||
this.fileList1 = this.form.images.map(url => ({
|
this.fileList1 = this.form.images.map(url => ({
|
||||||
@ -852,13 +811,28 @@
|
|||||||
this.list1 = this.form.images
|
this.list1 = this.form.images
|
||||||
console.log('fileList1', this.fileList1);
|
console.log('fileList1', this.fileList1);
|
||||||
|
|
||||||
|
|
||||||
|
if(this.form.image == '' || this.form.image == null){
|
||||||
|
this.qunQrcode = ''
|
||||||
|
this.QunQrcode1 = this.qunQrcode
|
||||||
|
console.log('草稿详情',this.QunQrcode1,this.QunQrcode);
|
||||||
|
}else {
|
||||||
this.qunQrcode = ({
|
this.qunQrcode = ({
|
||||||
url: this.form.image,
|
url: this.form.image || res.data.detail,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
message: ''
|
message: ''
|
||||||
})
|
})
|
||||||
this.QunQrcode1 = this.qunQrcode
|
this.QunQrcode1 = this.qunQrcode
|
||||||
|
console.log('草稿详情2',this.QunQrcode1,this.QunQrcode);
|
||||||
|
}
|
||||||
|
// this.qunQrcode = ({
|
||||||
|
// url: this.form.image || res.data.detail,
|
||||||
|
// status: 'success',
|
||||||
|
// message: ''
|
||||||
|
// })
|
||||||
|
// this.QunQrcode1 = this.qunQrcode
|
||||||
|
// console.log('草稿详情',this.QunQrcode1,this.QunQrcode);
|
||||||
|
// console.log('qunQrcode', this.qunQrcode);
|
||||||
// formatDate(dateStr) {
|
// formatDate(dateStr) {
|
||||||
// if (!dateStr) return '';
|
// if (!dateStr) return '';
|
||||||
// return dateStr.slice(5, 16);
|
// return dateStr.slice(5, 16);
|
||||||
@ -866,6 +840,7 @@
|
|||||||
// this.times_b_int = this.form.start_time_text
|
// this.times_b_int = this.form.start_time_text
|
||||||
// this.times_e_int = this.form.end_time_text
|
// this.times_e_int = this.form.end_time_text
|
||||||
// res.data.detail
|
// res.data.detail
|
||||||
|
this.currents = this.form.refund_id;
|
||||||
const time_start = this.form.start_time_text.slice(5, 16)
|
const time_start = this.form.start_time_text.slice(5, 16)
|
||||||
const time_end = this.form.end_time_text.slice(5, 16)
|
const time_end = this.form.end_time_text.slice(5, 16)
|
||||||
this.form.time = time_start + ' - ' + time_end
|
this.form.time = time_start + ' - ' + time_end
|
||||||
@ -873,8 +848,9 @@
|
|||||||
const signTime_start = this.form.sign_start_time_text.slice(5, 16)
|
const signTime_start = this.form.sign_start_time_text.slice(5, 16)
|
||||||
const signTime_end = this.form.sign_end_time_text.slice(5, 16)
|
const signTime_end = this.form.sign_end_time_text.slice(5, 16)
|
||||||
this.form.sign_time = signTime_start + ' - ' + signTime_end
|
this.form.sign_time = signTime_start + ' - ' + signTime_end
|
||||||
|
console.log('this.form.sign_time',this.form.sign_time);
|
||||||
|
|
||||||
|
|
||||||
console.log('qunQrcode', this.qunQrcode);
|
|
||||||
if (!this.original_activity_id) {
|
if (!this.original_activity_id) {
|
||||||
this.times_b_int = this.form.start_time_text
|
this.times_b_int = this.form.start_time_text
|
||||||
this.times_e_int = this.form.end_time_text
|
this.times_e_int = this.form.end_time_text
|
||||||
@ -892,6 +868,8 @@
|
|||||||
this.form.title = ''
|
this.form.title = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.price = res.data.detail.price
|
||||||
|
this.priceDo()
|
||||||
this.mobile = this.detail.user.mobile.slice(0, 3) + 'XXXX' + this.detail.user.mobile.slice(
|
this.mobile = this.detail.user.mobile.slice(0, 3) + 'XXXX' + this.detail.user.mobile.slice(
|
||||||
7);
|
7);
|
||||||
} else {
|
} else {
|
||||||
@ -951,12 +929,7 @@
|
|||||||
this.cardStatus = res.data.status;
|
this.cardStatus = res.data.status;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//选择政策
|
|
||||||
selectItem(index, item) {
|
|
||||||
this.currents = index;
|
|
||||||
this.form.refund_id = item.id;
|
|
||||||
this.form.refund_idn = item.title;
|
|
||||||
},
|
|
||||||
// async uploadQun(item) {
|
// async uploadQun(item) {
|
||||||
// const result = await this.uploadFilePromise(item.file.url, 'user');
|
// const result = await this.uploadFilePromise(item.file.url, 'user');
|
||||||
// this.qunQrcode = result;
|
// this.qunQrcode = result;
|
||||||
@ -1042,6 +1015,36 @@
|
|||||||
// uni.setStorageSync('zjlist', JSON.stringify(this.list))
|
// uni.setStorageSync('zjlist', JSON.stringify(this.list))
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* 标签 */
|
||||||
|
// 获取标签
|
||||||
|
getBqList() {
|
||||||
|
uni.$u.http
|
||||||
|
.get("/api/school.new_activity/cate_list", {
|
||||||
|
params: {
|
||||||
|
page: 1,
|
||||||
|
limit: 100
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
if (res.code == 1) {
|
||||||
|
this.bqList = res.data.list;
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
uni.showToast({
|
||||||
|
title: "请求失败,请稍后再试",
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
//删除标签(本地)
|
//删除标签(本地)
|
||||||
removebq(i) {
|
removebq(i) {
|
||||||
this.list.splice(i, 1);
|
this.list.splice(i, 1);
|
||||||
@ -1084,16 +1087,30 @@
|
|||||||
this.form.cate_idsName = arr.join(',');
|
this.form.cate_idsName = arr.join(',');
|
||||||
console.log('this.form.cate_idsName', this.form.cate_idsName);
|
console.log('this.form.cate_idsName', this.form.cate_idsName);
|
||||||
},
|
},
|
||||||
dateWeeks(e) {
|
|
||||||
return dateWeek(e);
|
|
||||||
},
|
|
||||||
closebq() {
|
closebq() {
|
||||||
this.showPopbq = false
|
this.showPopbq = false;
|
||||||
|
// this.list = []
|
||||||
|
// let arr = this.list.map((item) => {
|
||||||
|
// return item.name
|
||||||
|
// })
|
||||||
|
// this.form.cate_idsName = arr.join(',');
|
||||||
|
// console.log('this.form.cate_idsName', this.form.cate_idsName);
|
||||||
|
},
|
||||||
|
surebq() {
|
||||||
|
this.showPopbq = false;
|
||||||
|
// this.list = []
|
||||||
|
// let arr = this.list.map((item) => {
|
||||||
|
// return item.name
|
||||||
|
// })
|
||||||
|
// this.form.cate_idsName = arr.join(',');
|
||||||
|
// console.log('this.form.cate_idsName', this.form.cate_idsName);
|
||||||
},
|
},
|
||||||
openBq() {
|
openBq() {
|
||||||
this.showPopbq = true
|
this.showPopbq = true;
|
||||||
},
|
},
|
||||||
// 退费规则
|
|
||||||
|
/* 退费政策 */
|
||||||
|
// 退费规则列表
|
||||||
getrefund_list() {
|
getrefund_list() {
|
||||||
uni.$u.http
|
uni.$u.http
|
||||||
.get("/api/school.new_activity/refund_list", {
|
.get("/api/school.new_activity/refund_list", {
|
||||||
@ -1121,38 +1138,25 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 获取标签
|
//选择政策
|
||||||
getBqList() {
|
selectItem(index, item) {
|
||||||
uni.$u.http
|
// this.currents = index;
|
||||||
.get("/api/school.new_activity/cate_list", {
|
this.currents = item.id;
|
||||||
params: {
|
this.form.refund_id = item.id;
|
||||||
page: 1,
|
this.form.refund_idn = item.title;
|
||||||
limit: 100
|
|
||||||
},
|
},
|
||||||
})
|
opentuikuan() {
|
||||||
.then((res) => {
|
this.tuikuan = true;
|
||||||
if (res.code == 1) {
|
//this.form.refund_id = 1;
|
||||||
this.bqList = res.data.list;
|
//this.form.refund_idn = '随时退';
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.msg,
|
|
||||||
icon: "none",
|
|
||||||
duration: 2000,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
uni.showToast({
|
|
||||||
title: "请求失败,请稍后再试",
|
|
||||||
icon: "none",
|
|
||||||
duration: 2000,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
//同意
|
closetuikuan() {
|
||||||
handleScroll() {
|
this.tuikuan = false
|
||||||
console.log('handleScroll:', 123)
|
},
|
||||||
this.agreeShow = true
|
|
||||||
|
|
||||||
|
dateWeeks(e) {
|
||||||
|
return dateWeek(e);
|
||||||
},
|
},
|
||||||
getTime() {
|
getTime() {
|
||||||
const currentDate = new Date();
|
const currentDate = new Date();
|
||||||
@ -1163,6 +1167,9 @@
|
|||||||
const formattedDate = `${year}-${month}-${day}`;
|
const formattedDate = `${year}-${month}-${day}`;
|
||||||
return formattedDate;
|
return formattedDate;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/* 活动时间 */
|
||||||
dateShowHidden() {
|
dateShowHidden() {
|
||||||
this.hdIndex = 1;
|
this.hdIndex = 1;
|
||||||
// this.tempDefaultTime = new Date(new Date().getTime() + 8 * 60 * 60 * 1000);
|
// this.tempDefaultTime = new Date(new Date().getTime() + 8 * 60 * 60 * 1000);
|
||||||
@ -1175,19 +1182,6 @@
|
|||||||
this.defaultTime = defaultTime;
|
this.defaultTime = defaultTime;
|
||||||
// this.defaultTime = new Date(this.form.start_time)
|
// this.defaultTime = new Date(this.form.start_time)
|
||||||
},
|
},
|
||||||
birthShowHidden() {
|
|
||||||
this.bmIndex = 1;
|
|
||||||
this.birthShow = true;
|
|
||||||
console.log('报名时间');
|
|
||||||
// 计算当前时间加8小时
|
|
||||||
const defaultTime = new Date();
|
|
||||||
//defaultTime.setHours(defaultTime.getHours() + 8);
|
|
||||||
console.log('报名时间defaultTime', defaultTime);
|
|
||||||
this.defaultTime = defaultTime;
|
|
||||||
// this.defaultTime = new Date(this.form.sign_start_time)
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
// 活动开始时间
|
// 活动开始时间
|
||||||
datefirm(e, index) {
|
datefirm(e, index) {
|
||||||
console.log('活动开始时间', e, e.time)
|
console.log('活动开始时间', e, e.time)
|
||||||
@ -1298,27 +1292,27 @@
|
|||||||
// }
|
// }
|
||||||
// this.dateShow=false;
|
// this.dateShow=false;
|
||||||
},
|
},
|
||||||
isBeforeNow(dateTimeStr) {
|
|
||||||
// 替换空格为'T'以兼容ISO格式(部分浏览器需要)
|
|
||||||
const isoFormattedStr = dateTimeStr.replace(' ', 'T');
|
|
||||||
const inputDate = new Date(isoFormattedStr);
|
|
||||||
const now = new Date();
|
|
||||||
|
|
||||||
return inputDate < now;
|
|
||||||
},
|
|
||||||
isDateTimeBefore(datetimeStr1, datetimeStr2) {
|
|
||||||
// 转换为Date对象(兼容"YYYY-MM-DD HH:mm:ss"格式)
|
|
||||||
const date1 = new Date(datetimeStr1.replace(' ', 'T') + 'Z');
|
|
||||||
const date2 = new Date(datetimeStr2.replace(' ', 'T') + 'Z');
|
|
||||||
|
|
||||||
return date1 <= date2; // 如果date1早于date2,返回true
|
|
||||||
},
|
|
||||||
datecel(e) {
|
datecel(e) {
|
||||||
this.dateShow = false
|
this.dateShow = false
|
||||||
},
|
},
|
||||||
datecel1(e) {
|
datecel1(e) {
|
||||||
this.dateShow1 = false
|
this.dateShow1 = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/* 报名时间 */
|
||||||
|
birthShowHidden() {
|
||||||
|
this.bmIndex = 1;
|
||||||
|
this.birthShow = true;
|
||||||
|
console.log('报名时间');
|
||||||
|
// 计算当前时间加8小时
|
||||||
|
const defaultTime = new Date();
|
||||||
|
//defaultTime.setHours(defaultTime.getHours() + 8);
|
||||||
|
console.log('报名时间defaultTime', defaultTime);
|
||||||
|
this.defaultTime = defaultTime;
|
||||||
|
// this.defaultTime = new Date(this.form.sign_start_time)
|
||||||
|
|
||||||
|
},
|
||||||
// 报名开始日期
|
// 报名开始日期
|
||||||
birthConfirm(e, index) {
|
birthConfirm(e, index) {
|
||||||
// this.form.birth = dayjs(e.value).format('YYYY-MM-DD HH:mm:ss');
|
// this.form.birth = dayjs(e.value).format('YYYY-MM-DD HH:mm:ss');
|
||||||
@ -1422,41 +1416,48 @@
|
|||||||
birthCancel1() {
|
birthCancel1() {
|
||||||
this.birthShow1 = false
|
this.birthShow1 = false
|
||||||
},
|
},
|
||||||
|
//日期
|
||||||
|
isBeforeNow(dateTimeStr) {
|
||||||
|
// 替换空格为'T'以兼容ISO格式(部分浏览器需要)
|
||||||
|
const isoFormattedStr = dateTimeStr.replace(' ', 'T');
|
||||||
|
const inputDate = new Date(isoFormattedStr);
|
||||||
|
const now = new Date();
|
||||||
|
|
||||||
|
return inputDate < now;
|
||||||
|
},
|
||||||
|
isDateTimeBefore(datetimeStr1, datetimeStr2) {
|
||||||
|
// 转换为Date对象(兼容"YYYY-MM-DD HH:mm:ss"格式)
|
||||||
|
const date1 = new Date(datetimeStr1.replace(' ', 'T') + 'Z');
|
||||||
|
const date2 = new Date(datetimeStr2.replace(' ', 'T') + 'Z');
|
||||||
|
|
||||||
|
return date1 <= date2; // 如果date1早于date2,返回true
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/* 声明协议 */
|
||||||
close() {
|
close() {
|
||||||
this.show = false;
|
this.show = false;
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
},
|
},
|
||||||
closetuikuan() {
|
|
||||||
this.tuikuan = false
|
|
||||||
},
|
|
||||||
open() {
|
open() {
|
||||||
this.show = true
|
this.show = true
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// this.agree = true
|
// this.agree = true
|
||||||
// }, 5000)
|
// }, 5000)
|
||||||
},
|
},
|
||||||
opentuikuan() {
|
//同意
|
||||||
this.tuikuan = true;
|
handleScroll() {
|
||||||
//this.form.refund_id = 1;
|
console.log('handleScroll:', 123)
|
||||||
//this.form.refund_idn = '随时退';
|
this.agreeShow = true
|
||||||
},
|
},
|
||||||
change() {
|
change() {
|
||||||
this.agree = true;
|
this.agree = true;
|
||||||
this.agreeAdd = true;
|
this.agreeAdd = true;
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
// 选择机构地址
|
// 协议
|
||||||
|
|
||||||
protocolClick(tag) {
|
protocolClick(tag) {
|
||||||
//timeLog 开始倒计时
|
console.log('editAct');
|
||||||
// this.timeLog = 5;
|
|
||||||
// this.timer = setInterval(() => {
|
|
||||||
// this.timeLog--;
|
|
||||||
// if (this.timeLog === 0) {
|
|
||||||
// this.agreeShow=true;
|
|
||||||
// clearInterval(this.timer);
|
|
||||||
// }
|
|
||||||
// }, 1000);
|
|
||||||
this.show = true
|
this.show = true
|
||||||
},
|
},
|
||||||
// 获取入驻协议文章
|
// 获取入驻协议文章
|
||||||
@ -1484,6 +1485,9 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/*地址*/
|
||||||
choose() {
|
choose() {
|
||||||
console.log('choose', 11111)
|
console.log('choose', 11111)
|
||||||
const that = this
|
const that = this
|
||||||
@ -1502,6 +1506,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//轮播图images
|
||||||
// 回调参数为包含columnIndex、value、values
|
// 回调参数为包含columnIndex、value、values
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
console.log('confirm', e.value)
|
console.log('confirm', e.value)
|
||||||
@ -1510,13 +1516,10 @@
|
|||||||
this.list1 = '',
|
this.list1 = '',
|
||||||
this.name = ''
|
this.name = ''
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
oversize(e) {
|
oversize(e) {
|
||||||
this.$u.toast("请传1MB以内大小的图片!");
|
this.$u.toast("请传1MB以内大小的图片!");
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 删除图片
|
// 删除图片
|
||||||
deletePic(event) {
|
deletePic(event) {
|
||||||
const {
|
const {
|
||||||
@ -1562,7 +1565,7 @@
|
|||||||
console.error('Invalid index');
|
console.error('Invalid index');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 新增图片
|
// 新增轮播图图片
|
||||||
async afterRead(event) {
|
async afterRead(event) {
|
||||||
console.log('afterRead', this.fileList1);
|
console.log('afterRead', this.fileList1);
|
||||||
console.log('afterRead', this.list1);
|
console.log('afterRead', this.list1);
|
||||||
@ -1695,6 +1698,9 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 查询状态
|
// 查询状态
|
||||||
// -1未申请 0待审核 1审核通过 2审核失败
|
// -1未申请 0待审核 1审核通过 2审核失败
|
||||||
searchStatus() {
|
searchStatus() {
|
||||||
@ -1798,6 +1804,9 @@
|
|||||||
let bmtime = ''
|
let bmtime = ''
|
||||||
console.log('addDraft',this.list);
|
console.log('addDraft',this.list);
|
||||||
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
// if (this.list.length != 0) {
|
||||||
|
// this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
// }
|
||||||
if (this.times_b_int && this.times_e_int) {
|
if (this.times_b_int && this.times_e_int) {
|
||||||
hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
||||||
}
|
}
|
||||||
@ -1871,50 +1880,7 @@
|
|||||||
this.isFormValid = false
|
this.isFormValid = false
|
||||||
this.baoDraftShow = true
|
this.baoDraftShow = true
|
||||||
this.getDraftList();
|
this.getDraftList();
|
||||||
//置空
|
|
||||||
// this.fileList1 = [];
|
|
||||||
// this.agree = false;
|
|
||||||
// this.list1 = '';
|
|
||||||
// this.list = [];
|
|
||||||
// this.price = '';
|
|
||||||
// this.priceName = '免费';
|
|
||||||
// this.qunQrcode = '';
|
|
||||||
// this.form = {
|
|
||||||
|
|
||||||
// cate_ids: '',
|
|
||||||
// // 活动分类名字
|
|
||||||
// cate_idsName: "",
|
|
||||||
// content: '',
|
|
||||||
// refund_id: '',
|
|
||||||
// refund_idn: '',
|
|
||||||
// price: 1,
|
|
||||||
// stock: '',
|
|
||||||
// sign_time: '',
|
|
||||||
// time: '',
|
|
||||||
// images: '',
|
|
||||||
// title: '',
|
|
||||||
// address: '',
|
|
||||||
// latitude: '',
|
|
||||||
// longitude: '',
|
|
||||||
// address_detail: '', //详细位置
|
|
||||||
// date: '', //活动开始时间
|
|
||||||
// date1: '', //活动结束时间
|
|
||||||
// birth: '', //报名开始日期
|
|
||||||
// birth1: '', //报名结束日期
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// uni.showToast({
|
|
||||||
// title: '存草稿成功!',
|
|
||||||
// icon: 'none',
|
|
||||||
// duration: 2000,
|
|
||||||
// });
|
|
||||||
setTimeout(function() {
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: "/packageA/my/orderList"
|
|
||||||
// })
|
|
||||||
}, 1000);
|
|
||||||
} else {
|
} else {
|
||||||
this.$u.toast(res.msg);
|
this.$u.toast(res.msg);
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
@ -2041,7 +2007,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch(error => {});
|
}).catch(error => {});
|
||||||
this.closeDraftShow();s
|
this.closeDraftShow();
|
||||||
},
|
},
|
||||||
editDraft() {
|
editDraft() {
|
||||||
console.log('草稿');
|
console.log('草稿');
|
||||||
@ -2050,6 +2016,9 @@
|
|||||||
let hdtime = ''
|
let hdtime = ''
|
||||||
let bmtime = ''
|
let bmtime = ''
|
||||||
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
// if (this.list.length != 0) {
|
||||||
|
// this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
// }
|
||||||
if (this.times_b_int && this.times_e_int) {
|
if (this.times_b_int && this.times_e_int) {
|
||||||
hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
||||||
}
|
}
|
||||||
@ -2151,7 +2120,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
//提交发布
|
||||||
apply() {
|
apply() {
|
||||||
if (this.cardStatus == -1) {
|
if (this.cardStatus == -1) {
|
||||||
this.cardShow = true;
|
this.cardShow = true;
|
||||||
@ -2161,10 +2130,7 @@
|
|||||||
let urlEdit = '/api/school.new_activity/edit'
|
let urlEdit = '/api/school.new_activity/edit'
|
||||||
let params = {};
|
let params = {};
|
||||||
console.log('平台分类',this.form.cate_ids,this.list);
|
console.log('平台分类',this.form.cate_ids,this.list);
|
||||||
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
|
||||||
// if (!this.id) {
|
|
||||||
// this.form.cate_ids = this.list.map(item => item.id).join(',');
|
|
||||||
// }
|
|
||||||
// 校验详细地址
|
// 校验详细地址
|
||||||
if (this.form.address_detail == '') {
|
if (this.form.address_detail == '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -2279,6 +2245,10 @@
|
|||||||
let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
||||||
console.log('formparams', this.form, this.form.cate_ids);
|
console.log('formparams', this.form, this.form.cate_ids);
|
||||||
console.log('images', this.form.images);
|
console.log('images', this.form.images);
|
||||||
|
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
// if (this.list.length != 0) {
|
||||||
|
// this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
// }
|
||||||
params = {
|
params = {
|
||||||
title: this.form.title,
|
title: this.form.title,
|
||||||
cate_ids: this.form.cate_ids,
|
cate_ids: this.form.cate_ids,
|
||||||
|
@ -786,7 +786,7 @@
|
|||||||
this.list1 = this.form.images
|
this.list1 = this.form.images
|
||||||
console.log('fileList1', this.fileList1);
|
console.log('fileList1', this.fileList1);
|
||||||
}
|
}
|
||||||
if(this.form.image != '' || this.form.image != null){
|
if(this.form.image != '' && this.form.image != null){
|
||||||
this.qunQrcode = ({
|
this.qunQrcode = ({
|
||||||
url: this.form.image,
|
url: this.form.image,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
@ -1357,6 +1357,7 @@
|
|||||||
// 选择机构地址
|
// 选择机构地址
|
||||||
|
|
||||||
protocolClick(tag) {
|
protocolClick(tag) {
|
||||||
|
console.log('editDraft');
|
||||||
//timeLog 开始倒计时
|
//timeLog 开始倒计时
|
||||||
// this.timeLog = 5;
|
// this.timeLog = 5;
|
||||||
// this.timer = setInterval(() => {
|
// this.timer = setInterval(() => {
|
||||||
@ -1654,13 +1655,19 @@
|
|||||||
let params = {};
|
let params = {};
|
||||||
let hdtime = ''
|
let hdtime = ''
|
||||||
let bmtime = ''
|
let bmtime = ''
|
||||||
|
if(this.list.length != 0){
|
||||||
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
}
|
||||||
if (this.times_b_int && this.times_e_int) {
|
if (this.times_b_int && this.times_e_int) {
|
||||||
hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
||||||
}
|
}
|
||||||
if (this.times_sinb_int && this.times_sine_int) {
|
if (this.times_sinb_int && this.times_sine_int) {
|
||||||
bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
||||||
}
|
}
|
||||||
|
if (this.list.length != 0) {
|
||||||
|
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
}
|
||||||
|
console.log('params,this.list',this.list,this.form.cate_ids);
|
||||||
// let hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
// let hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
||||||
// let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
// let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
||||||
params = {
|
params = {
|
||||||
@ -1783,6 +1790,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
apply() {
|
apply() {
|
||||||
|
console.log('apply',this.cardShow,this.cardStatus);
|
||||||
|
console.log('apply',this.form,this.form.cate_ids,this.form.image,this.qunQrcode);
|
||||||
if (this.cardStatus == -1) {
|
if (this.cardStatus == -1) {
|
||||||
this.cardShow = true;
|
this.cardShow = true;
|
||||||
return;
|
return;
|
||||||
@ -1790,11 +1799,16 @@
|
|||||||
let url = '/api/school.new_activity/add';
|
let url = '/api/school.new_activity/add';
|
||||||
let urlEdit = '/api/school.new_activity/edit'
|
let urlEdit = '/api/school.new_activity/edit'
|
||||||
let params = {};
|
let params = {};
|
||||||
if (this.list.length != 0) {
|
console.log('apply',this.form,this.form.cate_ids,this.form.image,this.qunQrcode);
|
||||||
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
|
||||||
}
|
if (this.qunQrcode == '' || this.qunQrcode == null ) {
|
||||||
console.log('params,this.list',this.list,this.form.cate_ids);
|
uni.showToast({
|
||||||
// 校验详细地址
|
title: '请上传群二维码!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}// 校验详细地址
|
||||||
if (this.form.address_detail == '') {
|
if (this.form.address_detail == '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入详细地址!',
|
title: '请输入详细地址!',
|
||||||
@ -1896,20 +1910,18 @@
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.qunQrcode == '' || this.qunQrcode == null) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请上传群二维码!',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
console.log('time',this.form.sign_time,this.form.time);
|
console.log('time',this.form.sign_time,this.form.time);
|
||||||
console.log('hdtime',this.times_b_int ,this.times_e_int);
|
console.log('hdtime',this.times_b_int ,this.times_e_int);
|
||||||
console.log('hdtime',this.times_b_int , this.times_e_int);
|
console.log('hdtime',this.times_b_int , this.times_e_int);
|
||||||
let hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
let hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
||||||
let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
||||||
|
// if (this.list.length != 0) {
|
||||||
|
// this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
// console.log('params,this.list',this.list,this.form.cate_ids);
|
||||||
|
// }
|
||||||
|
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
|
console.log('params,this.list',this.list,this.form.cate_ids);
|
||||||
console.log('formparams', this.form, this.form.cate_ids);
|
console.log('formparams', this.form, this.form.cate_ids);
|
||||||
console.log('images', this.form.images);
|
console.log('images', this.form.images);
|
||||||
params = {
|
params = {
|
||||||
|
@ -33,13 +33,14 @@
|
|||||||
<u-form-item label="发票内容" prop="">
|
<u-form-item label="发票内容" prop="">
|
||||||
<view class="typeBOx" style="width: 305px;justify-content: space-between;">
|
<view class="typeBOx" style="width: 305px;justify-content: space-between;">
|
||||||
<view class="typeImgs" @click="explainShow = true">
|
<view class="typeImgs" @click="explainShow = true">
|
||||||
<image style="width: 44rpx;height: 44rpx;" src="https://naweigetetest2.hschool.com.cn/miniapp/invoice/conRecord.png"
|
<image style="width: 44rpx;height: 44rpx;"
|
||||||
mode=""></image>
|
src="https://naweigetetest2.hschool.com.cn/miniapp/invoice/conRecord.png" mode="">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view class="normalInv">
|
<view class="normalInv">
|
||||||
<view class="typeImgs">
|
<view class="typeImgs">
|
||||||
<image style="width: 44rpx;height: 44rpx;position: relative;top: 6rpx;" src="/static/fabu/check.png"
|
<image style="width: 44rpx;height: 44rpx;position: relative;top: 6rpx;"
|
||||||
mode=""></image>
|
src="/static/fabu/check.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="typeText">商品明细</view>
|
<view class="typeText">商品明细</view>
|
||||||
</view>
|
</view>
|
||||||
@ -77,23 +78,28 @@
|
|||||||
<u-input inputAlign="right" v-model="form.invoice_header" type="number" placeholder="请输入抬头名称"
|
<u-input inputAlign="right" v-model="form.invoice_header" type="number" placeholder="请输入抬头名称"
|
||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="单位税号" prop="tax_id" v-if="form.head_type == 'corporate' || form.head_type == ''">
|
<u-form-item label="单位税号" prop="tax_id"
|
||||||
|
v-if="form.head_type == 'corporate' || form.head_type == ''">
|
||||||
<u-input inputAlign="right" v-model="form.tax_id" type="number" placeholder="请输入单位税号"
|
<u-input inputAlign="right" v-model="form.tax_id" type="number" placeholder="请输入单位税号"
|
||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="注册地址" prop="enterprise_address" v-if="form.head_type == 'corporate' || form.head_type == ''">
|
<u-form-item label="注册地址" prop="enterprise_address"
|
||||||
|
v-if="form.head_type == 'corporate' || form.head_type == ''">
|
||||||
<u-input inputAlign="right" v-model="form.enterprise_address" type="number" placeholder="必填"
|
<u-input inputAlign="right" v-model="form.enterprise_address" type="number" placeholder="必填"
|
||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="注册电话" prop="enterprise_phone" v-if="form.head_type == 'corporate' || form.head_type == ''">
|
<u-form-item label="注册电话" prop="enterprise_phone"
|
||||||
|
v-if="form.head_type == 'corporate' || form.head_type == ''">
|
||||||
<u-input inputAlign="right" v-model="form.enterprise_phone" type="number" placeholder="必填"
|
<u-input inputAlign="right" v-model="form.enterprise_phone" type="number" placeholder="必填"
|
||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="开户银行" prop="bank_deposit" v-if="form.head_type == 'corporate' || form.head_type == ''">
|
<u-form-item label="开户银行" prop="bank_deposit"
|
||||||
|
v-if="form.head_type == 'corporate' || form.head_type == ''">
|
||||||
<u-input inputAlign="right" v-model="form.bank_deposit" type="number" placeholder="必填"
|
<u-input inputAlign="right" v-model="form.bank_deposit" type="number" placeholder="必填"
|
||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="银行账号" prop="bank_number" v-if="form.head_type == 'corporate' || form.head_type == ''">
|
<u-form-item label="银行账号" prop="bank_number"
|
||||||
|
v-if="form.head_type == 'corporate' || form.head_type == ''">
|
||||||
<u-input inputAlign="right" v-model="form.bank_number" type="number" placeholder="必填"
|
<u-input inputAlign="right" v-model="form.bank_number" type="number" placeholder="必填"
|
||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -117,10 +123,10 @@
|
|||||||
<view class="leftText2">设置为默认,后续下单优先使用以上发票信息</view>
|
<view class="leftText2">设置为默认,后续下单优先使用以上发票信息</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="defaultRight">
|
<view class="defaultRight">
|
||||||
<image v-if="isDefault == 1" style="width: 44rpx;height: 44rpx;"
|
<image v-if="is_default == 1" style="width: 44rpx;height: 44rpx;"
|
||||||
src="../../static/fabu/check.png" mode=""></image>
|
src="../../static/fabu/check.png" mode=""></image>
|
||||||
<image v-else style="width: 44rpx;height: 44rpx;"
|
<image v-else style="width: 44rpx;height: 44rpx;" src="../../static/fabu/nocheck.png" mode="">
|
||||||
src="../../static/fabu/nocheck.png" mode=""></image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -133,7 +139,8 @@
|
|||||||
|
|
||||||
</u-form>
|
</u-form>
|
||||||
|
|
||||||
<view style="width: 100%;height: 140rpx;"></view>
|
<view v-if="form.head_type == 'corporate' || form.head_type == ''" style="width: 100%;height: 300rpx;">
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 提交按钮 -->
|
<!-- 提交按钮 -->
|
||||||
@ -157,7 +164,8 @@
|
|||||||
<view style="margin-top: 20rpx;">·部分商家可能开具发票内容为商品所属类别及价格信息,如有特殊需求,请向商家客服咨询。</view>
|
<view style="margin-top: 20rpx;">·部分商家可能开具发票内容为商品所属类别及价格信息,如有特殊需求,请向商家客服咨询。</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="popup-footer" style="display: flex;justify-content: center;align-items: center;margin-top: 40rpx;">
|
<view class="popup-footer"
|
||||||
|
style="display: flex;justify-content: center;align-items: center;margin-top: 40rpx;">
|
||||||
<view class="headBtn" style="width: 45%;height: 80rpx;background-color: #ffffff;border-radius: 148rpx;color: #999999;font-size: 36rpx;
|
<view class="headBtn" style="width: 45%;height: 80rpx;background-color: #ffffff;border-radius: 148rpx;color: #999999;font-size: 36rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
@ -224,7 +232,8 @@
|
|||||||
enterprise_address: '',
|
enterprise_address: '',
|
||||||
enterprise_phone: '',
|
enterprise_phone: '',
|
||||||
invoice_reservation_phone: '',
|
invoice_reservation_phone: '',
|
||||||
invoice_reservation_email: ''
|
invoice_reservation_email: '',
|
||||||
|
is_default: null
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
// invoice_type: [{
|
// invoice_type: [{
|
||||||
@ -260,23 +269,24 @@
|
|||||||
detailAny: '', //第一个detail
|
detailAny: '', //第一个detail
|
||||||
qrimages: '',
|
qrimages: '',
|
||||||
headShow: false, //预设抬头的遮罩
|
headShow: false, //预设抬头的遮罩
|
||||||
title:'',
|
title: '',
|
||||||
deleteShow: false,
|
deleteShow: false,
|
||||||
explainShow:false,//发票内容显隐
|
explainShow: false, //发票内容显隐
|
||||||
isDefault: 0,//0是否,1是设置为默认
|
is_default: 0, //0是否,1是设置为默认
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log('options:', options.id);
|
console.log('options:', options.id);
|
||||||
|
const id = options.id
|
||||||
const ids = options.id
|
const ids = options.id
|
||||||
console.log('ids:', ids);
|
console.log('ids:', ids);
|
||||||
if (ids) {
|
if (ids) {
|
||||||
this.id = ids
|
this.id = ids
|
||||||
console.log('ids1', this.id,ids);
|
console.log('ids1', this.id, ids);
|
||||||
this.title = '编辑发票抬头信息'
|
this.title = '编辑发票抬头信息'
|
||||||
this.deleteShow = true
|
this.deleteShow = true
|
||||||
// this.getOrderInfo();
|
this.getHeadInfo();
|
||||||
}else {
|
} else {
|
||||||
this.deleteShow = false
|
this.deleteShow = false
|
||||||
this.title = '添加发票抬头信息'
|
this.title = '添加发票抬头信息'
|
||||||
}
|
}
|
||||||
@ -304,20 +314,281 @@
|
|||||||
},
|
},
|
||||||
handleDefault() {
|
handleDefault() {
|
||||||
console.log('handleDefault');
|
console.log('handleDefault');
|
||||||
const index = this.isDefault;
|
const index = this.is_default;
|
||||||
console.log('index',index);
|
console.log('index', index);
|
||||||
if(index == 0){
|
if (index == 0) {
|
||||||
this.isDefault = 1
|
this.is_default = 1
|
||||||
}else {
|
} else {
|
||||||
this.isDefault = 0
|
this.is_default = 0
|
||||||
}
|
}
|
||||||
console.log('this.isDefault',this.isDefault);
|
this.form.is_default = this.is_default
|
||||||
|
console.log('this.is_default', this.is_default, this.form.is_default);
|
||||||
|
},
|
||||||
|
//抬头详情信息
|
||||||
|
getHeadInfo() {
|
||||||
|
console.log('详情', this.id);
|
||||||
|
uni.$u.http.get('/api/school.header/detail', {
|
||||||
|
params: {
|
||||||
|
id: this.id,
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 1) {
|
||||||
|
console.log('详情返值', res.data);
|
||||||
|
this.form = res.data.detail
|
||||||
|
this.is_default = res.data.detail.is_default
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(error => {});
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
|
// 校验发票类型
|
||||||
|
if (this.form.invoice_type == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择发票类型!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 校验抬头名称
|
||||||
|
if (this.form.invoice_header == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入抬头名称!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 校验手机号
|
||||||
|
if (this.form.invoice_reservation_phone == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入手机号!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 校验邮箱地址
|
||||||
|
if (this.form.invoice_reservation_email == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入邮箱地址!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//先判断有没有选择抬头类型
|
||||||
|
if (this.form.head_type == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择抬头类型',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//再校验不同类型下的数据
|
||||||
|
if (this.form.head_type == 'special') {
|
||||||
|
//企业类型
|
||||||
|
console.log('抬头类型——企业');
|
||||||
|
//校验单位税号
|
||||||
|
if (this.form.tax_id == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入单位税号!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//校验注册地址
|
||||||
|
if (this.form.enterprise_address == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入注册地址!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//校验注册电话
|
||||||
|
if (this.form.enterprise_phone == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入注册电话!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//校验开户银行
|
||||||
|
if (this.form.bank_deposit == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入开户银行!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 校验银行账号
|
||||||
|
if (this.form, bank_number == '') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入银行账号!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
console.log('submit');
|
console.log('submit');
|
||||||
|
if (this.id) {
|
||||||
|
//编辑
|
||||||
|
console.log('编辑');
|
||||||
|
uni.$u.http.post('/api/school.header/edit', {
|
||||||
|
ids: this.id,
|
||||||
|
order_nos: this.form.order_nos,
|
||||||
|
head_type: this.form.head_type,
|
||||||
|
invoice_type: this.form.invoice_type,
|
||||||
|
invoice_header: this.form.invoice_header,
|
||||||
|
tax_id: this.form.tax_id,
|
||||||
|
bank_deposit: this.form.bank_deposit,
|
||||||
|
bank_number: this.form.bank_number,
|
||||||
|
enterprise_address: this.form.enterprise_address,
|
||||||
|
enterprise_phone: this.form.enterprise_phone,
|
||||||
|
invoice_reservation_phone: this.form.invoice_reservation_phone,
|
||||||
|
invoice_reservation_email: this.form.invoice_reservation_email,
|
||||||
|
is_default: this.form.is_default
|
||||||
|
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 1) {
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: '保存成功!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000,
|
||||||
|
});
|
||||||
|
//置空
|
||||||
|
this.is_default = null;
|
||||||
|
|
||||||
|
this.form = {
|
||||||
|
order_nos: '',
|
||||||
|
head_type: '',
|
||||||
|
invoice_type: '',
|
||||||
|
invoice_header: '',
|
||||||
|
tax_id: '',
|
||||||
|
bank_deposit: '',
|
||||||
|
bank_number: '',
|
||||||
|
enterprise_address: '',
|
||||||
|
enterprise_phone: '',
|
||||||
|
invoice_reservation_phone: '',
|
||||||
|
invoice_reservation_email: '',
|
||||||
|
is_default: null
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
// this.getInfo();
|
||||||
|
// uni.hideLoading();
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(error => {});
|
||||||
|
} else {
|
||||||
|
//新增
|
||||||
|
console.log('新增');
|
||||||
|
uni.$u.http.post('/api/school.header/add', {
|
||||||
|
order_nos: this.form.order_nos,
|
||||||
|
head_type: this.form.head_type,
|
||||||
|
invoice_type: this.form.invoice_type,
|
||||||
|
invoice_header: this.form.invoice_header,
|
||||||
|
tax_id: this.form.tax_id,
|
||||||
|
bank_deposit: this.form.bank_deposit,
|
||||||
|
bank_number: this.form.bank_number,
|
||||||
|
enterprise_address: this.form.enterprise_address,
|
||||||
|
enterprise_phone: this.form.enterprise_phone,
|
||||||
|
invoice_reservation_phone: this.form.invoice_reservation_phone,
|
||||||
|
invoice_reservation_email: this.form.invoice_reservation_email,
|
||||||
|
is_default: this.form.is_default
|
||||||
|
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 1) {
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: '添加成功!',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000,
|
||||||
|
});
|
||||||
|
//置空
|
||||||
|
this.is_default = null;
|
||||||
|
|
||||||
|
this.form = {
|
||||||
|
order_nos: '',
|
||||||
|
head_type: '',
|
||||||
|
invoice_type: '',
|
||||||
|
invoice_header: '',
|
||||||
|
tax_id: '',
|
||||||
|
bank_deposit: '',
|
||||||
|
bank_number: '',
|
||||||
|
enterprise_address: '',
|
||||||
|
enterprise_phone: '',
|
||||||
|
invoice_reservation_phone: '',
|
||||||
|
invoice_reservation_email: '',
|
||||||
|
is_default: null
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
// this.getInfo();
|
||||||
|
// uni.hideLoading();
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(error => {});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deleteHead() {
|
deleteHead() {
|
||||||
console.log('deleteHead');
|
console.log('deleteHead');
|
||||||
|
uni.$u.http.post('/api/school.header/del', {
|
||||||
|
ids: this.id,
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 1) {
|
||||||
|
// this.cancelsShow = false
|
||||||
|
uni.showToast({
|
||||||
|
title: '删除成功',
|
||||||
|
icon: 'success',
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 2000)
|
||||||
|
// this.getDraftList2('15')
|
||||||
|
// this.toShlist('2')
|
||||||
|
// setTimeout(() => {
|
||||||
|
// uni.redirectTo({
|
||||||
|
// url: "/packageA/my/orderList"
|
||||||
|
// })
|
||||||
|
// }, 1000)
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(error => {});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -397,12 +668,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
padding: 40rpx 0;
|
padding: 30rpx 0;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
|
// justify-content: center;
|
||||||
|
// display: grid;
|
||||||
|
|
||||||
.formBox {
|
.formBox {
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
margin-top: 20rpx;
|
margin-top: 0rpx;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
padding: 10rpx 20rpx;
|
padding: 10rpx 20rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
@ -417,10 +690,12 @@
|
|||||||
|
|
||||||
.defaultInfo {
|
.defaultInfo {
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
|
// margin-left: 30rpx;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
padding: 30rpx 30rpx 30rpx 20rpx;
|
padding: 30rpx 30rpx 30rpx 20rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
width: 690rpx;
|
// width: 690rpx;
|
||||||
|
width: 93%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -456,8 +731,9 @@
|
|||||||
|
|
||||||
.footer-btn {
|
.footer-btn {
|
||||||
width: 95%;
|
width: 95%;
|
||||||
padding: 20rpx 20rpx 60rpx;
|
padding: 20rpx 20rpx;
|
||||||
display: flex;
|
display: grid;
|
||||||
|
justify-content: center;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
// left: 0;
|
// left: 0;
|
||||||
@ -467,7 +743,7 @@
|
|||||||
color: #bbfc5b;
|
color: #bbfc5b;
|
||||||
|
|
||||||
.invoiceBtn {
|
.invoiceBtn {
|
||||||
width: 90%;
|
width: 690rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
background-color: #323232;
|
background-color: #323232;
|
||||||
border-radius: 148rpx;
|
border-radius: 148rpx;
|
||||||
@ -482,9 +758,33 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: fixed;
|
// position: fixed;
|
||||||
bottom: 66rpx;
|
// bottom: 66rpx;
|
||||||
margin-left: 2%;
|
|
||||||
|
// margin-left: 2%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invoiceDeleteBtn {
|
||||||
|
margin-top: 30rpx;
|
||||||
|
width: 690rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-radius: 148rpx;
|
||||||
|
color: #999999;
|
||||||
|
border: 2rpx solid #999999;
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 50rpx;
|
||||||
|
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
|
||||||
|
text-transform: none;
|
||||||
|
font-style: normal;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
// position: fixed;
|
||||||
|
// bottom: 40rpx;
|
||||||
|
// margin-left: 2%;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -502,5 +802,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
@ -117,7 +117,7 @@
|
|||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="注册地址" prop="enterprise_address" v-if="form.head_type == 'corporate'">
|
<u-form-item label="注册地址" prop="enterprise_address" v-if="form.head_type == 'corporate'">
|
||||||
<u-input inputAlign="right" v-model="form.enterprise_address" type="number" placeholder="必填"
|
<u-input inputAlign="right" style="width:400rpx" v-model="form.enterprise_address" type="number" placeholder="必填"
|
||||||
border="none" />
|
border="none" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="注册电话" prop="enterprise_phone" v-if="form.invoice_type == 'special'">
|
<u-form-item label="注册电话" prop="enterprise_phone" v-if="form.invoice_type == 'special'">
|
||||||
@ -364,6 +364,8 @@
|
|||||||
totalPrice:0,
|
totalPrice:0,
|
||||||
explainShow:false,//发票内容显隐
|
explainShow:false,//发票内容显隐
|
||||||
// keywords: '',
|
// keywords: '',
|
||||||
|
id: null,
|
||||||
|
order_no: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@ -429,7 +431,7 @@
|
|||||||
this.form.head_type = 'corporate'
|
this.form.head_type = 'corporate'
|
||||||
},
|
},
|
||||||
openHeadShow() {
|
openHeadShow() {
|
||||||
// this.headShow = true;
|
this.headShow = true;
|
||||||
this.getHeadList();
|
this.getHeadList();
|
||||||
},
|
},
|
||||||
closeHeadShow() {
|
closeHeadShow() {
|
||||||
@ -479,7 +481,8 @@
|
|||||||
this.form.bank_number = item.bank_number
|
this.form.bank_number = item.bank_number
|
||||||
this.form.enterprise_address = item.enterprise_address
|
this.form.enterprise_address = item.enterprise_address
|
||||||
this.form.enterprise_phone = item.enterprise_phone
|
this.form.enterprise_phone = item.enterprise_phone
|
||||||
console.log('5555');
|
|
||||||
|
console.log('5555',this.form);
|
||||||
this.closeHeadShow();
|
this.closeHeadShow();
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
@ -564,7 +567,7 @@
|
|||||||
bank_deposit: this.form.bank_deposit,
|
bank_deposit: this.form.bank_deposit,
|
||||||
bank_number: this.form.bank_number,
|
bank_number: this.form.bank_number,
|
||||||
enterprise_address: this.form.enterprise_address,
|
enterprise_address: this.form.enterprise_address,
|
||||||
enterprise_address: this.form.enterprise_address,
|
enterprise_phone: this.form.enterprise_phone,
|
||||||
invoice_reservation_phone: this.form.invoice_reservation_phone,
|
invoice_reservation_phone: this.form.invoice_reservation_phone,
|
||||||
invoice_reservation_email: this.form.invoice_reservation_email
|
invoice_reservation_email: this.form.invoice_reservation_email
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@ -574,6 +577,12 @@
|
|||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
// this.getInfo();
|
||||||
|
// uni.hideLoading();
|
||||||
|
}, 2000)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
@ -10,6 +10,15 @@
|
|||||||
</span>
|
</span>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="record-tabs" v-if="selected == 1">
|
||||||
|
<span class="s-header flex flex-column" v-for="(item, index) in recordTypeList" :key="index"
|
||||||
|
:class="{ selected: recordIndexSelected(item.status) }"
|
||||||
|
@click="selecRecordIndex(item.status)">
|
||||||
|
{{ item.text }}
|
||||||
|
<!-- <span class="lines" ></span> -->
|
||||||
|
</span>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view style="min-height: 100vh;margin-top: 80rpx;width: 100%;">
|
<view style="min-height: 100vh;margin-top: 80rpx;width: 100%;">
|
||||||
<!-- 合开发票 -->
|
<!-- 合开发票 -->
|
||||||
<view v-if="selected == 0">
|
<view v-if="selected == 0">
|
||||||
@ -34,6 +43,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view v-if="unInvoiceList.length == 0" class="invoiceBtn" @click="handleIssueInvoice()">
|
||||||
|
<view>申请开票</view>
|
||||||
|
</view> -->
|
||||||
<view class="invoiceBtn" @click="handleIssueInvoice()">
|
<view class="invoiceBtn" @click="handleIssueInvoice()">
|
||||||
<view>申请开票</view>
|
<view>申请开票</view>
|
||||||
</view>
|
</view>
|
||||||
@ -48,40 +60,48 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- 提交记录 -->
|
<!-- 提交记录 -->
|
||||||
|
|
||||||
<view class="recordList" v-else-if="selected == 1">
|
<view class="recordList" v-else-if="selected == 1">
|
||||||
<view class="record-tabs">
|
|
||||||
<span class="s-header flex flex-column" v-for="(item, index) in recordTypeList" :key="index"
|
|
||||||
:class="{ selected: recordIndexSelected(item.status) }"
|
|
||||||
@click="selecRecordIndex(item.status)">
|
|
||||||
{{ item.text }}
|
|
||||||
<!-- <span class="lines" ></span> -->
|
|
||||||
</span>
|
|
||||||
</view>
|
|
||||||
<!-- v-if="item[index].length == 1" -->
|
<!-- v-if="item[index].length == 1" -->
|
||||||
<view v-for="(item,index) in recordList" :key="index">
|
<view v-for="(item,index) in recordList" :key="index">
|
||||||
|
<!-- 单开 -->
|
||||||
<view class="recordList-item flex" v-if="item.apply_type == '1'">
|
<view class="recordList-item flex" v-if="item.apply_type == '1'">
|
||||||
<view class="item-img2">
|
<view class="item-img2">
|
||||||
<image style="width: 170rpx;height: 170rpx;border-radius: 20rpx;"
|
<image style="width: 170rpx;height: 170rpx;border-radius: 20rpx;"
|
||||||
src="../../static/index/about.png" mode=""></image>
|
src="../../static/index/about.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-con2">
|
<view class="item-con2">
|
||||||
<view class="itenCon2-actName">{{item.activityorders[0].title}}</view>
|
<view class="itenCon2-actName">{{item.activityorders[0].detail.title}}</view>
|
||||||
<view class="itenCon2-actPrice">
|
<view class="itenCon2-actPrice">
|
||||||
<view>¥ {{item.activityorders[0].price}}</view>
|
<view>¥ {{item.activityorders[0].detail.price}}</view>
|
||||||
<view class="lookInvoice" v-if="item.status == 2">
|
<view v-if="item.status == 2" class="lookInvoice" @click="toPageInvoiceInfo(item)">
|
||||||
<text>查看发票</text>
|
<view>查看发票</view>
|
||||||
<u-icon name="arrow-right"></u-icon>
|
<u-icon name="arrow-right" @click="aaa"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="lookInvoice2" v-else-if="item.status == 1">
|
<view class="lookInvoice2" v-else-if="item.status == 1">
|
||||||
<text >开票中</text>
|
<text>开票中</text>
|
||||||
|
</view>
|
||||||
|
<view class="lookInvoice3" v-else>
|
||||||
|
<text>已作废</text>
|
||||||
|
</view>
|
||||||
|
<!-- <view style="position: fixed;right: 5%;">
|
||||||
|
<view v-if="item.status == 2" class="lookInvoice" @click="toPageInvoiceInfo(item)">
|
||||||
|
<view>查看发票</view>
|
||||||
|
<u-icon name="arrow-right" @click="aaa"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view class="lookInvoice2" v-else-if="item.status == 1">
|
||||||
|
<text>开票中</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="lookInvoices" v-else>
|
<view class="lookInvoices" v-else>
|
||||||
<text>已作废</text>
|
<text>已作废</text>
|
||||||
</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- v-if="item[index].length > 1" 多个-->
|
<!-- 合开-->
|
||||||
<view class="recordList-items flex" v-else>
|
<view class="recordList-items flex" v-else>
|
||||||
<!-- <view></view> -->
|
<!-- <view></view> -->
|
||||||
<view class="reListIts-item flex" v-for="(e,i) in item.activityorders" :key="i">
|
<view class="reListIts-item flex" v-for="(e,i) in item.activityorders" :key="i">
|
||||||
@ -115,7 +135,7 @@
|
|||||||
<view class="reLine"></view>
|
<view class="reLine"></view>
|
||||||
<view class="reListIts-itemData">
|
<view class="reListIts-itemData">
|
||||||
<view>{{item.activityorders.length}}个订单 发票金额:¥{{item.price}}</view>
|
<view>{{item.activityorders.length}}个订单 发票金额:¥{{item.price}}</view>
|
||||||
<view class="lookInvoices" v-if="item.status == 2">
|
<view class="lookInvoices" v-if="item.status == 2" @click="toPageInvoiceInfo(item)">
|
||||||
<text>查看发票</text>
|
<text>查看发票</text>
|
||||||
<u-icon name="arrow-right"></u-icon>
|
<u-icon name="arrow-right"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
@ -147,7 +167,7 @@
|
|||||||
<text style="margin-left: 10rpx;">抬头信息仅用于开具发票,请勿用于转账等其他用途谨防受骗</text>
|
<text style="margin-left: 10rpx;">抬头信息仅用于开具发票,请勿用于转账等其他用途谨防受骗</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 专用 -->
|
<!-- 专用 -->
|
||||||
<view class="manageList-item" v-for="(item,index) in headList" :key="index">
|
<view class="manageList-item" v-for="(item,index) in headList" :key="index" style="margin-bottom: 20rpx;">
|
||||||
<view class="manage-type" v-if="item.head_type == 'corporate'">专业发票抬头</view>
|
<view class="manage-type" v-if="item.head_type == 'corporate'">专业发票抬头</view>
|
||||||
<view class="manage-type" v-else>个人发票抬头</view>
|
<view class="manage-type" v-else>个人发票抬头</view>
|
||||||
<view class="manageLine"></view>
|
<view class="manageLine"></view>
|
||||||
@ -239,11 +259,11 @@
|
|||||||
text: '全部'
|
text: '全部'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
status: '1',
|
status: '2',
|
||||||
text: '已开票'
|
text: '已开票'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
status: '2',
|
status: '1',
|
||||||
text: '未开票'
|
text: '未开票'
|
||||||
}
|
}
|
||||||
], //提交记录的tabs数据
|
], //提交记录的tabs数据
|
||||||
@ -261,6 +281,7 @@
|
|||||||
num: 0,
|
num: 0,
|
||||||
id: 0,
|
id: 0,
|
||||||
headList: [], //抬头管理
|
headList: [], //抬头管理
|
||||||
|
HeadId:null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@ -306,18 +327,7 @@
|
|||||||
// console.log('index',index);
|
// console.log('index',index);
|
||||||
return this.selected === index;
|
return this.selected === index;
|
||||||
},
|
},
|
||||||
//提交记录的列表状态切换
|
|
||||||
selecRecordIndex(recordStatus) {
|
|
||||||
// const that = this;
|
|
||||||
this.recordeStatus = recordStatus;
|
|
||||||
console.log('recordeStatus', this.recordeStatus)
|
|
||||||
this.getRecordList()
|
|
||||||
},
|
|
||||||
//判断当前的提交记录的列表选中状态
|
|
||||||
recordIndexSelected(recordStatus) {
|
|
||||||
console.log('recordStatus', recordStatus);
|
|
||||||
return this.recordeStatus === recordStatus;
|
|
||||||
},
|
|
||||||
//获取可开发票列表
|
//获取可开发票列表
|
||||||
getInvoiceList() {
|
getInvoiceList() {
|
||||||
uni.$u.http.get('/api/school.newactivity.order/order_list', {
|
uni.$u.http.get('/api/school.newactivity.order/order_list', {
|
||||||
@ -367,16 +377,22 @@
|
|||||||
handleIssueInvoice() {
|
handleIssueInvoice() {
|
||||||
//拿到选中的订单
|
//拿到选中的订单
|
||||||
const list = this.unInvoiceList.filter(item => item.invoiceCheck == 1).map(item => item.order_no)
|
const list = this.unInvoiceList.filter(item => item.invoiceCheck == 1).map(item => item.order_no)
|
||||||
|
const list1 = this.unInvoiceList.filter(item => item.invoiceCheck == 1)
|
||||||
const idList = this.unInvoiceList.filter(item => item.invoiceCheck == 1).map(item => item.id)
|
const idList = this.unInvoiceList.filter(item => item.invoiceCheck == 1).map(item => item.id)
|
||||||
console.log('list:', list, idList);
|
console.log('list:', list, idList);
|
||||||
// this.order_nos = JSON.stringify(list)
|
// this.order_nos = JSON.stringify(list)
|
||||||
this.order_nos = JSON.stringify(list.join(','))
|
this.order_nos = JSON.stringify(list.join(','))
|
||||||
this.num = list.length
|
this.num = list.length
|
||||||
if(list.length) {
|
console.log('num:', this.num,list1);
|
||||||
this.list.forEach(e => {
|
if(this.num > 1) {
|
||||||
|
list1.forEach(e => {
|
||||||
// if(e.payprice)
|
// if(e.payprice)
|
||||||
this.totalPrice += e.payprice
|
this.totalPrice += e.payprice
|
||||||
})
|
})
|
||||||
|
}else if(this.num > 1){
|
||||||
|
this.totalPrice =list1[0].payprice
|
||||||
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('num:', this.num, 'totalPrice:', this.totalPrice);
|
console.log('num:', this.num, 'totalPrice:', this.totalPrice);
|
||||||
@ -412,6 +428,8 @@
|
|||||||
// url: '/packageB/invoice/addInvoice?order_nos=' + this.order_nos + '&num=' + this.num
|
// url: '/packageB/invoice/addInvoice?order_nos=' + this.order_nos + '&num=' + this.num
|
||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
//提交记录
|
//提交记录
|
||||||
getRecordList() {
|
getRecordList() {
|
||||||
console.log('提交记录', this.recordeStatus);
|
console.log('提交记录', this.recordeStatus);
|
||||||
@ -436,6 +454,27 @@
|
|||||||
}
|
}
|
||||||
}).catch(error => {});
|
}).catch(error => {});
|
||||||
},
|
},
|
||||||
|
//提交记录的列表状态切换
|
||||||
|
selecRecordIndex(recordStatus) {
|
||||||
|
console.log('selecRecordIndex',recordStatus)
|
||||||
|
// const that = this;
|
||||||
|
this.recordeStatus = recordStatus;
|
||||||
|
console.log('recordeStatus', this.recordeStatus)
|
||||||
|
this.getRecordList()
|
||||||
|
},
|
||||||
|
//判断当前的提交记录的列表选中状态
|
||||||
|
recordIndexSelected(recordStatus) {
|
||||||
|
console.log('recordIndexSelected', recordStatus);
|
||||||
|
return this.recordeStatus === recordStatus;
|
||||||
|
},
|
||||||
|
//查看发票信息
|
||||||
|
toPageInvoiceInfo(item) {
|
||||||
|
console.log('toPageInvoiceInfo',item);
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/packageB/invoice/invoiceInfo?id=' + item.id
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
//抬头管理列表
|
//抬头管理列表
|
||||||
getHeadList() {
|
getHeadList() {
|
||||||
uni.$u.http.get('/api/school.header/header_list', {
|
uni.$u.http.get('/api/school.header/header_list', {
|
||||||
@ -464,8 +503,10 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
editHead(id) {
|
editHead(id) {
|
||||||
|
this.HeadId = id
|
||||||
|
console.log('HeadId',this.HeadId);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/packageB/invoice/addInvoice?id=' + this.id
|
url: '/packageB/invoice/addHead?id=' + this.HeadId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -617,18 +658,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.recordList {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
display: block;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
.record-tabs {
|
.record-tabs {
|
||||||
// background: #ffffff;
|
// background: #ffffff;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
margin: 10rpx 0 20rpx 0;
|
position: relative;
|
||||||
|
top: 90rpx;
|
||||||
|
margin: 10rpx 0;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
font-family: PingFang SC, PingFang SC;
|
font-family: PingFang SC, PingFang SC;
|
||||||
@ -663,6 +700,14 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.recordList {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
|
||||||
.recordList-item {
|
.recordList-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -672,6 +717,7 @@
|
|||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
padding: 20rpx 30rpx;
|
padding: 20rpx 30rpx;
|
||||||
height: 220rpx;
|
height: 220rpx;
|
||||||
|
// margin: 0 auto;
|
||||||
|
|
||||||
.item-img2 {
|
.item-img2 {
|
||||||
width: 170rpx;
|
width: 170rpx;
|
||||||
@ -682,7 +728,7 @@
|
|||||||
|
|
||||||
.item-con2 {
|
.item-con2 {
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
width: 65%;
|
width: 75%;
|
||||||
height: 160rpx;
|
height: 160rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: #323232;
|
color: #323232;
|
||||||
@ -708,6 +754,17 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -15%;
|
right: -15%;
|
||||||
|
margin-top: 6rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lookInvoice3 {
|
||||||
|
width: 200rpx;
|
||||||
|
display: flex;
|
||||||
|
position: absolute;
|
||||||
|
right: -22%;
|
||||||
|
margin-top: 6rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
@ -717,7 +774,8 @@
|
|||||||
color: #ff4810;
|
color: #ff4810;
|
||||||
display: flex;
|
display: flex;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -15%;
|
right: -22%;
|
||||||
|
margin-top: 6rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
@ -732,6 +790,7 @@
|
|||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
padding: 20rpx 30rpx;
|
padding: 20rpx 30rpx;
|
||||||
height: 220rpx auto;
|
height: 220rpx auto;
|
||||||
|
// margin: 0 auto;
|
||||||
|
|
||||||
.reListIts-item {
|
.reListIts-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -739,6 +798,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
margin: 0 auto;
|
||||||
// background-color: #9E9E9E;
|
// background-color: #9E9E9E;
|
||||||
|
|
||||||
.itsItem-img2 {
|
.itsItem-img2 {
|
||||||
@ -831,6 +891,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.manageList {
|
.manageList {
|
||||||
|
display: grid;
|
||||||
|
justify-content: center;
|
||||||
// padding-top: 20rpx;
|
// padding-top: 20rpx;
|
||||||
|
|
||||||
.manageRecord {
|
.manageRecord {
|
||||||
@ -845,14 +907,17 @@
|
|||||||
text-transform: none;
|
text-transform: none;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
// margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manageList-item {
|
.manageList-item {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
padding: 20rpx 0;
|
padding: 20rpx 0;
|
||||||
width: 100%;
|
width: 96%;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
.manage-type {
|
.manage-type {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -893,15 +958,16 @@
|
|||||||
width: 68rpx;
|
width: 68rpx;
|
||||||
height: 32rpx;
|
height: 32rpx;
|
||||||
background: #FFEEEE;
|
background: #FFEEEE;
|
||||||
border-radius: 4rpx 4rpx 4rpx 4rpx;
|
border-radius: 6rpx;
|
||||||
|
color: #EB1B1B;
|
||||||
border: 1rpx solid #EB1B1B;
|
border: 1rpx solid #EB1B1B;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manageName {
|
.manageName {
|
||||||
margin-left: 10rpx;
|
|
||||||
height: 32rpx;
|
height: 32rpx;
|
||||||
font-family: PingFang SC, PingFang SC;
|
font-family: PingFang SC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
@ -6,30 +6,30 @@
|
|||||||
<view class="info-status">
|
<view class="info-status">
|
||||||
<view class="statusFir">
|
<view class="statusFir">
|
||||||
<image style="width: 32rpx;height: 32rpx;" src="https://naweigetetest2.hschool.com.cn/miniapp/invoice/statusInv.png"></image>
|
<image style="width: 32rpx;height: 32rpx;" src="https://naweigetetest2.hschool.com.cn/miniapp/invoice/statusInv.png"></image>
|
||||||
<view style="margin-left: 20rpx;">{{detailAny.invoice_status_text}}</view>
|
<view style="margin-left: 20rpx;">{{detailList[0].invoice_status_text}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="statusSec" style="margin-top: 20rpx;">已开发票金额: ¥{{detail.price}}</view>
|
<view class="statusSec" style="margin-top: 20rpx;">已开发票金额: ¥{{detailAny.price}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="infoCon">
|
<view class="infoCon">
|
||||||
<view class="conFIr">
|
<view class="conFIr">
|
||||||
<view class="conFir-left">
|
<view class="conFir-left">
|
||||||
<view class="leftTitle">发票类型:<span style="color: #323232;" v-if="detail.invoice_type == 'ordinary'">普通发票 </span>
|
<view class="leftTitle">发票类型:<span style="color: #323232;" v-if="detailAny.invoice_type == 'ordinary'">普通发票 </span>
|
||||||
<span style="color: #323232;" v-else>专用发票</span></view>
|
<span style="color: #323232;" v-else>专用发票</span></view>
|
||||||
<view class="leftTitle">发票内容:<span style="color: #323232;">商品明细</span></view>
|
<view class="leftTitle">发票内容:<span style="color: #323232;">商品明细</span></view>
|
||||||
<view class="leftTitle">抬头类型:<span style="color: #323232;" v-if="detail.head_type == 'personal'">个人或事业单位</span>
|
<view class="leftTitle">抬头类型:<span style="color: #323232;" v-if="detailAny.head_type == 'personal'">个人或事业单位</span>
|
||||||
<span style="color: #323232;" v-else>企业</span></view>
|
<span style="color: #323232;" v-else>企业</span></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="conFir-right" @click="checkImages()">
|
<view class="conFir-right" @click="checkImages()">
|
||||||
<image style="width: 266rpx;height: 166rpx;border-radius: 14rpx;" :src="detail.images[0]" mode=""></image>
|
<image style="width: 266rpx;height: 166rpx;border-radius: 14rpx;" :src="detailAny.images[0]" mode=""></image>
|
||||||
<view class="ringhtImg-text">共{{imagesNum}}张</view>
|
<view class="ringhtImg-text">共{{imagesNum}}张</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="conSec">
|
<view class="conSec">
|
||||||
<view class="rightTitle">抬头名称:<span style="color: #323232;">{{detail.invoice_header}}</span></view>
|
<view class="rightTitle">抬头名称:<span style="color: #323232;">{{detailAny.invoice_header}}</span></view>
|
||||||
<view class="rightTitle">开票金额:<span style="color: #323232;">{{detail.price}}</span></view>
|
<view class="rightTitle">开票金额:<span style="color: #323232;">{{detailAny.price}}</span></view>
|
||||||
<view class="rightTitle">申请时间:<span style="color: #323232;">{{detail.createtime_text}}</span></view>
|
<view class="rightTitle">申请时间:<span style="color: #323232;">{{detailAny.createtime_text}}</span></view>
|
||||||
<view class="rightTitle">开票时间:<span style="color: #323232;">{{detail.invoicingtime_text}}</span></view>
|
<view class="rightTitle">开票时间:<span style="color: #323232;">{{detailAny.invoicingtime_text}}</span></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -81,7 +81,7 @@
|
|||||||
},
|
},
|
||||||
order_nos: '', //选中的多个订单号
|
order_nos: '', //选中的多个订单号
|
||||||
id: 0,
|
id: 0,
|
||||||
detail: '', //第二个detail
|
detailList: '', //发票订单列表
|
||||||
detailAny: '', //第一个detail
|
detailAny: '', //第一个detail
|
||||||
qrimages: '',
|
qrimages: '',
|
||||||
imagesShow:false,
|
imagesShow:false,
|
||||||
@ -112,16 +112,16 @@
|
|||||||
methods: {
|
methods: {
|
||||||
getOrderInfo() {
|
getOrderInfo() {
|
||||||
console.log('id', this.id);
|
console.log('id', this.id);
|
||||||
uni.$u.http.get('/api/school.newactivity.order/detail', {
|
uni.$u.http.get('/api/school.header/applydetail', {
|
||||||
params: {
|
params: {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
this.detail = res.data.detail.invoiceaplpy;
|
this.detailList = res.data.detail.activityorders;//发票订单列表
|
||||||
this.detailAny = res.data.detail;
|
this.detailAny = res.data.detail;
|
||||||
this.imagesNum = this.detail.images.length
|
this.imagesNum = this.detailAny.images.length
|
||||||
this.imagesList = this.detail.images
|
this.imagesList = this.detailAny.images
|
||||||
this.iamgesListIndexNum = this.imagesNum -1
|
this.iamgesListIndexNum = this.imagesNum -1
|
||||||
console.log('qrimages:', this.qrimages);
|
console.log('qrimages:', this.qrimages);
|
||||||
console.log('imagesNum:', this.imagesNum);
|
console.log('imagesNum:', this.imagesNum);
|
||||||
|
@ -1462,7 +1462,7 @@
|
|||||||
console.log('apply agreeShow:', this.agreeShow);
|
console.log('apply agreeShow:', this.agreeShow);
|
||||||
let url = '/api/school.new_activity/add';
|
let url = '/api/school.new_activity/add';
|
||||||
let params = {};
|
let params = {};
|
||||||
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
|
||||||
// 校验详细地址
|
// 校验详细地址
|
||||||
if (this.form.address_detail == '') {
|
if (this.form.address_detail == '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -1576,6 +1576,7 @@
|
|||||||
}
|
}
|
||||||
let hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
let hdtime = this.times_b_int + ' - ' + this.times_e_int;
|
||||||
let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
let bmtime = this.times_sinb_int + ' - ' + this.times_sine_int;
|
||||||
|
this.form.cate_ids = this.list.map(item => item.id).join(',');
|
||||||
params = {
|
params = {
|
||||||
title: this.form.title,
|
title: this.form.title,
|
||||||
cate_ids: this.form.cate_ids,
|
cate_ids: this.form.cate_ids,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user