Merge branch 'test' of https://e.coding.net/g-cphe0354/cashier_front/cashier_admin_app into ymf
This commit is contained in:
commit
0430e560e7
|
|
@ -42,7 +42,7 @@
|
|||
</view>
|
||||
|
||||
<view class="page-cell">
|
||||
<view class="label">桌位费<view v-if="vdata.isTableFee" class="tableFee" @tap="go.to('PAGES_SHOP_EDITVAL',{name:'tableFee',value: vdata.shopInfo.tableFee})">{{vdata.shopInfo.tableFee}}</view></view>
|
||||
<view class="label">桌位费<view v-if="!vdata.isTableFee" class="tableFee" @tap="go.to('PAGES_SHOP_EDITVAL',{name:'tableFee',value: vdata.shopInfo.tableFee})">{{vdata.shopInfo.tableFee}}</view></view>
|
||||
<view class="right">
|
||||
<view>
|
||||
<up-checkbox-group><up-checkbox label="免桌位费" v-model:checked="vdata.isTableFee" activeColor="#0FC161" shape="circle" @change="isTableFeeChange"> </up-checkbox></up-checkbox-group>
|
||||
|
|
@ -117,6 +117,7 @@ import storageManage from '@/commons/utils/storageManage.js'
|
|||
import go from '@/commons/utils/go.js'
|
||||
import infoBox from '@/commons/utils/infoBox.js'
|
||||
import { $uploadFile } from '@/http/yskApi/file.js'
|
||||
import { forIn } from 'lodash';
|
||||
|
||||
const uploadImg = ref()
|
||||
const phone = ref(null)
|
||||
|
|
@ -159,6 +160,8 @@ let refreshData = (e) => {
|
|||
let params = {
|
||||
id : vdata.shopInfo.id,
|
||||
}
|
||||
params[e.name] = e.value
|
||||
vdata.type = e.name;
|
||||
vdata.inputValue = e.value;
|
||||
updateShopInfo(params,'input')
|
||||
}
|
||||
|
|
@ -212,18 +215,7 @@ let radioChange = (n) => {
|
|||
let updateShopInfo = (params,type) => {
|
||||
editShopInfo(params).then((res) => {
|
||||
if (type && type == "input") {
|
||||
console.log(vdata.type)
|
||||
switch ( vdata.type ){
|
||||
case "shopName":
|
||||
vdata.shopInfo.shopName = vdata.inputValue;
|
||||
break;
|
||||
case "phone":
|
||||
vdata.shopInfo.phone = vdata.inputValue;
|
||||
break;
|
||||
case "tableFee":
|
||||
vdata.shopInfo.tableFee = vdata.inputValue;
|
||||
break;
|
||||
}
|
||||
vdata.shopInfo[vdata.type] = vdata.inputValue;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
@ -316,6 +308,7 @@ let switchChange = ( type ) => {
|
|||
params.lng = vdata.shopInfo.lng;
|
||||
params.lat = vdata.shopInfo.lat;
|
||||
params.address = vdata.shopInfo.address;
|
||||
params.isUseVip = vdata.shopInfo.isUseVip;
|
||||
break;
|
||||
case "status":
|
||||
params.status = vdata.shopInfo.status;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</view>
|
||||
<view class="bom">
|
||||
<view @click="saveImage">下载收款码</view>
|
||||
<view>下载收款码样式</view>
|
||||
<!-- <view>下载收款码样式</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue