Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
welfare
Overview
Overview
Details
Activity
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
达摩4.0重构
welfare
Commits
696347dd
Commit
696347dd
authored
Feb 07, 2021
by
萱草
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 礼品管理
parent
f3bf5643
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
18 deletions
+44
-18
gift.js
src/api/gift.js
+2
-2
real-gift-detail.vue
src/views/gift-manage/real-gift-detail.vue
+0
-0
real-gift.vue
src/views/gift-manage/real-gift.vue
+42
-16
No files found.
src/api/gift.js
View file @
696347dd
...
...
@@ -3,7 +3,7 @@
* 礼品管理
*/
import
getFetch
from
'./get-fetch.js'
;
import
{
welfare
Prefix
}
from
'@/config'
;
import
config
,
{
welfarePrefix
,
common
Prefix
}
from
'@/config'
;
// 礼品相关接口
...
...
@@ -48,4 +48,4 @@ export default { ...realGift };
// export const importCode = config.api + marketPrefix + '/import-gic-custom-code'; // 导入券码 TODO:
// export const importDestoryCode = marketPrefix + '/destroy-plugin/import-destroy-code'; // 上传销毁code列表 TODO:
// export const downloadDestroyCodeTemplate = config.api + marketPrefix + '/destroy-plugin/download-destroy-code-template'; // 下载销毁模板示例 TODO:
export
const
getGiftLoginUser
=
config
.
api
+
commonPrefix
+
'/user/get-login-user'
;
// 获取商户名称
src/views/gift-manage/real-gift-detail.vue
View file @
696347dd
This diff is collapsed.
Click to expand it.
src/views/gift-manage/real-gift.vue
View file @
696347dd
...
...
@@ -143,6 +143,8 @@ import updateName from './module/update-name.vue';
import
updateMultiStock
from
'./module/update-multi-stock.vue'
;
// import updateSkuIntegral from '../../components/updateSkuIntegral';
// import { mapGetters } from 'vuex';
import
api
from
'@/api/gift.js'
;
const
{
giftPage
}
=
api
;
export
default
{
components
:
{
// UpdateCost,
...
...
@@ -178,21 +180,21 @@ export default {
total
:
0
,
sortOrder
:
''
,
sortColumn
:
''
,
//
tableData: [],
tableData
:
[
{
costPrice
:
'99'
,
giftId
:
'111111'
,
giftName
:
'测试'
,
giftNo
:
'00000'
,
hiddenFlag
:
1
,
historyTotalStock
:
'9999'
,
occupyStock
:
'100'
,
totalStock
:
'800'
,
remainedStock
:
'700'
,
updateTime
:
'1610693597000'
}
],
tableData
:
[],
//
tableData: [
//
{
//
costPrice: '99',
//
giftId: '111111',
//
giftName: '测试',
//
giftNo: '00000',
//
hiddenFlag: 1,
//
historyTotalStock: '9999',
//
occupyStock: '100',
//
totalStock: '800',
//
remainedStock: '700',
//
updateTime: '1610693597000'
//
}
//
],
selectList
:
[],
// 更新成本数据
updateCostData
:
{
...
...
@@ -271,6 +273,29 @@ export default {
// 实物礼品列表
getTableList
()
{
console
.
log
(
'获取列表详情'
);
let
params
=
{
giftType
:
'1'
,
startTime
:
''
,
startStock
:
''
,
startCostPrice
:
''
,
sortOrder
:
''
,
sortColumn
:
''
,
pageSize
:
''
,
pageNum
:
''
,
hiddenFlag
:
''
,
giftNo
:
''
,
giftName
:
''
,
giftId
:
''
,
giftBarNo
:
''
,
endTime
:
''
,
endStock
:
''
,
endCostPrice
:
''
};
giftPage
(
params
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
tableData
=
res
.
result
;
console
.
log
(
this
.
tableData
);
});
},
// 排序
sortChange
(
value
)
{
...
...
@@ -404,8 +429,9 @@ export default {
},
add
()
{
console
.
log
(
'新建礼品,跳转'
);
this
.
$router
.
push
({
path
:
'/real-gift-detail'
,
query
:
{
giftId
:
''
}
});
this
.
$router
.
push
({
path
:
'/
gift-manage/
real-gift-detail'
,
query
:
{
giftId
:
''
}
});
// this.$router.push({ path: '/real-gift-detail' });
// http://git.gicdev.com/dm4/welfare.git
},
// edit(item) {
// console.log('编辑实物礼品', item);
...
...
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