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 c5a46928
authored
Jun 08, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.22.0' into 'master'
V4.22.0 See merge request
!4
2 parents
bb1b422c
f307800f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
87 deletions
src/utils/constants.js
src/views/DeliverList/deliverAdd.vue
src/views/DeliverList/deliverDetail.vue
src/views/purchaseOrder/components/goodsDetailCom.vue
src/views/purchaseOrder/index.vue
src/views/purchaseOrder/into.vue
src/utils/constants.js
View file @
c5a4692
...
...
@@ -2,11 +2,11 @@
export
const
defaultStatusOptions
=
[
{
id
:
1
,
label
:
"
待
审核"
label
:
"
运营
审核"
},
{
id
:
2
,
label
:
"
已
审核"
label
:
"
商务
审核"
},
{
id
:
3
,
...
...
@@ -15,7 +15,19 @@ export const defaultStatusOptions = [
{
id
:
4
,
label
:
"已驳回"
},
{
id
:
5
,
label
:
"已审核"
}
// {
// id: 6,
// label: "已审核"
// },
// {
// id: 7,
// label: "已驳回"
// }
]
// 发货状态
export
const
defaultDeliveryStatusOptions
=
[
...
...
src/views/DeliverList/deliverAdd.vue
View file @
c5a4692
...
...
@@ -63,14 +63,12 @@
<
/el-form
>
<
/div
>
<
/template
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
size
=
"small"
@
click
=
"dialogShow = false"
>
关闭
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"small"
@
click
=
"handleSave"
>
保存入库
<
/el-button
>
<
/span
>
<
/GLDialog
>
<
/template
>
<
script
>
import
BigNumber
from
'bignumber.js'
import
*
as
dayjs
from
'dayjs'
...
...
@@ -92,7 +90,6 @@ export default {
get
()
{
if
(
this
.
visible
)
{
this
.
getDetail
()
}
return
this
.
visible
}
,
...
...
@@ -210,18 +207,18 @@ export default {
this
.
$apis
.
delivery
.
getDeliveryDetail
({
id
:
this
.
id
}
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
res
.
data
.
deliveryDetailList
.
forEach
(
item
=>
{
item
.
goodsWarehousingList
=
[
{
increaseStockNum
:
''
,
yqMerchantId
:
''
,
yqMerchantName
:
''
,
merchantId
:
''
,
merchantName
:
''
}
]
item
.
goodsWarehousingList
=
[
{
increaseStockNum
:
''
,
yqMerchantId
:
''
,
yqMerchantName
:
''
,
merchantId
:
''
,
merchantName
:
''
}
]
}
)
this
.
detailInfo
=
res
.
data
this
.
getMerchantList
()
this
.
getMerchantList
()
}
}
)
}
,
...
...
@@ -287,7 +284,6 @@ export default {
}
}
<
/script
>
<
style
lang
=
"scss"
scoped
>
.
detail
-
info
{
display
:
flex
;
...
...
src/views/DeliverList/deliverDetail.vue
View file @
c5a4692
<
template
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"详细信息"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"详细信息"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
:hasFooter=
"false"
>
<div
class=
"detail-info"
>
<div>
发货单号:
...
...
@@ -39,10 +39,6 @@
<
/el-form
>
<
/div
>
<
/template
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
size
=
"small"
@
click
=
"dialogShow = false"
>
关闭
<
/el-button
>
<
/span
>
<
/GLDialog
>
<
/template
>
...
...
src/views/purchaseOrder/components/goodsDetailCom.vue
View file @
c5a4692
...
...
@@ -20,7 +20,7 @@
<span
class=
"num"
>
{{
goodsInfo
.
purchaseOrderCount
||
0
}}
笔
</span>
</span>
</div>
<div
class=
"productCode"
>
商品编码:
{{
goodsInfo
.
type
}}
</div>
<div
class=
"productCode"
>
商品编码:
{{
goodsInfo
.
upgradeGoodsList
&&
goodsInfo
.
upgradeGoodsList
[
selectIndex
].
type
}}
</div>
<div
class=
"skuCon"
>
<div
class=
"label"
>
规格:
</div>
<div
class=
"itemCon"
>
...
...
@@ -264,7 +264,7 @@ export default {
.
skuItem
{
box
-
sizing
:
border
-
box
;
width
:
234
px
;
min
-
width
:
234
px
;
height
:
36
px
;
background
:
#
ffffff
;
border
:
1
px
solid
#
e7edf9
;
...
...
src/views/purchaseOrder/index.vue
View file @
c5a4692
...
...
@@ -29,15 +29,11 @@
<
template
slot=
"status"
slot-scope=
"scope"
>
<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>
{{
scope
.
scope
.
status
|
orderStatus
}}
</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>
</div>
</
template
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1 && scope.scope.purchaseType == 2" @click="handleDelete(scope.scope)" fn="删除">删除</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1" @click="handleEdit(scope.scope)" fn="编辑">编辑</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)" fn="取消">取消</GLButton>
<GLButton type="text" size="small" v-show="(scope.scope.putStatus == 1 && scope.scope.deliveryStatus == 2 && scope.scope.purchaseType == 1) || (scope.scope.putStatus == 1 && scope.scope.purchaseType == 2)" @click="handleWarehousing(scope.scope)" fn="入库">入库</GLButton> -->
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</GLTable>
...
...
@@ -100,9 +96,9 @@ export default {
isClear
:
true
,
maxlength
:
50
},
{
{
label
:
'订单状态'
,
name
:
'status'
,
name
:
'status
es
'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'id'
,
...
...
@@ -127,41 +123,6 @@ export default {
optionLabel
:
'label'
,
optionsName
:
'putStatusOptions'
},
// {
// label: '入库时间',
// name: 'warehousingTimeStr',
// type: 'datePicker',
// isClear: true,
// 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: 'storeUsage',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'storeUsageList'
// },
{
label
:
'采购类型'
,
name
:
'purchaseType'
,
...
...
@@ -219,26 +180,12 @@ export default {
fn
:
'取消'
},
condition
:
row
=>
{
return
row
.
status
==
1
return
row
.
status
==
1
&&
row
.
purchaseType
==
1
},
listeners
:
{
click
:
this
.
handleCancel
}
},
// {
// type: 'GLButton',
// name: '入库',
// attrs: {
// type: 'text',
// fn: '入库'
// },
// condition: row => {
// return (row.putStatus == 1 && row.deliveryStatus == 2 && row.purchaseType == 1) || (row.putStatus == 1 && row.purchaseType == 2)
// },
// listeners: {
// click: this.handleWarehousing
// }
// },
{
type
:
'el-button'
,
name
:
'发货单'
,
...
...
@@ -386,6 +333,13 @@ export default {
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
if
(
this
.
tableSearchForm
.
statuses
)
{
if
(
this
.
tableSearchForm
.
statuses
==
4
)
{
this
.
tableSearchForm
.
statuses
=
[
4
,
6
,
7
]
}
else
{
this
.
tableSearchForm
.
statuses
=
[
this
.
tableSearchForm
.
statuses
]
}
}
delete
this
.
tableSearchForm
.
warehousingTimeStr
delete
this
.
tableSearchForm
.
placeOrderTimeStr
resolve
()
...
...
@@ -493,10 +447,9 @@ export default {
this
.
$refs
.
orderRef
.
data
.
length
?
(
this
.
$refs
.
orderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
orderRef
.
setTableHeightFun
()
},
// 创建采购
async
handleCreatePurchase
()
{
let
result
=
await
this
.
checkShipper
()
console
.
log
(
result
)
if
(
result
)
this
.
$router
.
push
(
'/purchaseOrder/add'
)
handleCreatePurchase
()
{
// let result = await this.checkShipper()
this
.
$router
.
push
(
'/purchaseOrder/add'
)
},
checkShipper
()
{
return
new
Promise
(
resolve
=>
{
...
...
src/views/purchaseOrder/into.vue
View file @
c5a4692
...
...
@@ -230,7 +230,6 @@ export default {
this
.
$apis
.
purchaseShopping
.
selectByOrderCode
({
orderCode
:
this
.
orderCode
}).
then
(
res
=>
{
res
.
forEach
(
item
=>
{
item
.
putYqMerchantId
=
String
(
item
.
putYqMerchantId
)
item
.
putMerchantId
=
item
.
putMerchantId
item
.
refByYqShopList
=
[]
this
.
getRefByYqShopList
(
item
,
item
.
putYqMerchantId
)
})
...
...
@@ -267,7 +266,7 @@ export default {
this
.
getRefByYqShopList
(
data
,
id
)
},
handleStoreSelect
(
data
,
id
)
{
this
.
refByYqShopList
.
forEach
(
item
=>
{
data
.
refByYqShopList
.
forEach
(
item
=>
{
if
(
item
.
merchantId
==
id
)
{
data
.
putMerchantName
=
item
.
merchantName
}
...
...
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