'删除与京狗相关的页面'

This commit is contained in:
wtq
2025-11-13 09:47:31 +08:00
parent f759c3a7c3
commit 79246f8af0
20 changed files with 283 additions and 454 deletions

View File

@@ -73,17 +73,17 @@ export const APISyncStores = async (json, noLoading = true) => {
}
}
// 同步京狗商品库存
export const APISyncJGStoresSkus = async (json, noLoading = true) => {
try {
let res = await api('v2/sync/SyncJdsStoresSkus', {
method: 'PUT',
data: json2query(json),
noLoading
})
return res
} catch (e) {
console.error('SyncStores', e)
throw e
}
}
// // 同步京狗商品库存
// export const APISyncJGStoresSkus = async (json, noLoading = true) => {
// try {
// let res = await api('v2/sync/SyncJdsStoresSkus', {
// method: 'PUT',
// data: json2query(json),
// noLoading
// })
// return res
// } catch (e) {
// console.error('SyncStores', e)
// throw e
// }
// }

View File

@@ -55,7 +55,7 @@
<span class="level-id">{{ data.id }}</span>
<span class="level-bind">
<span :class="{ bindActive: data.storeMapsJD }"></span>
<span :class="{ bindActive: data.storeMapsJG }"></span>
<!-- <span :class="{ bindActive: data.storeMapsJG }"></span> -->
<span :class="{ bindActive: data.storeMapsMT }"></span>
<span :class="{ bindActive: data.storeMapsEB }">饿</span>
<span :class="{ bindActive: data.storeMapsJX }">西</span>

View File

@@ -55,7 +55,7 @@
<span class="level-id">{{ data.id }}</span>
<span class="level-bind">
<span :class="{ bindActive: data.storeMapsJD }"></span>
<span :class="{ bindActive: data.storeMapsJG }"></span>
<!-- <span :class="{ bindActive: data.storeMapsJG }"></span> -->
<span :class="{ bindActive: data.storeMapsMT }"></span>
<span :class="{ bindActive: data.storeMapsEB }">饿</span>
<span :class="{ bindActive: data.storeMapsJX }">西</span>

View File

