shish hai 10 meses
pai
achega
827862816e

+ 1 - 0
ghsApp/src/admin/custom/selectCustom.vue

@@ -128,6 +128,7 @@ export default {
         let prevPage = pages[ pages.length - 2 ];
         prevPage.$vm.form.customId = item.id;
         prevPage.$vm.form.customName = item.name;
+        prevPage.$vm.form.selectCustomOk=1
         uni.navigateBack({})
       }
     },

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

@@ -169,7 +169,7 @@
             </tui-list-cell>
 
             <tui-list-cell @click="pageTo({ url: '/admin/shop/sk' })" class="line-cell" :hover="false" :arrow="true">
-              <view class="tui-title">快捷开单</view>
+              <view class="tui-title">更多设置</view>
             </tui-list-cell>
 
             <!-- #ifdef APP-PLUS -->

+ 313 - 0
ghsApp/src/admin/item/selectItem.vue

@@ -0,0 +1,313 @@
+<template>
+    <view class="app-main app-content">
+      <view class="input-wrap_box">
+        <view>
+          <AppSearchModule v-model="searchText" placeholder="输入拼音首字母搜索" @input="searchFn"/>
+        </view>
+      </view>
+      <block v-if="!$util.isEmpty(list.data)">
+        <block v-for="(item, index) in list.data" :key="index">
+          <tui-list-cell :arrow="false" @click="selectCurrent(item)">
+            <view class="tui-msg-box">
+              <img :src="item.cover" class="tui-msg-pic" mode="widthFix"/>
+              <view class="tui-msg-item" style="position:relative;">
+                <view class="tui-msg-name">
+                  <view class="tui-user-name">
+                    {{ item.name }}
+                  </view>
+                </view>
+                <view class="tui-msg-content">
+                  <text>
+                    <block v-if="item.ratioType == 0">
+                        {{item.ratio}}{{item.smallUnit}}/{{item.bigUnit}}
+                    </block>
+					<block v-else>
+                        若干{{item.smallUnit}}/{{item.bigUnit}}
+                    </block>
+                  </text>
+                    <text class="balance-amount">
+                      <text>
+                        <text style="color:#333333;font-weight:normal;">¥{{ item.hjPrice?parseFloat(item.hjPrice):0 }}</text>
+                        <text style="margin-left:11upx;color:red;font-weight:bold;">¥{{ item.price?parseFloat(item.price):0 }}</text>
+                        <text style="margin-left:11upx;color:#333333;font-weight:normal;">¥{{ item.skPrice?parseFloat(item.skPrice):0 }}</text>
+                      </text>
+                    </text>
+                    <text style="margin-left:30upx;color:#9397a4;">剩 {{ item.stock?parseFloat(item.stock):0 }}</text>
+                </view>
+              </view>
+            </view>
+          </tui-list-cell>
+        </block>
+      </block>
+      <block v-else>
+        <app-wrapper-empty :is-empty="$util.isEmpty(list.data)" />
+      </block>
+    </view>
+  </template>
+  <script>
+  import TuiListCell from "@/components/plugin/list-cell";
+  import BadgeModule from "@/components/plugin/badge";
+  import AppWrapperEmpty from "@/components/app-wrapper-empty";
+  import appVipModule from "@/components/module/app-vip";
+  import AppTag from "@/components/module/app-tag.vue";
+  import AppSearchModule from "@/components/module/app-search";
+  import { list } from "@/mixins";
+  import { mapGetters } from "vuex";
+  import { getItemList } from '@/api/item';
+  export default {
+    name: "selectItem",
+    components: {
+      TuiListCell,
+      BadgeModule,
+      AppWrapperEmpty,
+      appVipModule,
+      AppTag,
+      AppSearchModule,
+      couldScan:false
+    },
+    mixins: [list],
+    data() {
+      return {
+        tabIndex: 0,
+        selectStyle:1,
+        searchText:''
+      };
+    },
+    computed:{
+      ...mapGetters(["getMyShopInfo"]),
+    },
+    onPullDownRefresh() {
+      this.resetList();
+      this.getMyList().then((res) => {
+        uni.stopPullDownRefresh();
+      });
+    },
+    onReachBottom() {
+      if (!this.list.finished) {
+        this.getMyList().then((res) => {
+          uni.stopPullDownRefresh();
+        });
+      } else {
+        uni.stopPullDownRefresh();
+      }
+    },
+    onLoad() {
+    },
+    onShow(){
+    },
+    methods: {
+      selectCurrent(item){
+        let style = this.option.style ? this.option.style : 1
+        this.selectStyle = style
+        if(style == 1){
+          //花材开单
+          //this.$util.pageTo({url: '/admin/billing/index2?customId='+item.id+'&customName='+item.name,type:2})
+        }else if(style == 2){
+          //用于选择客户并且需要返回的情况
+          let pages = getCurrentPages();
+          let prevPage = pages[ pages.length - 2 ];
+          if(this.option.losingItem){
+            prevPage.$vm.losingItem = item.id
+            prevPage.$vm.losingItemName = item.name
+          }
+          if(this.option.zjGatheringItem){
+            prevPage.$vm.zjGatheringItem = item.id
+            prevPage.$vm.zjGatheringItemName = item.name
+          }
+          prevPage.$vm.selectItemOk=1
+          uni.navigateBack({})
+        }else{
+          //无操作
+        }
+      },
+      init() {
+          this.getMyList()
+      },
+      searchFn() {
+          this.resetList()
+          this.getMyList()
+      },
+      getMyList() {
+        let params = {classId:0,requestType:'itemList',page:this.list.page,search:this.searchText,customId:0,globalCgMyCharge:0,lookStock:0}
+        getItemList(params).then((res) => {
+            this.completes(res)
+            if (this.$util.isEmpty(res.data)){
+                return false
+            }
+        })
+      }
+    }
+  };
+  </script>
+  
+  <style lang="scss" scoped>
+  .app-content {
+    padding-top: 100upx;
+    padding-bottom: 20upx;
+  }
+  .tabs-wrap {
+    position: fixed;
+    .tabs-left {
+      width: 80%;
+    }
+    .tabs-right {
+      width: 19%;
+      border-left: $borderColor;
+      @include disFlex(center, center);
+    }
+  }
+  .input-wrap_box {
+    background-color: #fff;
+    position: fixed;
+    top: 0;
+    z-index: 10;
+    /* 手机mobile屏幕小于1000px */
+    @media screen and (max-width: 1100px) {
+      width: 100%;
+    }
+    /* 收银台cashier屏幕大于1000px */
+    @media screen and (min-width:1100px) {
+      width: 40%;
+    }
+    height: 100upx;
+    display: flex;
+    align-items: center;
+    padding: 0 30upx;
+    & > view:nth-child(1) {
+      flex: 1;
+    }
+  }
+  .tui-msg-box {
+    display: flex;
+    align-items: center;
+  
+    .tui-msg-pic {
+      width: 80upx;
+      height: 80upx;
+      border-radius:18upx;
+      margin-right: 20upx;
+    }
+  
+    .tui-msg-item {
+      max-width: 500upx;
+      min-height: 80upx;
+      overflow: hidden;
+      display: flex;
+      flex-direction: column;
+      justify-content: space-between;
+      & > div {
+        @include disFlex(center, flex-start);
+        & > div:first-child {
+          margin-right: 8upx;
+        }
+      }
+      .level-img {
+        ::v-deep.vip-text {
+          left: 70upx;
+          top: 8upx;
+        }
+      }
+      .normal-img {
+        width: 70upx;
+        padding: 2upx 6upx;
+        color: #999;
+        background-color: #f0f2f6;
+        border-radius: 20upx;
+        .vip-text {
+          font-size: 24upx;
+          transform: scale(0.6);
+          position: relative;
+          top: -2upx;
+          left: -8upx;
+        }
+      }
+      .member-img {
+        width: 70upx;
+        padding: 2upx 6upx;
+        color: green;
+        background-color: #f0f2f6;
+        border-radius: 20upx;
+        .vip-text {
+          font-size: 24upx;
+          transform: scale(0.6);
+          position: relative;
+          top: -2upx;
+          left: -8upx;
+        }
+      }
+      .iconfont {
+        color: #00aaed;
+      }
+    }
+  
+    .tui-msg-name {
+      overflow: hidden;
+      white-space: nowrap;
+      text-overflow: ellipsis;
+      font-size: 30upx;
+      line-height: 1;
+      color: #262b3a;
+      margin-bottom: 4upx;
+      .tui-user-name {
+        overflow: hidden;
+        text-overflow: ellipsis;
+        white-space: nowrap;
+        width: 450upx;
+        font-size: 34upx;
+        .super-man{
+          margin-left:30upx;
+          color:red;
+          font-size:24upx;
+          display:inline-block;
+          color:white;
+          border:1upx solid green;
+          padding:6upx 10upx;
+          background-color: green;
+          border-radius: 11upx;
+        }
+        .ls-man{
+          margin-left:30upx;
+          font-size:24upx;
+          display:inline-block;
+          color:white;
+          border:1upx solid #a5b1a5;
+          padding:6upx 10upx;
+          background-color: #a5b1a5;
+          border-radius: 11upx;
+        }
+      }
+    }
+  
+    .tui-msg-content {
+      width:500upx;
+      overflow: hidden;
+      white-space: nowrap;
+      text-overflow: ellipsis;
+      font-size: 24upx;
+      color: #9397a4;
+      .balance-amount{
+        margin-left:30upx;
+      }
+    }
+  }
+  .tui-msg-right {
+    max-width: 120upx;
+    height: 80upx;
+    margin-left: auto;
+    margin-right: 24upx;
+    text-align: right;
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+  }
+  .user_tag {
+    border: 1upx solid #cccccc;
+    padding: 5upx 12upx 5upx 12upx;
+    border-radius: 25upx;
+    color: #bbbbbb;
+    margin-right: 10upx;
+    margin-bottom: 12upx;
+    display: inline-block;
+    font-size: 30upx;
+  }
+  </style>

