diff --git a/manager/src/views/lili-dialog/link-dialog.vue b/manager/src/views/lili-dialog/link-dialog.vue index 0c68f0e3..e3dadf82 100644 --- a/manager/src/views/lili-dialog/link-dialog.vue +++ b/manager/src/views/lili-dialog/link-dialog.vue @@ -1,16 +1,26 @@ \ No newline at end of file diff --git a/manager/src/views/lili-dialog/wap.js b/manager/src/views/lili-dialog/wap.js index 2d2d675c..a9ee6add 100644 --- a/manager/src/views/lili-dialog/wap.js +++ b/manager/src/views/lili-dialog/wap.js @@ -29,5 +29,10 @@ export default [ title: "其他", url: "3", name: "other" - } + }, + { + title: "专题", + url: "4", + name: "special" + }, ]; diff --git a/manager/src/views/lili-floor-renovation/floorList.vue b/manager/src/views/lili-floor-renovation/floorList.vue index c65b84cd..a0473207 100644 --- a/manager/src/views/lili-floor-renovation/floorList.vue +++ b/manager/src/views/lili-floor-renovation/floorList.vue @@ -82,7 +82,9 @@ export default { pageNumber:1, pageSize:10, sort: 'createTime', - order: 'desc' + order: 'desc', + pageType:"INDEX", + pageClientType:"PC", }, columns: [ // 列表展示的column @@ -106,10 +108,10 @@ export default { type: "INDEX", title: "首页", }, - // { - // type: "SPECIAL", - // title: "专题", - // }, + { + type: "SPECIAL", + title: "专题", + } ], list: [], // 模板列表 }; @@ -125,7 +127,8 @@ export default { const data = this.formData; data.status ? (data.pageShow = "OPEN") : (data.pageShow = "CLOSE"); delete data.status; - (data.pageType = "INDEX"), (data.pageClientType = "PC"); + // (data.pageType = "INDEX"), (data.pageClientType = "PC"); + (data.pageType = this.searchForm.pageType), (data.pageClientType = "PC"); if (data.id) { API_floor.updateHome(data.id, data).then((res) => { this.$Message.success("编辑模板成功"); @@ -144,6 +147,13 @@ export default { } }); }, + + clickType(type,index){ + this.searchForm.pageNumber = 1 + this.searchForm.pageType = type; + this.selectedIndex = index; + this.getTemplateList(); + }, createTemp() { // 新建表单 diff --git a/manager/src/views/lili-floor-renovation/wap/main.vue b/manager/src/views/lili-floor-renovation/wap/main.vue index 62bd675e..423c1afa 100644 --- a/manager/src/views/lili-floor-renovation/wap/main.vue +++ b/manager/src/views/lili-floor-renovation/wap/main.vue @@ -1,8 +1,8 @@ @@ -11,16 +11,21 @@ import layout from "./index"; import navbar from "./navbar"; export default { components: { - navbar, + navbar + }, + mounted() { + this.pagetype = this.$route.query.pagetype; }, data() { return { layout, // 装修模块 name: "index", // 装修的页面 + pagetype: "INDEX" }; }, methods: { - selected(val) { // 顶部栏点击切换 + selected(val) { + // 顶部栏点击切换 this.name = val; } } diff --git a/manager/src/views/lili-floor-renovation/wap/navbar.vue b/manager/src/views/lili-floor-renovation/wap/navbar.vue index 21aa9c28..bcafad62 100644 --- a/manager/src/views/lili-floor-renovation/wap/navbar.vue +++ b/manager/src/views/lili-floor-renovation/wap/navbar.vue @@ -9,9 +9,7 @@ v-for="(item, index) in way" :key="index" :type="item.selected ? 'primary' : ''" - > - {{ item.title }} - + >{{ item.title }}
@@ -21,7 +19,7 @@
临时预览
- --> + -->
- 模板名称 + 模板名称 +
是否立即发布 @@ -45,7 +44,7 @@
- +
@@ -54,6 +53,7 @@ import * as API_Other from "@/api/other.js"; export default { + props: ["pagetype"], data() { return { progress: true, // 展示进度 @@ -61,11 +61,11 @@ export default { saveDialog: false, // 加载状态 way: [ // 装修tab栏切换 - { - title: "首页", - name: "index", - selected: true, - }, + // { + // title: "首页", + // name: "index", + // selected: true, + // }, // { // title: "全屏广告", // name: "advertising", @@ -82,11 +82,23 @@ export default { // 表单信息 pageShow: this.$route.query.type || false, name: this.$route.query.name || "模板名称", - pageClientType: "H5", - }, + pageClientType: "H5" + } }; }, - watch: {}, + watch: { + pagetype: { + handler(val) { + this.way.length = 0; + if (val == "INDEX") { + this.way.push({ title: "首页", name: "index", selected: true }); + } else if (val == "SPECIAL") { + this.way.push({ title: "专题", name: "special", selected: true }); + } + }, + immediate: true + } + }, mounted() {}, methods: { clickBtn(val) { @@ -116,7 +128,8 @@ export default { : (this.submitWay.pageShow = "CLOSE"); this.submitWay.pageData = JSON.stringify(this.$store.state.styleStore); - this.submitWay.pageType = "INDEX"; + // this.submitWay.pageType = "INDEX"; + this.submitWay.pageType = this.pagetype; this.$route.query.id ? this.update() : this.submit(this.submitWay); }, @@ -128,10 +141,11 @@ export default { pageData: JSON.stringify(this.$store.state.styleStore), name: this.submitWay.name, pageShow: this.submitWay.pageShow, - pageType: "INDEX", - pageClientType: "H5", + // pageType: "INDEX", + pageType: this.pagetype, + pageClientType: "H5" }) - .then((res) => { + .then(res => { this.num = 50; if (res.success) { this.num = 80; @@ -147,13 +161,13 @@ export default { } console.log(res); }) - .catch((error) => {}); + .catch(error => {}); }, // 返回查询数据页面 goback() { this.$router.push({ - path: "/wapList", + path: "/wapList" }); }, @@ -161,7 +175,7 @@ export default { submit(submitWay) { this.progress = false; API_Other.setHomeSetup(submitWay) - .then((res) => { + .then(res => { this.num = 50; if (res.success) { this.num = 80; @@ -178,9 +192,9 @@ export default { } console.log(res); }) - .catch((error) => {}); - }, - }, + .catch(error => {}); + } + } }; diff --git a/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue b/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue index 0855cf25..97da693d 100644 --- a/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/KUAIDI_SETTING.vue @@ -10,6 +10,9 @@ + + +
@@ -24,7 +27,7 @@ export default { data() { return { ruleValidate: {}, // 验证规则 - formValidate: { ebusinessID: "", reqURL: "", appKey: "" }, // 表单数据 + formValidate: { ebusinessID: "", reqURL: "", appKey: "" ,sheetReqURL: "" ,}, // 表单数据 }; }, props: ["res",'type'], diff --git a/seller/public/config.js b/seller/public/config.js index 2bc9856a..043671ae 100644 --- a/seller/public/config.js +++ b/seller/public/config.js @@ -13,11 +13,15 @@ var BASE = { // buyer: "http://localhost:8888", // seller: "http://localhost:8889", // manager: "http://localhost:8887" - common:"http://192.168.0.113:8890", + common:"http://127.0.0.1:8890", buyer:"http://192.168.0.113:8888", manager:"http://192.168.0.113:8887", +<<<<<<< HEAD seller:"http://192.168.0.113:8889" >>>>>>> 32336decc6e9e0ae8a0e67033f8ca66a89bbd372 +======= + seller:"http://127.0.0.1:8889" +>>>>>>> 4ea142ea086a3f534419a31b595de80497e16d90 }, API_PROD: { common: "https://common-api.pickmall.cn", diff --git a/seller/src/api/logistics.js b/seller/src/api/logistics.js index 1d4d7ebf..a74a861a 100644 --- a/seller/src/api/logistics.js +++ b/seller/src/api/logistics.js @@ -31,4 +31,8 @@ export const updateLogistics = (id,params) => { return putRequest(`/other/logistics/${id}`,params); }; +export const getCheckedOn = params =>{ + return getRequest(`/other/logistics/getCheckedFaceSheet`,params); +} + diff --git a/seller/src/api/order.js b/seller/src/api/order.js index 9c22489e..ff709b67 100644 --- a/seller/src/api/order.js +++ b/seller/src/api/order.js @@ -17,6 +17,10 @@ export const queryExportOrder = params => { return getRequest(`/order/order/queryExportOrder`, params); }; +//获取电子面单 +export const getOrderFaceSheet= (orderSn,params) =>{ + return postRequest(`/order/order/${orderSn}/createElectronicsFaceSheet`,params) +} // 上传待发货的订单列表 export const uploadDeliverExcel = params => { diff --git a/seller/src/api/shops.js b/seller/src/api/shops.js index 32b7a8ec..f7f4f412 100644 --- a/seller/src/api/shops.js +++ b/seller/src/api/shops.js @@ -41,10 +41,24 @@ export const getBillDetail = (id, params) => { export const getLogistics = (id, params) => { return getRequest(`/other/logistics`, params) } +//返回信息 +export const getIsCheck =(logisticsId) =>{ + return getRequest(`other/logistics/${logisticsId}/getStoreLogistics`) +} // 开启物流公司 export const logisticsChecked = (id, params) => { - return postRequest(`/other/logistics/${id}`, params) + return postRequest(`/other/logistics/${id}`, params, { + "Content-type": "application/json" + }) +} +//获取发货地址 +export const getDeliverAddress = () =>{ + return getRequest(`/settings/storeSettings/storeDeliverGoodsAddress`) +} +//修改发货地址 +export const editDeliverAddress = (params) =>{ + return putRequest(`/settings/storeSettings/storeDeliverGoodsAddress`,params) } // 关闭开启物流公司 @@ -117,4 +131,9 @@ export const editShipTemplate = (id, params, headers) => { return putRequest(`/setting/freightTemplate/${id}`, params, headers) } +//修改电子面单等信息 +export const editChecked = (logisticsId,params) => { + return putRequest(`/other/logistics/${logisticsId}/updateStoreLogistics`,params) +} + diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index d9227f3a..f9d819d2 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -56,6 +56,7 @@ +
+ +
+ +
+ +

选择或拖拽文件上传

+
+
+
+
+ +
+
@@ -192,12 +207,16 @@ import { deleteGoods, batchShipTemplate, } from "@/api/goods"; +import { baseUrl } from "@/libs/axios.js"; import * as API_Shop from "@/api/shops"; export default { name: "goods", data() { return { + accessToken: {}, // 验证token + importModal: false, + action: baseUrl + "/goods/import/import", // 上传接口 id: "", //要操作的id loading: true, // 表单加载状态 shipTemplateForm: {}, // 物流模板 @@ -486,6 +505,15 @@ export default { } }); }, + // 上传数据 + handleUpload(file) { + this.file = file; + this.upload(); + return false; + }, + openImportGoods(){ + this.importModal = true + }, // 更新库存 updateStock() { let updateStockList = this.stockList.map((i) => { @@ -727,9 +755,7 @@ export default { }, mounted() { this.init(); - }, - mounted() { - this.init(); + this.accessToken.accessToken = this.getStore("accessToken"); }, }; diff --git a/seller/src/views/order/order/orderDetail.vue b/seller/src/views/order/order/orderDetail.vue index cf7a037c..513c6983 100644 --- a/seller/src/views/order/order/orderDetail.vue +++ b/seller/src/views/order/order/orderDetail.vue @@ -27,6 +27,7 @@ + @@ -439,13 +440,31 @@ 订单发货

+
+ + + +
+ - + + import * as API_Order from "@/api/order"; +import * as API_Logistics from "@/api/logistics"; import liliMap from "@/views/my-components/map/index"; import * as RegExp from "@/libs/RegExp.js"; import region from "@/views/lili-components/region"; @@ -495,6 +516,16 @@ export default { region: [], //地区 regionId: [], //地区id showRegion: false, + someJSONdata: '', + faceSheetForm: { + logisticsId: '', + }, + faceSheetFormValidate: { + logisticsId: [ + { required: true, message: "请选择物流公司"}, + ], + }, + facesheetFlag: false, //电子面单标识 orderLogModal: false, //弹出调整价格框 logisticsModal: false, //弹出查询物流框 orderDeliverModal: false, //订单发货弹出框 @@ -716,6 +747,15 @@ export default { } }); }, + Toprint(){ + this.facesheetFlag = true; + API_Logistics.getCheckedOn().then(res => { + if (res.success) { + this.checkedLogistics = res.result; + this.orderDeliverModal = true; + } + }); + }, // 修改订单金额 modifyPrice() { //默认要修改的金额为订单总金额 @@ -754,6 +794,7 @@ export default { }, //订单发货 orderDeliver() { + this.facesheetFlag = false API_Order.getLogisticsChecked().then((res) => { if (res.success) { this.checkedLogistics = res.result; @@ -761,21 +802,40 @@ export default { } }); }, + Toprints(){ + if(this.form.logisticsId != null && this.form.logisticsId != ''){ + this.orderDeliverModal = false; + this.modalPrint = true; + } + }, //订单发货提交 orderDeliverySubmit() { - this.$refs.orderDeliveryForm.validate((valid) => { - if (valid) { - API_Order.orderDelivery(this.sn, this.orderDeliveryForm).then( - (res) => { + if(this.facesheetFlag){ + this.$refs['faceSheetForm'].validate((valid) => { + if (valid) { + API_Order.getOrderFaceSheet(this.sn, this.faceSheetForm).then(res => { if (res.success) { - this.$Message.success("订单发货成功"); - this.orderDeliverModal = false; - this.getDataDetail(); + this.someJSONdata = res.result; + this.Toprints(); } - } - ); - } - }); + }) + } + }) + }else{ + this.$refs['orderDeliveryForm'].validate((valid) => { + if (valid) { + API_Order.orderDelivery(this.sn,this.orderDeliveryForm).then( + (res) => { + if (res.success) { + this.$Message.success("订单发货成功"); + this.orderDeliverModal = false; + this.getDataDetail(); + } + } + ); + } + }); + } }, //弹出修改收货地址框 editAddress() { @@ -900,7 +960,7 @@ dl dt { .search { - + .div-item { line-height: 35px; diff --git a/seller/src/views/shop/ship/logistics.vue b/seller/src/views/shop/ship/logistics.vue index 8d80103d..2807e417 100644 --- a/seller/src/views/shop/ship/logistics.vue +++ b/seller/src/views/shop/ship/logistics.vue @@ -9,154 +9,341 @@ ref="table" > + +

是否需要电子面单

+ + + 需要 + + + 不需要 + + + +

请输入详细信息

+ + + + + + + + + + + + + + + + + + + +
+
+
+ + diff --git a/seller/src/views/shop/shopSetting.vue b/seller/src/views/shop/shopSetting.vue index 1ade5298..f57fae46 100644 --- a/seller/src/views/shop/shopSetting.vue +++ b/seller/src/views/shop/shopSetting.vue @@ -61,6 +61,77 @@ + +
+ + + + + + + + + + + + + + + + + + + + +
+
{ + if (valid) { + this.addressGoods.salesConsignorAddressPath = this.regionGoods; + this.addressGoods.salesConsignorAddressId = this.regionIdS; + API_Shop.editDeliverAddress(this.addressGoods).then(res=>{ + if(res.success){ + this.$Message.success("修改成功") + } + }) + } + }); }, //获取店铺信息 getShopInfo() { @@ -335,8 +459,22 @@ export default { } }); }, +<<<<<<< HEAD pageShow(type){ this.form.pageShow = type +======= + getDeliverAddress(){ + API_Shop.getDeliverAddress().then(res=>{ + if(res.success){ + if(res.result!= '' && res.result != null){ + console.log(89898999998) + this.addressGoods = res.result; + this.regionGoods = res.result.salesConsignorAddressPath; + this.regionIdS = res.result.salesConsignorAddressId; + } + } + }) +>>>>>>> 4ea142ea086a3f534419a31b595de80497e16d90 }, //修改售后地址 regionClick() {