Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 fc63e969
authored
Dec 10, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页面修改
1 parent
8509fdb4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
110 additions
and
86 deletions
package.json
src/assets/empty.png
src/views/eManagement/index.vue
src/views/financial/index.vue
src/views/gas/index.vue
src/views/goods/addGoods.vue
src/views/goods/index.vue
src/views/order/detail.vue
src/views/order/index.vue
src/views/sale/index.vue
package.json
View file @
fc63e96
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"el-tree-transfer"
:
"^2.4.7"
,
"el-tree-transfer"
:
"^2.4.7"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^1.4.9"
,
"glsx-common"
:
"^1.4.9"
,
"glsx-components"
:
"^1.2.
3
"
,
"glsx-components"
:
"^1.2.
4
"
,
"glsx-vue-components"
:
"^1.0.15"
,
"glsx-vue-components"
:
"^1.0.15"
,
"jquery"
:
"^3.6.0"
,
"jquery"
:
"^3.6.0"
,
"vue"
:
"^2.6.14"
,
"vue"
:
"^2.6.14"
,
...
...
src/assets/empty.png
0 → 100644
View file @
fc63e96
1.45 KB
src/views/eManagement/index.vue
View file @
fc63e96
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -42,12 +42,14 @@ function date_format(date) {
...
@@ -42,12 +42,14 @@ function date_format(date) {
var
ss
=
date2
.
getSeconds
()
<
10
?
'0'
+
date2
.
getSeconds
()
:
date2
.
getSeconds
()
var
ss
=
date2
.
getSeconds
()
<
10
?
'0'
+
date2
.
getSeconds
()
:
date2
.
getSeconds
()
return
YY
+
MM
+
DD
+
' '
+
hh
+
mm
+
ss
return
YY
+
MM
+
DD
+
' '
+
hh
+
mm
+
ss
}
}
import
url
from
"@/assets/empty.png"
// import { searchMixin } from '@/mixins'
// import { searchMixin } from '@/mixins'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
// mixins: [searchMixin],
// mixins: [searchMixin],
data
()
{
data
()
{
return
{
return
{
url
:
url
,
size
:
'small'
,
size
:
'small'
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
...
...
src/views/financial/index.vue
View file @
fc63e96
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<template
slot=
"custom"
>
<template
slot=
"custom"
>
<div
class=
"table-custom exportBtn"
></div>
<div
class=
"table-custom exportBtn"
></div>
</
template
>
</
template
>
...
@@ -67,12 +67,14 @@
...
@@ -67,12 +67,14 @@
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
url
from
"@/assets/empty.png"
import
{
orderMixin
,
searchMixin
}
from
'@/mixins'
import
{
orderMixin
,
searchMixin
}
from
'@/mixins'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
mixins
:
[
orderMixin
,
searchMixin
],
mixins
:
[
orderMixin
,
searchMixin
],
data
()
{
data
()
{
return
{
return
{
url
:
url
,
loading
:
false
,
loading
:
false
,
size
:
'small'
,
size
:
'small'
,
pickerOptions
:
{
pickerOptions
:
{
...
...
src/views/gas/index.vue
View file @
fc63e96
...
@@ -76,19 +76,21 @@
...
@@ -76,19 +76,21 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
url
from
"@/assets/empty.png"
// import { searchMixin } from '@/mixins'
// import { searchMixin } from '@/mixins'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
// mixins: [searchMixin],
// mixins: [searchMixin],
data
()
{
data
()
{
return
{
return
{
url
:
url
,
size
:
'small'
,
size
:
'small'
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
...
...
src/views/goods/addGoods.vue
View file @
fc63e96
<
template
>
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-wrap contain"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"150px"
size=
"medium"
:key=
"resetTime"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"150px"
size=
"medium"
:key=
"resetTime"
>
<div
class=
"box"
>
<div
class=
"box"
>
<!--
<back
/>
-->
<!--
<back
/>
-->
...
@@ -99,10 +99,6 @@
...
@@ -99,10 +99,6 @@
<quill-editor
v-model=
"ruleForm.useNotes"
:options=
"editorOption"
></quill-editor>
<quill-editor
v-model=
"ruleForm.useNotes"
:options=
"editorOption"
></quill-editor>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<el-form-item
size=
"large"
>
<el-button
type=
"primary"
@
click=
"onSubmit"
size=
"small"
>
提交
</el-button>
<el-button
@
click=
"onSubmit('save')"
size=
"small"
>
保存
</el-button>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
</div>
</div>
...
@@ -113,8 +109,12 @@
...
@@ -113,8 +109,12 @@
width: footerWidth + 'px'
width: footerWidth + 'px'
}"
}"
>
>
<el-button
type=
"primary"
@
click=
"onSubmit('save')"
size=
"small"
>
创建
</el-button>
<!-- <el-button type="primary" @click="onSubmit('save')" size="small">创建</el-button> -->
<el-button
type=
"primary"
@
click=
"$router.go(-1)"
size=
"small"
>
取消
</el-button>
<el-button
class=
"custtom"
@
click=
"onSubmit('save')"
type=
"primary"
size=
"small"
>
保存
</el-button>
<div
class=
"wrap_driver"
>
<el-button
type=
"primary"
@
click=
"onSubmit"
size=
"small"
>
提交
</el-button>
</div>
<el-button
@
click=
"$router.go(-1)"
size=
"small"
>
取消
</el-button>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -224,7 +224,7 @@ export default {
...
@@ -224,7 +224,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
getListWithPageOutGoods
()
this
.
getListWithPageOutGoods
()
console
.
log
(
this
.
$route
)
console
.
log
(
this
.
$route
)
...
@@ -428,18 +428,28 @@ export default {
...
@@ -428,18 +428,28 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.footer-panel
{
.footer-panel
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
position
:
fixed
;
position
:
fixed
;
width
:
100%
;
width
:
100%
;
bottom
:
0px
;
bottom
:
0px
;
height
:
64px
;
height
:
64px
;
background
:
#ffffff
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
.custtom
{
background
:
#ffffff
;
background
:
#ffffff
;
z-index
:
999
;
color
:
#5850ff
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.wrap_driver
{
margin
:
0
20px
;
.el-button
+
.el-button
{
margin-right
:
40px
;
}
}
}
.uploader-del-icon
{
.uploader-del-icon
{
position
:
absolute
;
position
:
absolute
;
width
:
28px
;
width
:
28px
;
...
@@ -451,34 +461,34 @@ export default {
...
@@ -451,34 +461,34 @@ export default {
right
:
-28px
;
right
:
-28px
;
}
}
.box
.title
{
.box
.title
{
padding
:
20px
0
;
padding
:
20px
0
;
font-weight
:
700
;
font-weight
:
700
;
}
}
.box
.el-form-item
{
.box
.el-form-item
{
width
:
500px
;
width
:
500px
;
}
}
.box
.el-form-item
.el-input-group__prepend
,
.box
.el-form-item
.el-input-group__prepend
,
.box
.el-form-item
.el-input-group__append
{
.box
.el-form-item
.el-input-group__append
{
background-color
:
transparent
;
background-color
:
transparent
;
border
:
none
;
border
:
none
;
}
}
.box
.el-form-item
.el-input--suffix
.el-input__inner
{
.box
.el-form-item
.el-input--suffix
.el-input__inner
{
padding-right
:
45px
;
padding-right
:
45px
;
}
}
.box
.el-form-item
.el-input__suffix
{
.box
.el-form-item
.el-input__suffix
{
right
:
20px
;
right
:
20px
;
}
}
.box
.editor
{
.box
.editor
{
width
:
800px
;
width
:
800px
;
}
}
.box
.avatar-uploader
{
.box
.avatar-uploader
{
border
:
1px
dashed
#d9d9d9
;
border
:
1px
dashed
#d9d9d9
;
border-radius
:
6px
;
border-radius
:
6px
;
cursor
:
pointer
;
cursor
:
pointer
;
...
@@ -487,7 +497,7 @@ export default {
...
@@ -487,7 +497,7 @@ export default {
height
:
148px
;
height
:
148px
;
}
}
.box
.avatar-uploader-file
{
.box
.avatar-uploader-file
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
...
@@ -496,11 +506,11 @@ export default {
...
@@ -496,11 +506,11 @@ export default {
opacity
:
0
;
opacity
:
0
;
}
}
.box
.avatar-uploader
:hover
{
.box
.avatar-uploader
:hover
{
border-color
:
#409
EFF
;
border-color
:
#409
eff
;
}
}
.box
.avatar-uploader-icon
{
.box
.avatar-uploader-icon
{
font-size
:
28px
;
font-size
:
28px
;
color
:
#8c939d
;
color
:
#8c939d
;
width
:
148px
;
width
:
148px
;
...
@@ -509,10 +519,9 @@ export default {
...
@@ -509,10 +519,9 @@ export default {
text-align
:
center
;
text-align
:
center
;
}
}
.box
.avatar
{
.box
.avatar
{
width
:
148px
;
width
:
148px
;
height
:
148px
;
height
:
148px
;
display
:
block
;
display
:
block
;
}
}
</
style
>
</
style
>
src/views/goods/index.vue
View file @
fc63e96
...
@@ -73,13 +73,13 @@
...
@@ -73,13 +73,13 @@
</div>
-->
</div>
-->
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<el-button
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump"
>
新增商品
</el-button>
<el-button
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump"
>
新增商品
</el-button>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-wrap contain"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
size=
"small"
label=
"品牌名称"
>
<el-form-item
size=
"small"
label=
"品牌名称"
>
<el-select
size=
"small"
v-model=
"searchForm.brandName"
filterable
placeholder=
"请选择"
>
<el-select
size=
"small"
v-model=
"searchForm.brandName"
filterable
placeholder=
"请选择"
>
<el-option
v-for=
"item in goodsBrandList"
:key=
"item.id"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
<el-option
v-for=
"item in goodsBrandList"
:key=
"item.id"
:label=
"item.brandName"
:value=
"item.brandName"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品名称"
>
<el-form-item
label=
"商品名称"
>
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
...
@@ -88,57 +88,59 @@
...
@@ -88,57 +88,59 @@
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
<el-input
v-model=
"searchForm.productName"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
label=
"提供方"
>
<el-form-item
label=
"提供方"
>
<el-select
size=
"small"
v-model=
"searchForm.supplier"
>
<el-select
size=
"small"
v-model=
"searchForm.supplier"
>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row
>
<el-row>
<el-form-item
label=
"商品编码"
>
<el-form-item
label=
"商品编码"
>
<el-input
v-model=
"searchForm.productId"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
<el-input
v-model=
"searchForm.productId"
placeholder=
"请输入"
size=
"small"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品状态"
>
<el-form-item
label=
"商品状态"
>
<el-select
size=
"small"
v-model=
"searchForm.status"
>
<el-select
size=
"small"
v-model=
"searchForm.status"
>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in statusList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品ID"
>
<el-form-item
label=
"商品ID"
>
<el-input
v-model=
"searchForm.id"
placeholder=
"请输入"
size=
"small"
></el-input>
<el-input
v-model=
"searchForm.id"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right"
>
<el-form-item
size=
"small"
style=
"float: right"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<div
class=
"row-btns"
>
<div
class=
"row-btns"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"toggleAll"
>
全选
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"toggleAll"
>
全选
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(1)"
>
上架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(1)"
>
上架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(2)"
>
下架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(2)"
>
下架
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(-1)"
>
删除
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"batchOperation(-1)"
>
删除
</el-button>
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:pageConf=
"pageConf"
>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:pageConf=
"pageConf"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</el-button>
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</el-button>
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
url
from
"@/assets/empty.png"
// import { searchMixin } from '@/mixins'
// import { searchMixin } from '@/mixins'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
// mixins: [searchMixin],
// mixins: [searchMixin],
data
()
{
data
()
{
return
{
return
{
url
:
url
,
size
:
'small'
,
size
:
'small'
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
flag
:
true
,
flag
:
true
,
searchForm
:
{},
searchForm
:
{},
supplierList
:
[
supplierList
:
[
{
{
label
:
'海威'
,
label
:
'海威'
,
...
@@ -168,26 +170,25 @@ export default {
...
@@ -168,26 +170,25 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'提供方'
,
label
:
'提供方'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
'海威'
return
'海威'
}
}
},
},
{
{
label
:
'商品SKU'
,
label
:
'商品SKU'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
appearance
==
1
?
`
${
cell
.
brandName
||
''
}${
cell
.
productName
||
''
}
`
:
`
${
cell
.
brandName
||
''
}${
cell
.
productName
||
''
}${
cell
.
denomination
||
''
}
`
return
cell
.
appearance
==
1
?
`
${
cell
.
brandName
||
''
}${
cell
.
productName
||
''
}
`
:
`
${
cell
.
brandName
||
''
}${
cell
.
productName
||
''
}${
cell
.
denomination
||
''
}
`
}
}
},
},
{
{
label
:
'会员价(元)'
,
label
:
'会员价(元)'
,
prop
:
'salesPrice'
,
prop
:
'salesPrice'
},
},
{
{
prop
:
'sales'
,
prop
:
'sales'
,
sortable
:
true
,
sortable
:
true
,
label
:
'销量'
label
:
'销量'
// renderHeader: h => {
// renderHeader: h => {
...
@@ -201,7 +202,7 @@ export default {
...
@@ -201,7 +202,7 @@ export default {
},
},
{
{
label
:
'库存'
,
label
:
'库存'
,
sortable
:
true
,
sortable
:
true
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
...
@@ -209,7 +210,7 @@ export default {
...
@@ -209,7 +210,7 @@ export default {
},
},
{
{
label
:
'商品状态'
,
label
:
'商品状态'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
}
}
...
@@ -241,7 +242,11 @@ export default {
...
@@ -241,7 +242,11 @@ export default {
// console.log(target)
// console.log(target)
let
query
=
{}
let
query
=
{}
if
(
id
)
query
.
id
=
id
if
(
id
)
query
.
id
=
id
if
(
status
==
0
)
query
.
edit
=
true
if
(
status
==
0
)
{
query
.
edit
=
true
query
.
$title
=
encodeURI
(
'编辑商品'
)
}
this
.
$router
.
push
({
path
:
'/goods/addGoods'
,
query
})
this
.
$router
.
push
({
path
:
'/goods/addGoods'
,
query
})
},
},
copy
({
id
})
{
copy
({
id
})
{
...
@@ -275,7 +280,7 @@ export default {
...
@@ -275,7 +280,7 @@ export default {
goodsIndexMutiTable
.
toggleRowSelection
(
row
,
this
.
selectStatus
)
goodsIndexMutiTable
.
toggleRowSelection
(
row
,
this
.
selectStatus
)
})
})
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
if
(
!
this
.
$refs
.
table
.
data
.
length
)
{
if
(
!
this
.
$refs
.
table
.
data
.
length
)
{
this
.
$refs
.
table
.
setTableHeightFun
()
this
.
$refs
.
table
.
setTableHeightFun
()
...
@@ -349,7 +354,7 @@ export default {
...
@@ -349,7 +354,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.addGood
{
.addGood
{
margin-left
:
40px
;
margin-left
:
40px
;
padding
:
8px
16px
;
padding
:
8px
16px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
@@ -357,7 +362,7 @@ export default {
...
@@ -357,7 +362,7 @@ export default {
/
deep
/
.contain
.el-input--small
.el-input__inner
{
/
deep
/
.contain
.el-input--small
.el-input__inner
{
width
:
215px
;
width
:
215px
;
}
}
.row-btns
{
.row-btns
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/order/detail.vue
View file @
fc63e96
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"box topBox"
>
<div
class=
"box topBox"
>
<!--
<back
/>
-->
<!--
<back
/>
-->
<el-button
type=
"primary"
class=
"backBtn"
size=
"small"
@
click=
"$router.
go(-1)"
>
返回
</el-button>
<el-button
type=
"primary"
class=
"backBtn"
size=
"small"
@
click=
"$router.
push('/order/index')"
>
返回
</el-button>
<div
class=
"grid"
>
<div
class=
"grid"
>
<div
class=
"grid-item"
>
订单编号:
{{
detailInfo
.
orderCode
}}
</div>
<div
class=
"grid-item"
>
订单编号:
{{
detailInfo
.
orderCode
}}
</div>
<div
class=
"grid-item"
>
下单时间:
{{
detailInfo
.
time
}}
</div>
<div
class=
"grid-item"
>
下单时间:
{{
detailInfo
.
time
}}
</div>
...
...
src/views/order/index.vue
View file @
fc63e96
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
{{
item
}}
{{
item
}}
</div>
</div>
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"goodsMsg"
slot-scope=
"scope"
>
<span
slot=
"goodsMsg"
slot-scope=
"scope"
>
<div>
{{
scope
.
scope
.
brandName
}}
</div>
<div>
{{
scope
.
scope
.
brandName
}}
</div>
<div>
{{
scope
.
scope
.
appearance
==
2
?
scope
.
scope
.
productName
+
scope
.
scope
.
denomination
:
scope
.
scope
.
productName
}}
</div>
<div>
{{
scope
.
scope
.
appearance
==
2
?
scope
.
scope
.
productName
+
scope
.
scope
.
denomination
:
scope
.
scope
.
productName
}}
</div>
...
@@ -62,12 +62,14 @@
...
@@ -62,12 +62,14 @@
</
template
>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
url
from
"@/assets/empty.png"
import
{
orderMixin
,
searchMixin
}
from
'@/mixins'
import
{
orderMixin
,
searchMixin
}
from
'@/mixins'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
mixins
:
[
orderMixin
,
searchMixin
],
mixins
:
[
orderMixin
,
searchMixin
],
data
()
{
data
()
{
return
{
return
{
url
:
url
,
choseList
:
[
'全部'
,
'待收货'
,
'已完成'
,
'退款|售后'
],
choseList
:
[
'全部'
,
'待收货'
,
'已完成'
,
'退款|售后'
],
currentIndex
:
0
,
currentIndex
:
0
,
size
:
'small'
,
size
:
'small'
,
...
...
src/views/sale/index.vue
View file @
fc63e96
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
{{
item
}}
{{
item
}}
</div>
</div>
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"flag"
ref=
"table"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"desc"
slot-scope=
"scope"
>
<span
slot=
"desc"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-box"
>
<div
class=
"refund-img-box"
>
<div
class=
"refund-img-box"
>
...
@@ -83,11 +83,13 @@
...
@@ -83,11 +83,13 @@
<
script
>
<
script
>
// type='text/ecmascript-6'
// type='text/ecmascript-6'
// import { orderMixin, searchMixin } from '@/mixins'
// import { orderMixin, searchMixin } from '@/mixins'
import
url
from
"@/assets/empty.png"
export
default
{
export
default
{
name
:
''
,
name
:
''
,
// mixins: [orderMixin, searchMixin],
// mixins: [orderMixin, searchMixin],
data
()
{
data
()
{
return
{
return
{
url
:
url
,
choseList
:
[
'全部'
,
'售后中'
,
'售后完成'
],
choseList
:
[
'全部'
,
'售后中'
,
'售后完成'
],
currentIndex
:
0
,
currentIndex
:
0
,
size
:
'small'
,
size
:
'small'
,
...
...
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