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