diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue
index 7ff1378..868c634 100644
--- a/src/views/inout/InvoiceRegistration.vue
+++ b/src/views/inout/InvoiceRegistration.vue
@@ -171,18 +171,6 @@
-
-
-
- 发票登记
-
-
-
-
- 订单 {{ currentRow.billNo }}-发票信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
-
- 删除
-
- 预览
-
-
-
-
-
-
-
-
单据 {{ currentRow.billNo }}-单据详情
+
+
+
+
+ 发票登记
+
+
+
+
+
+
+
+
+
+ 单据 {{ currentRow.billNo }}-发票信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+ 预览
+
+
+
+
+
+
+
+
+
+
{
+ if (response.code === 20000) {
+ this.closeInvoice();
+ } else {
+ this.$message.error(response.message);
+ }
+ })
+ .catch(() => {
+ this.$message.error(response.message);
+ });
},
onSubmit() {
this.loading = true;
@@ -627,10 +649,30 @@ export default {
hideSearch() {
this.showSearch = !this.showSearch;
},
- toViewCompanyCert(row) {
+ showImgViewer(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- window.open(this.certFileUrl + row.licenseUrl);
+ this.imgList=[];
+ previewImage({imageUrl:row.licenseUrl,certFileUrl:this.certFileUrl}).then(response => {
+ if (response.code === 20000) {
+ debugger
+ this.imgList=response.data;
+ }
+ console.log(this.imgList)
+ this.imgViewerVisible = true;
+ });
+ const m = (e) => { e.preventDefault() };
+ document.body.style.overflow = 'hidden';
+ document.addEventListener("touchmove", m, false); // 禁止页面滑动
+ },
+
+ closeImgViewer(){
+ this.imgViewerVisible = false;
+ const m = (e) => { e.preventDefault() };
+ document.body.style.overflow = 'auto';
+ document.removeEventListener("touchmove", m, true);
},
+
+
invChange() {
this.filterQuery.action = null;
this.getBusType();
@@ -689,11 +731,9 @@ export default {
},
// 获取单据 业务详情、扫码详情、扫码明细
getOrderDetails() {
- this.bizQuery.page = 1;
this.codeQuery.page = 1;
this.resultQuery.page = 1;
- this.getBizDetailList();
this.getCodeDetailList();
this.getResultDetailList();
},
@@ -884,6 +924,10 @@ export default {
this.bizTotal = 0;
})
},
+ BizDetail(){
+ this.bizQuery.page=1;
+ this.getBizDetailList();
+ },
//单据撤回