Browse Source

更新客户

shish 1 year ago
parent
commit
9abfbab33e

+ 4 - 0
ghsPad/src/pages/home/cash.vue

@@ -117,6 +117,9 @@ export default {
 	},
 	},
 	methods: {
 	methods: {
 		init(){
 		init(){
+			this.getCustomData()
+		},
+		getCustomData(){
 			customList({ name: '',isCashier:1 }).then(res=>{
 			customList({ name: '',isCashier:1 }).then(res=>{
 				if(res.code == 1){
 				if(res.code == 1){
 					if(res.data.list.length > 12){
 					if(res.data.list.length > 12){
@@ -177,6 +180,7 @@ export default {
 			this.customName = '快捷开单'
 			this.customName = '快捷开单'
 			this.$refs.rightItemRef.currentCustomId = this.customId
 			this.$refs.rightItemRef.currentCustomId = this.customId
 			this.$refs.rightItemRef.itemRefresh()
 			this.$refs.rightItemRef.itemRefresh()
+			this.getCustomData()
 		},
 		},
 		changeProperty(property){
 		changeProperty(property){
 			this.currentProperty = property
 			this.currentProperty = property

+ 1 - 1
ghsPad/src/pages/home/components/customerList.vue

@@ -19,7 +19,7 @@
             </view>
             </view>
         
         
             <view class="user-list-item_box" @click.stop="cancelChoose()" 
             <view class="user-list-item_box" @click.stop="cancelChoose()" 
-            style="background-color:#a0a5ad;border:1upx solid #a0a5ad;text-align:center;">
+            style="background-color:#CDB79E;border:1upx solid #CDB79E;text-align:center;">
               <view class="head-box">
               <view class="head-box">
                 <view class="name" style="color:white;font-size:15upx;font-weight:bold;">取消</view>
                 <view class="name" style="color:white;font-size:15upx;font-weight:bold;">取消</view>
               </view>
               </view>