shish 3 жил өмнө
parent
commit
a503d1d288

+ 1 - 2
ghsApp/src/admin/home/apply.vue

@@ -63,8 +63,7 @@ export default {
                     list:[
                     list:[
                         {name: "员工",img: `${this.$constant.imgUrl}/ghs/home/yggl.png`,url: "/admin/staff/list"},
                         {name: "员工",img: `${this.$constant.imgUrl}/ghs/home/yggl.png`,url: "/admin/staff/list"},
                         {name: "员工业绩",img: `${this.$constant.imgUrl}/ghs/home/icon_ygyj.png`,url: "/admin/staff/achieve"},
                         {name: "员工业绩",img: `${this.$constant.imgUrl}/ghs/home/icon_ygyj.png`,url: "/admin/staff/achieve"},
-                        {name: "门店",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/shop/list"},
-                        {name: "物流管理",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/shop/wl"},
+                        {name: "门店",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/shop/list"}
                     ]
                     ]
                 },
                 },
                 {
                 {

+ 4 - 0
ghsApp/src/api/custom/index.js

@@ -1,5 +1,9 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 import https from '@/plugins/luch-request_0.0.7/request'
 
 
+export const changeWlName = data => {
+	return https.get('/custom/change-wl-name', data)
+}
+
 export const changeWl = data => {
 export const changeWl = data => {
 	return https.get('/custom/change-wl', data)
 	return https.get('/custom/change-wl', data)
 }
 }

+ 7 - 25
ghsApp/src/pagesClient/member/detail.vue

@@ -112,13 +112,10 @@
               </div>
               </div>
             </tui-list-cell>
             </tui-list-cell>
 
 
-            <tui-list-cell class="line-cell" :hover="false" :arrow="true">
+            <tui-list-cell class="line-cell" :hover="false">
               <div class="tui-title">配送物流</div>
               <div class="tui-title">配送物流</div>
-              <picker mode="selector" :value="form.wlId" :range="wlList" range-key="name" @change="changeWlFn" class="tui-input" >
-                <input v-model="form.wlId" name="wlId" type="text" hidden />
-                <div v-if="Number(form.wlId)>0">{{ wlSelData.name }}</div>
-                <div class="tui-placeholder" v-else>待设置</div>
-              </picker>
+              <input v-model="userInfo.wlName" @click="userInfo.wlName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="digit" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;" />
+              <button class="admin-button-com blue mini-btn" @tap="changeWlFn">确定</button>
             </tui-list-cell>
             </tui-list-cell>
 
 
         </view>
         </view>
@@ -144,8 +141,7 @@ import TuiListCell from '@/components/plugin/list-cell'
 import { share } from "@/mixins";
 import { share } from "@/mixins";
 import ModalModule from "@/components/plugin/modal"
 import ModalModule from "@/components/plugin/modal"
 import { getUserDet,debt} from "@/api/member";
 import { getUserDet,debt} from "@/api/member";
-import { changeShowStock,changeWl } from "@/api/custom"
-import { getAllWl } from "@/api/shop"
+import { changeShowStock,changeWl,changeWlName } from "@/api/custom"
 import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName} from "@/api/custom";
 import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName} from "@/api/custom";
 export default {
 export default {
   name: "detail",
   name: "detail",
@@ -206,13 +202,11 @@ export default {
   computed: {},
   computed: {},
   onLoad() {},
   onLoad() {},
   methods: {
   methods: {
-    changeWlFn(e) {
-      let that = this
-      this.wlSelData = this.wlList[e.detail.value]
-      changeWl({id:this.option.id,wlId:that.wlSelData.id}).then(res=>{
+    changeWlFn() {
+      let wlName = this.userInfo.wlName||''
+      changeWlName({id:this.option.id,wlName:wlName}).then(res=>{
         if(res.code == 1){
         if(res.code == 1){
           this.$msg(res.msg)
           this.$msg(res.msg)
-          that.form.wlId = that.wlSelData.id
         }
         }
       })
       })
     },
     },
@@ -326,18 +320,6 @@ export default {
         this.form.black = this.userInfo.black
         this.form.black = this.userInfo.black
         this.form.showStock = this.userInfo.showStock
         this.form.showStock = this.userInfo.showStock
         this.discount = parseFloat(res.data.discount)
         this.discount = parseFloat(res.data.discount)
-        this.form.wlId = this.userInfo.wlId
-        getAllWl().then(res=>{
-          if(res.code == 1){
-            that.wlList = res.data.list
-            let newData = that.wlList.filter(
-              e => this.form.wlId == e.id
-            )
-            if(!this.$util.isEmpty(newData)){
-              that.wlSelData = newData[0]
-            }
-          }
-        })
       })
       })
     },
     },
     orderMoreFn() {
     orderMoreFn() {

+ 5 - 36
hdApp/src/admin/billing/affirmGhs.vue

@@ -92,13 +92,9 @@
 					<text style="color: #3385FF">¥{{ form.sendCost }}</text>
 					<text style="color: #3385FF">¥{{ form.sendCost }}</text>
 					</tui-list-cell>
 					</tui-list-cell>
 
 
-					<tui-list-cell class="line-cell" :hover="false" :arrow="true" v-if="form.sendType == 3">
+					<tui-list-cell class="line-cell" :hover="false" v-if="form.sendType == 3">
 						<view class="tui-title ">配送物流</view>
 						<view class="tui-title ">配送物流</view>
-						<picker mode="selector" :value="form.wlId" :range="wlList" range-key="name" @change="changeWlFn" class="tui-input" >
-						<input v-model="form.wlId" name="wlId" type="text" hidden />
-						<view v-if="Number(form.wlId)>0">{{ wlSelData.name }}</view>
-						<view class="tui-placeholder" v-else>请选择</view>
-						</picker>
+						<input type="digit" placeholder="请填写物流" v-model="form.wlName" @focus="form.wlName=''" placeholder-class="tui-placeholder"/>
 					</tui-list-cell>
 					</tui-list-cell>
 
 
 					<tui-list-cell class="line-cell" :hover="false" v-if="(form.sendType == 2 || form.sendType == 0)&& Number(form.packCost)>0">
 					<tui-list-cell class="line-cell" :hover="false" v-if="(form.sendType == 2 || form.sendType == 0)&& Number(form.packCost)>0">
@@ -152,7 +148,7 @@ import appFormSend from "@/components/app-form-send";
 import appSendTime from "@/components/app-send-time";
 import appSendTime from "@/components/app-send-time";
 const formUtil = require("@/utils/formValidation.js");
 const formUtil = require("@/utils/formValidation.js");
 import AppDatePicker from "@/components/app-date-picker";
 import AppDatePicker from "@/components/app-date-picker";
-import { getGhsDataApi,getGhsWl } from "@/api/ghs";
+import { getGhsDataApi } from "@/api/ghs";
 import { freight,createOrder } from "@/api/purchase";
 import { freight,createOrder } from "@/api/purchase";
 import { mapActions, mapGetters } from "vuex";
 import { mapActions, mapGetters } from "vuex";
 import { shopHouponHas } from '@/api/coupon'
 import { shopHouponHas } from '@/api/coupon'
@@ -203,7 +199,6 @@ export default {
 				product: "",
 				product: "",
         		hbId: '0',
         		hbId: '0',
 				packCost:0,
 				packCost:0,
-				wlId:0,
 				wlName:''
 				wlName:''
 			},
 			},
 			showCustomer: false,
 			showCustomer: false,
@@ -261,12 +256,6 @@ export default {
 	},
 	},
 	methods: {
 	methods: {
 		...mapActions(["initMerchantInfo"]),
 		...mapActions(["initMerchantInfo"]),
-		changeWlFn(e) {
-			let that = this
-			this.wlSelData = this.wlList[e.detail.value]
-			that.form.wlId = that.wlSelData.id
-			that.form.wlName = that.wlSelData.name
-		},
 		changeSendType(num){
 		changeSendType(num){
 			this.form.sendType = num
 			this.form.sendType = num
 			if(num == 2){
 			if(num == 2){
@@ -444,25 +433,6 @@ export default {
 			getGhsDataApi({id:id}).then(res => {
 			getGhsDataApi({id:id}).then(res => {
 				this.ghsInfo = res.data
 				this.ghsInfo = res.data
 				this.form.packCost = res.data.packCost?parseFloat(res.data.packCost):0
 				this.form.packCost = res.data.packCost?parseFloat(res.data.packCost):0
-				that.form.wlId = this.ghsInfo.customWlId ? this.ghsInfo.customWlId : 0
-				getGhsWl({id:id}).then(res=>{
-					if(res.code == 1){
-						that.wlList = res.data.list
-						if(Number(that.form.wlId)>0){
-							let newData = that.wlList.filter(
-								e => that.form.wlId == e.id
-							)
-							if(!this.$util.isEmpty(newData)){
-								that.wlSelData = newData[0]
-								that.form.wlId = that.wlSelData.id
-								that.form.wlName = that.wlSelData.name
-							}else{
-								that.form.wlId = 0
-								that.form.wlName = ''
-							}
-						}
-					}
-				})
 			});
 			});
 		},
 		},
 		countAllPrices(e){
 		countAllPrices(e){
@@ -498,8 +468,8 @@ export default {
 			})
 			})
 
 
 			if(this.form.sendType == 3){
 			if(this.form.sendType == 3){
-				if(Number(this.form.wlId)<=0){
-					this.$msg('请选择物流')
+				if (this.$util.isEmpty(this.form.wlName)){
+					this.$msg('请填写物流')
 					return false
 					return false
 				}
 				}
 			}
 			}
@@ -522,7 +492,6 @@ export default {
 				product:JSON.stringify(product),
 				product:JSON.stringify(product),
 				ghsId:this.ghsInfo.id,
 				ghsId:this.ghsInfo.id,
 				hbId: this.form.hbId,
 				hbId: this.form.hbId,
-				wlId:this.form.wlId,
 				wlName:this.form.wlName,
 				wlName:this.form.wlName,
 				xj:JSON.stringify(xj)
 				xj:JSON.stringify(xj)
 			}
 			}