+ 137 - 33
ghsApp/src/admin/shop/sk.vue

@@ -1,23 +1,75 @@
 <template>
-  <div class="app-content">
-    <div>
-      <form @submit="formSubmit">
-        <div class="module-com input-line-wrap">
+  <view class="app-content">
+    <view>
+        <view class="module-com input-line-wrap">
           <tui-list-cell class="line-cell" :arrow="true" @click="selectCustom">
-            <div class="tui-title">请选择:</div>
+            <view class="tui-title">快捷客户:</view>
             <view>{{form.customName}}</view>
           </tui-list-cell>
-        </div>
-        <div class="confirm-btn">
-          <button class="admin-button-com big blue" formType="submit">提交</button>
-        </div>
-      </form>
-    </div>
-  </div>
+
+          <tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem(0)">
+            <div class="tui-title">处理花材:</div>
+            <view>{{losingItemName}}</view>
+          </tui-list-cell>
+
+          <tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem(1)">
+            <div class="tui-title">直接收款:</div>
+            <view>{{zjGatheringItemName}}</view>
+          </tui-list-cell>
+
+          <tui-list-cell class="line-cell" :hover="false">
+            <view class="tui-title">下单后</view>
+            <radio-group class="tui-input" @change="orderFlowChange">
+              <label class="list" for="orderFlowZj">
+                <radio id="orderFlowZj" value="0" :checked="orderFlow == 0" style="transform:scale(0.7,0.7)" />
+                <span class="checkbox-text">直接完成</span>
+              </label>
+              <label class="list" for="orderFlowFh">
+                <radio id="orderFlowFh" value="1" :checked="orderFlow == 1" style="transform:scale(0.7,0.7)" />
+                <span class="checkbox-text">变待发货</span>
+              </label>
+            </radio-group>
+          </tui-list-cell>
+
+          <tui-list-cell class="line-cell" :hover="false">
+            <view class="tui-title">商城端跑腿</view>
+            <radio-group class="tui-input" @change="thirdSendChange">
+              <label class="list" for="thirdSendOk">
+                <radio id="thirdSendOk" value="0" :checked="thirdSend == 0" style="transform:scale(0.7,0.7)" />
+                <span class="checkbox-text">支持</span>
+              </label>
+              <label class="list" for="thirdSendNo">
+                <radio id="thirdSendNo" value="1" :checked="thirdSend == 1" style="transform:scale(0.7,0.7)" />
+                <span class="checkbox-text">不支持</span>
+              </label>
+            </radio-group>
+          </tui-list-cell>
+
+          <tui-list-cell class="line-cell" :hover="false">
+            <view class="tui-title">跑腿费用</view>
+            <radio-group class="tui-input" @change="thirdSendFeeChange">
+              <label class="list" for="thirdSendFeeDf">
+                <radio id="thirdSendFeeDf" value="0" :checked="thirdSendFee == 0" style="transform:scale(0.7,0.7)" />
+                <span class="checkbox-text">到付</span>
+              </label>
+              <label class="list" for="thirdSendFeeZd">
+                <radio id="thirdSendFeeZd" value="1" :checked="thirdSendFee == 1" style="transform:scale(0.7,0.7)" />
+                <span class="checkbox-text">自动计算</span>
+              </label>
+            </radio-group>
+          </tui-list-cell>
+
+        </view>
+
+        <view class="confirm-btn">
+          <button class="admin-button-com big blue" @click="goBack">返回</button>
+        </view>
+    </view>
+  </view>
 </template>
 <script>
 import TuiListCell from "@/components/plugin/list-cell";
