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
bf21bf76
Commit
bf21bf76
authored
Jun 30, 2022
by
ylpmty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新报价单结果
parent
a42c4dd8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
0 deletions
+110
-0
offer.js
src/api/ecw/offer.js
+9
-0
dict.js
src/utils/dict.js
+2
-0
result.vue
src/views/ecw/offer/result.vue
+99
-0
No files found.
src/api/ecw/offer.js
View file @
bf21bf76
...
@@ -52,3 +52,12 @@ export function exportOfferExcel(query) {
...
@@ -52,3 +52,12 @@ export function exportOfferExcel(query) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
// 更新报价单结果
export
function
updateOfferResult
(
data
)
{
return
request
({
url
:
'
/ecw/offer/update/result
'
,
method
:
'
put
'
,
data
:
data
})
}
\ No newline at end of file
src/utils/dict.js
View file @
bf21bf76
...
@@ -86,6 +86,8 @@ export const DICT_TYPE = {
...
@@ -86,6 +86,8 @@ export const DICT_TYPE = {
ECW_COOPERATION_TYPE
:
'
cooperation_type
'
,
// 合作类型
ECW_COOPERATION_TYPE
:
'
cooperation_type
'
,
// 合作类型
ECW_SHIPPING_DECLARATION_TYPE
:
'
shipping_declaration_type
'
,
// 出货报关方式(与订单报关方式相同)
ECW_SHIPPING_DECLARATION_TYPE
:
'
shipping_declaration_type
'
,
// 出货报关方式(与订单报关方式相同)
ECW_CUSTOMS_TYPE
:
'
customs_type
'
,
// 订单报关方式(非出货报关),优惠券中的单证报关
ECW_CUSTOMS_TYPE
:
'
customs_type
'
,
// 订单报关方式(非出货报关),优惠券中的单证报关
ECW_OFFER_RESULT
:
'
offer_result
'
,
// 报单结果 赢单 输单
ECW_WAREHOUSING_TYPE
:
'
warehousing_type
'
,
// 入仓类型
//--------ecw---------
//--------ecw---------
CUSTOMER_STATUS
:
'
customer_status
'
,
CUSTOMER_STATUS
:
'
customer_status
'
,
CUSTOMER_SOURCE
:
'
customer_source
'
,
CUSTOMER_SOURCE
:
'
customer_source
'
,
...
...
src/views/ecw/offer/result.vue
0 → 100644
View file @
bf21bf76
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
label=
"报价单号"
prop=
"offerId"
>
<div>
{{
form
.
offerId
}}
</div>
</el-form-item>
<el-form-item
label=
"结果"
prop=
"result"
>
<dict-selector
form-type=
"radio"
:type=
"DICT_TYPE.ECW_OFFER_RESULT"
v-model=
"form.result"
/>
</el-form-item>
<template
v-if=
"form.result==1"
>
<el-form-item
label=
"入仓类型"
prop=
"warehousingType"
>
<dict-selector
:type=
"DICT_TYPE.ECW_WAREHOUSING_TYPE"
v-model=
"form.warehousingType"
/>
</el-form-item>
<el-form-item
label=
"关联订单"
prop=
"orderIds"
>
<el-input
v-model=
"form.orderIds"
style=
"width: 206px;"
></el-input>
</el-form-item>
</
template
>
<
template
v-else
>
<el-form-item
label=
"原因"
prop=
"reason"
>
<el-input
style=
"width: 500px;"
type=
"textarea"
placeholder=
""
v-model=
"form.reason"
></el-input>
</el-form-item>
</
template
>
<el-form-item>
<el-button
type=
"primary"
@
click=
"submitForm"
>
{{form.result==1?"确定并新增草稿订单":"提交"}}
</el-button>
<el-button
@
click=
"$router.back()"
>
返 回
</el-button>
<el-button
type=
"default"
@
click=
"reset"
>
重 置
</el-button>
</el-form-item>
</el-form>
</div>
</template>
<
script
>
import
{
updateOfferResult
}
from
'
@/api/ecw/offer
'
;
import
CustomersSelector
from
'
@/components/CustomersSelector
'
import
RoutersSelector
from
'
@/components/RoutersSelector
'
import
ProductsSelector
from
'
@/components/ProductsSelector
'
import
Editor
from
'
@/components/Editor
'
import
Selector
from
'
@/components/Selector/index
'
export
default
{
name
:
"
AttrEdit
"
,
components
:
{
CustomersSelector
,
RoutersSelector
,
ProductsSelector
,
Editor
,
Selector
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 表单参数
form
:
{
"
offerId
"
:
undefined
,
"
orderIds
"
:
undefined
,
"
reason
"
:
undefined
,
"
result
"
:
1
,
"
warehousingType
"
:
undefined
},
// 表单校验
rules
:
{}
};
},
computed
:
{
},
watch
:
{
},
created
()
{
this
.
reset
()
},
methods
:
{
/** 表单重置 */
reset
()
{
this
.
form
=
{
"
offerId
"
:
undefined
,
"
orderIds
"
:
undefined
,
"
reason
"
:
undefined
,
"
result
"
:
1
,
"
warehousingType
"
:
undefined
};
this
.
resetForm
(
"
form
"
);
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"
form
"
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
;
}
let
data
=
Object
.
assign
({},
this
.
form
)
updateOfferResult
(
data
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$router
.
back
();
});
});
},
},
};
</
script
>
\ No newline at end of file
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