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 5b8ff9bc
authored
May 16, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
0ba49430
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
39 deletions
src/assets/css/mixin.scss
src/views/DeliverList/deliverAdd.vue
src/views/DeliverList/index.vue
src/views/purchaseOrder/index.vue
src/assets/css/mixin.scss
View file @
5b8ff9b
$color-yellow
:
#fdb757
;
$color-yellow
:
#fdb757
;
$color-green
:
#2cca74
;
$color-green
:
#2cca74
;
$color-gray
:
#999
;
$color-gray
:
#999
;
$color-red
:
#EB4E4E
;
//背景图片 100%
//背景图片 100%
@mixin
bkgMaxSize
(
$url
)
{
@mixin
bkgMaxSize
(
$url
)
{
background-image
:
url($url)
;
background-image
:
url($url)
;
...
...
src/views/DeliverList/deliverAdd.vue
View file @
5b8ff9b
...
@@ -121,7 +121,7 @@ export default {
...
@@ -121,7 +121,7 @@ export default {
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'入库数量
/米
'
,
label
:
'入库数量'
,
prop
:
'increaseStockNum'
,
prop
:
'increaseStockNum'
,
addHtml
:
'increaseStockNum'
addHtml
:
'increaseStockNum'
},
},
...
@@ -315,5 +315,9 @@ export default {
...
@@ -315,5 +315,9 @@ export default {
z-index
:
9999999
;
z-index
:
9999999
;
position
:
static
;
position
:
static
;
}
}
/
deep
/
td
.el-table__cell
{
height
:
64px
;
}
}
}
</
style
>
</
style
>
src/views/DeliverList/index.vue
View file @
5b8ff9b
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
}
}
},
},
{
{
type
:
'
GLB
utton'
,
type
:
'
el-b
utton'
,
name
:
'入库'
,
name
:
'入库'
,
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
...
...
src/views/purchaseOrder/index.vue
View file @
5b8ff9b
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</
template
>
</
template
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<div>
<div>
<span
v-if=
"scope.scope.status"
:class=
"[scope.scope.status == 1 ? 'yellowSpot' : scope.scope.status == 2 ? 'greenSpot' :
'ash
Spot']"
></span>
<span
v-if=
"scope.scope.status"
:class=
"[scope.scope.status == 1 ? 'yellowSpot' : scope.scope.status == 2 ? 'greenSpot' :
scope.scope.status == 3 ? 'ashSpot' : 'red
Spot']"
></span>
<span>
{{
scope
.
scope
.
status
|
orderStatus
}}
</span>
<span>
{{
scope
.
scope
.
status
|
orderStatus
}}
</span>
</div>
</div>
</
template
>
</
template
>
...
@@ -86,14 +86,14 @@ export default {
...
@@ -86,14 +86,14 @@ export default {
isClear
:
true
,
isClear
:
true
,
maxlength
:
20
maxlength
:
20
},
},
{
{
label
:
'下单时间'
,
label
:
'下单时间'
,
name
:
'placeOrderTimeStr'
,
name
:
'placeOrderTimeStr'
,
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
},
{
{
label
:
'下单商户'
,
label
:
'下单商户'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -128,7 +128,6 @@ export default {
...
@@ -128,7 +128,6 @@ export default {
optionsName
:
'putStatusOptions'
optionsName
:
'putStatusOptions'
},
},
// {
// {
// label: '入库时间',
// label: '入库时间',
// name: 'warehousingTimeStr',
// name: 'warehousingTimeStr',
...
@@ -163,15 +162,15 @@ export default {
...
@@ -163,15 +162,15 @@ export default {
// optionLabel: 'merchantName',
// optionLabel: 'merchantName',
// optionsName: 'storeUsageList'
// optionsName: 'storeUsageList'
// },
// },
//
{
{
//
label: '采购类型',
label
:
'采购类型'
,
//
name: 'purchaseType',
name
:
'purchaseType'
,
//
type: 'select',
type
:
'select'
,
//
optionList: [],
optionList
:
[],
//
optionId: 'id',
optionId
:
'id'
,
//
optionLabel: 'label',
optionLabel
:
'label'
,
//
optionsName: 'purchaseTypeList'
optionsName
:
'purchaseTypeList'
//
}
}
],
],
tableButtonList
:
[
tableButtonList
:
[
{
{
...
@@ -246,8 +245,8 @@ export default {
...
@@ -246,8 +245,8 @@ export default {
attrs
:
{
attrs
:
{
type
:
'text'
type
:
'text'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
purchaseType
==
1
&&
row
.
deliveryStatus
==
2
||
row
.
purchaseType
==
1
&&
row
.
deliveryStatus
==
3
return
(
row
.
purchaseType
==
1
&&
row
.
deliveryStatus
==
2
)
||
(
row
.
purchaseType
==
1
&&
row
.
deliveryStatus
==
3
)
},
},
listeners
:
{
listeners
:
{
click
:
this
.
handleDispatch
click
:
this
.
handleDispatch
...
@@ -266,12 +265,11 @@ export default {
...
@@ -266,12 +265,11 @@ export default {
width
:
'200'
width
:
'200'
},
},
{
{
label
:
'订单总价'
,
label
:
'订单总价
/元
'
,
prop
:
'totalPrice'
,
prop
:
'totalPrice'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
'¥'
+
cellValue
.
totalPrice
return
'¥'
+
cellValue
.
totalPrice
},
}
width
:
100
},
},
{
{
label
:
'下单时间'
,
label
:
'下单时间'
,
...
@@ -282,15 +280,20 @@ export default {
...
@@ -282,15 +280,20 @@ export default {
width
:
180
width
:
180
},
},
{
{
label
:
'下单门店'
,
label
:
'下单商户'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
minWidth
:
150
},
{
label
:
'采购类型'
,
prop
:
'purchaseType'
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
purchaseType
&&
(
cellValue
.
purchaseType
==
1
?
'商城采购'
:
'自采入库'
))
||
'--'
}
},
},
{
{
label
:
'发货状态'
,
label
:
'发货状态'
,
prop
:
'deliveryStatus'
,
prop
:
'deliveryStatus'
,
addHtml
:
'deliveryStatus'
,
addHtml
:
'deliveryStatus'
width
:
120
},
},
// {
// {
// label: '承运公司',
// label: '承运公司',
...
@@ -312,8 +315,7 @@ export default {
...
@@ -312,8 +315,7 @@ export default {
{
{
label
:
'入库状态'
,
label
:
'入库状态'
,
prop
:
'putStatus'
,
prop
:
'putStatus'
,
addHtml
:
'putStatus'
,
addHtml
:
'putStatus'
width
:
120
},
},
// {
// {
// label: '入库时间',
// label: '入库时间',
...
@@ -332,20 +334,11 @@ export default {
...
@@ -332,20 +334,11 @@ export default {
// return cellValue.putMerchantName || '--'
// return cellValue.putMerchantName || '--'
// }
// }
// },
// },
{
label
:
'采购类型'
,
prop
:
'purchaseType'
,
line
:
1
,
width
:
150
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
purchaseType
&&
(
cellValue
.
purchaseType
==
1
?
'商城采购'
:
'自采入库'
))
||
'--'
}
},
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'status'
,
prop
:
'status'
,
addHtml
:
'status'
,
addHtml
:
'status'
width
:
120
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
...
@@ -590,7 +583,10 @@ export default {
...
@@ -590,7 +583,10 @@ export default {
@include
dot;
@include
dot;
background
:
$
color-gray
;
background
:
$
color-gray
;
}
}
.redSpot
{
@include
dot;
background
:
$
color-red
;
}
.table-btns
/
deep
/
.el-button--text
{
.table-btns
/
deep
/
.el-button--text
{
min-width
:
0
!important
;
min-width
:
0
!important
;
padding
:
0
;
padding
:
0
;
...
...
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