-import { skCustom,skCustomSet } from "@/api/shop";
+import { skCustom,skCustomSet,getShopExtInfo,setExtItem,modifyExt } from "@/api/shop";
 export default {
   name: "sk",
   components: {TuiListCell},
@@ -25,12 +77,71 @@ export default {
     return {
       form:{
         customName:'',
-        customId:0
+        customId:0,
+        selectCustomOk:0
       },
-      hasLoad:false
+      hasLoad:false,
+      orderFlow:0,
+      thirdSend:0,
+      thirdSendFee:0,
+      losingItem:0,
+      losingItemName:'',
+      zjGatheringItem:0,
+      zjGatheringItemName:'',
+      selectItemOk:0
     };
   },
+  onShow() {
+    let that = this
+    if(that.form.customId != 0 && !this.$util.isEmpty(that.form.customId) && that.form.selectCustomOk == 1){
+      that.form.selectCustomOk = 0
+      skCustomSet({id:that.form.customId}).then(res=>{
+          if(res.code == 1){
+            that.$msg(res.msg)
+          }
+      })
+    }
+    if(this.selectItemOk == 1){
+      this.selectItemOk = 0
+      setExtItem({losingItem:this.losingItem,zjGatheringItem:this.zjGatheringItem}).then(res=>{
+        if(res.code == 1){
+          that.$msg(res.msg)
+        }
+      })
+    }
+  },
   methods: {
+    orderFlowChange(e){
+      this.orderFlow = e.detail.value
+      this.changeExt()
+    },
+    thirdSendChange(e){
+      this.thirdSend = e.detail.value
+      this.changeExt()
+    },
+    thirdSendFeeChange(e){
+      this.thirdSendFee = e.detail.value
+      this.changeExt()
+    },
+    changeExt(){
+      modifyExt({orderFlow:this.orderFlow,thirdSend:this.thirdSend,thirdSendFee:this.thirdSendFee}).then(res=>{
+        if(res.code == 1){
+          this.$msg(res.msg)
+        }
+      })
+    },
+    selectMyItem(no){
+      if(no ==0){
+        this.$util.pageTo({ url: '/admin/item/selectItem?style=2&losingItem='+this.losingItem})
+      }else if(no == 1){
+        this.$util.pageTo({ url: '/admin/item/selectItem?style=2&zjGatheringItem='+this.zjGatheringItem})
+      }else{
+        //先操作
+      }
+    },
+    goBack(){
+      uni.navigateBack()
+    },
     init(){
       if(this.hasLoad){
         return false
@@ -43,27 +154,20 @@ export default {
           this.$forceUpdate()
         }
       })
+      getShopExtInfo().then(res=>{
+        if(res.code == 1){
+          this.losingItem = res.data.losingItem?res.data.losingItem:0
+          this.losingItemName = res.data.losingItemName?res.data.losingItemName:''
+          this.zjGatheringItem = res.data.zjGatheringItem?res.data.zjGatheringItem:0
+          this.zjGatheringItemName = res.data.zjGatheringItemName?res.data.zjGatheringItemName:''
+          this.orderFlow = res.data.orderFlow
+          this.thirdSend = res.data.thirdSend
+          this.thirdSendFee = res.data.thirdSendFee
+        }
+      })
     },
     selectCustom(){
       this.$util.pageTo({ url: '/admin/custom/selectCustom',query: {style:2}})
-    },
-    formSubmit() {
-      let that = this
-      if(that.form.customId == 0 || that.$util.isEmpty(that.form.customId)){
-        that.$msg('请选择门店')
-        return false
-      }
-      skCustomSet({id:that.form.customId}).then(res=>{
-          if(res.code == 1){
-            that.$msg(res.msg)
-            setTimeout(function(){
-
-              that.$store.commit("setLoginInfo", {})
-              that.$util.pageTo({url: "/admin/home/workbench",type: 3})
-
-            },1000)
-          }
-      })
     }
   },
 };

