This commit is contained in:
wtq
2025-12-10 17:05:51 +08:00
parent 7bb4d4a630
commit 9f5684e980
6 changed files with 60 additions and 60 deletions

View File

@@ -26,12 +26,12 @@ const merchant = {
}, },
/** // /**
* 修改线上淘鲜达时间 // * 修改线上淘鲜达时间
*/ // */
update_txd_store: async (params: AnyObject): Promise<AnyObject> => { // update_txd_store: async (params: AnyObject): Promise<AnyObject> => {
return await request.api('/v2/store/UpdateTxdStore', 'POST', params) // return await request.api('/v2/store/UpdateTxdStore', 'POST', params)
}, // },
/** /**

View File

@@ -89,7 +89,7 @@ export default {
}), }),
}; };
await merchant.update_store(data); await merchant.update_store(data);
setTxdIngState(1) // setTxdIngState(1)
newAutoEnableAt.value = '' newAutoEnableAt.value = ''
toast("操作成功", 1) toast("操作成功", 1)
// state.value = 1; // state.value = 1;
@@ -114,7 +114,7 @@ export default {
}), }),
}; };
await merchant.update_store(data); await merchant.update_store(data);
setTxdIngState(-1) // setTxdIngState(-1)
newAutoEnableAt.value = '' newAutoEnableAt.value = ''
// businessStatus.value = item.id // businessStatus.value = item.id
toast("操作成功", 1) toast("操作成功", 1)
@@ -127,38 +127,38 @@ export default {
} }
} }
/** // /**
* 设置第三方平台 // * 设置第三方平台
*/ // */
async function setTxdIngState(type: number) { // async function setTxdIngState(type: number) {
if (isTxd()) { // if (isTxd()) {
let data = { // let data = {
vendorOrgCode: 34402634, // vendorOrgCode: 34402634,
txdStores: JSON.stringify({ // txdStores: JSON.stringify({
flag: [1], // flag: [1],
txdStoreID: `JX${getStorage('storeID')}`, // txdStoreID: `JX${getStorage('storeID')}`,
status: type // status: type
}) // })
} // }
await merchant.update_txd_store(data) // await merchant.update_txd_store(data)
} // }
// 更新线上平台的营业状态 // // 更新线上平台的营业状态
let arr = store.state.storeInfo.allStoreInfo.StoreMaps.map((item: AnyObject) => { // let arr = store.state.storeInfo.allStoreInfo.StoreMaps.map((item: AnyObject) => {
if (item.isSync) return item.vendorID + '' // if (item.isSync) return item.vendorID + ''
}) // })
arr = arr.filter((item: string) => item !== '9') // arr = arr.filter((item: string) => item !== '9')
if (arr.length > 0) { // if (arr.length > 0) {
let data = { // let data = {
storeID: getStorage('storeID'), // storeID: getStorage('storeID'),
vendorIDs: arr.join(','), // vendorIDs: arr.join(','),
status: type // status: type
} // }
await merchant.update_vendors_store_states(data); // await merchant.update_vendors_store_states(data);
} // }
// uni.navigateBack() // // uni.navigateBack()
} // }
async function storeRest() { async function storeRest() {
let autoEnableAt = currentTime.value let autoEnableAt = currentTime.value
@@ -172,7 +172,7 @@ export default {
}), }),
}; };
await merchant.update_store(data); await merchant.update_store(data);
setTxdIngState(0) // setTxdIngState(0)
toast("操作成功", 1); toast("操作成功", 1);
popupTime.value.close() popupTime.value.close()
businessStatus.value = 0; businessStatus.value = 0;

View File

@@ -142,23 +142,23 @@ export default {
// ******************** 修改淘鲜达线上时间 ***************************** // ******************** 修改淘鲜达线上时间 *****************************
//#region //#region
async function setTxdIngTime(time: AnyObject) { // async function setTxdIngTime(time: AnyObject) {
if (isTxd()) { // if (isTxd()) {
let data = { // let data = {
vendorOrgCode: 34402634, // vendorOrgCode: 34402634,
txdStores: JSON.stringify({ // txdStores: JSON.stringify({
flag: [2], // flag: [2],
txdStoreID: `JX${getStorage('storeID')}`, // txdStoreID: `JX${getStorage('storeID')}`,
startTime: time.timer1, // startTime: time.timer1,
endTime: time.timer2 // endTime: time.timer2
}) // })
} // }
let res = await merchant.update_txd_store(data) // let res = await merchant.update_txd_store(data)
console.log('ZSW-res', res); // console.log('ZSW-res', res);
} else { // } else {
console.log('此店铺暂无淘鲜达店铺') // console.log('此店铺暂无淘鲜达店铺')
} // }
} // }
//#endregion //#endregion
return { return {

View File

@@ -4,7 +4,7 @@
<view> 门店营业时间需在配送站点营业时间内才会有骑手配送</view> <view> 门店营业时间需在配送站点营业时间内才会有骑手配送</view>
<view> 如需在此时间范围外营业请咨询业务经理调整配送方式</view> <view> 如需在此时间范围外营业请咨询业务经理调整配送方式</view>
<view> 第二段营业时间需要在第一段营业时间之后</view> <view> 第二段营业时间需要在第一段营业时间之后</view>
<view> 淘鲜达仅使用营业时间一</view> <!-- <view> 淘鲜达仅使用营业时间一</view> -->
</view> </view>
<view class="time-root"> <view class="time-root">

View File

@@ -606,8 +606,8 @@ function vendorID2(vendorID: number) {
return '微盟' return '微盟'
case 14: case 14:
return '抖音小时购' return '抖音小时购'
case 16: // case 16:
return '淘鲜达' // return '淘鲜达'
default: default:
return '未知平台' return '未知平台'
} }

View File

@@ -488,7 +488,7 @@ export default {
"11": "微盟微商城", "11": "微盟微商城",
"12": "国美", "12": "国美",
"14": "抖店平台", "14": "抖店平台",
"16": "淘鲜达", // "16": "淘鲜达",
"101": "达达众包", "101": "达达众包",
"102": "美团配送", "102": "美团配送",
"103": "蜂鸟配送", "103": "蜂鸟配送",