Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 4b2dbc40
authored
Jul 21, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
5d5945f5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
54 deletions
src/config/index.js
src/views/goods/add.vue
src/views/goods/components/brandCascader.vue
src/views/goods/components/selectGoods.vue
src/views/store/components/selectCarDialog.vue
src/views/store/edit.vue
src/config/index.js
View file @
4b2dbc4
...
...
@@ -17,8 +17,8 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config'
)
//
return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config')
//
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config')
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config'
)
}
export
const
config
=
{
...
...
src/views/goods/add.vue
View file @
4b2dbc4
...
...
@@ -51,7 +51,7 @@
</div>
</div>
<div
slot=
"categorySlot"
>
<brandCascader
:disabled=
"disabled"
@
clickItem=
"selectCategory"
class=
"category-class"
></brandCascader>
<brandCascader
:
curInfo=
"curCategoryInfo"
:
disabled=
"disabled"
@
clickItem=
"selectCategory"
class=
"category-class"
></brandCascader>
</div>
</glsx-combi-form>
</div>
...
...
@@ -129,6 +129,7 @@ export default {
children
:
'categoryName'
,
label
:
'childs'
},
curCategoryInfo
:{},
posterOptions
:
{
width
:
'104px'
,
height
:
'104px'
,
...
...
src/views/goods/components/brandCascader.vue
View file @
4b2dbc4
...
...
@@ -76,6 +76,7 @@ export default {
'curInfo.id'
:{
handler
(
nVal
,
oVal
){
if
(
this
.
curBrand
.
id
==
nVal
)
return
this
.
curBrand
=
this
.
curInfo
},
deep
:
true
...
...
@@ -116,6 +117,7 @@ export default {
},
// 显示隐藏
switchBrand
()
{
if
(
this
.
disabled
)
return
let
distance
=
0
try
{
distance
=
window
.
innerHeight
-
this
.
$refs
.
cascaderRef
.
getBoundingClientRect
().
y
-
this
.
$refs
.
cascaderRef
.
getBoundingClientRect
().
height
...
...
src/views/goods/components/selectGoods.vue
View file @
4b2dbc4
...
...
@@ -7,7 +7,7 @@
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
<
!--
<
glsx-combi-form
ref=
"showSearch"
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"105px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
...
...
@@ -16,15 +16,14 @@
type=
"primary"
@
click=
"resetTable"
>
查询
</el-button>
</span>
</glsx-combi-form>
-->
<GLTable
ref=
"
store
Ref"
</glsx-combi-form>
<GLTable
ref=
"
goods
Ref"
:noDataImg=
"url"
:tableTotal=
"total"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
refreshTable=
"getList"
:
tableData=
"storeList"
:
getListApi=
"getListApi"
:hasNum=
"false"
:setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"radioHtml"
...
...
@@ -53,36 +52,29 @@ export default {
return
{
url
:
url
,
searchForm
:
{
goodsName
:
''
},
// getListApi: this.$apis.common.getMerchantList,
total
:
0
,
storeList
:
[],
heightBox
:
200
,
curInfo
:
{},
// 搜索
// searchFormData: [
// {
// label: '商户名称',
// name: 'merchantName',
// type: 'input',
// placeholder: '请输入商户名称',
// width: '300px',
// labelWidth: '10px'
// },
// {
// label: '商户ID',
// name: 'merchantId',
// type: 'input',
// inputType: 'number',
// placeholder: '请输入商户ID',
// width: '300px',
// labelWidth: '10px'
// }
// ],
searchFormData
:
[
{
label
:
'商品名称'
,
name
:
'goodsName'
,
type
:
'input'
,
placeholder
:
'请输入商品名称'
,
width
:
'300px'
,
labelWidth
:
'10px'
,
isClear
:
true
}
],
pageConfig
:
{
pageSize
:
10
,
currentPage
:
1
pageNum
:
1
},
getListApi
:
this
.
$apis
.
goods
.
getCarlifeGoodsApi
,
tableParams
:
{
listName
:
'list'
,
tableColumns
:
[
...
...
@@ -108,7 +100,7 @@ export default {
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
currentPage
'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
pageNum
'
,
totalCount
:
'total'
},
baseData
:
{}
}
},
...
...
@@ -140,34 +132,14 @@ export default {
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
425
this
.
getList
()
},
methods
:
{
getList
(
pageCon
)
{
pageCon
&&
(
this
.
pageConfig
=
pageCon
)
var
params
=
{
merchantId
:
this
.
merchantId
,
...
this
.
searchForm
,
...
this
.
pageConfig
// merchantId: '44209390',
}
this
.
$apis
.
goods
.
getCarlifeGoodsApi
(
params
).
then
(
res
=>
{
this
.
storeList
=
res
.
list
this
.
total
=
res
.
total
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
currentPage
-
1
)
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
+
1
+
nowIndex
})
})
},
resetTable
()
{
this
.
$refs
.
storeRef
.
page
.
currentPage
=
1
this
.
getList
()
this
.
$refs
.
goodsRef
.
refreshTable
()
},
setTableFinishFun
()
{
this
.
$refs
.
staff
Ref
.
tableHeightValues
=
'460px'
this
.
$refs
.
goods
Ref
.
tableHeightValues
=
'460px'
},
handleClick
(
item
)
{
...
...
@@ -185,7 +157,15 @@ export default {
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.glsx-combi-form
.el-form
{
.el-form-item{
margin-right
:
12px
!important
;
}
.el-button
{
margin-top
:
1px
;
}
}
.select-store
{
.storeDailog
{
width
:
500px
;
...
...
src/views/store/components/selectCarDialog.vue
View file @
4b2dbc4
...
...
@@ -249,7 +249,7 @@
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.search-wrap
{
margin-bottom
:
12px
;
.el-input
{
...
...
src/views/store/edit.vue
View file @
4b2dbc4
...
...
@@ -359,6 +359,7 @@ export default {
this
.
searchForm
.
associationClassifyFirstId
=
associationClassifyFirstId
this
.
searchForm
.
associationClassifySecondId
=
associationClassifySecondId
this
.
searchForm
.
startCreatedDate
=
this
.
searchForm
.
createdDate
?
this
.
searchForm
.
createdDate
+
' 00:00:00'
:
''
this
.
searchForm
.
endCreatedDate
=
this
.
searchForm
.
createdDate
?
this
.
searchForm
.
createdDate
+
' 23:59:59'
:
''
delete
this
.
searchForm
.
createdDate
}
// delete this.searchForm.createDate
...
...
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