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 4da5812a
authored
May 18, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第三轮BUG修复
1 parent
db6c0eca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
38 deletions
src/views/purchase/constant/index.js
src/views/purchase/procurementReview.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/purchase/purchaseOrder.vue
src/views/purchase/constant/index.js
View file @
4da5812
...
...
@@ -26,7 +26,7 @@ export const defaultDeliveryStatusOptions = [
},
{
id
:
2
,
label
:
"
已
发货"
label
:
"
全部
发货"
},
{
id
:
3
,
...
...
@@ -42,7 +42,11 @@ export const defaultPutStatusOptions = [
},
{
id
:
2
,
label
:
"已入库"
label
:
"全部入库"
},
{
id
:
3
,
label
:
"部分入库"
}
]
...
...
src/views/purchase/procurementReview.vue
View file @
4da5812
<!-- 采购审核 -->
<
template
>
<d2-container
class=
"container"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
:form-data=
"showFormData"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
:form-data=
"showFormData"
>
</d2-search>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
...
...
@@ -21,18 +29,31 @@
<auth-button
category=
"Button"
/>
</span>
<span>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
导出
</el-button>
</span>
</d2-table-header>
<d2-table
ref=
"purchasementReviewTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
<d2-table
ref=
"purchasementReviewTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
</d2-table>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
</rejectDialog>
</d2-container>
</
template
>
...
...
@@ -191,7 +212,7 @@ export default {
},
className
:
(
cellValue
)
=>
{
return
{
1
:
'
yellow
Spot'
,
1
:
'
ash
Spot'
,
2
:
'greenSpot'
,
3
:
'ashSpot'
}[
cellValue
.
deliveryStatus
]
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
4da5812
<!-- 采购发货 -->
<
template
>
<d2-container
class=
"container"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
>
</d2-search>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
...
...
@@ -20,41 +28,68 @@
<auth-button
category=
"Button"
/>
</span>
<span>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
导出
</el-button>
</span>
</d2-table-header>
<d2-table
ref=
"purchaseAndDeliveryTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<d2-table
ref=
"purchaseAndDeliveryTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 查看 -->
<span
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090401']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090401']"
/>
</span>
<!-- 确认发货 -->
<span
v-show=
"scope.scope.status == 2"
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090402']"
/>
<span
v-show=
"scope.scope.status == 2"
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090402']"
/>
</span>
<!-- 驳回 -->
<span
v-show=
"scope.scope.deliveryStatus == 1"
>
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleReject(scope.scope)"
>
驳回
</el-button>
-->
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<EditOrderDialog
v-if=
"editVisible"
:visible
.
sync=
"editVisible"
:params-obj=
"dialogData"
@
editClose=
"editClose"
>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<EditOrderDialog
v-if=
"editVisible"
:visible
.
sync=
"editVisible"
:params-obj=
"dialogData"
@
editClose=
"editClose"
>
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config"-->
<d2-dialog
v-if=
"rejectVisible"
:is-visible=
"rejectVisible"
title=
"驳回提示"
@
confirmDialog=
"handleRejectConfirm"
@
closeDialog=
"handleRejectClose"
>
<d2-dialog
v-if=
"rejectVisible"
:is-visible=
"rejectVisible"
title=
"驳回提示"
@
confirmDialog=
"handleRejectConfirm"
@
closeDialog=
"handleRejectClose"
>
<div
class=
"reject-dialog"
>
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
</el-form-item>
</el-form>
</div>
...
...
@@ -238,7 +273,7 @@ export default {
},
className
:
(
cellValue
)
=>
{
return
{
1
:
'
yellow
Spot'
,
1
:
'
ash
Spot'
,
2
:
'greenSpot'
,
3
:
'ashSpot'
}[
cellValue
.
deliveryStatus
]
...
...
src/views/purchase/purchaseOrder.vue
View file @
4da5812
...
...
@@ -237,7 +237,7 @@ export default {
},
className
:
(
cellValue
)
=>
{
return
{
1
:
'
yellow
Spot'
,
1
:
'
ash
Spot'
,
2
:
'greenSpot'
,
3
:
'ashSpot'
}[
cellValue
.
deliveryStatus
]
...
...
@@ -265,8 +265,9 @@ export default {
},
className
:
(
cellValue
)
=>
{
return
{
1
:
'yellowSpot'
,
2
:
'greenSpot'
1
:
'ashSpot'
,
2
:
'greenSpot'
,
3
:
'ashSpot'
}[
cellValue
.
putStatus
]
}
},
...
...
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