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 4f78ed49
authored
Jun 05, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
65e84471
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
16 deletions
src/components/baseDialog/index.vue
src/views/purchase/components/AllocateDialog.vue
src/views/purchase/components/CardDialog.vue
src/views/purchase/components/EditOrderDialog.vue
src/views/purchase/purchaseAndDelivery.vue
src/components/baseDialog/index.vue
View file @
4f78ed4
<
template
>
<
template
>
<el-dialog
id=
"baseDialog"
top=
"15vh"
:close-on-click-modal=
"
true"
:close-on-press-escape=
"true"
<el-dialog
id=
"baseDialog"
top=
"15vh"
:close-on-click-modal=
"
false"
:close-on-press-escape=
"true"
:title=
"dialogConfig.title"
:width=
"dialogConfig.width"
:visible
.
sync=
"visible"
:show-close=
"config.showClose"
:title=
"dialogConfig.title"
:width=
"dialogConfig.width"
:visible
.
sync=
"visible"
:show-close=
"config.showClose"
class=
"noborder"
:append-to-body=
"config.appendToBody"
>
class=
"noborder"
:append-to-body=
"config.appendToBody"
>
<slot
/>
<slot
/>
...
...
src/views/purchase/components/AllocateDialog.vue
View file @
4f78ed4
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
<div
class=
"footer"
>
<div
class=
"footer"
>
<el-button
@
click=
"handleDetailClose(false)"
>
取消
</el-button>
<el-button
@
click=
"handleDetailClose(false)"
>
取消
</el-button>
<el-button
@
click=
"submit"
type=
"primary"
v-preventReClick
:loading=
"$store.state.d2admin.loading.value"
>
确
认
</el-button>
<el-button
@
click=
"submit"
type=
"primary"
v-preventReClick
:loading=
"$store.state.d2admin.loading.value"
>
确
定
</el-button>
</div>
</div>
</div>
</div>
</baseDialog>
</baseDialog>
...
...
src/views/purchase/components/CardDialog.vue
View file @
4f78ed4
This diff is collapsed.
Click to expand it.
src/views/purchase/components/EditOrderDialog.vue
View file @
4f78ed4
...
@@ -18,9 +18,9 @@
...
@@ -18,9 +18,9 @@
<!-- 判断是否当前账户发货 -->
<!-- 判断是否当前账户发货 -->
<el-input
v-if=
"(isEmptyEdit && !detailInfo.tableData[scope.index].shipperUuid) || (detailInfo.tableData[scope.index].shipperUuid == userInfo.detail.uuid)"
:class=
"
{ 'border-red': !nowPurNumList[scope.index]
&&
isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)">
</el-input>
<el-input
v-if=
"(isEmptyEdit && !detailInfo.tableData[scope.index].shipperUuid) || (detailInfo.tableData[scope.index].shipperUuid == userInfo.detail.uuid)"
:class=
"
{ 'border-red': !nowPurNumList[scope.index]
&&
isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)">
</el-input>
<!--
<div
v-if=
"detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid"
>
{{
detailInfo
.
tableData
[
scope
.
index
].
shipper
}}
</div>
-->
<!--
<div
v-if=
"detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid"
>
{{
detailInfo
.
tableData
[
scope
.
index
].
shipper
}}
</div>
-->
<div
v-else
>
{{
detailInfo
.
tableData
[
scope
.
index
].
shipper
}}
</div>
<div
v-else
>
已分配:
{{
detailInfo
.
tableData
[
scope
.
index
].
shipper
}}
</div>
</div>
</div>
<div
v-else
>
{{
detailInfo
.
tableData
[
scope
.
index
].
shipperUuid
?
detailInfo
.
tableData
[
scope
.
index
].
shipper
:
'未分配
'
}}
</div>
<div
v-else
>
{{
detailInfo
.
tableData
[
scope
.
index
].
shipperUuid
?
'已分配:'
+
detailInfo
.
tableData
[
scope
.
index
].
shipper
:
'--
'
}}
</div>
</div>
</div>
<div
slot=
"cardNum"
slot-scope=
"scope"
>
<div
slot=
"cardNum"
slot-scope=
"scope"
>
<div
v-if=
"detailInfo.tableData[scope.index].entityCardFlag != 'Y' || (detailInfo.tableData[scope.index].shipperUuid && detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid)"
>
-
</div>
<div
v-if=
"detailInfo.tableData[scope.index].entityCardFlag != 'Y' || (detailInfo.tableData[scope.index].shipperUuid && detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid)"
>
-
</div>
...
@@ -52,11 +52,11 @@
...
@@ -52,11 +52,11 @@
<div
class=
"footer"
>
<div
class=
"footer"
>
<el-button
@
click=
"handleDetailClose(false)"
>
取消
</el-button>
<el-button
@
click=
"handleDetailClose(false)"
>
取消
</el-button>
<el-button
@
click=
"submit"
type=
"primary"
v-preventReClick
:loading=
"$store.state.d2admin.loading.value"
>
确
认
</el-button>
<el-button
@
click=
"submit"
type=
"primary"
v-preventReClick
:loading=
"$store.state.d2admin.loading.value"
>
确
定
</el-button>
</div>
</div>
</div>
</div>
</baseDialog>
</baseDialog>
<card-dialog
v-if=
"cardVisible"
:card-visible=
"cardVisible"
:order-info=
"orderInfo"
:selected-list=
"selectedCardList"
@
handleClose=
"handleCardDialog"
@
handleConfirm=
"handleCardConfirm"
></card-dialog>
<card-dialog
v-if=
"cardVisible"
:card-visible=
"cardVisible"
:order-info=
"orderInfo"
:
card-max-num=
"cardMaxNum"
:
selected-list=
"selectedCardList"
@
handleClose=
"handleCardDialog"
@
handleConfirm=
"handleCardConfirm"
></card-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -209,13 +209,11 @@ export default {
...
@@ -209,13 +209,11 @@ export default {
if
(
!
this
.
paramsObj
?.
orderCode
)
{
if
(
!
this
.
paramsObj
?.
orderCode
)
{
return
true
return
true
}
}
console
.
log
(
this
.
page
)
const
apiName
=
this
.
page
!=
'purchase'
?
factoryOrderDetail
:
purchaseOrderDetail
const
apiName
=
this
.
page
!=
'purchase'
?
factoryOrderDetail
:
purchaseOrderDetail
apiName
({
orderCode
:
this
.
paramsObj
.
orderCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}).
then
(
res
=>
{
apiName
({
orderCode
:
this
.
paramsObj
.
orderCode
,
pageSize
:
pageObj
.
pageSize
,
currentPage
:
pageObj
.
currentPage
}).
then
(
res
=>
{
this
.
detailInfo
=
res
this
.
detailInfo
=
res
this
.
detailInfo
.
tableData
=
res
.
pagination
.
list
this
.
detailInfo
.
tableData
=
res
.
pagination
.
list
this
.
detailInfo
.
tableTotal
=
res
.
pagination
.
total
this
.
detailInfo
.
tableTotal
=
res
.
pagination
.
total
console
.
log
(
this
.
userInfo
,
'userInfo---'
)
})
})
},
},
deliveryNumberInput
(
event
,
index
)
{
deliveryNumberInput
(
event
,
index
)
{
...
@@ -233,22 +231,25 @@ export default {
...
@@ -233,22 +231,25 @@ export default {
const
_index
=
scope
.
index
const
_index
=
scope
.
index
const
_oldVal
=
this
.
oldPurNumList
[
_index
]
||
0
const
_oldVal
=
this
.
oldPurNumList
[
_index
]
||
0
const
_maxVal
=
_row
.
goodsNumber
-
_row
.
purchaseNumber
const
_maxVal
=
_row
.
goodsNumber
-
_row
.
purchaseNumber
this
.
nowPurNumList
[
_index
]
=
limitPrice
(
val
,
_oldVal
,
9999
,
0
,
0
,
_maxVal
)
this
.
nowPurNumList
[
_index
]
=
limitPrice
(
val
,
_oldVal
,
9999
,
0
,
0
,
_maxVal
)
||
(
val
?
_maxVal
:
''
)
this
.
oldPurNumList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
nowPurNumList
))
this
.
oldPurNumList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
nowPurNumList
))
},
},
handleCardDialog
()
{
handleCardDialog
()
{
this
.
cardVisible
=
!
this
.
cardVisible
this
.
cardVisible
=
!
this
.
cardVisible
},
},
handleCard
(
scope
)
{
handleCard
(
scope
)
{
this
.
handleCardDialog
()
this
.
orderInfo
=
scope
.
scope
this
.
orderInfo
=
scope
.
scope
this
.
orderIdx
=
scope
.
index
this
.
orderIdx
=
scope
.
index
if
(
!
this
.
nowPurNumList
[
scope
.
index
])
{
this
.
notice
.
errorTips
(
'请先填写发货数量'
)
return
true
}
this
.
handleCardDialog
()
this
.
cardMaxNum
=
this
.
nowPurNumList
[
scope
.
index
]
this
.
selectedCardList
=
this
.
deliveryCardList
[
scope
.
index
]
||
[]
this
.
selectedCardList
=
this
.
deliveryCardList
[
scope
.
index
]
||
[]
// console.log(scope)
},
},
handleCardConfirm
(
obj
)
{
handleCardConfirm
(
obj
)
{
this
.
handleCardDialog
()
this
.
handleCardDialog
()
console
.
log
(
obj
)
this
.
deliveryCardList
[
this
.
orderIdx
]
=
obj
this
.
deliveryCardList
[
this
.
orderIdx
]
=
obj
this
.
orderInfo
=
{}
this
.
orderInfo
=
{}
this
.
orderIdx
=
''
this
.
orderIdx
=
''
...
@@ -273,10 +274,16 @@ export default {
...
@@ -273,10 +274,16 @@ export default {
for
(
let
idx
=
0
;
idx
<
this
.
detailInfo
.
tableData
.
length
;
idx
++
)
{
for
(
let
idx
=
0
;
idx
<
this
.
detailInfo
.
tableData
.
length
;
idx
++
)
{
const
item
=
this
.
detailInfo
.
tableData
[
idx
]
const
item
=
this
.
detailInfo
.
tableData
[
idx
]
if
(
this
.
nowPurNumList
[
idx
]
&&
this
.
nowPurNumList
[
idx
]
!=
0
)
{
if
(
this
.
nowPurNumList
[
idx
]
&&
this
.
nowPurNumList
[
idx
]
!=
0
)
{
if
(
item
.
entityCardFlag
==
'Y'
&&
this
.
nowPurNumList
[
idx
]
!=
this
.
deliveryCardList
[
idx
].
length
)
{
if
(
item
.
entityCardFlag
==
'Y'
)
{
if
(
!
this
.
deliveryCardList
[
idx
])
{
this
.
notice
.
errorTips
(
'请选择发货卡号'
)
return
true
}
if
(
this
.
nowPurNumList
[
idx
]
!=
this
.
deliveryCardList
[
idx
].
length
)
{
this
.
notice
.
errorTips
(
'发货数量和发货卡号数量不一致,请确认后重新保存'
)
this
.
notice
.
errorTips
(
'发货数量和发货卡号数量不一致,请确认后重新保存'
)
return
true
return
true
}
}
}
params
.
deliveryDetailList
.
push
({
params
.
deliveryDetailList
.
push
({
...
_
.
pick
(
item
,
attrNameList
),
...
_
.
pick
(
item
,
attrNameList
),
purchaseNumber
:
this
.
nowPurNumList
[
idx
],
purchaseNumber
:
this
.
nowPurNumList
[
idx
],
...
@@ -284,7 +291,7 @@ export default {
...
@@ -284,7 +291,7 @@ export default {
})
})
}
}
}
}
console
.
log
(
params
)
//
console.log(params)
purchaseOrderDelivery
(
params
).
then
(
res
=>
{
purchaseOrderDelivery
(
params
).
then
(
res
=>
{
this
.
handleDetailClose
(
true
)
this
.
handleDetailClose
(
true
)
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
4f78ed4
...
@@ -485,10 +485,8 @@ export default {
...
@@ -485,10 +485,8 @@ export default {
// 确认发货
// 确认发货
handleDelivery
(
row
)
{
handleDelivery
(
row
)
{
this
.
editVisible
=
true
this
.
editVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
dialogData
.
orderCode
=
row
.
orderCode
this
.
dialogData
.
orderCode
=
row
.
orderCode
this
.
dialogData
.
merchantName
=
row
.
merchantName
this
.
dialogData
.
merchantName
=
row
.
merchantName
})
},
},
// 查看详情
// 查看详情
handleDetail
(
row
)
{
handleDetail
(
row
)
{
...
...
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