Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 444b3be9
authored
May 25, 2023
by
前端
Committed by
chenwq
May 26, 2023
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮测试BUG修复
1 parent
122a2e13
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
144 deletions
src/api/openshopProcess.js
src/api/purchaseShopping.js
src/views/purchase/constant/index.js
src/views/purchase/procurementBusiness.vue
src/views/purchase/procurementReview.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/purchase/purchaseOrder.vue
src/api/openshopProcess.js
View file @
444b3be
...
@@ -19,103 +19,3 @@ export function createMerchantReviewReject(data) {
...
@@ -19,103 +19,3 @@ export function createMerchantReviewReject(data) {
data
.
method
=
`
${
path
}
createMerchant.review.reject`
data
.
method
=
`
${
path
}
createMerchant.review.reject`
return
request
(
data
)
return
request
(
data
)
}
}
// // 修改购物车商品数量
// export function shoppingCarUpdateNumber(data) {
// data.method = `${path}purchaseShoppingCar.updateNumber`
// return request(data)
// }
// // 更新购物车商品选中标识
// export function updateSelectedFlag(data) {
// data.method = `${path}purchaseShoppingCar.updateSelectedFlag`
// return request(data)
// }
// // 获取当前登录园区店商户收货地址
// export function addressGet(data = {}) {
// // console.log(data)
// data.method = `${path}yqMerchantDeliveryAddress.get`
// return request(data)
// }
// // 保存园区店商户收货地址
// export function addressSave(data) {
// data.method = `${path}yqMerchantDeliveryAddress.save`
// return request(data)
// }
// // 分页查询采购商城素材信息
// export function listWithPagePurchaseInfo(data) {
// data.method = `${path2}listWithPage.purchaseInfo`
// return request(data)
// }
// // 添加采购订单
// export function purchaseOrderAdd(data) {
// data.method = `${path}purchaseOrder.add`
// return request(data, "post")
// }
// // 分页查询采购订单
// export function getPurchaseOrderList(data) {
// data.method = `${path}purchaseOrder.page`
// return request(data)
// }
// // 查看采购订单
// export function purchaseOrderDetail(data) {
// data.method = `${path}purchaseOrder.view`
// return request(data)
// }
// // 采购订单入库
// export function purchaseOrderPutIn(data) {
// data.method = `${path}purchaseOrder.putIn`
// return request(data)
// }
// // 获取下单/入库门店
// export function getMerchantList(data) {
// data.method = `${path3}permission.yqMerchant.list`
// return request(data, "post")
// }
// // 采购订单取消/审核
// export function purchaseOrderCancelOrCheck(data) {
// data.method = `${path}purchaseOrder.cancelOrCheck`
// return request(data)
// }
// // 确认发货
// // export function purchaseOrderConfirmDelivery(data) {
// // data.method = `${path}purchaseOrder.confirmDelivery`
// // return request(data)
// // }
// // 确认发货
// export function purchaseOrderDelivery(data) {
// data.method = "dj.api.smarcarlife.purchaseOrder.delivery"
// return request(data)
// } // 发货单分页查询
// export function purchaseOrderDeliveryPage(data) {
// data.method = `${path}purchaseOrder.delivery.page`
// return request(data)
// }
// // 发货单撤销
// export function purchaseOrderDeliveryWithdraw(data) {
// data.method = `${path}purchaseOrder.delivery.withdraw`
// return request(data)
// }
// // 发货单详情查看
// export function purchaseOrderDeliveryDetail(data) {
// data.method = `${path}purchaseOrder.delivery.detail`
// return request(data)
// }
// // 驳回
// export function purchaseOrderReject(data) {
// data.method = `${path}purchaseOrder.reject`
// return request(data)
// }
src/api/purchaseShopping.js
View file @
444b3be
...
@@ -60,8 +60,13 @@ export function purchaseOrderAdd(data) {
...
@@ -60,8 +60,13 @@ export function purchaseOrderAdd(data) {
}
}
// 分页查询采购订单
// 分页查询采购订单
export
function
getPurchaseOrderList
(
data
)
{
export
function
getPurchaseOrderList
(
data
)
{
// data.method = `${path}purchaseOrder.page`
data
.
method
=
`
${
path
}
purchaseOrder.page`
data
.
method
=
`
${
path
}
purchaseOrder.shipmentpage`
return
request
(
data
)
}
// 分页查询采购发货
export
function
getPurchaseOrderShipmentList
(
data
)
{
data
.
method
=
`
${
path
}
purchaseOrder.shipmentList`
return
request
(
data
)
return
request
(
data
)
}
}
...
...
src/views/purchase/constant/index.js
View file @
444b3be
...
@@ -2,14 +2,31 @@
...
@@ -2,14 +2,31 @@
export
const
defaultStatusOptions
=
[
export
const
defaultStatusOptions
=
[
{
{
id
:
1
,
id
:
1
,
// label: "待审核"
label
:
"运营审核"
label
:
"运营审核"
},
},
// {
{
// id: 2,
id
:
3
,
// // label: "已审核"
label
:
"已取消"
// label: "运营审核"
},
// },
{
id
:
4
,
label
:
"已驳回"
},
{
id
:
5
,
label
:
"商务审核"
},
{
id
:
6
,
label
:
"已审核"
}
]
export
const
defaultStatusOptionsForTable
=
[
{
id
:
1
,
label
:
"运营审核"
},
{
{
id
:
3
,
id
:
3
,
label
:
"已取消"
label
:
"已取消"
...
@@ -67,10 +84,6 @@ export const business_statusOptions = [
...
@@ -67,10 +84,6 @@ export const business_statusOptions = [
label
:
"已审核"
label
:
"已审核"
},
},
{
{
id
:
3
,
label
:
"已取消"
},
{
id
:
7
,
id
:
7
,
label
:
"已驳回"
label
:
"已驳回"
}
}
...
...
src/views/purchase/procurementBusiness.vue
View file @
444b3be
...
@@ -78,7 +78,7 @@ export default {
...
@@ -78,7 +78,7 @@ export default {
putStatus
:
''
,
putStatus
:
''
,
// merchantId: '',
// merchantId: '',
merchantName
:
''
,
merchantName
:
''
,
sortType
:
2
,
sortType
:
1
,
orderTimeStr
:
[],
orderTimeStr
:
[],
purchasingPattern
:
''
purchasingPattern
:
''
},
},
...
@@ -224,7 +224,6 @@ export default {
...
@@ -224,7 +224,6 @@ export default {
return
{
return
{
5
:
'yellowSpot'
,
5
:
'yellowSpot'
,
6
:
'greenSpot'
,
6
:
'greenSpot'
,
3
:
'ashSpot'
,
7
:
'redSpot'
7
:
'redSpot'
}[
cellValue
.
status
]
}[
cellValue
.
status
]
}
}
...
...
src/views/purchase/procurementReview.vue
View file @
444b3be
...
@@ -79,7 +79,7 @@ export default {
...
@@ -79,7 +79,7 @@ export default {
putStatus
:
''
,
putStatus
:
''
,
// merchantId: '',
// merchantId: '',
merchantName
:
''
,
merchantName
:
''
,
sortType
:
2
,
sortType
:
1
,
orderTimeStr
:
[],
orderTimeStr
:
[],
purchasingPattern
:
''
purchasingPattern
:
''
},
},
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
444b3be
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
:show-btn-ids=
"['9090404']"
/>
-->
:show-btn-ids=
"['9090404']"
/>
-->
</span>
</span>
<!-- 驳回 -->
<!-- 驳回 -->
<span
v-show=
"scope.scope.deliveryStatus == 1"
>
<span
v-show=
"scope.scope.deliveryStatus == 1
&& scope.scope.status != 4
"
>
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleReject(scope.scope)"
>
驳回
</el-button>
-->
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleReject(scope.scope)"
>
驳回
</el-button>
-->
<auth-button
:data=
"scope.scope"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
:show-btn-ids=
"['9090403']"
/>
...
@@ -115,9 +115,9 @@
...
@@ -115,9 +115,9 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
,
purchasingPatternOptions
}
from
'./constant'
import
{
defaultStatusOptions
,
default
StatusOptionsForTable
,
default
DeliveryStatusOptions
,
defaultPutStatusOptions
,
purchasingPatternOptions
}
from
'./constant'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
getPurchaseOrderList
,
getMerchantList
,
purchaseOrderReject
}
from
'@/api/purchaseShopping.js'
import
{
getPurchaseOrder
Shipment
List
,
getMerchantList
,
purchaseOrderReject
}
from
'@/api/purchaseShopping.js'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
import
EditOrderDialog
from
'./components/EditOrderDialog'
import
EditOrderDialog
from
'./components/EditOrderDialog'
// import { limitPrice } from '@/common/format'
// import { limitPrice } from '@/common/format'
...
@@ -158,7 +158,7 @@ export default {
...
@@ -158,7 +158,7 @@ export default {
deliveryStatus
:
''
,
deliveryStatus
:
''
,
putStatus
:
''
,
putStatus
:
''
,
merchantName
:
''
,
merchantName
:
''
,
sortType
:
3
,
sortType
:
1
,
orderTimeStr
:
[],
orderTimeStr
:
[],
purchasingPattern
:
''
purchasingPattern
:
''
},
},
...
@@ -221,7 +221,7 @@ export default {
...
@@ -221,7 +221,7 @@ export default {
maxlength
:
50
maxlength
:
50
}
}
],
],
getListApi
:
getPurchaseOrderList
,
getListApi
:
getPurchaseOrder
Shipment
List
,
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
@@ -295,7 +295,7 @@ export default {
...
@@ -295,7 +295,7 @@ export default {
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'status'
,
prop
:
'status'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
defaultStatusOptions
.
find
(
item
=>
item
.
id
==
cellValue
.
status
)?.
label
||
'-'
return
defaultStatusOptions
ForTable
.
find
(
item
=>
item
.
id
==
cellValue
.
status
)?.
label
||
'-'
},
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
...
@@ -310,26 +310,27 @@ export default {
...
@@ -310,26 +310,27 @@ export default {
}[
cellValue
.
status
]
}[
cellValue
.
status
]
}
}
},
},
{
//
{
label
:
'审核人'
,
//
label: '审核人',
prop
:
'updatedBy'
//
prop: 'updatedBy'
},
//
},
{
//
{
label
:
'审核时间'
,
//
label: '审核时间',
prop
:
'updatedDate'
,
//
prop: 'updatedDate',
formatter
:
(
cellValue
)
=>
{
//
formatter: (cellValue) => {
return
cellValue
.
updatedDate
?
Util
.
dateFormate
(
cellValue
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
//
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
//
}
}
//
}
]
]
},
},
// 查看门店
// 查看门店
detailVisible
:
false
,
detailVisible
:
false
,
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
defaultStatusOptions
:
[],
//
defaultStatusOptions: [],
defaultDeliveryStatusOptions
:
[],
defaultDeliveryStatusOptions
:
[],
defaultPutStatusOptions
:
[]
defaultPutStatusOptions
:
[],
defaultStatusOptionsForTable
:
[]
},
},
paramsObj
:
{},
paramsObj
:
{},
dialogData
:
{
dialogData
:
{
...
@@ -364,10 +365,11 @@ export default {
...
@@ -364,10 +365,11 @@ export default {
label
:
'全部'
label
:
'全部'
}
}
this
.
baseData
=
{
this
.
baseData
=
{
defaultStatusOptions
:
deepClone
(
defaultStatusOptions
),
//
defaultStatusOptions: deepClone(defaultStatusOptions),
defaultDeliveryStatusOptions
:
deepClone
(
defaultDeliveryStatusOptions
),
defaultDeliveryStatusOptions
:
deepClone
(
defaultDeliveryStatusOptions
),
defaultPutStatusOptions
:
deepClone
(
defaultPutStatusOptions
),
defaultPutStatusOptions
:
deepClone
(
defaultPutStatusOptions
),
purchasingPatternOptions
:
deepClone
(
purchasingPatternOptions
)
purchasingPatternOptions
:
deepClone
(
purchasingPatternOptions
),
defaultStatusOptionsForTable
:
deepClone
(
defaultStatusOptionsForTable
),
}
}
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
])
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
])
{
...
...
src/views/purchase/purchaseOrder.vue
View file @
444b3be
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
,
purchaseTypeList
}
from
'./constant'
import
{
defaultStatusOptions
,
default
StatusOptionsForTable
,
default
DeliveryStatusOptions
,
defaultPutStatusOptions
,
purchaseTypeList
}
from
'./constant'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
getPurchaseOrderList
,
getMerchantList
,
purchaseOrderCancelOrCheck
,
purchaseOrderPutIn
}
from
'@/api/purchaseShopping.js'
import
{
getPurchaseOrderList
,
getMerchantList
,
purchaseOrderCancelOrCheck
,
purchaseOrderPutIn
}
from
'@/api/purchaseShopping.js'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
...
@@ -290,14 +290,10 @@ export default {
...
@@ -290,14 +290,10 @@ export default {
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'status'
,
prop
:
'status'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
defaultStatusOptions
.
find
(
item
=>
item
.
id
==
cellValue
.
status
)?.
label
||
'-'
return
defaultStatusOptions
ForTable
.
find
(
item
=>
item
.
id
==
cellValue
.
status
)?.
label
||
'-'
},
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
// 1: 'yellowSpot',
// 2: 'greenSpot',
// 3: 'ashSpot',
// 4: 'redSpot'
1
:
'yellowSpot'
,
1
:
'yellowSpot'
,
// 2: 'greenSpot',
// 2: 'greenSpot',
3
:
'ashSpot'
,
3
:
'ashSpot'
,
...
@@ -318,7 +314,8 @@ export default {
...
@@ -318,7 +314,8 @@ export default {
defaultStatusOptions
:
[],
defaultStatusOptions
:
[],
defaultDeliveryStatusOptions
:
[],
defaultDeliveryStatusOptions
:
[],
defaultPutStatusOptions
:
[],
defaultPutStatusOptions
:
[],
purchaseTypeList
:
[]
purchaseTypeList
:
[],
defaultStatusOptionsForTable
:
[]
},
},
paramsObj
:
{}
paramsObj
:
{}
}
}
...
@@ -351,7 +348,8 @@ export default {
...
@@ -351,7 +348,8 @@ export default {
defaultStatusOptions
:
deepClone
(
defaultStatusOptions
),
defaultStatusOptions
:
deepClone
(
defaultStatusOptions
),
defaultDeliveryStatusOptions
:
deepClone
(
defaultDeliveryStatusOptions
),
defaultDeliveryStatusOptions
:
deepClone
(
defaultDeliveryStatusOptions
),
defaultPutStatusOptions
:
deepClone
(
defaultPutStatusOptions
),
defaultPutStatusOptions
:
deepClone
(
defaultPutStatusOptions
),
purchaseTypeList
:
deepClone
(
purchaseTypeList
)
purchaseTypeList
:
deepClone
(
purchaseTypeList
),
defaultStatusOptionsForTable
:
deepClone
(
defaultStatusOptionsForTable
)
}
}
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
])
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
])
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment