shish 4 роки тому
батько
коміт
9e828e4d21

+ 11 - 2
hdApp/src/admin/home/me.vue

@@ -81,13 +81,22 @@
             <tui-list-cell @click="pageTo({ url: '/admin/shop/print' })" class="line-cell" :hover="false" :arrow="true">
             <tui-list-cell @click="pageTo({ url: '/admin/shop/print' })" class="line-cell" :hover="false" :arrow="true">
               <view class="tui-title">前台小票机</view>
               <view class="tui-title">前台小票机</view>
             </tui-list-cell>
             </tui-list-cell>
+            <tui-list-cell @click="pageTo({ url: '/admin/shop/trumpet' })" class="line-cell" :hover="false" :arrow="true">
+              <view class="tui-title">前台云喇叭</view>
+            </tui-list-cell>
 
 
             <tui-list-cell @click="pageTo({ url: '/admin/shop/makePrint' })" class="line-cell" :hover="false" :arrow="true">
             <tui-list-cell @click="pageTo({ url: '/admin/shop/makePrint' })" class="line-cell" :hover="false" :arrow="true">
               <view class="tui-title">操作台小票机</view>
               <view class="tui-title">操作台小票机</view>
             </tui-list-cell>
             </tui-list-cell>
+            <tui-list-cell @click="pageTo({ url: '/admin/shop/makeTrumpet' })" class="line-cell" :hover="false" :arrow="true">
+              <view class="tui-title">操作台云喇叭</view>
+            </tui-list-cell>
 
 
-            <tui-list-cell @click="pageTo({ url: '/admin/shop/trumpet' })" class="line-cell" :hover="false" :arrow="true">
-              <view class="tui-title">收款播报设置</view>
+            <tui-list-cell @click="pageTo({ url: '/admin/shop/makePrint' })" class="line-cell" :hover="false" :arrow="true">
+              <view class="tui-title">美团小票机</view>
+            </tui-list-cell>
+            <tui-list-cell @click="pageTo({ url: '/admin/shop/mtTrumpet' })" class="line-cell" :hover="false" :arrow="true">
+              <view class="tui-title">美团云喇叭</view>
             </tui-list-cell>
             </tui-list-cell>
 
 
             <tui-list-cell @click="pageTo({ url: '/admin/jc/index' })" class="line-cell" :hover="false" :arrow="true">
             <tui-list-cell @click="pageTo({ url: '/admin/jc/index' })" class="line-cell" :hover="false" :arrow="true">

+ 109 - 0
hdApp/src/admin/shop/makeTrumpet.vue

@@ -0,0 +1,109 @@
+<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">编号(SN):</div>
+            <input v-model="form.lbSn" placeholder-class="phcolor" class="tui-input" name="lbSn" placeholder="请填写编号" maxlength="50" type="number" />
+          </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";
+import AppAvatarModule from "@/components/module/app-avatar";
+const form = require("@/utils/formValidation.js");
+import { getLb,addCloudLb } from "@/api/shop";
+export default {
+  name: "shopLb",
+  components: {
+    TuiListCell,
+    AppAvatarModule,
+  },
+  data() {
+    return {
+      form: {
+        lbSn: ""
+      }
+    };
+  },
+  onLoad() {
+  },
+  methods: {
+    async init() {
+      try {
+        const { data } = await getLb();
+        this.form.lbSn = data.lbSn;
+        this.$forceUpdate();
+      } finally {}
+    },
+    confirmFn() {
+      addCloudLb(this.form).then((res) => {
+        this.$msg(res.msg);
+        if(res.code == 1){
+          setTimeout(() => {
+            uni.navigateBack();
+          }, 1000)
+        }
+      });
+    },
+    formSubmit(e) {
+      let rules = [
+        {
+          name: "lbSn",
+          rule: ["required"],
+          msg: ["请填写编号"],
+        }
+      ]
+      this.confirmFn();
+    },
+  },
+};
+</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>

+ 107 - 0
hdApp/src/admin/shop/mtTrumpet.vue

