shish 3 лет назад
Родитель
Сommit
c13ce9dfea
2 измененных файлов с 30 добавлено и 14 удалено
  1. 15 7
      hdApp/src/admin/home/workbench.vue
  2. 15 7
      hdApp/src/pagesPurchase/order.vue

+ 15 - 7
hdApp/src/admin/home/workbench.vue

@@ -129,8 +129,13 @@
               <image class="icon_3" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps83ag7scu3a8bfq22ciodg5hiu0x9cesxjbfb4c9ca-ee3f-45ec-a6d7-6f166e13d6e6.png" />
             </view>
           </view>
-          <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
-          <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+          <block v-if="ghsInfo.live == 1">
+            <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+            <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+          </block>
+          <block v-else>
+            <view class="button_6 flex-col" @click="fillCg(ghsInfo)"><text class="text_13">录采购单</text></view>
+          </block>
           <text style="position:absolute;left:646upx;top:235upx;color:#a9a2a2;" @click.stop="bpSj(ghsInfo)">屏蔽</text>
         </view>
     </view>
@@ -278,6 +283,9 @@ export default {
         }
       })
     },
+    fillCg(item){
+      this.$msg('开发中')
+    },
     enterShop(item) {
       if(item.isOpen == 0){
         this.$msg('已休店,请选择其它门店')
@@ -802,7 +810,7 @@ export default {
         background-size: 137upx 137upx;
         width: 130upx;
         position: absolute;
-        left: 575upx;
+        left: 570upx;
         top: 105upx;
         border-radius:39upx;
         .text_13 {
@@ -819,7 +827,7 @@ export default {
         background-size: 137upx 137upx;
         width: 130upx;
         position: absolute;
-        left: 585upx;
+        left: 570upx;
         top: 105upx;
         border-radius:39upx;
         .text_13 {
@@ -832,11 +840,11 @@ export default {
         height: 80upx;
         line-height:80upx;
         text-align:center;
-        background-color:rgb(18, 175, 18);
+        background-color:rgb(152, 153, 197);
         background-size: 137upx 137upx;
-        width: 130upx;
+        width: 170upx;
         position: absolute;
-        left: 390upx;
+        left: 540upx;
         top: 105upx;
         border-radius:39upx;
         .text_13 {

+ 15 - 7
hdApp/src/pagesPurchase/order.vue

@@ -39,8 +39,13 @@
                   <image class="icon_3" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps83ag7scu3a8bfq22ciodg5hiu0x9cesxjbfb4c9ca-ee3f-45ec-a6d7-6f166e13d6e6.png" />
                 </view>
               </view>
-              <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
-              <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+              <block v-if="ghsInfo.live == 1">
+                <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+                <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+              </block>
+              <block v-else>
+                <view class="button_6 flex-col" @click="fillCg(ghsInfo)"><text class="text_13">录采购单</text></view>
+              </block>
               <text style="position:absolute;left:646upx;top:235upx;color:#a9a2a2;" @click.stop="bpSj(ghsInfo)">屏蔽</text>
             </view>
         </view>
@@ -107,6 +112,9 @@ export default {
         }
       })
     },
+    fillCg(item){
+      this.$msg('开发中')
+    },
     enterShop(item) {
       if(item.isOpen == 0){
         this.$msg('已休店,请选择其它门店')
@@ -393,7 +401,7 @@ export default {
         background-size: 137upx 137upx;
         width: 130upx;
         position: absolute;
-        left: 575upx;
+        left: 560upx;
         top: 105upx;
         border-radius:39upx;
         .text_13 {
@@ -410,7 +418,7 @@ export default {
         background-size: 137upx 137upx;
         width: 130upx;
         position: absolute;
-        left: 585upx;
+        left: 560upx;
         top: 105upx;
         border-radius:39upx;
         .text_13 {
@@ -423,11 +431,11 @@ export default {
         height: 80upx;
         line-height:80upx;
         text-align:center;
-        background-color:rgb(18, 175, 18);
+        background-color:rgb(152, 153, 197);
         background-size: 137upx 137upx;
-        width: 130upx;
+        width: 170upx;
         position: absolute;
-        left: 390upx;
+        left: 540upx;
         top: 105upx;
         border-radius:39upx;
         .text_13 {