Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 871a2512
authored
Apr 12, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
ad11d9dd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
46 deletions
src/api/modules/purchaseShopping.js
src/views/purchaseOrder/add.vue
src/views/purchaseOrder/components/goodsDetailCom.vue
src/views/purchaseOrder/components/shoppingCartCom.vue
src/views/purchaseOrder/index.vue
src/api/modules/purchaseShopping.js
View file @
871a251
...
@@ -178,11 +178,16 @@ export function purchaseOrderPutIn(params) {
...
@@ -178,11 +178,16 @@ export function purchaseOrderPutIn(params) {
})
})
}
}
// 获取下单/入库门店
// 获取下单/入库门店
// export function getMerchantList(data) {
export
function
getMerchantList
(
params
)
{
// params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
// data.routerMethod = `${path3}permission.yqMerchant.list`
params
.
routerMethod
=
`
${
path3
}
permission.yqMerchant.list`
// return http(data, "post")
return
http
({
// }
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
...
@@ -193,4 +198,4 @@ export function purchaseOrderPutIn(params) {
...
@@ -193,4 +198,4 @@ export function purchaseOrderPutIn(params) {
// return http(data)
// return http(data)
// }
// }
export
default
{
purchaseOrderPutIn
,
exportExcel
,
shoppingCarUpdateNumber
,
purchaseOrderAdd
,
shoppingCarAdd
,
shoppingCarRemove
,
updateSelectedFlag
,
listGroupByGoodsType
,
getPurchaseOrderList
,
purchaseOrderCancelOrCheck
,
purchaseOrderDetail
,
listWithPagePurchaseInfo
,
addressGet
,
addressSave
}
\ No newline at end of file
\ No newline at end of file
export
default
{
getMerchantList
,
purchaseOrderPutIn
,
exportExcel
,
shoppingCarUpdateNumber
,
purchaseOrderAdd
,
shoppingCarAdd
,
shoppingCarRemove
,
updateSelectedFlag
,
listGroupByGoodsType
,
getPurchaseOrderList
,
purchaseOrderCancelOrCheck
,
purchaseOrderDetail
,
listWithPagePurchaseInfo
,
addressGet
,
addressSave
}
\ No newline at end of file
\ No newline at end of file
src/views/purchaseOrder/add.vue
View file @
871a251
...
@@ -136,10 +136,9 @@ export default {
...
@@ -136,10 +136,9 @@ export default {
this
.
goodsDetailComVisible
=
true
this
.
goodsDetailComVisible
=
true
const
list
=
this
.
$common
.
utils
.
deepClone
(
this
.
purchaseList
)
const
list
=
this
.
$common
.
utils
.
deepClone
(
this
.
purchaseList
)
this
.
purchaseList
=
list
.
map
((
item
,
itemIndex
)
=>
{
this
.
purchaseList
=
list
.
map
((
item
,
itemIndex
)
=>
{
item
.
active
=
itemIndex
==
index
item
.
active
=
itemIndex
==
index
return
item
return
item
})
})
},
},
listWithPagePurchaseInfo
()
{
listWithPagePurchaseInfo
()
{
...
@@ -178,7 +177,10 @@ export default {
...
@@ -178,7 +177,10 @@ export default {
this
.
$apis
.
purchaseShopping
this
.
$apis
.
purchaseShopping
.
addressGet
()
.
addressGet
()
.
then
(
result
=>
{
.
then
(
result
=>
{
if
(
result
)
{
this
.
addressInfo
=
result
this
.
addressInfo
=
result
}
if
(
this
.
showOrderCom
)
{
if
(
this
.
showOrderCom
)
{
this
.
showOrderCom
=
false
this
.
showOrderCom
=
false
this
.
$refs
.
shoppingCartCom
.
validateGoodsNumber
()
this
.
$refs
.
shoppingCartCom
.
validateGoodsNumber
()
...
@@ -245,7 +247,7 @@ export default {
...
@@ -245,7 +247,7 @@ export default {
padding
:
8px
8px
16px
;
padding
:
8px
8px
16px
;
&.active
{
&.active
{
border
:
1px
solid
#
185efe
;
border
:
1px
solid
#
5850ff
;
}
}
.img
{
.img
{
...
@@ -268,7 +270,7 @@ export default {
...
@@ -268,7 +270,7 @@ export default {
.viewPurchase
{
.viewPurchase
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#
185efe
;
color
:
#
5850ff
;
}
}
}
}
...
@@ -314,7 +316,7 @@ export default {
...
@@ -314,7 +316,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
margin-left
:
auto
;
margin-left
:
auto
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#
185efe
;
color
:
#
5850ff
;
}
}
.editIcon
{
.editIcon
{
...
@@ -367,6 +369,9 @@ export default {
...
@@ -367,6 +369,9 @@ export default {
width
:
670px
!important
;
width
:
670px
!important
;
min-width
:
670px
;
min-width
:
670px
;
}
}
/
deep
/
.name
{
width
:
20px
!important
;
}
}
}
::v-deep
.classifyContainer
{
::v-deep
.classifyContainer
{
...
...
src/views/purchaseOrder/components/goodsDetailCom.vue
View file @
871a251
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<
/div
>
<
/div
>
<!--
<
i
class
=
"carIcon"
><
/i> --
>
<!--
<
i
class
=
"carIcon"
><
/i> --
>
<
/div
>
<
/div
>
<
h3
>
产品详情
<
/h3
>
<
h3
style
=
"margin-top:20px;"
>
产品详情
<
/h3
>
<
div
class
=
"goodsDescList"
>
<
div
class
=
"goodsDescList"
>
<
div
class
=
"goodsDescItem"
v
-
for
=
"(item, index) in goodsInfo.goodsDescList"
:
key
=
"index"
>
<
div
class
=
"goodsDescItem"
v
-
for
=
"(item, index) in goodsInfo.goodsDescList"
:
key
=
"index"
>
<
img
:
src
=
"item.content"
v
-
if
=
"item.resType == 1"
class
=
"productDetailsImg"
alt
=
""
/>
<
img
:
src
=
"item.content"
v
-
if
=
"item.resType == 1"
class
=
"productDetailsImg"
alt
=
""
/>
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
watch
:
{
watch
:
{
visible
(
val
)
{
visible
(
val
)
{
if
(
val
)
{
if
(
val
)
{
this
.
handleItemInfo
.
goodsNumber
=
1
this
.
handleItemInfo
.
goodsNumber
=
1
this
.
getGoodsDetail
()
this
.
getGoodsDetail
()
}
}
}
}
...
@@ -221,6 +221,7 @@ export default {
...
@@ -221,6 +221,7 @@ export default {
font
-
weight
:
600
;
font
-
weight
:
600
;
font
-
size
:
30
px
;
font
-
size
:
30
px
;
color
:
#
ee3040
;
color
:
#
ee3040
;
margin
-
left
:
8
px
;
}
}
}
}
...
@@ -287,5 +288,10 @@ export default {
...
@@ -287,5 +288,10 @@ export default {
.
carBtn
{
.
carBtn
{
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
width
:
168
px
;
height
:
40
px
;
margin
-
left
:
18
px
;
background
:
#
185
efe
;
border
-
radius
:
4
px
;
}
}
<
/style
>
<
/style
>
src/views/purchaseOrder/components/shoppingCartCom.vue
View file @
871a251
...
@@ -419,7 +419,7 @@ li {
...
@@ -419,7 +419,7 @@ li {
width
:
52
px
;
width
:
52
px
;
height
:
158
px
;
height
:
158
px
;
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
box
;
background
:
#
185
efe
;
background
:
#
5850
ff
;
box
-
shadow
:
0
9
px
28
px
8
px
#
0000000
d
,
0
6
px
16
px
0
#
00000014
,
0
3
px
6
px
-
4
px
#
0000001
f
;
box
-
shadow
:
0
9
px
28
px
8
px
#
0000000
d
,
0
6
px
16
px
0
#
00000014
,
0
3
px
6
px
-
4
px
#
0000001
f
;
border
-
radius
:
4
px
;
border
-
radius
:
4
px
;
...
@@ -440,7 +440,7 @@ li {
...
@@ -440,7 +440,7 @@ li {
height
:
14
px
;
height
:
14
px
;
border
-
radius
:
7
px
;
border
-
radius
:
7
px
;
padding
:
1
px
4
px
0
;
padding
:
1
px
4
px
0
;
color
:
#
185
efe
;
color
:
#
5850
ff
;
background
:
#
ffffff
;
background
:
#
ffffff
;
font
-
size
:
10
px
;
font
-
size
:
10
px
;
// width: 100%;
// width: 100%;
...
...
src/views/purchaseOrder/index.vue
View file @
871a251
...
@@ -120,25 +120,25 @@ export default {
...
@@ -120,25 +120,25 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
{
label
:
'下单门店'
,
name
:
'merchantId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantName'
},
{
label
:
'入库门店'
,
name
:
'putMerchantId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'merchantNo'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantName'
}
}
// {
// label: '下单门店',
// name: 'merchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
// {
// label: '入库门店',
// name: 'putMerchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// }
],
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
purchaseShopping
.
getPurchaseOrderList
,
getListApi
:
this
.
$apis
.
purchaseShopping
.
getPurchaseOrderList
,
...
@@ -156,7 +156,8 @@ export default {
...
@@ -156,7 +156,8 @@ export default {
prop
:
'totalPrice'
,
prop
:
'totalPrice'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
'¥'
+
cellValue
.
totalPrice
return
'¥'
+
cellValue
.
totalPrice
}
},
width
:
100
},
},
{
{
label
:
'下单时间'
,
label
:
'下单时间'
,
...
@@ -164,35 +165,40 @@ export default {
...
@@ -164,35 +165,40 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
orderTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
orderTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
},
width
:
1
5
0
width
:
1
8
0
},
},
{
{
label
:
'下单门店'
,
label
:
'下单门店'
,
prop
:
'merchantName'
prop
:
'merchantName'
,
minWidth
:
150
},
},
{
{
label
:
'发货状态'
,
label
:
'发货状态'
,
prop
:
'deliveryStatus'
,
prop
:
'deliveryStatus'
,
addHtml
:
'deliveryStatus'
addHtml
:
'deliveryStatus'
,
width
:
120
},
},
{
{
label
:
'承运公司'
,
label
:
'承运公司'
,
prop
:
'deliveryCompany'
,
prop
:
'deliveryCompany'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
deliveryCompany
||
'--'
return
cellValue
.
deliveryCompany
||
'--'
}
},
minWidth
:
120
},
},
{
{
label
:
'承运单号'
,
label
:
'承运单号'
,
prop
:
'deliveryNumber'
,
prop
:
'deliveryNumber'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
deliveryNumber
||
'--'
return
cellValue
.
deliveryNumber
||
'--'
}
},
width
:
120
},
},
{
{
label
:
'入库状态'
,
label
:
'入库状态'
,
prop
:
'putStatus'
,
prop
:
'putStatus'
,
addHtml
:
'putStatus'
addHtml
:
'putStatus'
,
width
:
120
},
},
{
{
label
:
'入库时间'
,
label
:
'入库时间'
,
...
@@ -200,11 +206,13 @@ export default {
...
@@ -200,11 +206,13 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
putTime
?
dayjs
(
cellValue
.
putTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
return
cellValue
.
putTime
?
dayjs
(
cellValue
.
putTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
},
},
width
:
15
0
width
:
18
0
},
},
{
{
label
:
'入库门店'
,
label
:
'入库门店'
,
prop
:
'putMerchantName'
,
prop
:
'putMerchantName'
,
line
:
1
,
width
:
150
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
putMerchantName
||
'--'
return
cellValue
.
putMerchantName
||
'--'
}
}
...
@@ -212,11 +220,12 @@ export default {
...
@@ -212,11 +220,12 @@ export default {
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'status'
,
prop
:
'status'
,
addHtml
:
'status'
addHtml
:
'status'
,
width
:
120
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
width
:
'
22
0px'
,
width
:
'
18
0px'
,
addHtml
:
'auth-button'
addHtml
:
'auth-button'
}
}
]
]
...
@@ -226,13 +235,17 @@ export default {
...
@@ -226,13 +235,17 @@ export default {
baseData
:
{
baseData
:
{
defaultStatusOptions
:
defaultStatusOptions
,
defaultStatusOptions
:
defaultStatusOptions
,
defaultDeliveryStatusOptions
:
defaultDeliveryStatusOptions
,
defaultDeliveryStatusOptions
:
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
:
defaultPutStatusOptions
defaultPutStatusOptions
:
defaultPutStatusOptions
,
merchantName
:
[]
}
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'showFormData'
)
this
.
$apis
.
purchaseShopping
.
getMerchantList
({}).
then
(
res
=>
{
this
.
baseData
.
merchantName
=
res
this
.
getOptionsList
(
'showFormData'
)
})
},
},
methods
:
{
methods
:
{
...
@@ -395,5 +408,9 @@ export default {
...
@@ -395,5 +408,9 @@ export default {
@include
dot;
@include
dot;
background
:
$
color-gray
;
background
:
$
color-gray
;
}
}
.table-btns
/
deep
/
.el-button--text
{
min-width
:
0
!important
;
padding
:
0
;
}
}
}
</
style
>
</
style
>
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