diff --git a/buyer/src/pages/home/orderCenter/MyOrder.vue b/buyer/src/pages/home/orderCenter/MyOrder.vue index c66c1ec5..fa03011e 100644 --- a/buyer/src/pages/home/orderCenter/MyOrder.vue +++ b/buyer/src/pages/home/orderCenter/MyOrder.vue @@ -29,7 +29,6 @@
{{ filterOrderStatus(order.orderStatus) }}
订单号:{{ order.sn }}      {{order.createTime}} -    {{ order.memberName | secrecyMobile }}
diff --git a/seller/src/api/goods.js b/seller/src/api/goods.js index 958e3770..36359d22 100644 --- a/seller/src/api/goods.js +++ b/seller/src/api/goods.js @@ -132,13 +132,13 @@ export const delSpec = (id, params) => { return deleteRequest(`/goods/spec/del/${id}`, params); }; // 获取商品规格值列表 -export const getSpecValuesListData = (id, params) => { - return getRequest(`/goods/spec-values/values/${id}`, params); -}; +// export const getSpecValuesListData = (id, params) => { +// return getRequest(`/goods/spec-values/values/${id}`, params); +// }; // 添加商品规格值 -export const saveSpecValues = (id, params) => { - return postRequest(`/goods/spec-values/save/${id}`, params); -}; +// export const saveSpecValues = (id, params) => { +// return postRequest(`/goods/spec-values/save/${id}`, params); +// }; // 查询某分类下的全部子分类列表 export const getGoodsCategory = parent_id => { diff --git a/seller/src/views/goods/goods-seller/goodsOperation.vue b/seller/src/views/goods/goods-seller/goodsOperation.vue index d892cdf4..b5dbab40 100644 --- a/seller/src/views/goods/goods-seller/goodsOperation.vue +++ b/seller/src/views/goods/goods-seller/goodsOperation.vue @@ -185,10 +185,7 @@
- + @@ -197,22 +194,8 @@
- - + +
@@ -853,6 +836,7 @@ export default { fieldData.unshift(fieldData.splice(index, 1)[0]); } }, + // 获取商品模板 GET_GoodsTemplate() { let searchParams = { saveType: "TEMPLATE", @@ -865,6 +849,7 @@ export default { } }); }, + // 编辑sku图片 editSkuPicture(row) { console.log(row); if (row.images && row.images.length > 0) { @@ -952,26 +937,6 @@ export default { } return !check; }, - async getActiveSkuItem(index, $index, item, val) { - this.specSelected = ""; - await this.GET_SkuSpec(); - }, - async getActiveSkuValueItem(index, $index, item, val) { - this.specValSelected = ""; - await this.GET_SkuSpecVal(item.spec_id); - }, - async editSkuItem(item, $index) { - if (item.name) { - API_GOODS.insertSpecSeller({ - specName: item.name, - categoryPath: this.baseInfoForm.categoryPath, - }).then((res) => { - if (res.message !== "60001") { - this.skuItemChange(item.name, $index); - } - }); - } - }, gotoGoodsList() { this.$router.push({ name: "goods" }); @@ -1170,25 +1135,7 @@ export default { } ); }, - async GET_SkuSpec() { - if(!this.specSelected){ - return; - } - let specResult = await API_GOODS.getSpecListSellerData({ - pageNumber: 1, - pageSize: 10, - specName: this.specSelected, - categoryPath: this.baseInfoForm.categoryPath, - }); - if (specResult.success && specResult.result.records.length > 0) { - this.specListSelected = specResult.result.records.map( - (i) => i.specName - ); - this.specList = specResult.result.records; - } else { - this.specListSelected = []; - } - }, + /** 添加规格项 */ addSkuItem() { if (this.skuInfo.length >= 5) { @@ -1296,49 +1243,6 @@ export default { */ this.renderTableData(); }, - /** 编辑规格值时触发 */ - async editSkuIValue(item, val, $index, index) { - await API_GOODS.saveSpecValuesSeller(item.spec_id, { - spec_value: [val.value], - }); - - /** - * 渲染规格详细表格 - */ - this.renderTableData(); - }, - /** 获取编辑时的skuInfo信息 */ - getSkuInfo() { - /** 下拉列表数据(skuData)存在时 检测productSkuInfo中对应的规格(spec_id)项 并且赋值于skuInfo中对应的规格项信息(描述 + 名称) */ - if (this.categoryId) { - API_GOODS.getSpecValuesListData(this.categoryId, {}).then( - (response) => { - this.skuData = response; - if ( - this.skuData.length > 0 && - Array.isArray(this.productSkuInfo) && - this.productSkuInfo.length > 0 - ) { - this.skuInfo = cloneObj(this.productSkuInfo); - if (this.skuInfo.length > 0) { - this.skuInfo.forEach((key) => { - this.skuData.forEach((item) => { - if (key.spec_id === item.spec_id) { - key.name = item.name; - key.spec_memo = item.spec_memo; - } - }); - }); - } - } - } - ); - } - /** - * 渲染规格详细表格 - */ - this.renderTableData(); - }, /** * 渲染table所需要的column 和 data */