Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄媛媛
ElectricitySheep
Commits
d88209af
Commit
d88209af
authored
Mar 11, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
47d349d5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
382 additions
and
278 deletions
+382
-278
edit.vue
src/components/coffeeManage/edit.vue
+356
-251
index.vue
src/components/coffeeManage/index.vue
+26
-27
No files found.
src/components/coffeeManage/edit.vue
View file @
d88209af
This diff is collapsed.
Click to expand it.
src/components/coffeeManage/index.vue
View file @
d88209af
...
...
@@ -159,6 +159,12 @@
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
"RetailStore"
width=
"100"
label=
"类型"
>
<
template
slot-scope=
"scope"
>
<el-tag
type=
"success"
v-if=
"scope.row.GoodsEduType==1"
>
咖啡券
</el-tag>
<el-tag
type=
"success"
v-if=
"scope.row.GoodsEduType==2"
>
资产
</el-tag>
</
template
>
</el-table-column>
<el-table-column
prop=
"Remark"
label=
"分类"
>
<
template
slot-scope=
"scope"
>
<el-tag
...
...
@@ -339,24 +345,6 @@
>
</
template
>
</el-table-column>
<el-table-column
prop=
"RetailStore"
width=
"100"
label=
"分销商品"
>
<
template
slot-scope=
"scope"
>
<el-checkbox
v-if=
"scope.row.SourceGoodsId > 0"
:value=
"scope.row.SourceGoodsId > 0"
disabled
></el-checkbox>
</
template
>
</el-table-column>
<el-table-column
prop=
"RetailStore"
width=
"100"
label=
"是否分销"
>
<
template
slot-scope=
"scope"
>
<el-checkbox
v-if=
"scope.row.RetailStore == 1"
:value=
"scope.row.RetailStore == 1"
disabled
></el-checkbox>
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
width=
"250"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<span
...
...
@@ -927,12 +915,11 @@ export default {
BuyOrderNumState
:
true
,
hpState
:
0
,
FxState
:
0
,
currentUserInfo
:
{}
//当前用户
currentUserInfo
:
{
IsKorea
:
0
}
//当前用户
};
},
created
()
{
// this.currentUserInfo = JSON.parse(localStorage.mall_userInfo);
},
methods
:
{
//获取是否开启和平返佣
getHpState
()
{
...
...
@@ -1307,18 +1294,30 @@ export default {
}
},
mounted
()
{
let
that
=
this
window
.
addEventListener
(
"message"
,
function
(
messageEvent
)
{
let
data
=
messageEvent
.
data
;
console
.
log
(
"收到vue的数据:"
,
JSON
.
parse
(
data
));
window
.
localStorage
.
setItem
(
"iframeData"
,
data
);
let
that
=
this
;
if
(
localStorage
.
getItem
(
"iframeData"
))
{
that
.
getList
();
that
.
getTree
();
that
.
getRule
();
that
.
getHpState
();
that
.
getFxState
();
that
.
getSupplierList
();
//获取供应商
}
window
.
addEventListener
(
"message"
,
function
(
messageEvent
)
{
let
data
=
messageEvent
.
data
||
''
;
console
.
log
(
"收到vue的数据:"
,
data
);
if
(
data
.
indexOf
(
'token'
)
>-
1
){
window
.
localStorage
.
setItem
(
"iframeData"
,
data
);
}
that
.
getList
();
that
.
getTree
();
that
.
getRule
();
that
.
getHpState
();
that
.
getFxState
();
that
.
getSupplierList
();
//获取供应商
});
}
};
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment