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 e6ef6ed6
authored
May 12, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
5047e32e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
115 additions
and
46 deletions
src/utils/constants.js
src/views/DeliverList/index.vue
src/views/purchaseOrder/components/orderDetailDialog.vue
src/views/purchaseOrder/components/shoppingCartCom.vue
src/views/purchaseOrder/index.vue
src/utils/constants.js
View file @
e6ef6ed
...
...
@@ -17,7 +17,6 @@ export const defaultStatusOptions = [
label
:
"已驳回"
}
]
// 发货状态
export
const
defaultDeliveryStatusOptions
=
[
{
...
...
@@ -25,11 +24,28 @@ export const defaultStatusOptions = [
label
:
"未发货"
},
{
id
:
3
,
label
:
"部分发货"
},
{
id
:
2
,
label
:
"全部发货"
}
]
export
const
putStatusOptions
=
[
{
id
:
1
,
label
:
"未入库"
},
{
id
:
3
,
label
:
"部分入库"
},
{
id
:
2
,
label
:
"
已发货
"
label
:
"
全部入库
"
}
]
// 入库状态
export
const
defaultPutStatusOptions
=
[
{
...
...
src/views/DeliverList/index.vue
View file @
e6ef6ed
...
...
@@ -124,7 +124,7 @@ export default {
fn
:
'入库'
},
condition
:
row
=>
{
return
row
.
putStatus
==
1
return
row
.
putStatus
==
1
&&
row
.
operatorStatus
==
1
},
listeners
:
{
click
:
this
.
handleWarehousing
...
...
src/views/purchaseOrder/components/orderDetailDialog.vue
View file @
e6ef6ed
...
...
@@ -69,19 +69,25 @@ export default {
tableColumns
:
[
{
label
:
'商品名称'
,
prop
:
'upgradeGoodsName'
prop
:
'upgradeGoodsName'
,
width
:
120
,
line
:
1
},
{
label
:
'商品编码'
,
prop
:
'type'
prop
:
'type'
,
width
:
100
},
{
label
:
'系列'
,
prop
:
'goodsName'
prop
:
'goodsName'
,
width
:
100
,
line
:
1
},
{
label
:
'所属分类'
,
prop
:
'goodsTypeName'
prop
:
'goodsTypeName'
,
width
:
100
},
{
label
:
'采购数量'
,
...
...
@@ -90,16 +96,18 @@ export default {
let
condition
=
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
goodsNumber
}
卷`
:
`
${
cellValue
.
goodsNumber
}
件`
return
this
.
paramsObj
.
purchaseType
==
1
?
condition
:
`
${
cellValue
.
goodsNumber
}
件`
}
},
width
:
100
},
{
label
:
'库存总量'
,
prop
:
'goodsTypeName'
,
formatter
:
cellValue
=>
{
let
condition
=
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}
米`
:
`
${
cellValue
.
goodsNumber
}
件`
formatter
:
cellValue
=>
{
let
condition
=
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}
米`
:
`
${
cellValue
.
goodsNumber
}
件`
return
this
.
paramsObj
.
purchaseType
==
1
?
condition
:
`
${
cellValue
.
goodsNumber
}
件`
}
},
width
:
100
},
{
label
:
'采购总价/元'
,
...
...
@@ -107,23 +115,50 @@ export default {
formatter
:
cellValue
=>
{
return
'¥'
+
cellValue
.
goodsTotalPrice
},
width
:
200
},
{
label
:
'入库仓库'
,
prop
:
'putYqMerchantName'
},
{
label
:
'入库门店'
,
prop
:
'putMerchantName'
width
:
120
}
]
},
detailInfo
:
{}
}
},
created
()
{
this
.
dynamicParams
()
},
methods
:
{
dynamicParams
()
{
if
(
this
.
paramsObj
.
purchaseType
==
1
)
{
this
.
tableParams
.
tableColumns
.
push
(
{
label
:
'已发货数量'
,
prop
:
'purchaseNumber'
,
width
:
110
,
line
:
1
},
{
label
:
'已入库数量'
,
prop
:
'inputNumber'
,
width
:
110
,
line
:
1
}
)
}
else
{
this
.
tableParams
.
tableColumns
.
push
(
{
label
:
'入库仓库'
,
prop
:
'putYqMerchantName'
,
width
:
100
,
line
:
1
},
{
label
:
'入库门店'
,
prop
:
'putMerchantName'
,
width
:
100
,
line
:
1
}
)
}
},
handleDetailClose
()
{
this
.
dialogShow
=
false
},
...
...
@@ -177,7 +212,7 @@ export default {
margin-right
:
20px
;
margin-bottom
:
10px
;
}
.label
{
color
:
#333333
;
}
...
...
src/views/purchaseOrder/components/shoppingCartCom.vue
View file @
e6ef6ed
...
...
@@ -431,6 +431,7 @@ li {
font
-
size
:
14
px
;
color
:
#
ffffff
;
writing
-
mode
:
vertical
-
rl
;
cursor
:
pointer
;
}
&
::
after
{
// content: "123";
...
...
src/views/purchaseOrder/index.vue
View file @
e6ef6ed
...
...
@@ -16,13 +16,13 @@
<GLTable
ref=
"orderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"deliveryStatus"
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.scope.
status"
:class=
"[scope.scope.deliveryStatus == 1 ? 'yellowSpot' : 'green
Spot']"
></span>
<span
v-if=
"scope.scope.
deliveryStatus"
:class=
"[scope.scope.deliveryStatus == 1 ? 'ashSpot' : scope.scope.deliveryStatus == 2 ? 'greenSpot' : 'yellow
Spot']"
></span>
<span>
{{
scope
.
scope
.
deliveryStatus
|
deliveryStatus
}}
</span>
</div>
</
template
>
<
template
slot=
"putStatus"
slot-scope=
"scope"
>
<div>
<span
:class=
"[scope.scope.putStatus == 1 ? 'yellowSpot' : 'green
Spot']"
></span>
<span
v-if=
"scope.scope.putStatus"
:class=
"[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellow
Spot']"
></span>
<span>
{{
scope
.
scope
.
putStatus
|
putStatus
}}
</span>
</div>
</
template
>
...
...
@@ -51,7 +51,7 @@
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
defaultP
utStatusOptions
,
purchaseTypeList
}
from
'@/utils/constants.js'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
p
utStatusOptions
,
purchaseTypeList
}
from
'@/utils/constants.js'
export
default
{
name
:
'PurchaseOrder'
,
components
:
{
...
...
@@ -84,7 +84,7 @@ export default {
name
:
'orderCode'
,
type
:
'input'
,
isClear
:
true
,
maxlength
:
20
maxlength
:
20
},
{
label
:
'订单状态'
,
...
...
@@ -111,7 +111,7 @@ export default {
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'label'
,
optionsName
:
'
defaultP
utStatusOptions'
optionsName
:
'
p
utStatusOptions'
},
{
...
...
@@ -231,6 +231,19 @@ export default {
listeners
:
{
click
:
this
.
handleWarehousing
}
},
{
type
:
'el-button'
,
name
:
'发货单'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
purchaseType
==
1
&&
row
.
deliveryStatus
==
2
||
row
.
purchaseType
==
1
&&
row
.
deliveryStatus
==
3
},
listeners
:
{
click
:
this
.
handleDispatch
}
}
],
// 表格
...
...
@@ -271,23 +284,23 @@ export default {
addHtml
:
'deliveryStatus'
,
width
:
120
},
{
label
:
'承运公司'
,
prop
:
'deliveryCompany'
,
formatter
:
cellValue
=>
{
return
cellValue
.
deliveryCompany
||
'--'
},
minWidth
:
120
},
{
label
:
'承运单号'
,
prop
:
'deliveryNumber'
,
formatter
:
cellValue
=>
{
return
cellValue
.
deliveryNumber
||
'--'
},
width
:
120
,
line
:
1
},
//
{
//
label: '承运公司',
//
prop: 'deliveryCompany',
//
formatter: cellValue => {
//
return cellValue.deliveryCompany || '--'
//
},
//
minWidth: 120
//
},
//
{
//
label: '承运单号',
//
prop: 'deliveryNumber',
//
formatter: cellValue => {
//
return cellValue.deliveryNumber || '--'
//
},
//
width: 120,
//
line: 1
//
},
{
label
:
'入库状态'
,
prop
:
'putStatus'
,
...
...
@@ -338,7 +351,7 @@ export default {
baseData
:
{
defaultStatusOptions
:
defaultStatusOptions
,
defaultDeliveryStatusOptions
:
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
:
defaultP
utStatusOptions
,
putStatusOptions
:
p
utStatusOptions
,
merchantName
:
[],
storeUsageList
:
[],
purchaseTypeList
:
purchaseTypeList
...
...
@@ -398,6 +411,9 @@ export default {
.
catch
(()
=>
{})
})
},
handleDispatch
()
{
this
.
$router
.
push
(
'/DeliverList/index'
)
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -566,6 +582,7 @@ export default {
@include
dot;
background
:
$
color-gray
;
}
.table-btns
/
deep
/
.el-button--text
{
min-width
:
0
!important
;
padding
:
0
;
...
...
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