Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
6674dc0e
Commit
6674dc0e
authored
May 06, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增商品异常商品同步
parent
1e4a69f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
8 deletions
+32
-8
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+32
-8
No files found.
src/views/ecw/order/prepayDeal.vue
View file @
6674dc0e
...
...
@@ -326,7 +326,7 @@
<
/el-row
>
<
el
-
row
v
-
else
-
if
=
"
orderExceptionData.orderExceptionType!='order_miss_exception'&&orderExceptionData.orderExceptionType!='order_superfluous_goods_exception'&&orderExceptionData.orderExceptionType!='order_in_water_exception'&&orderExceptionData.orderExceptionType!='order_damage_exception'
"
>
<
el
-
form
-
item
:
label
=
"
$t('处理结果')+':'
"
required
>
<
el
-
select
v
-
model
=
"
handlerParams.orderExceptionHandlerResult
"
:
placeholder
=
"
$t('请选择')
"
clearable
>
<
el
-
select
v
-
model
=
"
handlerParams.orderExceptionHandlerResult
"
:
placeholder
=
"
$t('请选择')
"
clearable
@
change
=
"
handlerResultChange
"
>
<
template
v
-
for
=
"
dict in getDictDatas(orderExceptionData.orderExceptionType+'_result')
"
>
<
el
-
option
:
disabled
=
"
dict.value=='pending'
"
:
key
=
"
dict.value
"
:
label
=
"
$l(dict, 'label')
"
:
value
=
"
dict.value
"
/>
<
/template
>
...
...
@@ -349,7 +349,8 @@
>
<
product
-
selector
@
hook
:
mounted
=
"
onTableMounted
"
v
-
model
=
"
handlerParams.productId
"
v
-
model
=
"
productId2
"
@
change
=
"
onProductChange($event)
"
/>
<
/el-form-item
>
<
/el-row
>
...
...
@@ -367,8 +368,8 @@
>
<
product
-
selector
lang
=
"
En
"
@
hook
:
mounted
=
"
onTableMounted
"
v
-
model
=
"
handlerParams.productId
"
v
-
model
=
"
productId1
"
@
change
=
"
onProductChange($event)
"
/>
<
/el-form-item
>
<
/el-row
>
...
...
@@ -522,6 +523,8 @@
region
:
''
,
customerData
:{
}
,
//归属客户
customerServiceList
:[],
//客户经理
productId1
:
null
,
productId2
:
null
}
;
}
,
created
()
{
...
...
@@ -571,6 +574,8 @@
if
(
this
.
orderExceptionData
.
orderItemId
&&
this
.
orderData
&&
this
.
orderData
.
orderItemVOList
){
if
(
this
.
orderExceptionData
.
orderExceptionType
==
'
goods_add_exception
'
&&!
this
.
handlerParams
.
productId
){
this
.
handlerParams
.
productId
=
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
orderExceptionData
.
orderItemId
).
prodId
this
.
productId1
=
this
.
handlerParams
.
productId
this
.
productId2
=
this
.
handlerParams
.
productId
}
console
.
log
(
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
orderExceptionData
.
orderItemId
))
return
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
orderExceptionData
.
orderItemId
)
...
...
@@ -661,6 +666,13 @@
}
return
this
.
$t
(
'
无
'
)
}
,
//新增异常处理结果切换
handlerResultChange
(){
if
(
this
.
orderExceptionData
.
orderExceptionType
==
'
goods_add_exception
'
){
this
.
productId1
=
this
.
handlerParams
.
productId
this
.
productId2
=
this
.
handlerParams
.
productId
}
}
,
submitForm
(){
if
(
!
this
.
handlerParams
.
orderExceptionHandlerResult
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
请选择处理结果
'
));
...
...
@@ -677,6 +689,9 @@
this
.
$redirect
(
'
/product/product-list?prodId=
'
+
this
.
handlerParams
.
productId
)
return
}
if
(
this
.
productId1
){
this
.
handlerParams
.
productId
=
this
.
productId1
}
handlerExceptionByExceptionId
(
this
.
handlerParams
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
提交成功
'
));
this
.
$redirect
(
'
/order/pending?id=
'
+
this
.
orderData
.
orderId
)
...
...
@@ -740,6 +755,15 @@
onClickClosePreview
(
val
){
this
.
IsPreview
=
val
// 由组件内部传入的关闭数据赋值关闭
}
,
onProductChange
(
product
){
if
(
!
product
){
this
.
productId1
=
null
this
.
productId2
=
null
return
false
}
this
.
productId1
=
product
.
id
this
.
productId2
=
product
.
id
}
,
}
}
;
<
/script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment