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 a7938bfb
authored
Jun 08, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.22.1' into 'master'
V4.22.1 See merge request
!5
2 parents
c5a46928
02d46d5b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
142 additions
and
49 deletions
src/utils/constants.js
src/views/DeliverList/deliverAdd.vue
src/views/DeliverList/deliverDetail.vue
src/views/DeliverList/index.vue
src/views/purchaseOrder/add.vue
src/views/purchaseOrder/components/goodsDetailCom.vue
src/views/purchaseOrder/components/orderDetailDialog.vue
src/views/purchaseOrder/components/shoppingCartCom.vue
src/views/purchaseOrder/index.vue
src/utils/constants.js
View file @
a7938bf
...
@@ -67,7 +67,11 @@ export const defaultPutStatusOptions = [
...
@@ -67,7 +67,11 @@ export const defaultPutStatusOptions = [
{
{
id
:
2
,
id
:
2
,
label
:
"已入库"
label
:
"已入库"
}
},
{
id
:
3
,
label
:
"部分入库"
},
]
]
//采购类型
//采购类型
export
const
purchaseTypeList
=
[
export
const
purchaseTypeList
=
[
...
...
src/views/DeliverList/deliverAdd.vue
View file @
a7938bf
...
@@ -24,16 +24,17 @@
...
@@ -24,16 +24,17 @@
<div>
<div>
发货数量:
发货数量:
<span>
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`${item.purchaseNumber
}
卷`
:
`${item.purchaseNumber
}
件`
}}
<
/span
>
<span>
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`${item.purchaseNumber
}
卷`
:
`${item.purchaseNumber
}
件`
}}
<
/span
>
<
span
class
=
"lookNumber"
@
click
=
"lookNumber(item.deliveryCardList)"
v
-
if
=
"item.deliveryCardList && item.deliveryCardList.length > 0"
>
查看卡号
<
/span
>
<
/div
>
<
/div
>
<
div
>
<
div
>
可用库存数量:
可用库存数量:
<
span
>
{{
item
.
stockNum
}}
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
span
>
{{
item
.
stockNum
}}
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"add-btn"
@
click
=
"addLineTable(index)"
>
<
div
class
=
"add-btn"
@
click
=
"addLineTable(index)"
v
-
if
=
"item.deliveryCardList === null || item.deliveryCardList.length == 0"
>
添加入库记录
添加入库记录
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
:
rules
=
"rules"
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
:
rules
=
"rules"
v
-
if
=
"item.deliveryCardList === null || item.deliveryCardList.length == 0"
>
<
GLTable
:
tableData
=
"item.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
GLTable
:
tableData
=
"item.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
el
-
form
-
item
style
=
"margin-bottom: 0px"
:
prop
=
"'goodsWarehousingList.' + scope.index + '.increaseStockNum'"
:
rules
=
"rules.increaseStockNum"
>
<
el
-
form
-
item
style
=
"margin-bottom: 0px"
:
prop
=
"'goodsWarehousingList.' + scope.index + '.increaseStockNum'"
:
rules
=
"rules.increaseStockNum"
>
...
@@ -61,8 +62,14 @@
...
@@ -61,8 +62,14 @@
<
/div
>
<
/div
>
<
/GLTable
>
<
/GLTable
>
<
/el-form
>
<
/el-form
>
<
div
v
-
else
class
=
"message"
>
已自动入库至商户的权益卡管理中,可前往“库存管理
-
权益卡管理”中查询
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
el
-
dialog
width
=
"750px"
title
=
"查看发货卡号"
:
visible
.
sync
=
"innerVisible"
append
-
to
-
body
>
<
GLTable
class
=
"look-card-wrap"
:
tableData
=
"tableData"
:
noDataImg
=
"url"
:
tableParams
=
"innerParams"
:
hasPage
=
"false"
><
/GLTable
>
<
/el-dialog
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
size
=
"small"
@
click
=
"dialogShow = false"
>
关闭
<
/el-button
>
<
el
-
button
size
=
"small"
@
click
=
"dialogShow = false"
>
关闭
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"small"
@
click
=
"handleSave"
>
保存入库
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"small"
@
click
=
"handleSave"
>
保存入库
<
/el-button
>
...
@@ -144,11 +151,29 @@ export default {
...
@@ -144,11 +151,29 @@ export default {
{
validator
:
checkPrice
,
trigger
:
'blur'
}
{
validator
:
checkPrice
,
trigger
:
'blur'
}
]
]
}
,
}
,
detailInfo
:
{
}
detailInfo
:
{
}
,
innerVisible
:
false
,
innerParams
:
{
tableOption
:
false
,
tableColumns
:
[
{
label
:
'卡号'
,
prop
:
'cardNum'
,
width
:
630
}
]
}
,
tableData
:
[]
}
}
}
,
}
,
created
()
{
}
,
created
()
{
}
,
methods
:
{
methods
:
{
lookNumber
(
data
)
{
this
.
innerVisible
=
true
this
.
tableData
=
data
.
map
(
item
=>
{
return
{
cardNum
:
item
}
}
)
}
,
handleCalculate
(
data
,
key
,
index
)
{
handleCalculate
(
data
,
key
,
index
)
{
if
(
data
[
key
]
>
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
)
{
if
(
data
[
key
]
>
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
)
{
data
[
key
]
=
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
data
[
key
]
=
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
...
@@ -257,13 +282,18 @@ export default {
...
@@ -257,13 +282,18 @@ export default {
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
)
console
.
log
(
err
)
}
}
if
(
num
==
this
.
$refs
[
'addForm'
].
length
)
{
if
(
num
==
this
.
$refs
[
'addForm'
].
length
)
{
let
deliveryDetailList
=
this
.
detailInfo
.
deliveryDetailList
.
filter
(
item
=>
{
if
(
item
.
deliveryCardList
.
length
==
0
)
{
return
item
}
}
)
let
params
=
{
let
params
=
{
deliveryDetailList
:
this
.
detailInfo
.
deliveryDetailList
deliveryDetailList
:
deliveryDetailList
}
}
params
.
id
=
this
.
id
params
.
id
=
this
.
id
this
.
$apis
.
delivery
.
addPurchaseOrder
(
params
).
then
(
res
=>
{
this
.
$apis
.
delivery
.
addPurchaseOrder
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
...
@@ -315,4 +345,19 @@ export default {
...
@@ -315,4 +345,19 @@ export default {
height
:
64
px
;
height
:
64
px
;
}
}
}
}
.
lookNumber
{
font
-
size
:
14
px
;
color
:
#
5850
ff
!
important
;
cursor
:
pointer
;
margin
-
left
:
8
px
;
}
.
look
-
card
-
wrap
{
/
deep
/
.
el
-
table
th
.
el
-
table__cell
>
.
cell
{
padding
:
0
16
px
;
text
-
align
:
center
;
}
/deep/
.
el
-
table__body
td
.
el
-
table__cell
{
text
-
align
:
center
;
}
}
<
/style
>
<
/style
>
src/views/DeliverList/deliverDetail.vue
View file @
a7938bf
...
@@ -24,21 +24,28 @@
...
@@ -24,21 +24,28 @@
<div>
<div>
发货数量:
发货数量:
<span>
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`${item.purchaseNumber
}
卷`
:
`${item.purchaseNumber
}
件`
}}
<
/span
>
<span>
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`${item.purchaseNumber
}
卷`
:
`${item.purchaseNumber
}
件`
}}
<
/span
>
<
span
class
=
"lookNumber"
@
click
=
"lookNumber(item.deliveryCardList)"
v
-
if
=
"item.deliveryCardList && item.deliveryCardList.length > 0"
>
查看卡号
<
/span
>
<
/div
>
<
/div
>
<
div
>
<
div
>
可用库存数量:
可用库存数量:
<
span
>
{{
item
.
stockNum
}}
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
span
>
{{
item
.
stockNum
}}
{{
membraneTypeList
.
includes
(
item
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
>
<
el
-
form
ref
=
"addForm"
:
model
=
"item"
size
=
"small"
v
-
if
=
"item.deliveryCardList === null||item.deliveryCardList.length==0"
>
<
GLTable
:
tableData
=
"item.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
GLTable
:
tableData
=
"item.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
span
>
{{
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
`${scope.scope.increaseStockNum
}
米`
:
`${scope.scope.increaseStockNum
}
件`
}}
<
/span
>
<
span
>
{{
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
`${scope.scope.increaseStockNum
}
米`
:
`${scope.scope.increaseStockNum
}
件`
}}
<
/span
>
<
/template
>
<
/template
>
<
/GLTable
>
<
/GLTable
>
<
/el-form
>
<
/el-form
>
<
div
v
-
else
class
=
"message"
>
已自动入库至商户的权益卡管理中,可前往“库存管理
-
权益卡管理”中查询
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
el
-
dialog
width
=
"750px"
title
=
"查看发货卡号"
:
visible
.
sync
=
"innerVisible"
append
-
to
-
body
>
<
GLTable
class
=
"look-card-wrap"
:
tableData
=
"tableData"
:
noDataImg
=
"url"
:
tableParams
=
"innerParams"
:
hasPage
=
"false"
><
/GLTable
>
<
/el-dialog
>
<
/GLDialog
>
<
/GLDialog
>
<
/template
>
<
/template
>
...
@@ -72,6 +79,7 @@ export default {
...
@@ -72,6 +79,7 @@ export default {
}
,
}
,
data
()
{
data
()
{
return
{
return
{
innerVisible
:
false
,
membraneTypeList
:
membraneTypeList
,
membraneTypeList
:
membraneTypeList
,
dayjs
:
dayjs
,
dayjs
:
dayjs
,
goodsList
:
[],
goodsList
:
[],
...
@@ -95,6 +103,17 @@ export default {
...
@@ -95,6 +103,17 @@ export default {
}
}
]
]
}
,
}
,
innerParams
:
{
tableOption
:
false
,
tableColumns
:
[
{
label
:
'卡号'
,
prop
:
'cardNum'
,
width
:
630
}
]
}
,
tableData
:
[],
detailInfo
:
{
}
detailInfo
:
{
}
}
}
}
,
}
,
...
@@ -109,6 +128,12 @@ export default {
...
@@ -109,6 +128,12 @@ export default {
this
.
detailInfo
=
res
.
data
this
.
detailInfo
=
res
.
data
}
}
}
)
}
)
}
,
lookNumber
(
data
)
{
this
.
innerVisible
=
true
this
.
tableData
=
data
.
map
(
item
=>
{
return
{
cardNum
:
item
}
}
)
}
}
}
}
}
}
...
@@ -142,4 +167,22 @@ export default {
...
@@ -142,4 +167,22 @@ export default {
position
:
static
;
position
:
static
;
}
}
}
}
.
lookNumber
{
font
-
size
:
14
px
;
color
:
#
5850
ff
!
important
;
cursor
:
pointer
;
margin
-
left
:
8
px
;
}
.
look
-
card
-
wrap
{
max
-
height
:
600
px
;
overflow
-
y
:
scroll
;
overflow
-
x
:
hidden
;
/deep/
.
el
-
table
th
.
el
-
table__cell
>
.
cell
{
padding
:
0
16
px
;
text
-
align
:
center
;
}
/deep/
.
el
-
table__body
td
.
el
-
table__cell
{
text
-
align
:
center
;
}
}
<
/style
>
<
/style
>
src/views/DeliverList/index.vue
View file @
a7938bf
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<GLTable
ref=
"orderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"orderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"putStatus"
slot-scope=
"scope"
>
<template
slot=
"putStatus"
slot-scope=
"scope"
>
<div>
<div>
<span
:class=
"[scope.scope.putStatus == 1 ? '
yellowSpot' : 'green
Spot']"
></span>
<span
:class=
"[scope.scope.putStatus == 1 ? '
ashSpot' :scope.scope.putStatus == 2? 'greenSpot':'yellow
Spot']"
></span>
<span>
{{
scope
.
scope
.
putStatus
|
puStatus
}}
</span>
<span>
{{
scope
.
scope
.
putStatus
|
puStatus
}}
</span>
</div>
</div>
</
template
>
</
template
>
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
],
],
tableButtonList
:
[
tableButtonList
:
[
{
{
type
:
'
GLB
utton'
,
type
:
'
el-b
utton'
,
name
:
'查看'
,
name
:
'查看'
,
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
...
@@ -124,7 +124,7 @@ export default {
...
@@ -124,7 +124,7 @@ export default {
fn
:
'入库'
fn
:
'入库'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
putStatus
==
1
&&
row
.
operatorStatus
==
1
return
row
.
putStatus
==
1
&&
row
.
operatorStatus
==
1
||
row
.
putStatus
==
3
&&
row
.
operatorStatus
==
1
},
},
listeners
:
{
listeners
:
{
click
:
this
.
handleWarehousing
click
:
this
.
handleWarehousing
...
...
src/views/purchaseOrder/add.vue
View file @
a7938bf
...
@@ -160,7 +160,7 @@ export default {
...
@@ -160,7 +160,7 @@ export default {
},
},
// 获取类目列表
// 获取类目列表
getGoodsCategoryConfiguration
()
{
getGoodsCategoryConfiguration
()
{
this
.
$apis
.
sysBase
.
getGoodsCategoryConfiguration
({
sceneType
:
1
,
shoppingMallFlag
:
true
}).
then
(
result
=>
{
this
.
$apis
.
sysBase
.
getGoodsCategoryConfiguration
({
shoppingMallFlag
:
true
}).
then
(
result
=>
{
const
{
list
}
=
result
const
{
list
}
=
result
if
(
list
.
length
)
{
if
(
list
.
length
)
{
const
navList
=
list
.
map
(({
categoryType
,
categoryName
})
=>
{
const
navList
=
list
.
map
(({
categoryType
,
categoryName
})
=>
{
...
...
src/views/purchaseOrder/components/goodsDetailCom.vue
View file @
a7938bf
<
template
>
<
template
>
<!--
<div>
商品详情
</div>
-->
<!--
<div>
商品详情
</div>
-->
<GLDialog
destroy-on-close=
"true"
:visible
.
sync=
"dialogShow"
:hasFooter=
"false"
mode=
"big"
bigTitle=
"产品详情"
<GLDialog
destroy-on-close=
"true"
:visible
.
sync=
"dialogShow"
:hasFooter=
"false"
mode=
"big"
bigTitle=
"产品详情"
:close-on-click-modal=
"false"
@
onOk=
"handleSubmit"
@
onCancel=
"handleDetailClose"
>
:close-on-click-modal=
"false"
@
onOk=
"handleSubmit"
@
onCancel=
"handleDetailClose"
>
<div
class=
"detail-content"
>
<div
class=
"detail-content"
>
<!-- 商品详情 -->
<!-- 商品详情 -->
<div
class=
"goodsInfoCom"
>
<div
class=
"goodsInfoCom"
>
...
@@ -20,15 +19,20 @@
...
@@ -20,15 +19,20 @@
<span
class=
"num"
>
{{
goodsInfo
.
purchaseOrderCount
||
0
}}
笔
</span>
<span
class=
"num"
>
{{
goodsInfo
.
purchaseOrderCount
||
0
}}
笔
</span>
</span>
</span>
</div>
</div>
<div
class=
"productCode"
>
商品编码:
{{
goodsInfo
.
upgradeGoodsList
&&
goodsInfo
.
upgradeGoodsList
[
selectIndex
].
type
}}
</div>
<div
class=
"productCode"
v-if=
"goodsInfo.upgradeGoodsList && goodsInfo.upgradeGoodsList.length > 0"
>
商品编码:
{{
goodsInfo
.
upgradeGoodsList
[
selectIndex
].
type
}}
</div>
<div
class=
"skuCon"
>
<div
class=
"skuCon"
>
<div
class=
"label"
>
规格:
</div>
<div
class=
"label"
>
规格:
</div>
<div
class=
"itemCon"
>
<div
class=
"itemCon"
>
<div
class=
"skuItem one-line-ellipsis pointer"
:class=
"
{ active: index === selectIndex }"
<div
v-for="(item, index) in goodsInfo.upgradeGoodsList" :key="index" @click="
class=
"skuItem one-line-ellipsis pointer"
:class=
"
{ active: index === selectIndex }"
v-for="(item, index) in goodsInfo.upgradeGoodsList"
:key="index"
@click="
selectIndex = index
selectIndex = index
setHandleItemInfo(item)
setHandleItemInfo(item)
">
"
>
{{
item
.
upgradeGoodsName
}}
{{
item
.
upgradeGoodsName
}}
</div>
</div>
</div>
</div>
...
@@ -47,7 +51,7 @@
...
@@ -47,7 +51,7 @@
<
/div
>
<
/div
>
<!--
<
i
class
=
"carIcon"
><
/i> --
>
<!--
<
i
class
=
"carIcon"
><
/i> --
>
<
/div
>
<
/div
>
<
div
class
=
"table-wrap"
v
-
if
=
"tableInfo
&&
tableInfo.length"
>
<
div
class
=
"table-wrap"
v
-
if
=
"tableInfo
&&
tableInfo.length"
>
<
h3
>
适用门店
<
/h3
>
<
h3
>
适用门店
<
/h3
>
<
GLTable
:
hasNum
=
"false"
:
hasPage
=
"false"
:
tableParams
=
"tableParams"
:
table
-
data
=
"tableInfo"
><
/GLTable
>
<
GLTable
:
hasNum
=
"false"
:
hasPage
=
"false"
:
tableParams
=
"tableParams"
:
table
-
data
=
"tableInfo"
><
/GLTable
>
<
/div
>
<
/div
>
...
@@ -76,7 +80,7 @@ export default {
...
@@ -76,7 +80,7 @@ export default {
}
,
}
,
selectItemInfo
:
{
selectItemInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
}
}
,
}
,
goodsId
:
{
goodsId
:
{
type
:
[
String
,
Number
]
type
:
[
String
,
Number
]
...
@@ -156,20 +160,17 @@ export default {
...
@@ -156,20 +160,17 @@ export default {
// this.goodsInfo.upgradeGoodsList[index] = this.goodsInfo.upgradeGoodsList[0]
// this.goodsInfo.upgradeGoodsList[index] = this.goodsInfo.upgradeGoodsList[0]
//
}
//
}
// 默认选中第一个
// 默认选中第一个
const
item
=
this
.
goodsInfo
.
upgradeGoodsList
[
0
]
let
item
=
this
.
goodsInfo
.
upgradeGoodsList
[
0
]
// console.log(item)
this
.
setHandleItemInfo
(
item
)
item
&&
this
.
setHandleItemInfo
(
item
)
}
)
}
)
}
,
}
,
setHandleItemInfo
(
item
)
{
setHandleItemInfo
(
item
=
{
}
)
{
console
.
log
(
item
)
const
{
id
,
purchasePrice
}
=
item
const
{
id
,
purchasePrice
}
=
item
this
.
handleItemInfo
=
Object
.
assign
(
this
.
handleItemInfo
,
{
this
.
handleItemInfo
=
Object
.
assign
(
this
.
handleItemInfo
,
{
upgradeGoodsId
:
id
,
upgradeGoodsId
:
id
,
purchasePrice
purchasePrice
}
)
}
)
// this.tableInfo = item.merchantGoodsInfo
this
.
tableInfo
=
item
.
merchantGoodsInfo
&&
item
.
merchantGoodsInfo
.
filter
(
item
=>
item
.
goodsAlias
)
this
.
tableInfo
=
item
.
merchantGoodsInfo
.
filter
(
item
=>
item
.
goodsAlias
)
}
,
}
,
handleDetailClose
()
{
handleDetailClose
()
{
this
.
dialogShow
=
false
this
.
dialogShow
=
false
...
@@ -179,10 +180,13 @@ export default {
...
@@ -179,10 +180,13 @@ export default {
goodsNumber
:
this
.
handleItemInfo
.
goodsNumber
,
goodsNumber
:
this
.
handleItemInfo
.
goodsNumber
,
upgradeGoodsId
:
this
.
handleItemInfo
.
upgradeGoodsId
upgradeGoodsId
:
this
.
handleItemInfo
.
upgradeGoodsId
}
}
if
(
!
params
.
upgradeGoodsId
)
{
this
.
$message
.
error
(
'商品不存在'
)
return
}
// 判断是否有值
// 判断是否有值
params
.
upgradeGoodsId
&&
params
.
upgradeGoodsId
&&
this
.
$apis
.
purchaseShopping
.
shoppingCarAdd
(
params
).
then
(
res
=>
{
this
.
$apis
.
purchaseShopping
.
shoppingCarAdd
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
$message
.
success
(
'加入购物车成功'
)
this
.
$message
.
success
(
'加入购物车成功'
)
this
.
$EventBus
.
$emit
(
'updateCarShopping'
)
this
.
$EventBus
.
$emit
(
'updateCarShopping'
)
this
.
dialogShow
=
false
this
.
dialogShow
=
false
...
@@ -329,11 +333,11 @@ export default {
...
@@ -329,11 +333,11 @@ export default {
margin
-
bottom
:
16
px
;
margin
-
bottom
:
16
px
;
}
}
}
}
.
productCode
{
.
productCode
{
font
-
weight
:
400
;
font
-
weight
:
400
;
font
-
size
:
14
px
;
font
-
size
:
14
px
;
color
:
#
666666
;
color
:
#
666666
;
margin
-
bottom
:
16
px
;
margin
-
bottom
:
16
px
;
padding
-
left
:
18
px
;
padding
-
left
:
18
px
;
}
}
<
/style
>
<
/style
>
src/views/purchaseOrder/components/orderDetailDialog.vue
View file @
a7938bf
<
template
>
<
template
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"详细信息"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
@
onOk=
"dialogShow = false"
@
onCancel=
"dialogShow =
false"
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"详细信息"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
@
onOk=
"dialogShow = false"
@
onCancel=
"dialogShow = false"
:hasFooter=
"
false"
>
<div
class=
"detail-content"
v-if=
"dialogShow"
>
<div
class=
"detail-content"
v-if=
"dialogShow"
>
<div
class=
"addressTitle"
>
<div
class=
"addressTitle"
>
<img
src=
"@/images/addressIcon.webp"
alt=
""
class=
"icon"
/>
<img
src=
"@/images/addressIcon.webp"
alt=
""
class=
"icon"
/>
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
<GLTable
ref=
"purchaseOrderDetailTable"
:tableParams=
"tableParams"
@
refreshTable=
"refreshTable"
:tableData=
"detailInfo.tableData"
:pageConf=
"pageConf"
:tableTotal=
"detailInfo.tableTotal"
></GLTable>
<GLTable
ref=
"purchaseOrderDetailTable"
:tableParams=
"tableParams"
@
refreshTable=
"refreshTable"
:tableData=
"detailInfo.tableData"
:pageConf=
"pageConf"
:tableTotal=
"detailInfo.tableTotal"
></GLTable>
</div>
</div>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"dialogShow = false"
>
关闭
</el-button>
</span>
</GLDialog>
</GLDialog>
</
template
>
</
template
>
...
@@ -51,7 +48,6 @@ export default {
...
@@ -51,7 +48,6 @@ export default {
dialogShow
:
{
dialogShow
:
{
get
()
{
get
()
{
if
(
this
.
visible
)
{
if
(
this
.
visible
)
{
this
.
getDetail
({
currentPage
:
1
,
pageSize
:
20
})
this
.
getDetail
({
currentPage
:
1
,
pageSize
:
20
})
}
}
return
this
.
visible
return
this
.
visible
...
@@ -124,7 +120,7 @@ export default {
...
@@ -124,7 +120,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
dynamicParams
()
this
.
dynamicParams
()
},
},
methods
:
{
methods
:
{
dynamicParams
()
{
dynamicParams
()
{
...
@@ -134,13 +130,19 @@ export default {
...
@@ -134,13 +130,19 @@ export default {
label
:
'已发货数量'
,
label
:
'已发货数量'
,
prop
:
'purchaseNumber'
,
prop
:
'purchaseNumber'
,
width
:
110
,
width
:
110
,
line
:
1
line
:
1
,
formatter
:
cellValue
=>
{
return
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
purchaseNumber
}
卷`
:
`
${
cellValue
.
purchaseNumber
}
件`
}
},
},
{
{
label
:
'已入库数量'
,
label
:
'已入库数量'
,
prop
:
'inputNumber'
,
prop
:
'inputNumber'
,
width
:
110
,
width
:
110
,
line
:
1
line
:
1
,
formatter
:
cellValue
=>
{
return
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
inputNumber
}
米`
:
`
${
cellValue
.
inputNumber
}
件`
}
}
}
)
)
}
else
{
}
else
{
...
@@ -169,7 +171,6 @@ export default {
...
@@ -169,7 +171,6 @@ export default {
getDetail
(
pageObj
)
{
getDetail
(
pageObj
)
{
this
.
$apis
.
purchaseShopping
.
purchaseOrderDetail
({
orderCode
:
this
.
paramsObj
.
orderCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}).
then
(
res
=>
{
this
.
$apis
.
purchaseShopping
.
purchaseOrderDetail
({
orderCode
:
this
.
paramsObj
.
orderCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}).
then
(
res
=>
{
this
.
detailInfo
=
res
this
.
detailInfo
=
res
console
.
log
(
this
.
detailInfo
)
this
.
detailInfo
.
tableData
=
res
.
pagination
.
list
this
.
detailInfo
.
tableData
=
res
.
pagination
.
list
this
.
detailInfo
.
tableTotal
=
res
.
pagination
.
total
this
.
detailInfo
.
tableTotal
=
res
.
pagination
.
total
})
})
...
...
src/views/purchaseOrder/components/shoppingCartCom.vue
View file @
a7938bf
...
@@ -228,7 +228,6 @@ export default {
...
@@ -228,7 +228,6 @@ export default {
}
)
}
)
}
,
}
,
handleAllCheckChange
(
value
)
{
handleAllCheckChange
(
value
)
{
console
.
log
(
value
)
const
idsName
=
value
?
'selectedIds'
:
'notSelectedIds'
const
idsName
=
value
?
'selectedIds'
:
'notSelectedIds'
const
list
=
this
.
goodsSelectStatus
.
map
(
item
=>
{
const
list
=
this
.
goodsSelectStatus
.
map
(
item
=>
{
// item.selectedFlag = value ? 'Y' : 'N'
// item.selectedFlag = value ? 'Y' : 'N'
...
@@ -237,7 +236,6 @@ export default {
...
@@ -237,7 +236,6 @@ export default {
this
.
updateSelectedFlag
({
[
idsName
]:
list
}
)
this
.
updateSelectedFlag
({
[
idsName
]:
list
}
)
}
,
}
,
handleGoodsTypeCheckChange
(
value
,
typeList
)
{
handleGoodsTypeCheckChange
(
value
,
typeList
)
{
console
.
log
(
value
)
const
idsName
=
value
?
'selectedIds'
:
'notSelectedIds'
const
idsName
=
value
?
'selectedIds'
:
'notSelectedIds'
const
list
=
typeList
.
upgradeGoodsList
.
map
(
item
=>
{
const
list
=
typeList
.
upgradeGoodsList
.
map
(
item
=>
{
return
item
.
id
return
item
.
id
...
@@ -245,7 +243,6 @@ export default {
...
@@ -245,7 +243,6 @@ export default {
this
.
updateSelectedFlag
({
[
idsName
]:
list
}
)
this
.
updateSelectedFlag
({
[
idsName
]:
list
}
)
}
,
}
,
handleGoodsCheckChange
(
value
,
goodsItem
)
{
handleGoodsCheckChange
(
value
,
goodsItem
)
{
console
.
log
(
value
)
const
idsName
=
value
?
'selectedIds'
:
'notSelectedIds'
const
idsName
=
value
?
'selectedIds'
:
'notSelectedIds'
// this.restGoodsList()
// this.restGoodsList()
this
.
updateSelectedFlag
({
this
.
updateSelectedFlag
({
...
@@ -297,7 +294,6 @@ export default {
...
@@ -297,7 +294,6 @@ export default {
let
goodsSelectTotalNumber
=
0
let
goodsSelectTotalNumber
=
0
let
goodsTotalNumber
=
0
let
goodsTotalNumber
=
0
let
isIndeterminate
=
false
let
isIndeterminate
=
false
console
.
log
(
'this.goodsList'
,
this
.
goodsList
)
// debugger
// debugger
this
.
goodsList
=
this
.
goodsList
.
map
(
item
=>
{
this
.
goodsList
=
this
.
goodsList
.
map
(
item
=>
{
const
length
=
item
.
upgradeGoodsList
.
length
const
length
=
item
.
upgradeGoodsList
.
length
...
@@ -305,7 +301,6 @@ export default {
...
@@ -305,7 +301,6 @@ export default {
item
.
goodsTypeCheckout
=
item
.
upgradeGoodsList
.
every
(
goodsItem
=>
goodsItem
.
selectedFlag
)
item
.
goodsTypeCheckout
=
item
.
upgradeGoodsList
.
every
(
goodsItem
=>
goodsItem
.
selectedFlag
)
item
.
upgradeGoodsList
.
forEach
(
goodsItem
=>
{
item
.
upgradeGoodsList
.
forEach
(
goodsItem
=>
{
// if (goodsItem.selectedFlag == 'Y') isIndeterminate = true
// if (goodsItem.selectedFlag == 'Y') isIndeterminate = true
console
.
log
(
goodsItem
,
'goodsItem'
)
goodsTotalNumber
+=
1
goodsTotalNumber
+=
1
if
(
goodsItem
.
selectedFlag
)
{
if
(
goodsItem
.
selectedFlag
)
{
// debugger
// debugger
...
@@ -325,7 +320,7 @@ export default {
...
@@ -325,7 +320,7 @@ export default {
return
item
return
item
}
)
}
)
// 只有有一个选中并且不是全选状态
// 只有有一个选中并且不是全选状态
console
.
log
(
isIndeterminate
)
this
.
isIndeterminate
=
checkoutFlag
?
false
:
isIndeterminate
this
.
isIndeterminate
=
checkoutFlag
?
false
:
isIndeterminate
this
.
goodsSelectTotalNumber
=
goodsSelectTotalNumber
this
.
goodsSelectTotalNumber
=
goodsSelectTotalNumber
this
.
goodsTotalNumber
=
goodsTotalNumber
this
.
goodsTotalNumber
=
goodsTotalNumber
...
...
src/views/purchaseOrder/index.vue
View file @
a7938bf
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</
template
>
</
template
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<div>
<div>
<span
v-if=
"scope.scope.status"
:class=
"
[scope.scope.status == 1 ? 'yellowSpot' : scope.scope.status == 2 ? 'greenSpot' : scope.scope.status == 3 ? 'ashSpot' : 'redSpot'
]"
></span>
<span
v-if=
"scope.scope.status"
:class=
"
Spot[scope.scope.status-1
]"
></span>
<span
v-if=
"scope.scope.status==4||scope.scope.status==6||scope.scope.status==7"
>
已驳回
</span>
<span
v-if=
"scope.scope.status==4||scope.scope.status==6||scope.scope.status==7"
>
已驳回
</span>
<span
v-else
>
{{
scope
.
scope
.
status
|
orderStatus
}}
</span>
<span
v-else
>
{{
scope
.
scope
.
status
|
orderStatus
}}
</span>
</div>
</div>
...
@@ -57,6 +57,7 @@ export default {
...
@@ -57,6 +57,7 @@ export default {
return
{
return
{
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
Spot
:[
'yellowSpot'
,
'yellowSpot'
,
'ashSpot'
,
'redSpot'
,
'greenSpot'
,
'redSpot'
,
'redSpot'
],
searchForm
:
{
searchForm
:
{
status
:
''
,
status
:
''
,
deliveryStatus
:
''
,
deliveryStatus
:
''
,
...
...
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