Commit 50288c5e by 胡悦

fix: 修复订单列表分页和请求问题

更新订单分页接口路径为'linkwe-gateway/open/weSubstitute/customer/order/pad'
重置订单列表时增加firstIndex重置
修改HTTP请求头为application/json
清空创建订单表单的默认值
1 parent f6733a23
...@@ -445,7 +445,7 @@ module.exports = { ...@@ -445,7 +445,7 @@ module.exports = {
// 获取订单分页列表 // 获取订单分页列表
getOrderPage(data) { getOrderPage(data) {
console.log(data) console.log(data)
return http.shukeRequest('linkwe-gateway/open/weSubstitute/customer/order', data, 'GET', true) return http.shukeRequest('linkwe-gateway/open/weSubstitute/customer/order/pad', data, 'GET', true)
}, },
// 新增订单 // 新增订单
addOrder(data) { addOrder(data) {
......
...@@ -164,7 +164,7 @@ class Request { ...@@ -164,7 +164,7 @@ class Request {
let header = let header =
method === 'POST' method === 'POST'
? { ? {
'content-type': 'application/x-www-form-urlencoded' 'content-type': 'application/json'
} }
: { : {
'Cache-Control': 'no-cache', 'Cache-Control': 'no-cache',
......
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
methods: { methods: {
reload() { reload() {
this.page.pageNum = 1 this.page.pageNum = 1
this.firstIndex = 0
this.hasMore = true this.hasMore = true
this.list = [] this.list = []
this.getOrderPage() this.getOrderPage()
......
...@@ -34,33 +34,10 @@ export default { ...@@ -34,33 +34,10 @@ export default {
title: '新建工单', title: '新建工单',
shopTitle: '商品列表', shopTitle: '商品列表',
orderObj: { orderObj: {
purchaser: '胡悦', purchaser: '',
phone: '13800000000', phone: '',
shopList: [], shopList: [],
totaPrice: 0 totaPrice: 0
// {
// "id": 1,
// "picture": "https://example.com/phone1.jpg",
// "describe": "智能手机A",
// "productSn": "PHONE001",
// "price": "29.99",
// "orderNum": 100,
// "orderTotalAmount": "2999.00",
// "createBy": "admin",
// "updateTime": "2023-10-15 14:30:00"
// },
// {
// "id": 2,
// "picture": "https://example.com/phone2.jpg",
// "describe": "智能手机B",
// "productSn": "PHONE002",
// "price": "19.99",
// "orderNum": 50,
// "orderTotalAmount": "999.50",
// "createBy": "admin",
// "updateTime": "2023-10-14 10:20:00"
// }
// ]
}, },
formList: [ formList: [
[ [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!