@@ -0,0 +1,107 @@
+<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">编号(SN):</div>
+            <input v-model="form.lbSn" placeholder-class="phcolor" class="tui-input" name="lbSn" placeholder="请填写编号" maxlength="50" type="number" />
+          </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";
+import AppAvatarModule from "@/components/module/app-avatar";
+const form = require("@/utils/formValidation.js");
+import { getLb,addCloudLb } from "@/api/shop";
+export default {
+  name: "shopLb",
+  components: {
+    TuiListCell,
+    AppAvatarModule,
+  },
+  data() {
+    return {
+      form: {
+        lbSn: ""
+      }
+    };
+  },
+  methods: {
+    async init() {
+      try {
+        const { data } = await getLb();
+        this.form.lbSn = data.lbSn;
+        this.$forceUpdate();
+      } finally {}
+    },
+    confirmFn() {
+      addCloudLb(this.form).then((res) => {
+        this.$msg(res.msg);
+        if(res.code == 1){
+          setTimeout(() => {
+            uni.navigateBack();
+          }, 1000)
+        }
+      });
+    },
+    formSubmit(e) {
+      let rules = [
+        {
+          name: "lbSn",
+          rule: ["required"],
+          msg: ["请填写编号"],
+        }
+      ]
+      this.confirmFn();
+    },
+  },
+};
+</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 - 16
hdApp/src/admin/shop/trumpet.vue

@@ -6,15 +6,7 @@
 
 
           <tui-list-cell class="line-cell" :hover="false">
           <tui-list-cell class="line-cell" :hover="false">
             <div class="tui-title">编号(SN):</div>
             <div class="tui-title">编号(SN):</div>
-            <input
-              v-model="form.lbSn"
-              placeholder-class="phcolor"
-              class="tui-input"
-              name="lbSn"
-              placeholder="请填写编号"
-              maxlength="50"
-              type="number"
-            />
+            <input v-model="form.lbSn" placeholder-class="phcolor" class="tui-input" name="lbSn" placeholder="请填写编号" maxlength="50" type="number" />
           </tui-list-cell>
           </tui-list-cell>
 
 
         </div>
         </div>
@@ -47,13 +39,6 @@ export default {
       }
       }
     };
     };
   },
   },
-  onLoad() {
-  },
-  onShow() {
-    uni.setNavigationBarTitle({
-      title: `收款播报设置`,
-    });
-  },
   methods: {
   methods: {
     async init() {
     async init() {
       try {
       try {

+ 5 - 3
hdApp/src/pages.json

@@ -180,10 +180,12 @@
 				{"path": "list","style": {"navigationBarTitleText": "门店"}},
 				{"path": "list","style": {"navigationBarTitleText": "门店"}},
 				{"path": "downloadCode","style": {"navigationBarTitleText": "收款码"}},
 				{"path": "downloadCode","style": {"navigationBarTitleText": "收款码"}},
 				{"path": "add","style": {"navigationBarTitleText": ""}},
 				{"path": "add","style": {"navigationBarTitleText": ""}},
-				{"path": "print","style": {"navigationBarTitleText": "前台小票标签设置"}},
-				{"path": "makePrint","style": {"navigationBarTitleText": "操作台小票标签设置"}},
+				{"path": "print","style": {"navigationBarTitleText": "前台小票机"}},
+				{"path": "makePrint","style": {"navigationBarTitleText": "操作台小票机"}},
 				{"path": "password","style": {"navigationBarTitleText": "修改密码"}},
 				{"path": "password","style": {"navigationBarTitleText": "修改密码"}},
-				{"path": "trumpet","style": {"navigationBarTitleText": "收款播报设置"}}
+				{"path": "trumpet","style": {"navigationBarTitleText": "前台云喇叭"}},
+				{"path": "makeTrumpet","style": {"navigationBarTitleText": "操作台云喇叭"}},
+				{"path": "mtTrumpet","style": {"navigationBarTitleText": "美团云喇叭"}}
 			]
 			]
 		},
 		},
 		{
 		{