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%;