Ver código fonte

快捷开单的设置

shish 1 ano atrás
pai
commit
c7c17f6bb4
2 arquivos alterados com 11 adições e 3 exclusões
  1. 3 3
      hdApp/src/admin/shop/sk.vue
  2. 8 0
      hdApp/src/api/shop/index.js

+ 3 - 3
hdApp/src/admin/shop/sk.vue

@@ -17,7 +17,7 @@
 </template>
 <script>
 import TuiListCell from "@/components/plugin/list-cell";
-import { skCustom,skCustomSet } from "@/api/shop";
+import { kjCustom,kjCustomSet } from "@/api/shop";
 export default {
   name: "sk",
   components: {TuiListCell},
@@ -35,7 +35,7 @@ export default {
       if(this.hasLoad){
         return false
       }
-      skCustom().then(res=>{
+      kjCustom().then(res=>{
         if(res.code == 1){
           this.hasLoad = true
           this.form.customName = res.data.custom.name
@@ -53,7 +53,7 @@ export default {
         that.$msg('请选择门店')
         return false
       }
-      skCustomSet({id:that.form.customId}).then(res=>{
+      kjCustomSet({id:that.form.customId}).then(res=>{
           if(res.code == 1){
             that.$msg(res.msg)
             setTimeout(function(){

+ 8 - 0
hdApp/src/api/shop/index.js

@@ -105,4 +105,12 @@ export const getPrint = data => {
 //获取采购所支持的支付方式
 export const getCgPayWay = data => {
 	return https.get('/shop/get-cg-pay-way', data)
+}
+
+export const kjCustom = data => {
+	return https.get('/shop/kj-custom', data)
+}
+
+export const kjCustomSet = data => {
+	return https.get('/shop/kj-custom-set', data)
 }