'注释淘鲜达'

This commit is contained in:
wtq
2025-12-09 16:58:48 +08:00
parent 88cd73b90b
commit 1b18e0d011
10 changed files with 121 additions and 121 deletions

View File

@@ -59,7 +59,7 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
4|银豹
11|微盟微商城
14|抖店
16|淘鲜达
<!-- 16|淘鲜达 -->
#### vendorOrderID 订单号(前端显示的订单号)

View File

@@ -616,21 +616,21 @@ function setMTStoreAutoText(params) {
*/
function taoUpdateStatusOrTimeOrPoints(vendorOrgCode, json, fn) {
let formData = new FormData()
// formData.append('vendorOrgCode', '34402634')
formData.append('vendorOrgCode', vendorOrgCode)
formData.append('txdStores', JSON.stringify(json))
$ajax.post('v2/store/UpdateTxdStore', formData, {
}).then((res) => {
if (res.data.code === '0') {
fn && fn(res.data)
} else {
msgWarning('淘鲜达平台修改失败:' + res.data.desc)
}
}).catch((err) => {
msgWarning(err)
hideLoad()
})
// let formData = new FormData()
// // formData.append('vendorOrgCode', '34402634')
// formData.append('vendorOrgCode', vendorOrgCode)
// formData.append('txdStores', JSON.stringify(json))
// $ajax.post('v2/store/UpdateTxdStore', formData, {
// }).then((res) => {
// if (res.data.code === '0') {
// fn && fn(res.data)
// } else {
// msgWarning('淘鲜达平台修改失败:' + res.data.desc)
// }
// }).catch((err) => {
// msgWarning(err)
// hideLoad()
// })
}

View File

@@ -112,7 +112,7 @@ export default {
9: '0', // 京西
11: '0',
14: '0', // 抖店
16: '0' // 淘鲜达
// 16: '0' // 淘鲜达
}
if (!Array.isArray(val)) {
vendorStoreConds[+val] = '1'

View File

@@ -493,10 +493,10 @@
></el-input>
</div>
</el-table-column>
<!-- 折扣 pricePercentage -->
<!-- 折扣 :label=" form.vendorID !== 16 ?'商品折扣':'折扣价'" -->
<el-table-column
v-if="form.type !== 0"
:label=" form.vendorID !== 16?'商品折扣':'折扣价'"
:label=" form.vendorID !== 16 ?'商品折扣':'折扣价'"
align="center"
width="112px"
>
@@ -899,10 +899,10 @@ export default {
{},
{},
{},
{
key: "taoSyncStatus",
name: "淘鲜达",
}
// {
// key: "taoSyncStatus",
// name: "淘鲜达",
// }
],
pickData: [],
actPriceDia: false,

View File

@@ -83,28 +83,28 @@ export default {
let time3 = Number(this.openTime2)
let time4 = Number(this.closeTime2)
// 修改淘鲜达的营业时间
let taoStore = this.currentDialog.StoreMaps.filter(item => item.vendorID === 16)
// 淘鲜达门店存在
if (taoStore.length && taoStore[0].isSync === 1) {
let startMin ='' + time1
let endMax ='' + time2
if (time3) startMin ='' + Math.min(time1, time3)
if (time4) endMax = '' + Math.max(time2, time4)
// // 修改淘鲜达的营业时间
// let taoStore = this.currentDialog.StoreMaps.filter(item => item.vendorID === 16)
// // 淘鲜达门店存在
// if (taoStore.length && taoStore[0].isSync === 1) {
// let startMin ='' + time1
// let endMax ='' + time2
// if (time3) startMin ='' + Math.min(time1, time3)
// if (time4) endMax = '' + Math.max(time2, time4)
taoUpdateStatusOrTimeOrPoints(
taoStore[0].vendorOrgCode,
{
flag: [2],
txdStoreID:taoStore[0].vendorStoreID,
startTime: this.prefixZero(startMin,4),
endTime:this.prefixZero(endMax,4)
},
(res) => {
console.log('更新营业时间',res)
}
)
}
// taoUpdateStatusOrTimeOrPoints(
// taoStore[0].vendorOrgCode,
// {
// flag: [2],
// txdStoreID:taoStore[0].vendorStoreID,
// startTime: this.prefixZero(startMin,4),
// endTime:this.prefixZero(endMax,4)
// },
// (res) => {
// console.log('更新营业时间',res)
// }
// )
// }
updateStore(this.currentDialog.id, {
openTime1: time1,
closeTime1: time2,

View File

@@ -26,10 +26,10 @@
:value="3"
label="饿百"
></el-option>
<el-option
<!-- <el-option
:value="16"
label="淘鲜达"
></el-option>
></el-option> -->
</el-select>
</el-form-item>
<el-form-item

View File

@@ -156,7 +156,7 @@
<el-option label="未绑定" value="-1"></el-option>
</el-select>
</div>
<div style="margin: 3px 0">
<!-- <div style="margin: 3px 0">
<span>淘鲜达:</span>
<el-select
v-model="searchForm.vendorStoreConds['16']"
@@ -166,7 +166,7 @@
<el-option label="已绑定" value="1"></el-option>
<el-option label="未绑定" value="-1"></el-option>
</el-select>
</div>
</div> -->
<!-- 专送门店 -->
<div style="margin-top: 5px; border-top: 1px solid #dcdfe6">
专送门店
@@ -951,7 +951,7 @@
></el-button>
</div> -->
<!-- 淘鲜达 -->
<div style="width: 50%">
<!-- <div style="width: 50%">
<span
:class="{
openStatus1: testStatus(scope.row.StoreMaps, 16) === 1,
@@ -988,7 +988,7 @@
: 'el-icon-plus'
"
></el-button>
</div>
</div> -->
</div>
</template>
</el-table-column>
@@ -1542,7 +1542,7 @@ export default {
9: '0', // 京西
11: '0',
14: '0', // 抖店
16: '0' // 淘鲜达
// 16: '0' // 淘鲜达
},
// jdCond: 0, // -1未关联 0不限定 1有关联
// elmCond: 0,
@@ -2104,7 +2104,7 @@ export default {
let vendorName = ['京东到家', '美团', '饿了么', '饿百', '抖店']
vendorName[9] = '京西商城'
vendorName[14] = '抖店'
vendorName[16] = '淘鲜达'
// vendorName[16] = '淘鲜达'
// let storeID = item[vendorArr[vendorID]]
// 找到平台
let vendor = item.StoreMaps.filter(
@@ -2515,10 +2515,10 @@ export default {
'抖店门店名称',
'抖店门店状态',
'抖店调价套餐',
'淘鲜达门店编号',
'淘鲜达门店名称',
'淘鲜达门店状态',
'淘鲜达调价套餐',
// '淘鲜达门店编号',
// '淘鲜达门店名称',
// '淘鲜达门店状态',
// '淘鲜达调价套餐',
'京西商城门店编号',
'京西商城门店名称',
'京西商城门店状态',
@@ -3172,24 +3172,24 @@ export default {
}
}
// 修改淘鲜达门店信息
let taoStore = storeInfo.StoreMaps.filter(
(item) => item.vendorID === 16
)
if (taoStore.length && taoStore[0].isSync === 1) {
taoUpdateStatusOrTimeOrPoints(
taoStore[0].vendorOrgCode,
{
flag: [1],
txdStoreID: taoStore[0].vendorStoreID,
// status:e === 1?"营业":"不营业"
status: num === 1 ? 1 : -1
},
(res) => {
// console.log('res,更改营业状态的数据',res)
}
)
}
// // 修改淘鲜达门店信息
// let taoStore = storeInfo.StoreMaps.filter(
// (item) => item.vendorID === 16
// )
// if (taoStore.length && taoStore[0].isSync === 1) {
// taoUpdateStatusOrTimeOrPoints(
// taoStore[0].vendorOrgCode,
// {
// flag: [1],
// txdStoreID: taoStore[0].vendorStoreID,
// // status:e === 1?"营业":"不营业"
// status: num === 1 ? 1 : -1
// },
// (res) => {
// // console.log('res,更改营业状态的数据',res)
// }
// )
// }
this.$message({
message: '修改营业状态成功',

View File

@@ -122,7 +122,7 @@
<el-checkbox :label="1">美团</el-checkbox>
<el-checkbox :label="3">饿百</el-checkbox>
<el-checkbox :label="14">抖音</el-checkbox>
<el-checkbox :label="16">淘鲜达</el-checkbox>
<!-- <el-checkbox :label="16">淘鲜达</el-checkbox> -->
</el-checkbox-group>
<el-checkbox size="small" border v-model="searchForm6.isAsync">不等待处理结果</el-checkbox> <!-- 不等待处理结果 -->
<el-checkbox size="small" border v-model="searchForm6.isContinueWhenError">单个失败继续</el-checkbox> <!-- 单个同步失败是否继续 -->
@@ -889,7 +889,7 @@
</div>
</el-collapse-item>
<!-- ************************** 批量绑定淘鲜达门店 ************************** -->
<el-collapse-item title="批量绑定淘鲜达门店" name="38">
<!-- <el-collapse-item title="批量绑定淘鲜达门店" name="38">
<div class="box1">
<div style="display:flex;margin-left:25px;">
<el-select v-model="searchForm38.vendorOrgCode" placeholder="请选择平台账号">
@@ -898,7 +898,7 @@
<el-button style="margin-left:80px" type="primary" size="mini" @click="dowmTXdTemplate">下载样表</el-button>
</div>
<div class="excelTable" style="margin-top:20px;">
<!-- <el-upload
<el-upload
class="upload-demo"
action=""
:multiple="false"
@@ -910,7 +910,7 @@
style="margin-left:0 !important;"
>
<div class="el-upload__text">拖拽<em>excel</em>到此处</div>
</el-upload> -->
</el-upload>
<jx-upload-file
:action="''"
:drag="true"
@@ -929,7 +929,7 @@
<el-button size="small" type="primary" @click="submitForm38">提交</el-button>
</div>
</div>
</el-collapse-item>
</el-collapse-item> -->
<!-- ************************** 更新抖店结算 ************************** -->
<el-collapse-item el-collapse-item title="更新抖店结算" name="39">
<div class="box1">
@@ -1117,7 +1117,7 @@ export default {
data() {
return {
logisticsUpdatePrice: "", // 物流
txdStoreBindData: [], // 淘鲜达门店绑定数据
// txdStoreBindData: [], // 淘鲜达门店绑定数据
mtUpdatePrice: "", // 美团价格
tacActive: "first",
searchForm1: {
@@ -1498,18 +1498,18 @@ export default {
hideLoad()
},
dowmTXdTemplate() {
let json = [
{
京西门店id: 668470,
门店id: "JX668470",
门店名称: "芬姐菜市",
"淘鲜达渠道店营业状态(营业/不营业)": "营业",
}
];
// 下载表格
json2Excel(json, "批量绑定淘鲜达门店样表");
},
// dowmTXdTemplate() {
// let json = [
// {
// 京西门店id: 668470,
// 门店id: "JX668470",
// 门店名称: "芬姐菜市",
// "淘鲜达渠道店营业状态(营业/不营业)": "营业",
// }
// ];
// // 下载表格
// json2Excel(json, "批量绑定淘鲜达门店样表");
// },
async submitForm38() {
if (!this.searchForm38.vendorOrgCode) {
this.$message({
@@ -1520,15 +1520,15 @@ export default {
return
}
let json = []
this.txdStoreBindData.forEach((item) => {
// console.log('item',item)
json.push({
vendorStoreID: item["门店id"],
vendorStoreName: "" + item["门店名称"],
status: "" + item["淘鲜达渠道店营业状态(营业/不营业)"],
storeID: item["京西门店id"]
})
})
// this.txdStoreBindData.forEach((item) => {
// // console.log('item',item)
// json.push({
// vendorStoreID: item["门店id"],
// vendorStoreName: "" + item["门店名称"],
// status: "" + item["淘鲜达渠道店营业状态(营业/不营业)"],
// storeID: item["京西门店id"]
// })
// })
let form = new FormData()
form.append('bindInfos', JSON.stringify(json))
@@ -2556,9 +2556,9 @@ export default {
logisticsFileChange(file) {
importExcel2(this, file.raw, "logisticsUpdatePrice");
},
TXdFileChange(file) {
importExcel2(this, file.raw, "txdStoreBindData");
},
// TXdFileChange(file) {
// importExcel2(this, file.raw, "txdStoreBindData");
// },
downloadExcel() {
// let a = document.createElement('a');

View File

@@ -35,11 +35,11 @@ export const ConVendorNameMap = new Map()
name: '抖店',
nick: '抖'
})
.set(16, {
vendorID: 16,
name: '淘鲜达',
nick: '淘'
})
// .set(16, {
// vendorID: 16,
// name: '淘鲜达',
// nick: '淘'
// })
// .set(5, {
// vendorID: 5,
// name: '京狗',
@@ -71,11 +71,11 @@ export const ConVendorName = [
name: '抖店',
nick: '抖'
},
{
vendorID: 16,
name: '淘鲜达',
nick: '淘'
},
// {
// vendorID: 16,
// name: '淘鲜达',
// nick: '淘'
// },
// {
// vendorID: 5,
// name: '京狗',
@@ -125,11 +125,11 @@ export const ConVendorNameWm = [
name: '抖店',
nick: '抖'
},
{
vendorID: 16,
name: '淘鲜达',
nick: '淘'
},
// {
// vendorID: 16,
// name: '淘鲜达',
// nick: '淘'
// },
// {
// vendorID: 5,
// name: '京狗',

View File

@@ -249,14 +249,14 @@ export default new Vuex.Store({
let ebArr = res4.filter(item => item.code === 3)
let MTArr = res4.filter(item => item.code === 1)
let DYArr = res4.filter(item => item.code === 14)
let TaoArr = res4.filter(item => item.code === 16)
// let TaoArr = res4.filter(item => item.code === 16)
let jdStoreArr = res4.filter(item => item.code === 5)
commit('SET_ALLPLATEARR', res4) //全部的平台
commit('SET_JDVENDOR', jdArr) //京东
commit('SET_EBVENDOR', ebArr) //饿百
commit('SET_MTVENDOR', MTArr) //美团
commit('SET_DYVENDOR', DYArr) //抖店
commit('SET_TAOVENDOR', TaoArr) //淘鲜达
// commit('SET_TAOVENDOR', TaoArr) //淘鲜达
commit('SET_JDSTOREVENDOR', jdStoreArr) //京东商城
commit('save_vendorOrgCode', res3)
}