diff --git a/common/js/api.js b/common/js/api.js
index 595e585..05e4f8d 100644
--- a/common/js/api.js
+++ b/common/js/api.js
@@ -69,7 +69,7 @@ export default {
return uni.api.post("store/enterprise", data, false);
},
storese(data) {
- return uni.api.post("store/se", data);
+ return uni.api.post("store/se", data, false);
},
storesubinvoicing(data) {
return uni.api.post("store/subinvoicing", data);
@@ -80,7 +80,7 @@ export default {
szzpyhurl(data) {
return uni.api.post("szzpy/h5url", data);
},
- szzpygetprovinceno(data) {
+ szzpygetprovinceno(data) {//地区
return uni.api.post("szzpy/getprovinceno", data);
},
storebindinginvopush(data) {
@@ -98,4 +98,70 @@ export default {
h5encryption(data) {
return uni.api.post("store/h5encryption", data);
},
+ hfivegetstoreinfo(data) {
+ return uni.api.post("hfive/getstoreinfo", data, false);
+ },
+ hfivestoreqy(data) {
+ return uni.api.post("hfive/storeqy", data);
+ },
+ hfiveenterprise(data) {
+ return uni.api.post("hfive/enterprise", data, false);
+ },
+ directinvoicingopen(data) { //数电普票开具
+ return uni.api.post("hfive/directinvoicingopen", data);
+ },
+ newissuedbylist(data) { //开票人列表
+ return uni.api.post("hfive/newissuedbylist", data);
+ },
+ hfivelslbs(data) { //税率标识
+ return uni.api.post("hfive/lslbs", data, false);
+ },
+ addinvoicegoods(data) { //税率标识
+ return uni.api.post("hfive/addinvoicegoods", data);
+ },
+ selectencoding(data) { //行业列表 (选择编码)
+ return uni.api.post("hfive/selectencoding", data, false);
+ },
+ invoicecoding(data) { //行业列表 (选择编码)
+ return uni.api.post("hfive/invoicecoding", data, false);
+ },
+ invoicegoodslist(data) { //商品列表
+ return uni.api.post("hfive/invoicegoodslist", data);
+ },
+ invoicedlist(data) { //商品列表
+ return uni.api.post("hfive/invoicedlist", data, false);
+ },
+ addinvoicegoodsdel(data) { //删除商品
+ return uni.api.post("hfive/addinvoicegoodsdel", data);
+ },
+ setdefault(data) { //商品设为默认
+ return uni.api.post("hfive/setdefault", data);
+ },
+ invoicedorderlist(data) { //订单列表
+ return uni.api.post("hfive/invoicedorderlist", data);
+ },
+ hfivestatuslist(data) { //订单列表
+ return uni.api.post("hfive/statuslist", data);
+ },
+ invoicingrecordsthatneed(data) { //审核开票记录
+ return uni.api.post("hfive/invoicingrecordsthatneed", data);
+ },
+ newissuedbyliststatus(data) { //开票人列表(带状态)
+ return uni.api.post("hfive/newissuedbyliststatus", data);
+ },
+ getsendsms(data) { //获取验证码(登录)
+ return uni.api.post("hfive/getsendsms", data);
+ },
+ sensms(data) { //获取验证码(登录)
+ return uni.api.post("hfive/sensms", data);
+ },
+ accountqrcode(data) { //获取人脸识别二维码
+ return uni.api.post("hfive/accountqrcode", data);
+ },
+ kpdefault(data) { //默认开票人
+ return uni.api.post("hfive/kpdefault", data);
+ },
+ invoiceddetail(data) { //发票/订单详情
+ return uni.api.post("hfive/invoiceddetail", data);
+ },
}
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index cacdf7d..d54d9cf 100644
--- a/manifest.json
+++ b/manifest.json
@@ -64,7 +64,7 @@
"disableHostCheck" : false,
"proxy" : {
"/api" : {
- "target" : "http://192.168.1.13:8888/api/",
+ "target" : "http://192.168.1.24:8888/api/",
"ws" : false,
"changeOrigin" : true, //是否跨域
"secure" : false, // 设置支持https协议的代理
diff --git a/pages.json b/pages.json
index a307ab7..31936e9 100644
--- a/pages.json
+++ b/pages.json
@@ -121,7 +121,37 @@
}, {
"path": "pages/electric/index",
"style": {
- "navigationBarTitleText": ""
+ "navigationBarTitleText": "后台管理"
+ }
+ }, {
+ "path": "pages/electric/bluetools",
+ "style": {
+ "navigationBarTitleText": "蓝票开具"
+ }
+ }, {
+ "path": "pages/electric/toexamine",
+ "style": {
+ "navigationBarTitleText": "已开发票"
+ }
+ }, {
+ "path": "pages/electric/issuer",
+ "style": {
+ "navigationBarTitleText": "开票人"
+ }
+ }, {
+ "path": "pages/electric/Invoicedgoods",
+ "style": {
+ "navigationBarTitleText": "开票商品"
+ }
+ }, {
+ "path": "pages/electric/orderinquiry",
+ "style": {
+ "navigationBarTitleText": "订单查询"
+ }
+ }, {
+ "path": "pages/electric/auditrecords",
+ "style": {
+ "navigationBarTitleText": "审核开票"
}
}, {
"path": "pages/webview/webview",
diff --git a/pages/electric/Invoicedgoods.vue b/pages/electric/Invoicedgoods.vue
new file mode 100644
index 0000000..6f0d3e4
--- /dev/null
+++ b/pages/electric/Invoicedgoods.vue
@@ -0,0 +1,784 @@
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ *{{item.abbreviation}}*{{item.title}}
+
+
+
+ 商品编码
+ {{item.spbm}}
+
+
+ 商品规格
+ {{item.ggxh}}
+
+
+ 单位
+ {{item.dw}}
+
+
+
+ 删除
+
+
+ 编辑
+
+
+ {{item.is_default == 1?'取消默认':'设为默认'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 商品编码(税局)选择
+
+
+
+
+
+
+ 商品编码
+
+
+ {{selectencodingitem.pid}}
+
+
+
+
+ 编码名称
+
+
+
+ {{selectencodingitem.catalog_name}}
+
+
+
+
+ 编码简称
+
+
+ {{selectencodingitem.catalog_name_short}}
+
+
+
+
+ 商品税率
+
+
+ {{selectencodingitem.tax_rate}}
+
+
+
+ 确认选择
+
+
+
+
+ {{item.catalog_name}}
+
+
+ {{item.tax_rate?item.tax_rate:''}}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/electric/auditrecords.vue b/pages/electric/auditrecords.vue
new file mode 100644
index 0000000..c656557
--- /dev/null
+++ b/pages/electric/auditrecords.vue
@@ -0,0 +1,571 @@
+
+
+
+
+
+ 筛选
+
+
+ 待处理
+ 已处理
+
+
+
+
+
+
+ {{item.user_name}}
+
+
+ 发票状态:
+ {{item.status}}
+
+
+ 发票类型:
+ {{item.type}}
+
+
+ 发票金额:
+ {{item.price}}
+
+
+ 创建时间
+ {{item.createtime}}
+
+
+ 开票凭证
+
+
+
+
+ 通过
+
+
+ 拒绝
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/electric/bluetools.vue b/pages/electric/bluetools.vue
new file mode 100644
index 0000000..ffbafb7
--- /dev/null
+++ b/pages/electric/bluetools.vue
@@ -0,0 +1,1860 @@
+
+
+
+ 数电票类型
+
+
+ {{form.typename?form.typename:'请选择'}}
+
+
+
+
+
+
+ 购买方信息
+
+
+
+
+ 开票给自然人
+
+
+
+
+
+
+
+ {{ item.companyName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 销售方信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 收票方式
+
+
+
+
+
+
+
+
+
+
+
+
+ 开票商品({{`${form.is_tax?'含税':'不含税'}`}})
+
+
+
+
+
+
+
+ 商品
+ 单价
+ 数量
+ 金额
+ 税率
+
+
+ {{item.spmc}}
+ {{item.dj}}
+ {{item.spsl}}
+ {{item.fphxz == 1?'-':''}}{{item.je}}
+ {{item.sl}}%
+ 删除
+
+
+
+
+ 金额:
+ ¥{{amountes.toFixed(2)}}
+
+
+ 税额:
+ ¥{{taxamountes.toFixed(2)}}
+
+
+
+ +新增商品
+
+
+
+ 备注信息
+
+
+
+
+
+
+
+
+
+ 收款人
+
+
+
+
+
+ 复核人
+
+
+
+
+
+ 开票人
+
+
+
+
+
+ 开具
+
+
+
+
+
+
+
+
+
+ 商品编码(税局)选择
+
+
+
+
+
+
+ 商品编码
+
+
+ {{selectencodingitem.pid}}
+
+
+
+
+ 编码名称
+
+
+
+ {{selectencodingitem.catalog_name}}
+
+
+
+
+ 编码简称
+
+
+ {{selectencodingitem.catalog_name_short}}
+
+
+
+
+ 商品税率
+
+
+ {{selectencodingitem.tax_rate}}
+
+
+
+ 确认选择
+
+
+
+
+ {{item.catalog_name}}
+
+
+ {{item.tax_rate?item.tax_rate:''}}
+
+
+
+
+
+
+
+
+ 开票商品信息修改
+
+
+
+
+
+ 商品简称
+
+
+
+
+
+
+
+ 商品名称
+
+
+
+
+
+
+
+ 含税单价
+
+
+
+
+
+
+
+ 商品数量
+
+
+
+
+
+
+
+ 商品规格
+
+
+
+
+
+
+
+ 计量单位
+
+
+
+
+
+
+
+ 商品税率
+
+
+
+ {{mxListform.slname}}
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+ 商品折扣
+
+
+ %
+
+
+
+
+ 含税金额
+
+
+
+
+
+
+
+ 合计税额
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+ 开票类型选择
+
+
+
+
+ *发票类型
+
+
+ {{form.typename}}
+
+
+
+ 设置为默认发票类型
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/electric/index.vue b/pages/electric/index.vue
index 2d5f3df..cedb5c3 100644
--- a/pages/electric/index.vue
+++ b/pages/electric/index.vue
@@ -1,57 +1,75 @@
-
+
-
-
- 蓝票开具
+
+
+ {{item.title}}
-
+
企业信息
企业名称
- 西安市高新区范家大院饭馆
+ {{blueticket.store.title}}
纳税人税号
- 92610131MA6W52456
+ {{blueticket.store.creditCode}}
- 纳税人性质
- ——
-
-
- 当前默认开票账号
- 9261013115897462
-
-
- 授信类别
- ——
-
-
- 预警级别
- ——
-
-
- 数电业务到期时间
- 2025-05-31
-
-
- 报税截止日期
- 2025-05-31
+ 地址
+ {{blueticket.store.businessAddress}}
-
+
+
+ 蓝票数据概况
+
+
+ 发票合计金额
+ {{blueticket.xj.fphjje}}
+
+
+ 发票合计税额
+ {{blueticket.xj.fphjse}}
+
+
+ 剩余授信额度
+ {{blueticket.xj.sysxed}}
+
+
+ 剩余纸质发票张数
+ {{blueticket.xj.syzzfpzs}}
+
+
+ 已开具蓝票张数
+ {{blueticket.xj.ykjlpzs}}
+
+
+ 已使用发票授信额度
+ {{blueticket.xj.ysyfpsxed}}
+
+
+ 已使用发票张数
+ {{blueticket.xj.ysyfpzs}}
+
+
+ 总授信额度
+ {{blueticket.xj.zsxed}}
+
+
+
@@ -59,71 +77,47 @@
export default {
data() {
return {
- swiperlist: [{
- image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- title: '昨夜星辰昨夜风,画楼西畔桂堂东'
- },
- {
- image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
- title: '身无彩凤双飞翼,心有灵犀一点通'
- },
- {
- image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
- title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
- }
+ swiperlist: [
+ 'https://shuzu-download.oss-cn-shanghai.aliyuncs.com/advertise/2024-05-08-10-52-th-663ae8fc73220.png'
],
+ enterprise: {}, //企业
+ blueticket: {
+ xj: '',
+ store: ''
+ } //蓝票
}
},
async onLoad(e) {
- // await this.$onLaunched;
- // alert(location.href.split('#')[0])
- if (e.userId) {
- // this.onLoaduserId = e.userId
- uni.cache.set('Type', e.type);
- uni.cache.set('userId', e.userId);
- }
- let token = await this.api.h5encryption({
- store_id: uni.cache.get('userId')
- })
- if (token.code == 1) {
- uni.cache.set('token', token.data.token);
- }
- console.log(token)
- let res = await this.api.storestorestatus({
- store_id: uni.cache.get('userId')
- })
- if (res.code == 1) {
- this.improveinformationform = res.data.store
- uni.cache.set('form', this.improveinformationform);
- if (res.data.sz_status == 0) {
- uni.reLaunch({
- url: '/pages/index/information'
- });
- } else {
- this.improveinformation = true
- }
- }
+ let data = await this.api.hfivestoreqy()
+ this.blueticket = data.data
},
methods: {
+
clicknavigateTo(item, index) {
- console.log(index)
switch (index) {
- case '0':
- uni.pro.navigateTo('webview/webview', {
- url: c
- });
+ case 0:
+ // uni.pro.navigateTo('webview/webview', {
+ // url: c
+ // });
+ uni.pro.navigateTo('electric/bluetools');
break;
case 1:
- uni.pro.navigateTo('bluetools/index');
+ uni.pro.navigateTo('electric/toexamine');
// uni.pro.navigateTo(b, {
// url: c
// });
break;
case 2:
- uni.pro.navigateTo('issuer/index');
+ uni.pro.navigateTo('electric/Invoicedgoods');
break;
case 3:
- uni.pro.navigateTo('toexamine/index');
+ uni.pro.navigateTo('electric/orderinquiry');
+ break;
+ case 4:
+ uni.pro.navigateTo('electric/auditrecords');
+ break;
+ case 5:
+ uni.pro.navigateTo('electric/issuer');
break;
}
}
@@ -151,6 +145,12 @@
background: #FFFFFF;
border-radius: 24px 24px 24px 24px;
+ &::after {
+ content: "";
+ width: 25%;
+ display: inline-block;
+ }
+
.flex-colum {
width: 25%;
margin-top: 36rpx;
@@ -195,6 +195,11 @@
}
.contentlistitemtow {
+ width: 55%;
+ text-align: right;
+ overflow: hidden; //超出的文本隐藏
+ text-overflow: ellipsis; //溢出用省略号显示
+ white-space: nowrap; //溢出不换行
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 28rpx;
diff --git a/pages/electric/issuer.vue b/pages/electric/issuer.vue
new file mode 100644
index 0000000..f2ef4fb
--- /dev/null
+++ b/pages/electric/issuer.vue
@@ -0,0 +1,774 @@
+
+
+
+
+ {{item.name}}
+ 无需登录
+ 需要登录
+ 未知
+
+ 默认
+
+ 电局账号: {{item.dlzh}}
+
+
+ 登录身份: {{item.k_identity}}
+
+
+ 手机号码: {{item.phone}}
+
+
+
+
+
+ 登录
+
+
+
+
+ 人脸
+
+
+
+
+ 修改
+
+
+
+
+ 默认
+
+
+
+
+
+
+
+ {{formCode.text}}
+
+
+
+
+
+ 已认证
+
+
+
+
+
+
+ 短信验证
+
+
+ 成功:验证码已发送到手机号:{{codephone}}
+
+
+
+
+ {{ Recapture }}
+
+ {{ second }}s重新发送
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/electric/orderinquiry.vue b/pages/electric/orderinquiry.vue
new file mode 100644
index 0000000..5705927
--- /dev/null
+++ b/pages/electric/orderinquiry.vue
@@ -0,0 +1,618 @@
+
+
+
+
+
+ 筛选
+
+
+ 全部发票
+ 普通发票
+ 专用发票
+
+
+
+
+
+ {{item.user_name}}
+
+
+ 发票状态:
+ {{item.status}}
+
+
+ 发票类型:
+ {{item.type}}
+
+
+ 发票金额:
+ {{item.price}}
+
+
+ 创建时间
+ {{item.createtime}}
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+ 购方名称
+ {{details.user_name}}
+
+
+ 购方税号
+ {{details.user_duty}}
+
+
+
+ 发票信息
+
+
+
+ 发票类型
+ {{details.type}}
+
+
+ 发票号码
+ {{details.fphm}}
+
+
+ 开票日期
+ {{details.ktime}}
+
+
+ 开票金额
+ {{details.price}}
+
+
+ 开票税额
+ {{details.tax_amount}}
+
+
+ 发票状态
+ {{details.status}}
+
+
+
+ 发票信息
+
+
+
+ PDF版式文件
+ 下载
+
+
+ OFD版式文件
+ 下载
+
+
+ XML版式文件
+ 下载
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/electric/toexamine.vue b/pages/electric/toexamine.vue
new file mode 100644
index 0000000..4c4f7f5
--- /dev/null
+++ b/pages/electric/toexamine.vue
@@ -0,0 +1,594 @@
+
+
+
+
+
+ 筛选
+
+
+ 全部发票
+ 普通发票
+ 专用发票
+
+
+
+
+
+ {{item.user_name}}
+
+
+ 发票状态:
+ {{item.status}}
+
+
+ 发票类型:
+ {{item.type}}
+
+
+ 发票金额:
+ {{item.price}}
+
+
+ 创建时间
+ {{item.createtime}}
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+ 购方名称
+ {{details.user_name}}
+
+
+ 购方税号
+ {{details.user_duty}}
+
+
+
+ 发票信息
+
+
+
+ 发票类型
+ {{details.type}}
+
+
+ 发票号码
+ {{details.fphm}}
+
+
+ 开票日期
+ {{details.ktime}}
+
+
+ 开票金额
+ {{details.price}}
+
+
+ 开票税额
+ {{details.tax_amount}}
+
+
+ 发票状态
+ {{details.status}}
+
+
+
+ 发票信息
+
+
+
+ PDF版式文件
+ 下载
+
+
+ OFD版式文件
+ 下载
+
+
+ XML版式文件
+ 下载
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 82c98e3..bcc3b5e 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -202,15 +202,16 @@
uni.pro.navigateTo('index/Invoicing');
},
async webview() {
- let res = await this.api.szzpyhurl({
- store_id: uni.getStorageSync('userId')
- })
- if (res) {
- uni.pro.navigateTo('webview/webview', {
- url: res.data.url,
- tape: 1
- });
- }
+ uni.pro.navigateTo('electric/index');
+ // let res = await this.api.szzpyhurl({
+ // store_id: uni.getStorageSync('userId')
+ // })
+ // if (res) {
+ // uni.pro.navigateTo('webview/webview', {
+ // url: res.data.url,
+ // tape: 1
+ // });
+ // }
},
indexorder() {
uni.pro.navigateTo('index/order');
diff --git a/pages/index/order.vue b/pages/index/order.vue
index 1e5585b..4cd3511 100644
--- a/pages/index/order.vue
+++ b/pages/index/order.vue
@@ -28,8 +28,7 @@
-
+
@@ -38,12 +37,28 @@
export default {
data() {
return {
- list: []
+ list: [],
+ form: {
+ page: 1,
+ status: 'loadmore',
+ },
};
},
onShow() {
- this.storeinvoicelist()
+ this.list = []
+ this.form = {
+ page: 1,
+ status: 'loadmore',
+ },
+ this.storeinvoicelist()
+ },
+ onReachBottom() {
+ if (this.form.status != 'nomore') {
+ this.form.page = ++this.form.page;
+ this.storeinvoicelist()
+ }
+
},
methods: {
clickoange(e) {
@@ -61,10 +76,25 @@
}
},
async storeinvoicelist() {
+ this.form.status = 'loading';
let res = await this.api.storeinvoicelist({
- store_id: uni.getStorageSync('userId')
+ store_id: uni.getStorageSync('userId'),
+ page: this.form.page
+
})
- this.list = res.data
+ if (this.form.page == 1 && res.data.list.length == 0) {
+ this.form.status = 'nomore'
+ return false;
+ } else {
+ setTimeout(() => {
+ this.list = [...this.list, ...res.data.list];
+ if (res.data.list.length < 10) {
+ this.form.status = 'nomore';
+ } else {
+ this.form.status = 'loadmore';
+ }
+ }, 500)
+ }
},
}
}
diff --git a/static/electric/type1.png b/static/electric/type1.png
new file mode 100644
index 0000000..82129c1
Binary files /dev/null and b/static/electric/type1.png differ
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index 65ba4ab..96324f5 100644
--- a/unpackage/dist/build/web/index.html
+++ b/unpackage/dist/build/web/index.html
@@ -3,4 +3,4 @@
document.write(
'')