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 52443d4b
authored
Mar 07, 2023
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v4.16.0' of
http://192.168.3.233:8090/saas_plus/dj-car-life-sy…
…stem into dev_v4.16.0
2 parents
3e8f82ec
813f62f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
63 deletions
src/router/modules/909_purchase.js
src/store/modules/d2admin/modules/account.js
src/views/purchase/purchasingMall.vue
src/views/stockManage/inventory/addInventory.vue
src/router/modules/909_purchase.js
View file @
52443d4
...
...
@@ -101,6 +101,7 @@ export const routerName = {
90903
:
{
path
:
"/procurementReview"
,
name
:
"procurementReview"
,
role
:
"admin"
,
meta
:
{
title
:
"采购审核"
,
authId
:
"90903"
,
...
...
@@ -136,6 +137,7 @@ export const routerName = {
90904
:
{
path
:
"/purchaseAndDelivery"
,
name
:
"purchaseAndDelivery"
,
role
:
"service"
,
meta
:
{
title
:
"采购发货"
,
authId
:
"90904"
,
...
...
src/store/modules/d2admin/modules/account.js
View file @
52443d4
...
...
@@ -40,16 +40,16 @@ export default {
getUserInfo
({}).
then
(
async
(
userInfo
)
=>
{
userInfo
.
beSuper
=
userInfo
.
loginAccount
.
isAdmin
==
1
if
(
userInfo
.
beSuper
)
{
//是否园区店
//
是否园区店
userInfo
.
beYQMerchant
=
true
//是否服务商
//
是否服务商
userInfo
.
beServerMerchant
=
true
}
else
{
//是否园区店
//
是否园区店
userInfo
.
beYQMerchant
=
userInfo
.
loginAccount
.
merchantAccountList
.
includes
(
"6"
)
||
userInfo
.
loginAccount
.
merchantAccountList
.
includes
(
"8"
)
//是否服务商
//
是否服务商
userInfo
.
beServerMerchant
=
userInfo
.
loginAccount
.
merchantAccountList
.
includes
(
"7"
)
}
...
...
@@ -105,6 +105,18 @@ export default {
}
var
tempAuths
=
[]
var
targetRoutes
=
res
.
beSuper
?
routeAll
:
res
.
map
((
i
)
=>
i
.
authId
)
// 先处理园区店角色是不能拿到 订单审批和发货的页面
console
.
log
(
"userInfo.beYQMerchant"
,
userInfo
.
beYQMerchant
)
const
filterList
=
[
"90903"
,
"90904"
]
if
(
!
userInfo
.
beSuper
&&
userInfo
.
beYQMerchant
)
{
targetRoutes
=
targetRoutes
.
filter
((
item
)
=>
{
return
!
filterList
.
includes
(
item
.
toString
())
})
}
if
(
userInfo
.
beServerMerchant
)
{
targetRoutes
.
push
(
"90904"
)
}
console
.
log
(
"targetRoutes"
,
targetRoutes
)
routeAll
.
map
((
i
)
=>
i
.
authId
)
.
forEach
((
item
,
index
)
=>
{
...
...
src/views/purchase/purchasingMall.vue
View file @
52443d4
...
...
@@ -188,7 +188,7 @@ export default {
// 获取类目列表
getGoodsCategoryConfiguration
()
{
// const { scene: 1 } = this.routerInfo
getGoodsCategoryConfiguration
({
sceneType
:
1
}).
then
((
result
)
=>
{
getGoodsCategoryConfiguration
({
sceneType
:
1
,
shoppingMallFlag
:
true
}).
then
((
result
)
=>
{
const
{
list
}
=
result
// console.log(list, 'list')
if
(
list
.
length
)
{
...
...
src/views/stockManage/inventory/addInventory.vue
View file @
52443d4
...
...
@@ -3,43 +3,29 @@
<div>
<d2-container>
<div
class=
"d2-container-content"
>
<div
class=
"header"
slot=
"header"
style=
"padding: 15px 0;"
>
<!--
<d2-search
ref=
"showSearch"
<div
class=
"header"
slot=
"header"
style=
"padding: 15px 0;"
>
<!--
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
-->
:form-data=
"showFormData"
/>
-->
<div>
<el-input
v-model=
"searchForm.searchName"
style=
"width:200px;"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
<!--
<el-button
:id=
"tableParams.btnId"
<el-input
v-model=
"searchForm.searchName"
style=
"width:200px;"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
<!--
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
-->
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
style=
"marginLeft:15px"
>
</el-button>
-->
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
style=
"marginLeft:15px"
>
查询
</el-button>
</div>
</div>
<p>
盘存
</p>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"inventory(scope.scope)"
:disabled=
"setDisabled(scope.scope)"
>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"inventory(scope.scope)"
:disabled=
"setDisabled(scope.scope)"
>
盘点
</el-button>
</div>
...
...
@@ -47,50 +33,39 @@
</div>
<div
class=
"d2-container-content"
>
<p>
盘存确认单
</p>
<d2-table
ref=
"recordTable2"
:table-data=
"chooseDataList"
:table-params=
"tableParams2"
:hasPage=
"false"
>
<template
slot=
"profitAndLoss"
slot-scope=
"scope"
>
<d2-table
ref=
"recordTable2"
:table-data=
"chooseDataList"
:table-params=
"tableParams2"
:has-page=
"false"
>
<template
slot=
"profitAndLoss"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0"
>
<span
v-if=
"parseFloat(scope.scope.profitAndLoss) > 0"
style=
"color:blue"
>
{{
'+'
+
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-else-if=
"parseFloat(scope.scope.profitAndLoss)
< 0
"
style=
"color:red"
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-else
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
this
.
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
</span>
<span
v-if=
"parseFloat(scope.scope.profitAndLoss) > 0"
style=
"color:blue"
>
{{
'+'
+
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-else-if=
"parseFloat(scope.scope.profitAndLoss)
< 0
"
style=
"color:red"
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-else
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
</span>
<span
v-else
>
-
</span>
</
template
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"cancelInventory(scope.row,scope.$index)"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"cancelInventory(scope.row, scope.$index)"
>
取消
</el-button>
</div>
</d2-table>
</div>
<d2-form
ref=
"addInventoryForm"
:origin-data=
"editData"
:form-list=
"editForm"
form-ref=
"inveFormRef"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
>
<d2-form
ref=
"addInventoryForm"
:origin-data=
"editData"
:form-list=
"editForm"
form-ref=
"inveFormRef"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
>
</d2-form>
</d2-container>
<!-- 盘点 -->
<inventory-num-dialog
:inventory-num-visible=
"inventoryNumVisible"
:recordInfo=
"recordInfo"
v-if=
"inventoryNumVisible"
@
dialogClose=
"dialogClose"
/>
<inventory-num-dialog
:inventory-num-visible=
"inventoryNumVisible"
:record-info=
"recordInfo"
v-if=
"inventoryNumVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</template>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
stockRemainPage
,
saveStockCheck
}
from
'@api/stockManage'
import
inventoryNumDialog
from
'./inventoryNumDialog'
...
...
@@ -193,7 +168,7 @@ export default {
},
editData
:
{
thumbUrlList
:
[]
,
thumbUrlList
:
[]
},
editForm
:
[{
formBlock
:
[
...
...
@@ -267,7 +242,7 @@ export default {
this
.
inventoryNumVisible
=
true
},
//设置禁选
//
设置禁选
setDisabled
(
row
)
{
const
index
=
this
.
chooseDataList
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
if
(
index
==
-
1
)
{
...
...
@@ -279,7 +254,7 @@ export default {
dialogClose
(
chooseData
)
{
this
.
inventoryNumVisible
=
!
this
.
inventoryNumVisible
console
.
log
(
chooseData
)
;
console
.
log
(
chooseData
)
if
(
chooseData
)
{
this
.
chooseDataList
.
push
(
chooseData
)
}
...
...
@@ -323,7 +298,7 @@ export default {
handleAddClose
(
isRefresh
=
false
)
{
this
.
close
({
tagName
:
'/addInventory'
})
this
.
$router
.
push
({
name
:
'inventoryList'
})
}
,
}
}
}
...
...
@@ -335,6 +310,7 @@ export default {
color
:
#2a58ad
;
margin
:
0
2px
;
}
.leftSpan
{
display
:
inline-block
;
box-sizing
:
border-box
;
...
...
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