ソースを参照

添加供货商

shish 3 年 前
コミット
f52464a319

+ 1 - 1
ghsApp/src/admin/home/me.vue

@@ -228,7 +228,7 @@ export default {
     },
     suggest(){
       let that = this
-      that.$util.confirmModal({content:'请添加客服微信:15280215347',okText:'复制'},() => {
+      that.$util.confirmModal({content:'请添加客服微信',okText:'复制微信'},() => {
         uni.setClipboardData({
           data: '15280215347',
           success: function() {

+ 1 - 2
hdApp/src/admin/breakage/index.vue

@@ -60,7 +60,7 @@
 		<modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
 			<template slot="customContent">
 				<view class="select-cmd_bx" v-if="customData">
-					<view class="kc"><text class="unit_price">库存 {{ customData.stock||0 }}</text></view>
+					<view class="kc"><text class="unit_price">库存 {{ customData.stock?parseFloat(customData.stock):0 }}</text></view>
 					<view class="num_bx"> 
 
 						<!-- #ifdef APP-PLUS -->
@@ -75,7 +75,6 @@
 						<input style="width: 260upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
 						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
-						<image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`" style="width:86upx;height:86upx;" mode="widthFix"></image>
 
 					</view>
 				</view>

+ 71 - 0
hdApp/src/admin/ghs/addGhs.vue

@@ -0,0 +1,71 @@
+<template>
+  <div class="app-content">
+    <div>
+      <form @submit="formSubmit">
+        <div class="module-com input-line-wrap">
+          <tui-list-cell class="line-cell" :hover="false">
+              <div class="tui-title required">名称:</div>
+              <input v-model="form.name" type="text" placeholder-class="phcolor" placeholder-style="color:#CCCCCC" class="tui-input" name="name" placeholder="请填写名称" />
+          </tui-list-cell>
+        </div>
+        <div class="confirm-btn">
+          <button class="admin-button-com big blue" formType="submit">添加</button>
+        </div>
+      </form>
+    </div>
+  </div>
+</template>
+<script>
+import TuiListCell from "@/components/plugin/list-cell";
+export default {
+  name: "addGhs",
+  components: {
+    TuiListCell
+  },
+  data() {
+    return {
+      form: {
+        name: ""
+      }
+    };
+  },
+  methods: {
+    formSubmit() {
+
+    }
+  }
+};
+</script>
+<style lang="scss" scoped>
+.app-content {
+  min-height: calc(100vh - 20upx);
+  padding-top: 20upx;
+}
+.prompt-text {
+  color: $fontColor3;
+  padding-left: 30upx;
+  margin-bottom: 30upx;
+}
+.module-com {
+  margin-bottom: 20upx;
+  .member-wrap {
+    .member-det {
+      font-size: 24upx;
+      margin-left: 20upx;
+    }
+  }
+  .remark-wrap {
+    align-items: flex-start;
+    .remark {
+      height: 240upx;
+    }
+  }
+}
+.confirm-btn {
+  width: calc(100% - 60upx);
+  margin: 60upx 30upx 20upx;
+  .admin-button-com {
+    width: 100%;
+  }
+}
+</style>

+ 1 - 2
hdApp/src/admin/part/index.vue

@@ -60,7 +60,7 @@
 		<modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
 			<template slot="customContent">
 				<view class="select-cmd_bx" v-if="customData">
-					<view class="kc"><text class="unit_price">库存 {{ customData.stock||0 }}</text></view>
+					<view class="kc"><text class="unit_price">库存 {{ customData.stock?parseFloat(customData.stock):0 }}</text></view>
 					<view class="num_bx"> 
 
 						<!-- #ifdef APP-PLUS -->
@@ -75,7 +75,6 @@
 						<input style="width: 260upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
 						<text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">{{customData.smallUnit}}</text>
 						<!-- #endif -->
-						<image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`" style="width:86upx;height:86upx;" mode="widthFix"></image>
 
 					</view>
 				</view>

+ 41 - 37
hdApp/src/pagesPurchase/order.vue

@@ -8,47 +8,51 @@
       <button class="admin-button-com mini-btn blue" style="margin-left:16upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/pagesPurchase/open'})">商城功能开关</button>
     </view>
 
-<template v-if="!$util.isEmpty(supplierList)">
+    <template v-if="!$util.isEmpty(supplierList)">
 
-  <view class="ghs_list_area flex-col justify-end">
+      <view class="ghs_list_area flex-col justify-end">
 
-        <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
-          <view class="image-text_7 flex-row justify-between">
-            <view class="section_1 flex-col">
-              <image class="logo" :src="ghsInfo.avatar" />
+            <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
+              <view class="image-text_7 flex-row justify-between">
+                <view class="section_1 flex-col">
+                  <image class="logo" :src="ghsInfo.avatar" />
+                </view>
+                <view class="text-group_7 flex-col justify-between">
+                  <text class="text_8">{{ghsInfo.name}}</text>
+                  <text class="text_9"></text>
+                </view>
+              </view>
+              <view class="box_4 flex-col"></view>
+              <view class="box_9">
+                <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>欠款变动记录</text> </view>
+                <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
+                <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping'})"> <text>买花记录</text> </view>
+                
+              </view>
+              <view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
+                <view class="show_clear_area flex-row justify-between">
+                  <image class="icon_2" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps2pvfa1l5i34w5vqj2k7b3kejml3i3nmrba1421bf-caa2-491b-8773-af413df7e96d.png" />
+                  <text class="waite_clear_order">待结订单&nbsp;{{ghsInfo.debtNum}}笔&nbsp;¥{{ghsInfo.debtAmount?parseFloat(ghsInfo.debtAmount):0}}</text>
+                </view>
+                <view class="image-text_9 flex-row justify-between">
+                  <text class="text-group_4">查看明细</text>
+                  <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>
+              <text style="position:absolute;left:646upx;top:235upx;color:#a9a2a2;" @click.stop="bpSj(ghsInfo)">屏蔽</text>
             </view>
-            <view class="text-group_7 flex-col justify-between">
-              <text class="text_8">{{ghsInfo.name}}</text>
-              <text class="text_9"></text>
-            </view>
-          </view>
-          <view class="box_4 flex-col"></view>
-          <view class="box_9">
-            <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>欠款变动记录</text> </view>
-            <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
-            <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping'})"> <text>买花记录</text> </view>
-            
-          </view>
-          <view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
-            <view class="show_clear_area flex-row justify-between">
-              <image class="icon_2" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps2pvfa1l5i34w5vqj2k7b3kejml3i3nmrba1421bf-caa2-491b-8773-af413df7e96d.png" />
-              <text class="waite_clear_order">待结订单&nbsp;{{ghsInfo.debtNum}}笔&nbsp;¥{{ghsInfo.debtAmount?parseFloat(ghsInfo.debtAmount):0}}</text>
-            </view>
-            <view class="image-text_9 flex-row justify-between">
-              <text class="text-group_4">查看明细</text>
-              <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>
-          <text style="position:absolute;left:646upx;top:235upx;color:#a9a2a2;" @click.stop="bpSj(ghsInfo)">屏蔽</text>
         </view>
-    </view>
 
-  </template>
-  <block v-else>
-    <emptyComponent title="暂无供货商" :is-empty="$util.isEmpty(supplierList)" />
-  </block>
+      </template>
+      <block v-else>
+        <emptyComponent title="暂无供货商" :is-empty="$util.isEmpty(supplierList)" />
+      </block>
+
+      <view class="app-footer open_btn">
+        <view @click="addGhs()" class="admin-button-com big blue">新增供货商</view>
+      </view>
 
   </view>
 </template>
@@ -71,7 +75,7 @@ export default {
     })
   },
   methods: {
-    hasPb(){
+    addGhs(){
 
     },
     suggest(){