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