diff --git a/src/api/index.js b/src/api/index.js
index 7369713..9053490 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -248,3 +248,19 @@ export const getUserData = query => {
params: query
});
};
+//服务发票列表
+export const InvoiceManagementList = query => {
+ return request({
+ url: '/admin/order.InvoiceManagement/list',
+ method: 'post',
+ data: query
+ });
+};
+//下载发票
+export const downloadInvoice = query => {
+ return request({
+ url: '/admin/order.InvoiceManagement/downloadInvoice',
+ method: 'get',
+ params: query
+ });
+};
diff --git a/src/components/dateSelect/order.vue b/src/components/dateSelect/order.vue
index cdf2d7f..862e9fc 100644
--- a/src/components/dateSelect/order.vue
+++ b/src/components/dateSelect/order.vue
@@ -71,7 +71,7 @@
@@ -155,7 +155,7 @@
-
+
{{download_status==1?'无资源下载':download_status==2?'获取下载地址失败':download_status==3?'获取解密资源地址失败'
:download_status==4?'获取解密资源地址成功':download_status==5?'没有解密资源地址':
download_status==6?'获取资源下载状态失败':download_status==7?'资源下载成功':download_status==8?'资源下载失败':'获取资源下载状态异常'}}
@@ -251,6 +251,7 @@
},
{
title: '下载状态',
+ dataIndex: 'download_status',
scopedSlots: { customRender: 'download_status' },
width:'90px',
},
@@ -359,8 +360,8 @@
}
})
},
- selectDetails(val){
- let data={isli:val}
+ selectDetails(val,batchcode,islicode){
+ let data={isli:val,batchcode:batchcode,islicode:islicode}
sourceDetail(data).then(res=>{
console.info(res)
if(res.code==200){
diff --git a/src/components/orderDetails/index.vue b/src/components/orderDetails/index.vue
index 9ba020b..f069f80 100644
--- a/src/components/orderDetails/index.vue
+++ b/src/components/orderDetails/index.vue
@@ -76,12 +76,14 @@
资金结算表
- 已支付
+ 已支付
+ 未支付
- 已结算
+ 已结算
+ 未结算
@@ -174,15 +176,9 @@
width:'120px',
// align:'center'
},
- // {
- // title: '税率',
- // dataIndex: 'tax_rate',
- // width:'120px',
- // // align:'center'
- // },
{
title: '税额(含税)',
- dataIndex: 'tax_rate_money',
+ dataIndex: 'tax_rate',
width:'120px',
// align:'center'
},
diff --git a/src/components/page/admission/index.vue b/src/components/page/admission/index.vue
index 88b9aab..eee8158 100644
--- a/src/components/page/admission/index.vue
+++ b/src/components/page/admission/index.vue
@@ -158,7 +158,7 @@ export default {
{
title: '上线时间',
dataIndex: 'createtime',
- width:'90px',
+ // width:'90px',
// align:'center'
},
{
diff --git a/src/components/page/afterService/invoice.vue b/src/components/page/afterService/invoice.vue
index 6f4cbbd..b9b34d8 100644
--- a/src/components/page/afterService/invoice.vue
+++ b/src/components/page/afterService/invoice.vue
@@ -11,19 +11,19 @@
发票编号:
-
+
销方纳税人:
-
+
购方纳税人:
-
+
订单编号:
-
+
-
+
+ {{status==2?'待交付订单':status==3?'待结算订单':'已终止订单'}}
+
+
- 发票详情
- 下载发票
+
+ 发票详情
+
+ 下载发票
@@ -89,10 +95,18 @@
diff --git a/src/main.js b/src/main.js
index 6548c16..0817f94 100644
--- a/src/main.js
+++ b/src/main.js
@@ -14,7 +14,7 @@ import 'ant-design-vue/dist/antd.css';
Vue.use(Antd);
Vue.config.productionTip = false
-
+Vue.prototype.$host = 'http://58.30.231.138:8899'
/* eslint-disable no-new */
new Vue({
el: '#app',
diff --git a/src/utils/download.js b/src/utils/download.js
new file mode 100644
index 0000000..33b279e
--- /dev/null
+++ b/src/utils/download.js
@@ -0,0 +1,31 @@
+import axios from 'axios'
+/**
+ * 下载文件
+ * @param url 文件url
+ * @param fileName
+ */
+export function downloadByURL(id,fileName) {
+ axios.get(' http://58.30.231.138:8899/admin/order.InvoiceManagement/downloadInvoice?id='+id, {responseType: 'blob'})
+ .then((response) => {
+ downloadByFile(response.data,fileName)
+ });
+}
+
+/**
+ * 下载文件
+ * @param data 二进制文件流数据
+ * @param filename
+ */
+export const downloadByFile= function (data, filename) {
+ if (!data) return
+ let url = window.URL.createObjectURL(new Blob([data]))
+ let link = document.createElement('a')
+ link.style.display = 'none'
+ link.href = url
+ link.setAttribute('download', filename)
+
+ document.body.appendChild(link)
+ link.click()
+ document.body.removeChild(link);
+}
+