+ 12 - 0
ghsApp/src/api/shop/index.js

@@ -120,6 +120,18 @@ export const getLb = data => {
 	return https.get('/shop-ext/get-lb', data)
 }
 
+export const getShopExtInfo = data => {
+	return https.get('/shop-ext/info', data)
+}
+
+export const setExtItem = data => {
+	return https.post('/shop-ext/set-item', data)
+}
+
+export const modifyExt = data => {
+	return https.post('/shop-ext/modify-ext', data)
+}
+
 export const getPtGhsShop = data => {
 	return https.get('/shop/get-pt-ghs-shop', data)
 }

+ 2 - 1
ghsApp/src/pages.json

@@ -216,7 +216,7 @@
 				{"path": "trumpet","style": {"navigationBarTitleText": "云音箱"}},
 				{"path": "changeShop","style": {"navigationBarTitleText": "管理商家"}},
 				{"path": "showShop","style": {"navigationBarTitleText": "营业商家"}},
-				{"path": "sk","style": {"navigationBarTitleText": "设置快捷开单"}},
+				{"path": "sk","style": {"navigationBarTitleText": "更多设置"}},
 				{"path": "password","style": {"navigationBarTitleText": "密码修改"}},
 				{"path": "debtChange","style": {"navigationBarTitleText": "欠款变动记录"}},
 				{"path": "selectShop","style": {"navigationBarTitleText": "选择门店"}},
