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

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