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 a1fde8a3
authored
Jul 08, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:服务商页面漏加erp功能
1 parent
24149016
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
38 deletions
src/components/d2-auth/d2-auth-btn.js
src/views/financeManage/financeList.vue
src/views/financeManage/serviceFinanceList.vue
src/views/financeManage/warehouseDetail.vue
src/components/d2-auth/d2-auth-btn.js
View file @
a1fde8a
...
...
@@ -109,8 +109,8 @@ export default {
disabled
:
btn
.
ruleObj
?
btn
.
ruleObj
.
hasOwnProperty
(
'disabledStatusList'
)
?
btn
.
ruleObj
.
disabledStatusList
.
includes
(
data
[
btn
.
ruleObj
.
attr
]
)
data
[
btn
.
ruleObj
.
attr
]
)
:
false
:
false
},
...
...
src/views/financeManage/financeList.vue
View file @
a1fde8a
...
...
@@ -909,7 +909,8 @@ export default {
const
apiName
=
this
.
userInfo
.
beSuper
?
'getList'
:
'getYqList'
// console.log(params)
api
[
apiName
](
params
).
then
(
res
=>
{
// api[apiName](params).then(res => {
api
.
getList
(
params
).
then
(
res
=>
{
let
temp
=
1
this
.
tableData
=
res
.
list
.
map
((
item
,
index
)
=>
{
this
.
isSubOrder
=
!
item
.
hasOwnProperty
(
'subOrderProfitAllocations'
)
...
...
src/views/financeManage/serviceFinanceList.vue
View file @
a1fde8a
...
...
@@ -194,6 +194,15 @@
label=
"总分账金额"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"outboundStatus"
label=
"出库状态"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
:class=
"outboundStatusClass[scope.row.outboundStatus]"
></span>
<span>
{{
outboundStatusShow
[
scope
.
row
.
outboundStatus
]
}}
</span>
</
template
>
</el-table-column>
<!-- </el-table-column> -->
</el-table-column>
<el-table-column
label=
"流量方"
...
...
@@ -395,6 +404,11 @@
label=
"操作"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"mini"
style=
"margin-right: 10px;"
v-if=
"scope.row.hasOwnProperty('subOrderProfitAllocations')"
@
click=
"exWarehouse(scope.row)"
>
出库
</el-button>
<auth-button
:data=
"scope"
></auth-button>
</
template
>
</el-table-column>
...
...
@@ -412,6 +426,11 @@
<service-detail-dialog
:isVisible=
"serviceVisible"
:date=
"summaryDate"
@
handleStoreClose=
"handleStoreDetail"
></service-detail-dialog>
<!-- 出库面板 -->
<warehouse-detail
v-if=
"warehouseVisible"
:warehouseVisible=
"warehouseVisible"
:orderInfoId=
"orderId"
@
handleDrawerClose=
"handleDrawerClose"
></warehouse-detail>
</div>
</template>
...
...
@@ -419,6 +438,7 @@
// import moment from 'moment'
import
dayjs
from
'dayjs'
import
serviceDetailDialog
from
'./serviceDetailDialog'
import
warehouseDetail
from
'./warehouseDetail'
import
{
getServiceListApi
,
exportFile
,
getListTotal
,
getServicerefApi
,
getServiceSummaryApi
,
getList
}
from
'@api/finance'
import
{
getPartnerYqListApi
}
from
'@/api/account'
import
{
getServiceStore
}
from
'@api/editCustomer'
...
...
@@ -430,6 +450,22 @@ export default {
data
()
{
return
{
// captchaList: '',
orderId
:
''
,
warehouseVisible
:
false
,
outboundStatusShow
:
{
'1'
:
'待出库'
,
'2'
:
'待出库'
,
'3'
:
'出库中'
,
'4'
:
'已出库'
,
'5'
:
'出库失败'
},
outboundStatusClass
:
{
'1'
:
'ashSpot'
,
'2'
:
'ashSpot'
,
'3'
:
'yellowSpot'
,
'4'
:
'greenSpot'
,
'5'
:
'redSpot'
},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
// 单店或多店
isSingle
:
true
,
...
...
@@ -588,7 +624,8 @@ export default {
},
components
:
{
serviceDetailDialog
serviceDetailDialog
,
warehouseDetail
// captchaInput
},
...
...
@@ -619,6 +656,18 @@ export default {
handleAddClose
(
isRefresh
=
false
)
{
},
handleDrawerClose
(
isExamineOp
)
{
this
.
warehouseVisible
=
false
// if (isExamineOp) {
// this.$refs.commodityTable.refreshTable()
// }
},
exWarehouse
(
row
)
{
this
.
orderId
=
row
.
orderCode
// this.orderId = '2203150922321960'
this
.
warehouseVisible
=
true
},
drawFunnelChart
()
{
this
.
option
.
yAxis
.
data
=
this
.
summayData
.
countList
.
slice
(
0
,
10
).
map
(
item
=>
item
.
yqMerchantName
)
this
.
option
.
series
[
0
].
data
=
this
.
summayData
.
countList
.
slice
(
0
,
10
).
map
(
item
=>
item
.
totalFranchiseeProfitMoney
)
...
...
src/views/financeManage/warehouseDetail.vue
View file @
a1fde8a
...
...
@@ -10,7 +10,8 @@
style=
"background: #F2F4F7;"
>
<div
class=
"d2-drawer-block title-block"
>
<p
class=
"parentGoods"
>
出库明细表
<span
class=
"parent-type"
>
订单号:
{{
orderInfo
.
order
.
orderCode
}}
</span></p>
<span
class=
"parent-type"
>
订单号:
{{
orderInfo
.
order
.
orderCode
}}
</span>
</p>
<p
class=
"examineP"
>
{{
orderInfo
.
order
.
merchantName
}}
<span
style=
"paddingLeft:10px"
>
{{
orderInfo
.
order
.
merchantId
}}
</span></p>
<p
class=
"close-icon"
...
...
@@ -129,7 +130,8 @@
<el-input
v-model=
"orderInfo.order.remark"
>
</el-input>
</el-form-item>
-->
<div
class=
"subContainer"
v-for=
"(item,index) in orderInfo.subOrderList"
>
v-for=
"(item,index) in orderInfo.subOrderList"
:key=
"index"
>
<div
class=
"proTitle"
>
<p
class=
"proSub"
>
{{
item
.
upgradeGoodsName
}}
</p>
<div
v-if=
"item.upgradeSapCode_flag"
>
...
...
@@ -246,16 +248,16 @@ export default {
jurisdictionBtn
:
false
,
// 是否出库权限
isExamineOp
:
false
,
// 是否做了审核操作
captchaList
:
''
,
erpOrderResponse_orderNo
:
''
,
//退库产品销售订单号
erpOrderResponse_objList
:
[],
//退库产品销售订单号对应的项目集合
objList
:
[],
//对应项目下拉框选项
goodsList
:
[],
//替换产品下拉框
erpOrderResponse_orderNo
:
''
,
//
退库产品销售订单号
erpOrderResponse_objList
:
[],
//
退库产品销售订单号对应的项目集合
objList
:
[],
//
对应项目下拉框选项
goodsList
:
[],
//
替换产品下拉框
// editForm: {
// erpOrderResponse: [],
// subOrderList: []
// },
selectedOptions
:
[],
getErpOrderFlag
:
false
,
//判断ERP订单查询结果
getErpOrderFlag
:
false
,
//
判断ERP订单查询结果
btnOkLabel
:
'确认出库'
}
},
...
...
@@ -276,19 +278,18 @@ export default {
},
mounted
()
{
console
.
log
(
this
.
userInfo
);
if
(
this
.
userInfo
.
detail
.
channelType
==
2
)
{
//广汇渠道
let
accountType
=
[
6
,
7
,
8
]
//园区店、服务商、虚拟园区店
let
isAccountType
=
accountType
.
filter
((
item
)
=>
{
return
this
.
userInfo
.
detail
.
accountType
.
includes
(
item
)
})
if
(
isAccountType
)
{
if
(
this
.
userInfo
.
detail
.
userType
!=
2
)
{
//非员工账号
this
.
jurisdictionBtn
=
true
}
console
.
log
(
this
.
userInfo
)
// if (this.userInfo.detail.channelType == 2) { // 广汇渠道
const
accountType
=
[
6
,
7
,
8
]
// 园区店、服务商、虚拟园区店
const
isAccountType
=
accountType
.
filter
((
item
)
=>
{
return
this
.
userInfo
.
detail
.
accountType
.
includes
(
item
)
})
if
(
isAccountType
)
{
if
(
this
.
userInfo
.
detail
.
userType
!=
2
)
{
// 非员工账号
this
.
jurisdictionBtn
=
true
}
}
// }
this
.
getInfo
(
this
.
orderInfoId
)
this
.
getReplaceUpgrade
(
this
.
orderInfoId
)
...
...
@@ -302,22 +303,23 @@ export default {
getInfo
(
id
)
{
getIssueOrder
({
orderCode
:
id
}).
then
(
res
=>
{
this
.
orderInfo
=
res
if
(
this
.
orderInfo
.
order
.
outboundStatus
==
'5'
)
{
//出库失败时选择上次选中的订单号及订单信息
// 再判断当前订单是不是广汇的 2为广汇
this
.
jurisdictionBtn
=
this
.
orderInfo
.
order
.
channelType
==
2
if
(
this
.
orderInfo
.
order
.
outboundStatus
==
'5'
)
{
// 出库失败时选择上次选中的订单号及订单信息
this
.
erpOrderResponse_orderNo
=
this
.
orderInfo
.
subOrderList
[
0
].
vbeln
}
else
{
this
.
erpOrderResponse_orderNo
=
Object
.
keys
(
this
.
orderInfo
.
erpOrderResponse
)[
0
]
}
this
.
erpOrderResponse_objList
=
this
.
orderInfo
.
erpOrderResponse
[
this
.
erpOrderResponse_orderNo
]
this
.
orderInfo
.
subOrderList
=
this
.
orderInfo
.
subOrderList
.
map
(
item
=>
{
if
(
!
item
.
upgradeSapCode
)
{
//
没有物料编码时给一个标识值
if
(
!
item
.
upgradeSapCode
)
{
//
没有物料编码时给一个标识值
item
.
upgradeSapCode_flag
=
true
}
return
item
})
this
.
objList
=
[]
this
.
objList
=
this
.
erpOrderResponse_objList
.
map
(
item
=>
{
le
t
{
posnr
:
optionId
,
posnr
:
optionLabel
}
=
item
cons
t
{
posnr
:
optionId
,
posnr
:
optionLabel
}
=
item
return
{
optionId
,
optionLabel
}
...
...
@@ -338,7 +340,7 @@ export default {
this
.
notice
.
warningTips
(
'请输入完整的门店代码'
)
return
}
le
t
params
=
{}
cons
t
params
=
{}
params
.
standNo
=
this
.
orderInfo
.
order
.
customer
.
standNo
params
.
orderCode
=
this
.
orderInfo
.
order
.
orderCode
params
.
storeCode
=
this
.
captchaList
...
...
@@ -354,7 +356,7 @@ export default {
this
.
erpOrderResponse_objList
=
this
.
orderInfo
.
erpOrderResponse
[
value
]
this
.
objList
=
[]
this
.
objList
=
this
.
erpOrderResponse_objList
.
map
(
item
=>
{
le
t
{
posnr
:
optionId
,
posnr
:
optionLabel
}
=
item
cons
t
{
posnr
:
optionId
,
posnr
:
optionLabel
}
=
item
return
{
optionId
,
optionLabel
}
...
...
@@ -363,7 +365,7 @@ export default {
},
selectObj
(
value
,
index
)
{
console
.
log
(
value
,
index
)
;
console
.
log
(
value
,
index
)
if
(
value
!=
-
1
)
{
this
.
selectedOptions
[
index
]
=
value
}
...
...
@@ -371,25 +373,25 @@ export default {
getDisable
(
value
)
{
if
(
this
.
selectedOptions
.
indexOf
(
value
)
>=
0
)
{
return
true
;
return
true
}
else
{
return
false
;
return
false
}
},
handleConfirm
()
{
this
.
$refs
.
editForm
.
validate
(
valid
=>
{
if
(
valid
)
{
le
t
params
=
{}
cons
t
params
=
{}
le
t
subOrderList
=
this
.
orderInfo
.
subOrderList
.
map
(
item
=>
{
cons
t
subOrderList
=
this
.
orderInfo
.
subOrderList
.
map
(
item
=>
{
item
.
vbeln
=
this
.
erpOrderResponse_orderNo
const
{
id
,
createdBy
,
createdDate
,
updatedBy
,
updatedDate
,
deletedFlag
,
...
others
}
=
item
return
others
})
params
.
erpOrderResponse
=
Util
.
jsonKeysToCase
(
this
.
erpOrderResponse_objList
,
1
)
params
.
subOrderList
=
subOrderList
console
.
log
(
params
)
;
console
.
log
(
params
)
ErpUpgradeSales
(
params
).
then
(
res
=>
{
this
.
getInfo
(
this
.
orderInfoId
)
})
...
...
@@ -403,13 +405,12 @@ export default {
if
(
typeof
(
jsonObj
[
key
])
==
'object'
)
{
this
.
toUpperCase
(
jsonObj
[
key
])
}
else
{
jsonObj
[
key
.
toUpperCase
()]
=
jsonObj
[
key
]
;
delete
(
jsonObj
[
key
])
;
jsonObj
[
key
.
toUpperCase
()]
=
jsonObj
[
key
]
delete
(
jsonObj
[
key
])
}
}
return
jsonObj
;
return
jsonObj
}
}
}
...
...
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