@@ -254,14 +254,14 @@
<!-- 京东分类绑定 -->
<br />
<!-- 京狗分类绑定 -->
<el-form-item label="京狗分类绑定:">
<!-- <el-form-item label="京狗分类绑定:">
<cateBind
:type="'JG'"
@getClass="getClass"
v-model="newCat.jgCategoryID">
</cateBind>
</el-form-item>
<br />
<br /> -->
<!-- 美团分类绑定 -->
<el-form-item label="美团分类绑定:">
<cateBind
@@ -435,7 +435,7 @@
<!-- 京东分类绑定 -->
<br />
<!-- 京狗分类绑定 -->
<el-form-item
<!-- <el-form-item
label="京狗分类绑定:"
v-if="
currentPick.level === 2 ||
@@ -451,7 +451,7 @@
v-model="cateInfo.jdsCategoryID">
</cateBind>
</el-form-item>
<br />
<br /> -->
<!-- 美团分类绑定 -->
<el-form-item
label="美团分类绑定:"
@@ -735,11 +735,11 @@
if(this.jDCategoryData && this.jDCategoryData.length>0) return
await store.dispatch('getCate',{vendorID:0,parentID:-1})
break
case 'JG':
// 京狗
if(this.jGCategoryData && this.jGCategoryData.length>0) return
await store.dispatch('getCate',{vendorID:5,parentID:-1})
break
// case 'JG':
// // 京狗
// if(this.jGCategoryData && this.jGCategoryData.length>0) return
// await store.dispatch('getCate',{vendorID:5,parentID:-1})
// break
case 'MT':
// 美团
if(this.mTCategoryData && this.mTCategoryData.length>0) return
@@ -1049,12 +1049,12 @@
this.showjdCatError = false;
}
} else if (ref === "editorjgCategoryID") {
// 京狗
if (this.$refs[ref].currentValue.length === 0) {
this.showjgCatError = true;
} else {
this.showjgCatError = false;
}
// // 京狗
// if (this.$refs[ref].currentValue.length === 0) {
// this.showjgCatError = true;
// } else {
// this.showjgCatError = false;
// }
} else if (ref === "editoreBaiCategoryID") {
// 饿百
if (this.$refs[ref].currentValue.length === 0) {

View File

@@ -689,17 +689,17 @@ export default {
this.jdCatLevel2 = jDcat.filter((item) => item.level === 2);
this.jdCatLevel3 = jDcat.filter((item) => item.level === 3);
}
if (!jGcat) {
this.$message({
message: "[获取京狗分类列表失败] " + jGcat.desc,
type: "warning",
center: true,
});
} else {
this.jgCatLevel1 = jGcat.filter((item) => item.level === 1);
this.jgCatLevel2 = jGcat.filter((item) => item.level === 2);
this.jgCatLevel3 = jGcat.filter((item) => item.level === 3);
}
// if (!jGcat) {
// this.$message({
// message: "[获取京狗分类列表失败] " + jGcat.desc,
// type: "warning",
// center: true,
// });
// } else {
// this.jgCatLevel1 = jGcat.filter((item) => item.level === 1);
// this.jgCatLevel2 = jGcat.filter((item) => item.level === 2);
// this.jgCatLevel3 = jGcat.filter((item) => item.level === 3);
// }
// 判断饿分类是否获取成功
if (!eBaicat) {
this.$message({
@@ -752,23 +752,23 @@ export default {
});
this.jdCatData = jdCatData;
// 组合京狗分类
// 把三级挂载到二级上
let jgCatData = this.jgCatLevel1;
let temjgCat = this.jgCatLevel2;
temjgCat.forEach((le2) => {
let level3 = this.jgCatLevel3.filter(
(le3) => Number(le3.parentID) === Number(le2.vendorCategoryID)
);
le2.children = level3;
});
// 把二级挂载到一级上
jgCatData.forEach((le1) => {
let level2 = temjgCat.filter(
(le2) => Number(le2.parentID) === Number(le1.vendorCategoryID)
);
le1.children = level2;
});
this.jgCatData = jgCatData;
// // 把三级挂载到二级上
// let jgCatData = this.jgCatLevel1;
// let temjgCat = this.jgCatLevel2;
// temjgCat.forEach((le2) => {
// let level3 = this.jgCatLevel3.filter(
// (le3) => Number(le3.parentID) === Number(le2.vendorCategoryID)
// );
// le2.children = level3;
// });
// // 把二级挂载到一级上
// jgCatData.forEach((le1) => {
// let level2 = temjgCat.filter(
// (le2) => Number(le2.parentID) === Number(le1.vendorCategoryID)
// );
// le1.children = level2;
// });
// this.jgCatData = jgCatData;
// 组合饿百分类
// 把三级挂载到二级上
let eBaiCatData = this.eBaiCatLevel1;
@@ -880,28 +880,28 @@ export default {
}
},
// 京狗分类转换
switchJgCat() {
if (this.currentPick.jdsCategoryID) {
let leaf = this.currentPick.jdsCategoryID + "";
let parent = this.jgCatLevel3.filter(
(item) => Number(item.vendorCategoryID) === Number(leaf)
)[0]
? this.jgCatLevel3.filter(
(item) => Number(item.vendorCategoryID) === Number(leaf)
)[0].parentID
: "";
let parentparent = this.jgCatLevel2.filter(
(item) => Number(item.vendorCategoryID) === Number(parent)
)[0]
? this.jgCatLevel2.filter(
(item) => Number(item.vendorCategoryID) === Number(parent)
)[0].parentID
: "";
return [parentparent, parent, leaf];
} else {
return [];
}
},
// switchJgCat() {
// if (this.currentPick.jdsCategoryID) {
// let leaf = this.currentPick.jdsCategoryID + "";
// let parent = this.jgCatLevel3.filter(
// (item) => Number(item.vendorCategoryID) === Number(leaf)
// )[0]
// ? this.jgCatLevel3.filter(
// (item) => Number(item.vendorCategoryID) === Number(leaf)
// )[0].parentID
// : "";
// let parentparent = this.jgCatLevel2.filter(
// (item) => Number(item.vendorCategoryID) === Number(parent)
// )[0]
// ? this.jgCatLevel2.filter(
// (item) => Number(item.vendorCategoryID) === Number(parent)
// )[0].parentID
// : "";
// return [parentparent, parent, leaf];
// } else {
// return [];
// }
// },
// eBai分类转换
switcheBaiCat() {
if (this.currentPick.ebaiCategoryID) {
@@ -1472,11 +1472,11 @@ export default {
}
} else if (ref === "editorjgCategoryID") {
// 京狗
if (this.$refs[ref].currentValue.length === 0) {
this.showjgCatError = true;
} else {
this.showjgCatError = false;
}
// if (this.$refs[ref].currentValue.length === 0) {
// this.showjgCatError = true;
// } else {
// this.showjgCatError = false;
// }
} else if (ref === "editoreBaiCategoryID") {
// 饿百
if (this.$refs[ref].currentValue.length === 0) {
@@ -1539,14 +1539,14 @@ export default {
jdCatID = jdCatID[jdCatID.length - 1];
}
// 保存京狗分类数组
let jgCatID = "";
if (
this.$refs.editorjgCategoryID &&
this.$refs.editorjgCategoryID.currentValue.length
) {
jgCatID = this.$refs.editorjgCategoryID.currentValue;
jgCatID = jgCatID[jgCatID.length - 1];
}
// let jgCatID = "";
// if (
// this.$refs.editorjgCategoryID &&
// this.$refs.editorjgCategoryID.currentValue.length
// ) {
// jgCatID = this.$refs.editorjgCategoryID.currentValue;
// jgCatID = jgCatID[jgCatID.length - 1];
// }
// 保存饿百分类数组
let eBaiCatID = "";
if (

View File

@@ -239,7 +239,7 @@
</el-form-item>
<!-- 京狗库存总开关 -->
<el-form-item label="京狗库存总开关" prop="jdsStockSwitch">
<!-- <el-form-item label="京狗库存总开关" prop="jdsStockSwitch">
<el-switch
v-model="skuName.jdsStockSwitch"
active-text=""
@@ -248,7 +248,7 @@
:inactive-value="0"
>
</el-switch>
</el-form-item>
</el-form-item> -->
<el-form-item label="畅销品开关" v-if="currentPage !== 'createGood'">
<el-switch
@@ -270,13 +270,13 @@
</el-form-item>
<!-- 京狗分类绑定 -->
<el-form-item label="京狗分类绑定" >
<!-- <el-form-item label="京狗分类绑定" >
<cateBind
:type="'JG'"
@getClass="getClass"
v-model="skuName.jdsCategoryID">
</cateBind>
</el-form-item>
</el-form-item> -->
<!-- 美团分类绑定 -->
<el-form-item label="美团分类绑定" >
@@ -690,13 +690,13 @@ export default {
price:0, // 商品价格
sellPoint:"", // 商品卖点
preparationTime:0, // 饿百准备时长
jdsStockSwitch:1, // 京狗库存开关
// jdsStockSwitch:1, // 京狗库存开关
places:[], // 城市
isGlobal: 0, // 是否全国
categoryID:291, // 京西一级分类 默认为暂无分类,勿删
categoryID2: 0, // 京西二级分类
jdCategoryID:"", // 京东分类绑定
jdsCategoryID:"", // 京狗分类绑定
// jdsCategoryID:"", // 京狗分类绑定
mtwmCategoryID:"", // 美团分类绑定
ddCategoryID:"", // 抖店分类绑定
ebaiCategoryID:"", // 饿百分类绑定
@@ -829,7 +829,7 @@ export default {
if(reqSkuName.jdCategoryID) await this.getClass('JD') // 京东
if(reqSkuName.jdsCategoryID) await this.getClass('JG') // 京狗
// if(reqSkuName.jdsCategoryID) await this.getClass('JG') // 京狗
if(reqSkuName.mtwmCategoryID) {
this.specialPictures = reqSkuName.specialPictures ? JSON.parse(reqSkuName.specialPictures) : ""

View File

@@ -191,11 +191,11 @@ export default {
if(this.jDCategoryData && this.jDCategoryData.length>0) return
await store.dispatch('getCate',{vendorID:0,parentID:-1})
break
case 'JG':
// 京狗
if(this.jGCategoryData && this.jGCategoryData.length>0) return
await store.dispatch('getCate',{vendorID:5,parentID:-1})
break
// case 'JG':
// // 京狗
// if(this.jGCategoryData && this.jGCategoryData.length>0) return
// await store.dispatch('getCate',{vendorID:5,parentID:-1})
// break
case 'MT':
// 美团
if(this.mTCategoryData && this.mTCategoryData.length>0) return

View File

@@ -164,7 +164,6 @@
:inline="true" size="small">
<!-- 父级 -->
<el-form-item label="父级名称:" style="color: #606266">
<!-- {{this.currentPick.name}} -->
{{parentPath}}
</el-form-item>
<!-- 父级 -->
@@ -177,41 +176,6 @@
</el-form-item>
<!-- 名称 -->
<br>
<!-- 类型选择 -->
<!-- <el-form-item label="类型:">
<el-radio-group :value="currentPick.type">
<el-radio :label="0" border disabled v-if="currentPick.type === 0">商品分类</el-radio>
<el-radio :label="1" border disabled v-if="currentPick.type === 1">sku分类</el-radio>
</el-radio-group>
</el-form-item> -->
<!-- 类型选择 -->
<!-- <br> -->
<!-- 分类图片 -->
<!-- <el-form-item label="分类图片:">
<div class="pic">
<upload-img class="upload-cat-img" @addPic="addImg($event, 'addCreateL1')"
@delPic="delImg('delCreateL1')" :imgUrl="newCat.img" :imgSize="1" :imgWidth="100" :imgHeight="100">
</upload-img>
<div class="des">100px*100px</div>
</div>
</el-form-item> -->
<!-- 分类图片 -->
<!-- <br> -->
<!-- 启用禁用 -->
<!-- <el-form-item label="状态:">
<el-switch v-model="newCat.status" active-text="启用" inactive-text="禁用" :active-value="1"
:inactive-value="0" disabled>
</el-switch>
</el-form-item> -->
<!-- 启用禁用 -->
<!-- <br> -->
<!-- 启用同步 -->
<!-- <el-form-item label="同步:">
<el-switch v-model="newCat.isSync" active-text="同步" inactive-text="不同步" :active-value="0"
:inactive-value="1" :disabled="parentSync === 1">
</el-switch>
</el-form-item>
<br> -->
<!-- 京西分类绑定 -->
<el-form-item label="京西分类绑定:">
<el-cascader v-if="jxcatData && jxcatData.length" ref="editorNewSecondJxCategoryID" placeholder="试试搜索:蔬菜"
@@ -225,74 +189,7 @@
<el-switch v-model="newCat.isHidden"></el-switch>
</el-form-item>
<!-- 菜市客户端分类是否显示 -->
<!-- 调价百分比 -->
<!-- <el-form-item label="调价" label-width="60px" prop="jdPricePercentage">
<el-input style="width: 110px;" v-model.number="newCat.jdPricePercentage">
<span slot="append">%</span>
</el-input>
</el-form-item> -->
<!-- 调价百分比 -->
<br>
<!-- 京狗分类绑定 -->
<!-- <el-form-item label="京东分类绑定:">
<el-cascader
ref="createjgCategoryID"
placeholder="试试搜索:蔬菜"
filterable
clearable
:options="jgCatData"
:props="jgCatProp"
:value="newCat.jgCategoryID"
separator=">"
style="width: 300px;"
></el-cascader>
</el-form-item>
<br> -->
<!-- 美团分类绑定 -->
<!-- <el-form-item label="美团分类绑定:">
<el-cascader
ref="createmTCategoryID"
placeholder="试试搜索:蔬菜"
filterable
clearable
:options="mTCatData"
:props="mTCatProp"
:value="newCat.mtwmCategoryID"
separator=">"
style="width: 300px;"
></el-cascader>
</el-form-item> -->
<!-- 美团分类绑定 -->
<!-- 调价百分比 -->
<!-- <el-form-item label="调价" label-width="60px" prop="mtwmPricePercentage">
<el-input style="width: 110px;" v-model.number="newCat.mtwmPricePercentage">
<span slot="append">%</span>
</el-input>
</el-form-item> -->
<!-- 调价百分比 -->
<!-- <br> -->
<!-- 饿百分类绑定 -->
<!-- <el-form-item label="饿百分类绑定:">
<el-cascader
ref="createeBaiCategoryID"
placeholder="试试搜索:蔬菜"
filterable
clearable
:options="eBaiCatData"
:props="eBaiCatProp"
:value="newCat.ebaiCategoryID"
separator=">"
style="width: 300px;"
></el-cascader>
</el-form-item> -->
<!-- 饿百分类绑定 -->
<!-- 调价百分比 -->
<!-- <el-form-item label="调价" label-width="60px" prop="ebaiPricePercentage">
<el-input style="width: 110px;" v-model.number="newCat.ebaiPricePercentage">
<span slot="append">%</span>
</el-input>
</el-form-item> -->
<!-- <br> -->
<!-- 按钮 -->
<el-button type="danger" size="medium" style="margin-left: 130px; margin-top: 20px;" @click="returnLevel1">
返回</el-button>
@@ -386,79 +283,7 @@
<el-switch v-model="currentPick.isHidden"></el-switch>
</el-form-item>
<!-- 菜市客户端分类是否显示 -->
<!-- 调价百分比 -->
<!-- <el-form-item label="调价" label-width="60px" prop="jdPricePercentage" v-if="currentPick.level===2 || currentPick.children.length ===0">
<el-input style="width: 110px;" v-model.number="currentPick.jdPricePercentage">
<span slot="append">%</span>
</el-input>
</el-form-item> -->
<!-- 调价百分比 -->
<br>
<!-- 京狗分类绑定 -->
<!-- <el-form-item label="京狗分类绑定:" v-if="currentPick.level===2 || !('children' in currentPick && currentPick.children.length !== 0)">
<el-cascader
ref="editorjgCategoryID"
placeholder="试试搜索:蔬菜"
filterable
clearable
:options="jgCatData"
:props="jgCatProp"
:value="switchJgCat"
separator=">"
style="width: 300px;"
></el-cascader>
</el-form-item> -->
<!-- <br> -->
<!-- 美团分类绑定 -->
<!-- <el-form-item label="美团分类绑定:" v-if="currentPick.level===2 || !('children' in currentPick && currentPick.children.length !== 0)">
<el-cascader
ref="editormTCategoryID"
placeholder="试试搜索:蔬菜"
filterable
clearable
:options="mTCatData"
:props="mTCatProp"
:value="switchmTCat"
separator=">"
style="width: 300px;"
></el-cascader> -->
<!-- <span
style="color: #f56c6c;font-size: 12px;position: absolute;bottom: -25px;left:0;" v-if="showeBaiCatError">请选择分类</span> -->
<!-- </el-form-item> -->
<!-- 美团分类绑定 -->
<!-- 调价百分比 -->
<!-- <el-form-item label="调价" label-width="60px" prop="mtwmPricePercentage" v-if="currentPick.level===2 || currentPick.children.length ===0">
<el-input style="width: 110px;" v-model.number="currentPick.mtwmPricePercentage">
<span slot="append">%</span>
</el-input>
</el-form-item> -->
<!-- 调价百分比 -->
<!-- <br> -->
<!-- 饿百分类绑定 -->
<!-- <el-form-item label="饿百分类绑定:" v-if="currentPick.level===2 || !('children' in currentPick && currentPick.children.length !== 0)">
<el-cascader
ref="editoreBaiCategoryID"
placeholder="试试搜索:蔬菜"
filterable
clearable
:options="eBaiCatData"
:props="eBaiCatProp"
:value="switcheBaiCat"
separator=">"
style="width: 300px;"
></el-cascader> -->
<!-- <span
style="color: #f56c6c;font-size: 12px;position: absolute;bottom: -25px;left:0;" v-if="showeBaiCatError">请选择分类</span> -->
<!-- </el-form-item> -->
<!-- 饿百分类绑定 -->
<!-- 调价百分比 -->
<!-- <el-form-item label="调价" label-width="60px" prop="ebaiPricePercentage" v-if="currentPick.level===2 || currentPick.children.length ===0">
<el-input style="width: 110px;" v-model.number="currentPick.ebaiPricePercentage">
<span slot="append">%</span>
</el-input>
</el-form-item> -->
<!-- 调价百分比 -->
<!-- <br> -->
<!-- 保存按钮 -->
<div style="margin-top: 20px;">
@@ -774,17 +599,17 @@ export default {
this.jdCatLevel2 = jDcat.filter((item) => item.level === 2);
this.jdCatLevel3 = jDcat.filter((item) => item.level === 3);
}
if (!jGcat) {
this.$message({
message: "[获取京狗分类列表失败] " + jGcat.desc,
type: "warning",
center: true,
});
} else {
this.jgCatLevel1 = jGcat.filter((item) => item.level === 1);
this.jgCatLevel2 = jGcat.filter((item) => item.level === 2);
this.jgCatLevel3 = jGcat.filter((item) => item.level === 3);
}
// if (!jGcat) {
// this.$message({
// message: "[获取京狗分类列表失败] " + jGcat.desc,
// type: "warning",
// center: true,
// });
// } else {
// this.jgCatLevel1 = jGcat.filter((item) => item.level === 1);
// this.jgCatLevel2 = jGcat.filter((item) => item.level === 2);
// this.jgCatLevel3 = jGcat.filter((item) => item.level === 3);
// }
// 判断饿分类是否获取成功
if (!eBaicat) {
this.$message({
@@ -968,28 +793,28 @@ export default {
}
},
// 京狗分类转换
switchJgCat() {
if (this.currentPick.jdsCategoryID) {
let leaf = this.currentPick.jdsCategoryID + "";
let parent = this.jgCatLevel3.filter(
(item) => Number(item.vendorCategoryID) === Number(leaf)
)[0]
? this.jgCatLevel3.filter(
(item) => Number(item.vendorCategoryID) === Number(leaf)
)[0].parentID
: "";
let parentparent = this.jgCatLevel2.filter(
(item) => Number(item.vendorCategoryID) === Number(parent)
)[0]
? this.jgCatLevel2.filter(
(item) => Number(item.vendorCategoryID) === Number(parent)
)[0].parentID
: "";
return [parentparent, parent, leaf];
} else {
return [];
}
},
// switchJgCat() {
// if (this.currentPick.jdsCategoryID) {
// let leaf = this.currentPick.jdsCategoryID + "";
// let parent = this.jgCatLevel3.filter(
// (item) => Number(item.vendorCategoryID) === Number(leaf)
// )[0]
// ? this.jgCatLevel3.filter(
// (item) => Number(item.vendorCategoryID) === Number(leaf)
// )[0].parentID
// : "";
// let parentparent = this.jgCatLevel2.filter(
// (item) => Number(item.vendorCategoryID) === Number(parent)
// )[0]
// ? this.jgCatLevel2.filter(
// (item) => Number(item.vendorCategoryID) === Number(parent)
// )[0].parentID
// : "";
// return [parentparent, parent, leaf];
// } else {
// return [];
// }
// },
// eBai分类转换
switcheBaiCat() {
if (this.currentPick.ebaiCategoryID) {
@@ -1616,11 +1441,11 @@ export default {
}
} else if (ref === "editorjgCategoryID") {
// 京狗
if (this.$refs[ref].currentValue.length === 0) {
this.showjgCatError = true;
} else {
this.showjgCatError = false;
}
// if (this.$refs[ref].currentValue.length === 0) {
// this.showjgCatError = true;
// } else {
// this.showjgCatError = false;
// }
} else if (ref === "editoreBaiCategoryID") {
// 饿百
if (this.$refs[ref].currentValue.length === 0) {
@@ -1682,15 +1507,15 @@ export default {
jdCatID = this.$refs.editorjdCategoryID.currentValue;
jdCatID = jdCatID[jdCatID.length - 1];
}
// 保存京狗分类数组
let jgCatID = "";
if (
this.$refs.editorjgCategoryID &&
this.$refs.editorjgCategoryID.currentValue.length
) {
jgCatID = this.$refs.editorjgCategoryID.currentValue;
jgCatID = jgCatID[jgCatID.length - 1];
}
// // 保存京狗分类数组
// let jgCatID = "";
// if (
// this.$refs.editorjgCategoryID &&
// this.$refs.editorjgCategoryID.currentValue.length
// ) {
// jgCatID = this.$refs.editorjgCategoryID.currentValue;
// jgCatID = jgCatID[jgCatID.length - 1];
// }
// 保存饿百分类数组
let eBaiCatID = "";
if (

View File

@@ -200,10 +200,10 @@ export default {
name: "同步平台门店",
path: "/syncstore",
},
{
name: "同步京狗商品库存",
path: "/syncjggoods",
},
// {
// name: "同步京狗商品库存",
// path: "/syncjggoods",
// },
// {
// name: '删除平台有京西没有',
// path: '/syncdeletegoods',

View File

@@ -373,8 +373,8 @@
<br v-if="scope.row.jxStoreID == 666666">
<el-button type="text" size="medium" @click="handleCreateWaybill(scope.row)">手动召唤配送</el-button>
<br>
<el-button type="text" size="medium" @click="handleCallJGWL(scope.row)"
v-show="[5].includes(scope.row.vendorID)">京狗订单召唤京东物流</el-button>
<!-- <el-button type="text" size="medium" @click="handleCallJGWL(scope.row)"
v-show="[5].includes(scope.row.vendorID)">京狗订单召唤京东物流</el-button> -->
<br v-show="[5].includes(scope.row.vendorID)">
<el-button type="text" size="medium" @click="cancelAll3rdWaybills(scope.row)">取消三方运单</el-button>
<br>
@@ -1487,25 +1487,25 @@ export default {
}
});
},
handleCallJGWL(order) {
this.$confirm("是否对京狗订单召唤京东物流", "确认").then(
async (confirm) => {
if (confirm) {
try {
await api("v2/order/SendJdwlForJdsOrder", {
method: "POST",
data: `vendorOrderID=${order.vendorOrderID}`,
});
this.$toast("召唤成功");
} catch (e) {
msgWarning(e);
} finally {
hideLoad();
}
}
}
);
},
// handleCallJGWL(order) {
// this.$confirm("是否对京狗订单召唤京东物流", "确认").then(
// async (confirm) => {
// if (confirm) {
// try {
// await api("v2/order/SendJdwlForJdsOrder", {
// method: "POST",
// data: `vendorOrderID=${order.vendorOrderID}`,
// });
// this.$toast("召唤成功");
// } catch (e) {
// msgWarning(e);
// } finally {
// hideLoad();
// }
// }
// }
// );
// },
cancelCreateWaybill: function () {
this.createWaybillOrder = {};
this.showCreateWaybill = false;

View File

@@ -1199,7 +1199,7 @@ export default {
// 9: ["西", "jxID", "jxSyncStatus", "jxPrice", "jxLockTime"],
14: ["抖", "ddID", "ddSyncStatus", "ddPrice", "ddLockTime"],
16: ["淘", "taoID", "taoSyncStatus", "taoPrice", "taoLockTime"],
5: ["狗", "jdsID", "jdsSyncStatus", "jdsPrice", "jdsLockTime"],
// 5: ["狗", "jdsID", "jdsSyncStatus", "jdsPrice", "jdsLockTime"],
};
},
maxStoresLength() {
@@ -2317,8 +2317,8 @@ export default {
json["京东同步状态"] = sku.jdSyncStatus;
json["美团skuID"] = sku.mtwmID;
json["美团同步状态"] = sku.mtwmSyncStatus;
json["京狗skuID"] = sku.jdsID;
json["京狗同步状态"] = sku.jdsSyncStatus;
// json["京狗skuID"] = sku.jdsID;
// json["京狗同步状态"] = sku.jdsSyncStatus;
json["商品规格"] = skuName.unit;
json["商品库存"] = sku.stock;
json["商品货架码"] = sku.locationCode && sku.locationCode !== 'EMPTY_VALUE' ? sku.locationCode : '';
@@ -2328,7 +2328,7 @@ export default {
json["美团平台价(单位:分)"] = sku.mtwmPrice;
json["饿百平台价(单位:分)"] = sku.ebaiPrice;
json["抖店平台价(单位:分)"] = sku.ybPrice;
json["京狗平台价(单位:分)"] = sku.jdsPrice;
// json["京狗平台价(单位:分)"] = sku.jdsPrice;
json["规格数值"] = sku.specQuality;
json["规格单位"] = sku.specUnit;
json["门店可售状态"] = sku.storeSkuStatus ? "可售" : "不可售";

View File

@@ -1587,10 +1587,10 @@ export default {
}
})
},
//切换京狗绑定门店
jgStoreIDchange(num) {
this.getStoreVendorMaoWay(Number(num[0]) - 1)
},
// //切换京狗绑定门店
// jgStoreIDchange(num) {
// this.getStoreVendorMaoWay(Number(num[0]) - 1)
// },
async getStoreVendorMaoWay(index, changeAuthAddress) {
if (this.vendorQuery.isBind) {
getStoreVendorMap(

View File

@@ -101,7 +101,7 @@
<el-option label="未绑定" value="-1"></el-option>
</el-select>
</div>
<div style="margin: 3px 0">
<!-- <div style="margin: 3px 0">
<span>&emsp;:</span>
<el-select
v-model="searchForm.vendorStoreConds['5']"
@@ -111,7 +111,7 @@
<el-option label="已绑定" value="1"></el-option>
<el-option label="未绑定" value="-1"></el-option>
</el-select>
</div>
</div> -->
<div style="margin: 3px 0">
<span>饿&emsp;:</span>
<el-select
@@ -906,8 +906,8 @@
"
></el-button>
</div>
<!-- 商城 -->
<div style="width: 50%">
<!-- 商城 -->
<!-- <div style="width: 50%">
<span
:class="{
openStatus1: testStatus(scope.row.StoreMaps, 5) === 1,
@@ -949,7 +949,7 @@
: 'el-icon-plus'
"
></el-button>
</div>
</div> -->
<!-- 淘鲜达 -->
<div style="width: 50%">
<span
@@ -2523,10 +2523,10 @@ export default {
'京西商城门店名称',
'京西商城门店状态',
'京西商城调价套餐',
'京狗门店编号',
'京狗门店名称',
'京狗门店状态',
'京狗调价套餐',
// '京狗门店编号',
// '京狗门店名称',
// '京狗门店状态',
// '京狗调价套餐',
'专送门店-美团',
'专送门店-美团开启状态', // status
'专送门店-美团营业状态', //vendorStatus
@@ -2548,7 +2548,7 @@ export default {
'京东上线状态',
'美团上线状态',
'饿百上线状态',
'京狗上线状态'
// '京狗上线状态'
]
// 销量
if (this.isSearchOrderCount) {
@@ -2659,10 +2659,10 @@ export default {
let jxName = ''
let jxStatus = ''
let jxPack = ''
let jgID = ''
let jgName = ''
let jgStatus = ''
let jgPack = ''
// let jgID = ''
// let jgName = ''
// let jgStatus = ''
// let jgPack = ''
if (item.StoreMaps) {
let arr0 = item.StoreMaps.filter((item) => item.vendorID === 0)
jdID = arr0.length === 0 ? '' : arr0[0].vendorStoreID
@@ -2734,16 +2734,16 @@ export default {
jxPack = arr9[0].pricePercentagePack || ''
}
// jg
let arr5 = item.StoreMaps.filter((item) => item.vendorID === 5)
jgID = arr5.length === 0 ? '' : arr5[0].vendorStoreID
if (arr5.length > 0) {
jgName = arr5[0].vendorStoreName || arr5[0].storeName
jgStatus =
item.status === 0
? '临时休息'
: this.switchStatus(arr5[0].status)
jgPack = arr5[0].pricePercentagePack || ''
}
// let arr5 = item.StoreMaps.filter((item) => item.vendorID === 5)
// jgID = arr5.length === 0 ? '' : arr5[0].vendorStoreID
// if (arr5.length > 0) {
// jgName = arr5[0].vendorStoreName || arr5[0].storeName
// jgStatus =
// item.status === 0
// ? '临时休息'
// : this.switchStatus(arr5[0].status)
// jgPack = arr5[0].pricePercentagePack || ''
// }
}
// CourierMaps
let deliveryMt = ''
@@ -2791,7 +2791,7 @@ export default {
let MtbussinessStatus = ''
let EbbussinessStatus = ''
let jdbussinessStatus = ''
let jdsbussinessStatus = ''
// let jdsbussinessStatus = ''
let vendorObj = {
1: '上线',
'-1': '下线',
@@ -2805,8 +2805,8 @@ export default {
MtbussinessStatus = vendorObj[itemVendorStore.isOnline + '']
if (itemVendorStore.vendorID === 3)
EbbussinessStatus = vendorObj[itemVendorStore.isOnline + '']
if (itemVendorStore.vendorID === 5)
jdsbussinessStatus = vendorObj[itemVendorStore.isOnline + '']
// if (itemVendorStore.vendorID === 5)
// jdsbussinessStatus = vendorObj[itemVendorStore.isOnline + '']
}
}
// arr
@@ -2878,10 +2878,10 @@ export default {
jxName,
jxStatus,
jxPack,
jgID,
jgName,
jgStatus,
jgPack,
// jgID,
// jgName,
// jgStatus,
// jgPack,
deliveryMt,
deliveryMtStatus,
deliveryMtOpenStatus,
@@ -2903,7 +2903,7 @@ export default {
jdbussinessStatus,
MtbussinessStatus,
EbbussinessStatus,
jdsbussinessStatus
// jdsbussinessStatus
]
// 销量
if (this.isSearchOrderCount) {

View File

@@ -39,7 +39,7 @@
<el-checkbox :label="0">京东</el-checkbox>
<el-checkbox :label="1">美团</el-checkbox>
<el-checkbox :label="3">饿百</el-checkbox>
<el-checkbox :label="5">京狗</el-checkbox>
<!-- <el-checkbox :label="5">京狗</el-checkbox> -->
</el-checkbox-group>
<el-button size="small" type="primary" @click="submitForm6" style> </el-button>
</div>

View File

@@ -6,8 +6,8 @@ export const backstageVer = '1.0.76'
* v1 正式服
* v2 beta
*/
export const apiEdition = process.env.NODE_ENV === 'development' ? 'v2' : 'v2' // 这串是在线上运行的,下面改成自己判断的了,不行就换回来
// export const apiEdition = 'v1' // 这串是开发时候用=的,下面改成自己判断的了,不行就换回来
// export const apiEdition = process.env.NODE_ENV === 'development' ? 'v2' : 'v2' // 这串是在线上运行的,下面改成自己判断的了,不行就换回来
export const apiEdition = 'v1' // 这串是开发时候用=的,下面改成自己判断的了,不行就换回来
@@ -40,11 +40,11 @@ export const ConVendorNameMap = new Map()
name: '淘鲜达',
nick: '淘'
})
.set(5, {
vendorID: 5,
name: '京狗',
nick: '狗'
})
// .set(5, {
// vendorID: 5,
// name: '京狗',
// nick: '狗'
// })
.set(9, {
vendorID: 9,
name: '京西',
@@ -76,11 +76,11 @@ export const ConVendorName = [
name: '淘鲜达',
nick: '淘'
},
{
vendorID: 5,
name: '京狗',
nick: '狗'
},
// {
// vendorID: 5,
// name: '京狗',
// nick: '狗'
// },
{
vendorID: 9,
name: '京西',
@@ -130,11 +130,11 @@ export const ConVendorNameWm = [
name: '淘鲜达',
nick: '淘'
},
{
vendorID: 5,
name: '京狗',
nick: '狗'
},
// {
// vendorID: 5,
// name: '京狗',
// nick: '狗'
// },
{
vendorID: 9,
name: '京西',

View File

@@ -118,10 +118,12 @@ export default {
{
value: 3,
label: '饿百'
}, {
value: 5,
label: '京狗'
}],
},
// {
// value: 5,
// label: '京狗'
// }
],
page: 1,
totalCount: 0,
dialogMsgShow: false,

View File

@@ -249,10 +249,12 @@ export default {
{
value: 3,
label: '饿百'
}, {
value: 5,
label: '京狗'
}],
},
// {
// value: 5,
// label: '京狗'
// }
],
page: 1,
totalCount: 0,
dialogMsgShow: false,

View File

@@ -65,8 +65,8 @@
border
v-model="searchForm.isContinueWhenError">单个失败继续</el-checkbox>
<!-- 单个同步失败是否继续 -->
<!-- 按钮 -->
<el-button type="primary" @click="submitForm" style=""> </el-button>
<!-- 按钮 @click="submitForm" -->
<el-button type="primary" style=""> </el-button>
<!-- 按钮 -->
</el-form>
</div>
@@ -77,7 +77,7 @@ import StoresPick from "@/components/cmp/storePick/index.vue";
import {showLoad, hideLoad} from '@/tools/loading.js'
// import {json2Excel, importExcel2} from '@/tools/excel.js'
import syncMsg from '@/tools/syncMsg'
import {APISyncJGStoresSkus} from '@/apis/APIsync.js'
// import {APISyncJGStoresSkus} from '@/apis/APIsync.js'
import msgWarning from '@/tools/msgwarning'
import {mapGetters} from 'vuex'
export default {
@@ -124,24 +124,24 @@ export default {
isAsync
isContinueWhenError
*/
// 点击查询按钮
submitForm () {
this.$refs.searchForm.validate(async valid => {
if (valid) {
try {
showLoad()
let res = await APISyncJGStoresSkus({
...this.searchForm
})
syncMsg(res)
} catch (e) {
msgWarning(e)
} finally {
hideLoad()
}
}
})
},
// // 点击查询按钮
// submitForm () {
// this.$refs.searchForm.validate(async valid => {
// if (valid) {
// try {
// showLoad()
// let res = await APISyncJGStoresSkus({
// ...this.searchForm
// })
// syncMsg(res)
// } catch (e) {
// msgWarning(e)
// } finally {
// hideLoad()
// }
// }
// })
// },
// 修改storeIDs
updateStoreIDs (arr) {
this.searchForm.storeIDs = arr

View File

@@ -622,14 +622,14 @@ const router = new Router({
title: '同步平台门店'
}
},
{
path: 'syncjggoods',
name: 'syncjggoods',
component: () => import('@/pages/sync/sync-jg-goods'),
meta: {
title: '同步京狗商品库存'
}
},
// {
// path: 'syncjggoods',
// name: 'syncjggoods',
// component: () => import('@/pages/sync/sync-jg-goods'),
// meta: {
// title: '同步京狗商品库存'
// }
// },
// {
// path: 'toolgroupmanager',
// name: 'ToolGroupManager',

View File

@@ -339,12 +339,12 @@ export default new Vuex.Store({
commitName:'SET_eBCategory'
}
break
case 5:
valueNew = {
name:'京狗',
commitName:'SET_jGCategory'
}
break
// case 5:
// valueNew = {
// name:'京狗',
// commitName:'SET_jGCategory'
// }
// break
// case 9:
// valueNew = {
// name:'京西',