tianyi 1 week ago
parent
commit
06263aad85
  1. 4
      src/api/index.js
  2. 12
      src/views/app/shop/dictManage.vue
  3. 31
      src/views/sys/order-manage/orderManage.vue

4
src/api/index.js

@ -735,6 +735,10 @@ export const getOwListData = (params) => {
export const getOrderList = (params) => { export const getOrderList = (params) => {
return postBodyRequest('/mall/order/page', params) return postBodyRequest('/mall/order/page', params)
} }
//取消订单
export const returnOrder = (params) => {
return postRequest('/mall/order/cancel', params)
}
//查询物流自取 //查询物流自取
export const getSaleByCompanyId = (params) => { export const getSaleByCompanyId = (params) => {

12
src/views/app/shop/dictManage.vue

@ -622,6 +622,10 @@
this.shopId = v.id this.shopId = v.id
this.searchForm.shopId = v.id this.searchForm.shopId = v.id
this.addGoodsForm.shopId = v.id this.addGoodsForm.shopId = v.id
// if(this.addGoodsForm.productGroupBuyPrices == null){
// this.addGoodsForm.productGroupBuyPrices = []
// }
console.log('aaa',this.addGoodsForm)
this.screenWidth = window.screen.width; this.screenWidth = window.screen.width;
// //
this.getGoodsType(); this.getGoodsType();
@ -1138,13 +1142,13 @@
let data = JSON.parse(str); let data = JSON.parse(str);
console.log('111111',data) console.log('111111',data)
this.addGoodsForm = data; this.addGoodsForm = data;
if(this.addGoodsForm.productGroupBuyPrices == ''){
this.addGoodsForm.productGroupBuyPrices = []
}
this.addGoodsForm.attributeList1 = JSON.parse(this.addGoodsForm.attributeList) this.addGoodsForm.attributeList1 = JSON.parse(this.addGoodsForm.attributeList)
this.addGoodsForm.attributeList1 = new Map(Object.entries(this.addGoodsForm.attributeList1)); this.addGoodsForm.attributeList1 = new Map(Object.entries(this.addGoodsForm.attributeList1));
this.addGoodsForm.attributeListPrice = JSON.parse(this.addGoodsForm.attributeListPrice) this.addGoodsForm.attributeListPrice = JSON.parse(this.addGoodsForm.attributeListPrice)
console.log("this.addGoodsForm.attributeList1",this.addGoodsForm.attributeList1)
console.log("this.addGoodsForm.attributeListPrice",this.addGoodsForm.attributeListPrice)
this.addGoodsForm.attributeList1.forEach((value, key) => { this.addGoodsForm.attributeList1.forEach((value, key) => {
for(let i = 0;i<value.title.length;i++){ for(let i = 0;i<value.title.length;i++){
this.attrValueArr.push({ this.attrValueArr.push({
@ -1155,7 +1159,6 @@
}); });
this.specValueArr = this.addGoodsForm.attributeListPrice this.specValueArr = this.addGoodsForm.attributeListPrice
this.addGoodsForm.sellTime = this.addGoodsForm.sellBeginTime != '' ? 1 : 0 this.addGoodsForm.sellTime = this.addGoodsForm.sellBeginTime != '' ? 1 : 0
this.modalVisible = true; this.modalVisible = true;
}, },
@ -1184,6 +1187,7 @@
}); });
} else if (this.modalType == 1) { } else if (this.modalType == 1) {
// //
this.addGoodsForm.attributeListPrice = JSON.stringify(this.addGoodsForm.attributeListPrice) this.addGoodsForm.attributeListPrice = JSON.stringify(this.addGoodsForm.attributeListPrice)
this.addGoodsForm.attributeList = Object.fromEntries(this.addGoodsForm.attributeList1) this.addGoodsForm.attributeList = Object.fromEntries(this.addGoodsForm.attributeList1)
this.addGoodsForm.attributeList = JSON.stringify(this.addGoodsForm.attributeList) this.addGoodsForm.attributeList = JSON.stringify(this.addGoodsForm.attributeList)

31
src/views/sys/order-manage/orderManage.vue

@ -180,7 +180,7 @@
import excel from "@/libs/excel"; import excel from "@/libs/excel";
import addEdit from "./addEdit.vue"; import addEdit from "./addEdit.vue";
import dict from "@/views/my-components/hiver/dict"; import dict from "@/views/my-components/hiver/dict";
import logisticsAddress from "@/views/app/business/logistics/logisticsAddress"; import logisticsAddress from "@/views/sys/order-manage/logisticsAddress";
export default { export default {
name: "order-manage", name: "order-manage",
components: { components: {
@ -191,6 +191,7 @@
data() { data() {
return { return {
tableSize: "default", tableSize: "default",
Visiable: false,
height: 510, height: 510,
loading1: false, loading1: false,
loading2: false, loading2: false,
@ -300,7 +301,7 @@
"a", { "a", {
on: { on: {
click: () => { click: () => {
this.getDetail(params.row); this.showDetail(params.row);
}, },
}, },
}, },
@ -350,7 +351,7 @@
mounted() { mounted() {
// //
this.height = Number(document.documentElement.clientHeight - 230); this.height = Number(document.documentElement.clientHeight - 230);
this.init(); this.init();
}, },
methods: { methods: {
@ -511,7 +512,7 @@
} }
}); });
}, },
handleSearch() { handleSearch() {
this.searchForm.pageNum = 1; this.searchForm.pageNum = 1;
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
@ -527,7 +528,7 @@
this.searchForm.startDate = dayTime this.searchForm.startDate = dayTime
this.searchForm.endDate = dayTime this.searchForm.endDate = dayTime
this.searchForm.searchStr = ""; this.searchForm.searchStr = "";
this.searchForm.companyId = ""; this.searchForm.companyId = "";
this.searchForm.companyName = ""; this.searchForm.companyName = "";
this.$refs.dep.clearSelect(); this.$refs.dep.clearSelect();
@ -661,22 +662,10 @@
} }
let str = JSON.stringify(v); let str = JSON.stringify(v);
let data = JSON.parse(str); let data = JSON.parse(str);
this.form = data; this.Visiable = true;
if (this.form.methodOfSettlement == 0) { // this.$nextTick(() => {
this.form.xianjin = this.form.allCost this.$refs.dialog.initRecharge(data);
this.form.yuefu = "" });
} else if (this.form.methodOfSettlement == 1) {
this.form.xianjin = ""
this.form.yuefu = this.form.allCost
}
this.showType = "0";
this.showOrder = true;
},
getDetail(v) {
this.showDetail(v);
}, },
dropDown() { dropDown() {
if (this.drop) { if (this.drop) {

Loading…
Cancel
Save