Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-commodity
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 b8055691
authored
May 29, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
2ab4a28c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
14 deletions
src/assets/css/public.scss
src/views/commodity/commodityDetail.vue
src/views/commodity/editCommodity.vue
src/views/commodity/index.vue
src/assets/css/public.scss
View file @
b805569
...
...
@@ -10,7 +10,6 @@ html {
.container
{
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0
.1
);
padding
:
20px
;
}
...
...
@@ -22,6 +21,7 @@ html {
.commodity
.edit-container
{
margin-bottom
:
32px
;
}
// form-start
...
...
src/views/commodity/commodityDetail.vue
View file @
b805569
<!-- 订单详情 -->
<
template
>
<div
class=
"order-detail marketing"
>
<div
class=
"edit-box"
>
<div
class=
"
container
m-b-20"
>
<div
class=
"edit-box
bgf
"
>
<div
class=
"m-b-20"
>
<p
class=
"edit-title"
>
基础信息
</p>
<el-form
label-width=
"120px"
:inline=
"true"
>
<el-form
label-width=
"120px"
:inline=
"true"
class=
"context-wrap"
>
<el-row
v-for=
"(item, index) in detailFormDataRow"
:key=
"index"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label + ':'"
class=
"row-item"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"detailForm[subItem.name]"
>
{{
detailForm
[
subItem
.
name
]
?
detailForm
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
subItem
.
isNum
?
'0'
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
...
...
@@ -12,14 +12,14 @@
</el-row>
</el-form>
</div>
<div
class=
"
container edit-container
"
>
<div
class=
"
edit-container bgf
"
>
<p
class=
"edit-title"
>
使用门店
</p>
<GLTable
ref=
"warehousListRef"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"detailForm.merchantList"
></GLTable>
<GLTable
ref=
"warehousListRef"
class=
"context-wrap"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"detailForm.merchantList"
></GLTable>
</div>
</div>
<GLFooter>
<
!--
<
GLFooter>
<el-button
@
click=
"handleCancel"
size=
"medium"
>
取消
</el-button>
</GLFooter>
</GLFooter>
-->
</div>
</
template
>
...
...
@@ -153,6 +153,7 @@ export default {
}
if
(
this
.
detailForm
.
goodsCodeName
!=
'太阳膜'
)
{
this
.
detailForm
.
warrantyPeriod
=
'-'
this
.
detailForm
.
giftCost
=
'-'
}
else
{
this
.
detailForm
.
warrantyPeriod
=
(
this
.
detailForm
.
warrantyPeriod
||
0
)
+
'年'
}
...
...
@@ -197,4 +198,17 @@ export default {
margin-top
:
10px
;
margin-right
:
20px
;
}
.edit-title
{
height
:
56px
;
background
:
#FFFFFF
;
line-height
:
56px
;
border-bottom
:
1px
solid
#F0F1F7
;
padding-left
:
20px
;
}
.bgf
{
background
:
#FFFFFF
;
}
.context-wrap
{
padding
:
20px
;
}
</
style
>
src/views/commodity/editCommodity.vue
View file @
b805569
...
...
@@ -13,10 +13,10 @@
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
使用门店
</p>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormMerchantRef"
:isEdit=
"isEdit"
:labelWidth=
"defaultLabelWidth"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"merchantEditFormData"
:formRules=
"editRule"
>
<div
slot=
"merchantTable"
class=
"merchant-table"
:style=
"
{ width: `calc(100% - ${defaultLabelWidth} )` }">
<div
slot=
"merchantTable"
:style=
"
{ width: `calc(100% - ${defaultLabelWidth} )` }">
<div
class=
"table-title"
>
使用门店列表
<el-button
type=
"
default"
@
click=
"handleRelateStoreClose(scope)"
>
{{
editForm
.
merchantList
.
length
?
'更换门店'
:
'选择门店'
}}
</el-button>
<el-button
type=
"
primary"
plain
@
click=
"handleRelateStoreClose(scope)"
>
{{
editForm
.
merchantList
.
length
?
'更换门店'
:
'选择门店'
}}
</el-button>
</div>
<GLTable
ref=
"warehousListRef"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.merchantList"
>
<span
slot=
"customBtn"
slot-scope=
"scope"
>
...
...
src/views/commodity/index.vue
View file @
b805569
...
...
@@ -3,18 +3,21 @@
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<GLButton
type=
"primary"
size=
"small"
@
click=
"handleEdit('add')"
fn=
"新增"
>
新增商品
</GLButton>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
<h2>
商品管理列表
</h2>
<div>
<GLButton
type=
"primary"
plain
size=
"small"
@
click=
"handleEdit('add')"
fn=
"新增"
>
新增商品
</GLButton>
<el-button
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"commofityRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"merchantName"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.merchantList.length == 1"
>
{{
scope
.
scope
.
merchantList
[
0
].
merchantName
}}
</span>
<el-tooltip
v-else-if=
"scope.scope.merchantList.length >1"
placement=
"top"
effect=
"light"
>
<el-tooltip
v-else-if=
"scope.scope.merchantList.length >
1"
placement=
"top"
effect=
"light"
>
<div
slot=
"content"
>
<div
class=
"text-3 font-12 weight-6"
style=
"line-height:24px"
>
上家门店
</div>
<div
class=
"text-6 font-12"
style=
"line-height:24px"
v-for=
"item in scope.scope.merchantList"
:key=
"item"
>
{{
item
.
merchantName
}}
</div>
<div
class=
"text-6 font-12"
style=
"line-height:24px"
v-for=
"item in scope.scope.merchantList"
:key=
"item"
>
{{
item
.
merchantName
}}
</div>
</div>
<div
class=
"use-store"
>
<img
src=
"@/assets/store.png"
/>
...
...
@@ -284,4 +287,16 @@ export default {
margin-right
:
8px
;
}
}
.table-header
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
10px
;
margin-top
:
20px
;
h2
{
font-weight
:
600
;
font-size
:
16px
;
color
:
#333
;
}
}
</
style
>
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