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) => {
return postBodyRequest('/mall/order/page', params)
}
//取消订单
export const returnOrder = (params) => {
return postRequest('/mall/order/cancel', params)
}
//查询物流自取
export const getSaleByCompanyId = (params) => {

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

@ -622,6 +622,10 @@
this.shopId = v.id
this.searchForm.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.getGoodsType();
@ -1138,13 +1142,13 @@
let data = JSON.parse(str);
console.log('111111',data)
this.addGoodsForm = data;
if(this.addGoodsForm.productGroupBuyPrices == ''){
this.addGoodsForm.productGroupBuyPrices = []
}
this.addGoodsForm.attributeList1 = JSON.parse(this.addGoodsForm.attributeList)
this.addGoodsForm.attributeList1 = new Map(Object.entries(this.addGoodsForm.attributeList1));
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) => {
for(let i = 0;i<value.title.length;i++){
this.attrValueArr.push({
@ -1155,7 +1159,6 @@
});
this.specValueArr = this.addGoodsForm.attributeListPrice
this.addGoodsForm.sellTime = this.addGoodsForm.sellBeginTime != '' ? 1 : 0
this.modalVisible = true;
},
@ -1184,6 +1187,7 @@
});
} else if (this.modalType == 1) {
//
this.addGoodsForm.attributeListPrice = JSON.stringify(this.addGoodsForm.attributeListPrice)
this.addGoodsForm.attributeList = Object.fromEntries(this.addGoodsForm.attributeList1)
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 addEdit from "./addEdit.vue";
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 {
name: "order-manage",
components: {
@ -191,6 +191,7 @@
data() {
return {
tableSize: "default",
Visiable: false,
height: 510,
loading1: false,
loading2: false,
@ -300,7 +301,7 @@
"a", {
on: {
click: () => {
this.getDetail(params.row);
this.showDetail(params.row);
},
},
},
@ -350,7 +351,7 @@
mounted() {
//
this.height = Number(document.documentElement.clientHeight - 230);
this.init();
},
methods: {
@ -511,7 +512,7 @@
}
});
},
handleSearch() {
this.searchForm.pageNum = 1;
this.searchForm.pageSize = 10;
@ -527,7 +528,7 @@
this.searchForm.startDate = dayTime
this.searchForm.endDate = dayTime
this.searchForm.searchStr = "";
this.searchForm.companyId = "";
this.searchForm.companyName = "";
this.$refs.dep.clearSelect();
@ -661,22 +662,10 @@
}
let str = JSON.stringify(v);
let data = JSON.parse(str);
this.form = data;
if (this.form.methodOfSettlement == 0) { //
this.form.xianjin = this.form.allCost
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);
this.Visiable = true;
this.$nextTick(() => {
this.$refs.dialog.initRecharge(data);
});
},
dropDown() {
if (this.drop) {

Loading…
Cancel
Save