From 264776c2e906e8c4c28e257b7b138ad8c7967058 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com>
Date: Mon, 9 Aug 2021 17:59:13 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=9B=BE=E7=89=87API?=
=?UTF-8?q?=E5=85=A8=E9=83=A8=E6=9B=B4=E6=8D=A2=E6=88=90=E8=87=AA=E5=B7=B1?=
=?UTF-8?q?=E5=B0=81=E8=A3=85=E7=9A=84=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../lf-previewImage/lf-previewImage.vue | 230 ++++
canteen/main.js | 3 +
canteen/pages/purchase/detail.vue | 1040 ++++++++--------
canteen/pages/purchase/receipt.vue | 1067 +++++++++--------
.../lf-previewImage/lf-previewImage.vue | 38 +-
5 files changed, 1310 insertions(+), 1068 deletions(-)
create mode 100644 canteen/components/lf-previewImage/lf-previewImage.vue
diff --git a/canteen/components/lf-previewImage/lf-previewImage.vue b/canteen/components/lf-previewImage/lf-previewImage.vue
new file mode 100644
index 0000000..0143b20
--- /dev/null
+++ b/canteen/components/lf-previewImage/lf-previewImage.vue
@@ -0,0 +1,230 @@
+
+
+ switchItem(e.detail.current)">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ swiper_current + 1 }} / {{ images.length }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/canteen/main.js b/canteen/main.js
index 3733b29..7844d01 100644
--- a/canteen/main.js
+++ b/canteen/main.js
@@ -30,6 +30,9 @@ Vue.component('self-line', selfLine);
// 将步骤条组件注入全局
import lfStepbar from '@/components/lf-stepbar/lf-stepbar';
Vue.component('lf-stepbar', lfStepbar);
+// 预览图片组件
+import lfPreviewImage from '@/components/lf-previewImage/lf-previewImage';
+Vue.component('lf-previewimage', lfPreviewImage);
const app = new Vue({
...App
diff --git a/canteen/pages/purchase/detail.vue b/canteen/pages/purchase/detail.vue
index cd0d97f..5513399 100644
--- a/canteen/pages/purchase/detail.vue
+++ b/canteen/pages/purchase/detail.vue
@@ -1,521 +1,519 @@
-
-
-
-
-
-
-
- {{ order.supplier.supplier_name }}
- {{ order.supplier.address }}
- {{order.supplier.ctl_man}} {{ order.supplier.ctl_phone }}
-
-
-
-
-
-
-
-
-
-
- 车辆
- {{order.car_license}}
-
-
- 司机
- {{order.deliver_man}}
-
-
- 联系电话
- {{order.deliver_phone}}
-
-
- 采购单
- {{ order.p_sn }}
-
-
- 批次号
- {{ order.batch_sn }}
-
-
- 预计收货时间
- {{order.deadline_text}}
-
-
- 证明材料-供应端
-
-
-
-
-
- 证明材料-食堂端
-
-
-
-
-
-
-
- 物资明细
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{order.state}}
-
-
-
- {{ type }}
-
-
- {{ type }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ order.supplier.supplier_name }}
+ {{ order.supplier.address }}
+ {{order.supplier.ctl_man}} {{ order.supplier.ctl_phone }}
+
+
+
+
+
+
+
+
+
+
+ 车辆
+ {{order.car_license}}
+
+
+ 司机
+ {{order.deliver_man}}
+
+
+ 联系电话
+ {{order.deliver_phone}}
+
+
+ 采购单
+ {{ order.p_sn }}
+
+
+ 批次号
+ {{ order.batch_sn }}
+
+
+ 预计收货时间
+ {{order.deadline_text}}
+
+
+ 证明材料-供应端
+
+
+
+
+
+ 证明材料-食堂端
+
+
+
+
+
+
+
+ 物资明细
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{order.state}}
+
+
+
+ {{ type }}
+
+
+ {{ type }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/canteen/pages/purchase/receipt.vue b/canteen/pages/purchase/receipt.vue
index 65d3df9..0a744ff 100644
--- a/canteen/pages/purchase/receipt.vue
+++ b/canteen/pages/purchase/receipt.vue
@@ -1,533 +1,534 @@
-
-
-
-
-
- {{ item.material.m_name }}
- {{item.spec.name}}
-
- 单位: {{item.material.unit.unit_name}}
-
-
-
-
- 订购数
-
-
- {{item.material.unit.unit_name}}
-
-
-
- 实到数
-
-
- {{item.material.unit.unit_name}}
-
-
-
- 实收数
-
-
- {{item.material.unit.unit_name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ item.material.m_name }}
+ {{item.spec.name}}
+
+ 单位: {{item.material.unit.unit_name}}
+
+
+
+
+ 订购数
+
+
+ {{item.material.unit.unit_name}}
+
+
+
+ 实到数
+
+
+ {{item.material.unit.unit_name}}
+
+
+
+ 实收数
+
+
+ {{item.material.unit.unit_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/supplier/components/lf-previewImage/lf-previewImage.vue b/supplier/components/lf-previewImage/lf-previewImage.vue
index 9bb782d..0143b20 100644
--- a/supplier/components/lf-previewImage/lf-previewImage.vue
+++ b/supplier/components/lf-previewImage/lf-previewImage.vue
@@ -1,7 +1,8 @@
1);
this.show_assembly = true;
- this.initAnimation();
+ if(this.$props.animation){
+ this.initAnimation();
+ }
},
// 关闭隐藏图片
hideAssembly(){
- this.animation.opacity(0).step();
- this.animationData = this.animation.export();
- setTimeout(() => {
+ if(this.$props.animation){
+ this.animationObj.opacity(0).step();
+ this.animationData = this.animationObj.export();
+ setTimeout(() => {
+ this.show_assembly = false;
+ }, this.duration);
+ }else{
this.show_assembly = false;
- }, this.duration);
+ }
}
}
}
@@ -159,7 +170,6 @@
top: 0;
left: 0;
z-index: 1000;
- opacity: 0;
.swiper-item{
position: relative;
.movable-area, .movable-view, .swiper-image{
@@ -172,7 +182,7 @@
box-sizing: border-box;
display: flex;
justify-content: space-between;
- top: 42vh;
+ top: 47vh;
left: 0;
font-size: 40rpx;
width: 100%;