@@ -427,6 +427,7 @@
 				{"path": "list","style": {"navigationBarTitleText": "花材列表"}},
 				{"path": "list2","style": {"navigationBarTitleText": "花材列表"}},
 				{"path": "selectList","style": {"navigationBarTitleText": "选择花材"}},
+				{"path": "selectItem","style": {"navigationBarTitleText": "选择花材"}},
 				{"path": "detail","style": {"navigationBarTitleText": "花材详情"}},
 				{"path": "add","style": {"navigationBarTitleText": "添加花材"}},
 				{"path": "copy","style": {"navigationBarTitleText": "复制新建花材"}},

+ 1 - 0
hdApp/src/admin/custom/selectCustom.vue

@@ -117,6 +117,7 @@
           let prevPage = pages[ pages.length - 2 ];
           prevPage.$vm.form.customId = item.id;
           prevPage.$vm.form.customName = item.name;
+          prevPage.$vm.form.selectCustomOk = 1;
           uni.navigateBack({})
         }else{
           //无操作

+ 5 - 5
hdApp/src/admin/item/selectItem.vue

@@ -107,14 +107,14 @@
           let pages = getCurrentPages();
           let prevPage = pages[ pages.length - 2 ];
           if(this.option.losingItem){
-            prevPage.$vm.form.losingItem = item.id
-          }
-          if(this.option.gatheringItem){
-            prevPage.$vm.form.gatheringItem = item.id
+            prevPage.$vm.losingItem = item.id
+            prevPage.$vm.losingItemName = item.name
           }
           if(this.option.zjGatheringItem){
-            prevPage.$vm.form.zjGatheringItem = item.id
+            prevPage.$vm.zjGatheringItem = item.id
+            prevPage.$vm.zjGatheringItemName = item.name
           }
+          prevPage.$vm.selectItemOk=1
           uni.navigateBack({})
         }else{
           //无操作

+ 51 - 61
hdApp/src/admin/shop/sk.vue

@@ -1,42 +1,30 @@
 <template>
-  <div class="app-content">
-    <div>
-      <form @submit="formSubmit">
-        <div class="module-com input-line-wrap">
-
+  <view class="app-content">
+    <view>
+        <view class="module-com input-line-wrap">
           <tui-list-cell class="line-cell" :arrow="true" @click="selectCustom">
-            <div class="tui-title">快捷开单:</div>
+            <view class="tui-title">快捷开单:</view>
             <view>{{form.customName}}</view>
           </tui-list-cell>
-
           <tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem(0)">
-            <div class="tui-title">处理花材:</div>
-            <view>{{form.losingItem}}</view>
+            <view class="tui-title">处理花材:</view>
+            <view>{{losingItemName}}</view>
           </tui-list-cell>
-
           <tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem(1)">
-            <div class="tui-title">扫码收款:</div>
-            <view>{{form.gatheringItem}}</view>
-          </tui-list-cell>
-
-          <tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem(2)">
-            <div class="tui-title">直接收款:</div>
-            <view>{{form.zjGatheringItem}}</view>
+            <view class="tui-title">直接收款:</view>
+            <view>{{zjGatheringItemName}}</view>
           </tui-list-cell>
-
-        </div>
-        <div class="confirm-btn">
-          <button class="admin-button-com big blue" formType="submit">提交</button>
-        </div>
-      </form>
-    </div>
-  </div>
+        </view>
+        <view class="confirm-btn">
+          <button class="admin-button-com big blue" @click="goBack">返回</button>
+        </view>
+    </view>
+  </view>
 </template>
 <script>
 import TuiListCell from "@/components/plugin/list-cell";
 import { kjCustom,kjCustomSet } from "@/api/shop";
-import { setItem } from "@/api/shop/ext";
-import { mainMy } from "@/api/home";
+import { setItem,getMyExtInfo } from "@/api/shop/ext";
 export default {
   name: "sk",
   components: {TuiListCell},
@@ -45,14 +33,39 @@ export default {
       form:{
         customName:'',
         customId:0,
-        losingItem:0,
-        gatheringItem:0,
-        zjGatheringItem:0
+        selectCustomOk:0
       },
-      hasLoad:false
+      losingItem:0,
+      losingItemName:'',
+      zjGatheringItem:0,
+      zjGatheringItemName:'',
+      hasLoad:false,
+      selectItemOk:0
     };
   },
+  onShow() {
+      let that = this
+      if(that.form.customId != 0 && !that.$util.isEmpty(that.form.customId) && that.form.selectCustomOk==1){
+        that.form.selectCustomOk = 0
+        kjCustomSet({id:that.form.customId}).then(res=>{
+          if(res.code == 1){
+            that.$msg(res.msg)
+          }
+        })
+      }
+      if(this.selectItemOk == 1){
+        this.selectItemOk = 0
+        setItem({losingItem:this.losingItem,zjGatheringItem:this.zjGatheringItem}).then(res=>{
+          if(res.code == 1){
+            that.$msg(res.msg)
+          }
+        })
+      }
+  },
   methods: {
+    goBack(){
+      uni.navigateBack()
+    },
     init(){
       if(this.hasLoad){
         return false
@@ -65,13 +78,12 @@ export default {
           this.$forceUpdate()
         }
       })
-      mainMy().then(res=>{
+      getMyExtInfo().then(res=>{
         if(res.code == 1){
-          if(res.data.shopExt){
-            this.form.losingItem = res.data.shopExt.losingItem
-            this.form.gatheringItem = res.data.shopExt.gatheringItem
-            this.form.zjGatheringItem = res.data.shopExt.zjGatheringItem
-          }
+          this.losingItem = res.data.losingItem
+          this.zjGatheringItem = res.data.zjGatheringItem
+          this.losingItemName = res.data.losingItemName
+          this.zjGatheringItemName = res.data.zjGatheringItemName
         }
       })
     },
@@ -80,34 +92,12 @@ export default {
     },
     selectMyItem(no){
       if(no ==0){
-        this.$util.pageTo({ url: '/admin/item/selectItem?style=2&losingItem='+this.form.losingItem})
+        this.$util.pageTo({ url: '/admin/item/selectItem?style=2&losingItem='+this.losingItem})
       }else if(no == 1){
-        this.$util.pageTo({ url: '/admin/item/selectItem?style=2&gatheringItem='+this.form.gatheringItem})
-      }else if(no == 2){
-        this.$util.pageTo({ url: '/admin/item/selectItem?style=2&zjGatheringItem='+this.form.zjGatheringItem})
+        this.$util.pageTo({ url: '/admin/item/selectItem?style=2&zjGatheringItem='+this.zjGatheringItem})
       }else{
         //先操作
       }
-    },
-    formSubmit() {
-      let that = this
-      if(that.form.customId == 0 || that.$util.isEmpty(that.form.customId)){
-        that.$msg('请选择快捷开单对应的客户')
-        return false
-      }
-      setItem(this.form).then(ret=>{
-        if(ret.code == 1){
-          kjCustomSet({id:that.form.customId}).then(res=>{
-            if(res.code == 1){
-              that.$msg(res.msg)
-              setTimeout(function(){
-                that.$store.commit("setLoginInfo", {})
-                that.$util.pageTo({url: "/admin/home/workbench",type: 3})
-              },1000)
-            }
-          })
-        }
-      })
     }
   },
 };

+ 4 - 0
hdApp/src/api/shop/ext.js

@@ -18,4 +18,8 @@ export const getExtInfo = data => {
 
 export const setItem = data => {
 	return https.post('/shop-ext/set-item', data)
+}
+
+export const getMyExtInfo = data => {
+	return https.get('/shop-ext/my-info', data)
 }