Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3deff537
authored
May 15, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
SAAS+V4.39.0版本功能代码提交
1 parent
0ab2b070
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
18 deletions
package-lock.json
src/utils/constants.js
src/views/purchaseOrder/index.vue
package-lock.json
0 → 100644
View file @
3deff53
This diff could not be displayed because it is too large.
src/utils/constants.js
View file @
3deff53
...
@@ -42,6 +42,10 @@ export const defaultDeliveryStatusOptions = [
...
@@ -42,6 +42,10 @@ export const defaultDeliveryStatusOptions = [
{
{
id
:
2
,
id
:
2
,
label
:
'全部发货'
label
:
'全部发货'
},
{
id
:
4
,
label
:
'结束发货'
}
}
]
]
...
...
src/views/purchaseOrder/index.vue
View file @
3deff53
...
@@ -2,44 +2,77 @@
...
@@ -2,44 +2,77 @@
<
template
>
<
template
>
<div
class=
"purchase"
>
<div
class=
"purchase"
>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"2"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"2"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<h2>
采购订单列表
</h2>
<h2>
采购订单列表
</h2>
<div>
<div>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleCreatePurchase"
fn=
"创建采购"
>
商城采购
</GLButton>
<GLButton
type=
"primary"
<GLButton
type=
"primary"
plain
size=
"small"
@
click=
"handlePutStprage"
fn=
"自采入库"
>
自采入库
</GLButton>
size=
"small"
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
@
click=
"handleCreatePurchase"
fn=
"创建采购"
>
商城采购
</GLButton>
<GLButton
type=
"primary"
plain
size=
"small"
@
click=
"handlePutStprage"
fn=
"自采入库"
>
自采入库
</GLButton>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"orderRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"orderRef"
<template
slot=
"deliveryStatus"
slot-scope=
"scope"
>
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"deliveryStatus"
slot-scope=
"scope"
>
<div>
<div>
<span
v-if=
"scope.scope.deliveryStatus"
:class=
"[scope.scope.deliveryStatus == 1 ? 'ashSpot' : scope.scope.deliveryStatus == 2 ? 'greenSpot' : 'yellowSpot']"
></span>
<span
v-if=
"scope.scope.deliveryStatus"
:class=
"deliveryStatusOpt[scope.scope.deliveryStatus]"
></span>
<span>
{{
scope
.
scope
.
deliveryStatus
|
deliveryStatus
}}
</span>
<span>
{{
scope
.
scope
.
deliveryStatus
|
deliveryStatus
}}
</span>
</div>
</div>
</
template
>
</
template
>
<
template
slot=
"putStatus"
slot-scope=
"scope"
>
<
template
slot=
"putStatus"
slot-scope=
"scope"
>
<div>
<div>
<span
v-if=
"scope.scope.putStatus"
:class=
"[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"
></span>
<span
v-if=
"scope.scope.putStatus"
:class=
"[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"
></span>
<span>
{{
scope
.
scope
.
putStatus
|
putOrderStatus
}}
</span>
<span>
{{
scope
.
scope
.
putStatus
|
putOrderStatus
}}
</span>
</div>
</div>
</
template
>
</
template
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<div>
<div>
<span
v-if=
"scope.scope.status"
:class=
"Spot[scope.scope.status-1]"
></span>
<span
v-if=
"scope.scope.status"
<span
v-if=
"scope.scope.status==4||scope.scope.status==6||scope.scope.status==7"
>
已驳回
</span>
:class=
"Spot[scope.scope.status-1]"
></span>
<span
v-if=
"scope.scope.status==4||scope.scope.status==6||scope.scope.status==7"
>
已驳回
</span>
<span
v-else
>
{{
scope
.
scope
.
status
|
orderStatus
}}
</span>
<span
v-else
>
{{
scope
.
scope
.
status
|
orderStatus
}}
</span>
</div>
</div>
</
template
>
</
template
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:paramsObj=
"paramsObj"
></orderDeatilDialog>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:paramsObj=
"paramsObj"
></orderDeatilDialog>
</div>
</div>
</template>
</template>
...
@@ -57,7 +90,7 @@ export default {
...
@@ -57,7 +90,7 @@ export default {
return
{
return
{
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
Spot
:
[
'yellowSpot'
,
'yellowSpot'
,
'ashSpot'
,
'redSpot'
,
'greenSpot'
,
'redSpot'
,
'redSpot'
],
Spot
:
[
'yellowSpot'
,
'yellowSpot'
,
'ashSpot'
,
'redSpot'
,
'greenSpot'
,
'redSpot'
,
'redSpot'
],
searchForm
:
{
searchForm
:
{
status
:
''
,
status
:
''
,
deliveryStatus
:
''
,
deliveryStatus
:
''
,
...
@@ -181,7 +214,7 @@ export default {
...
@@ -181,7 +214,7 @@ export default {
fn
:
'取消'
fn
:
'取消'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
status
==
1
&&
row
.
purchaseType
==
1
return
row
.
status
==
1
&&
row
.
purchaseType
==
1
},
},
listeners
:
{
listeners
:
{
click
:
this
.
handleCancel
click
:
this
.
handleCancel
...
@@ -301,6 +334,12 @@ export default {
...
@@ -301,6 +334,12 @@ export default {
merchantName
:
[],
merchantName
:
[],
storeUsageList
:
[],
storeUsageList
:
[],
purchaseTypeList
:
purchaseTypeList
purchaseTypeList
:
purchaseTypeList
},
deliveryStatusOpt
:
{
1
:
"ashSpot"
,
2
:
"greenSpot"
,
3
:
"yellowSpot"
,
4
:
"redSpot"
}
}
}
}
},
},
...
@@ -361,7 +400,7 @@ export default {
...
@@ -361,7 +400,7 @@ export default {
})
})
this
.
$refs
.
orderRef
.
refreshTable
()
this
.
$refs
.
orderRef
.
refreshTable
()
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
})
})
},
},
handleDispatch
(
data
)
{
handleDispatch
(
data
)
{
...
...
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