Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopFront
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
newshop
newShopFront
Commits
ebc05cf7
Commit
ebc05cf7
authored
Dec 30, 2019
by
Your Name
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' of
http://gitlab-ebiz.yiyao365.cn/newshop/newshopfront
into development
parents
444d3932
44c60bda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
27 deletions
+48
-27
goodsDetailsTemplate.vue
src/views/goods/goodsDetailsTemplate.vue
+23
-2
dcManage_details.vue
src/views/storedc/details/dcManage_details.vue
+8
-8
storeManage_details.vue
src/views/storedc/details/storeManage_details.vue
+17
-17
No files found.
src/views/goods/goodsDetailsTemplate.vue
View file @
ebc05cf7
...
@@ -66,7 +66,8 @@
...
@@ -66,7 +66,8 @@
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a
type=
"primary"
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
type=
"primary"
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a
type=
"primary"
>
启用
</a>
<a
type=
"primary"
@
click=
"modifyStatus(record)"
v-if=
"record.STATUS==0"
>
启用
</a>
<a
type=
"primary"
@
click=
"modifyStatus(record)"
v-else
>
停用
</a>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.GUID)"
>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.GUID)"
>
<a>
删除
</a>
<a>
删除
</a>
...
@@ -99,7 +100,7 @@
...
@@ -99,7 +100,7 @@
required
required
:labelCol=
"labelCol"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
:wrapperCol=
"wrapperCol"
>
<a-select
v-decorator=
"['STATUS
',{rules:[{required:true,message:'请选择是否启用'}],initialValue:'1',normalize:checkNull}]"
placeholder=
"请选择"
>
<a-select
v-decorator=
"['STATUS',{rules:[{required:true,message:'请选择是否启用'}],initialValue:'1',normalize:checkNull}]"
placeholder=
"请选择"
>
<a-select-option
value=
"0"
>
不启用
</a-select-option>
<a-select-option
value=
"0"
>
不启用
</a-select-option>
<a-select-option
value=
"1"
>
启用
</a-select-option>
<a-select-option
value=
"1"
>
启用
</a-select-option>
</a-select>
</a-select>
...
@@ -251,6 +252,26 @@ export default {
...
@@ -251,6 +252,26 @@ export default {
},
},
methods
:
{
methods
:
{
moment
,
moment
,
// 修改状态
modifyStatus
(
record
){
const
statusChange
=
{
GUID
:
record
.
GUID
,
STATUS
:
record
.
STATUS
};
if
(
statusChange
.
STATUS
==
1
){
statusChange
.
STATUS
=
0
;
}
else
{
statusChange
.
STATUS
=
1
;
}
modifyGoodsTemplate
(
statusChange
).
then
(
res
=>
{
if
(
res
.
status
==
200
){
this
.
$message
.
success
(
res
.
message
)
this
.
$refs
.
table
.
refresh
();
}
}).
catch
(
err
=>
{
})
},
// 删除
// 删除
remove
(
value
){
remove
(
value
){
deleteGoodsTemplate
(
value
).
then
(
res
=>
{
deleteGoodsTemplate
(
value
).
then
(
res
=>
{
...
...
src/views/storedc/details/dcManage_details.vue
View file @
ebc05cf7
...
@@ -570,14 +570,14 @@
...
@@ -570,14 +570,14 @@
};
};
getDCDetails
(
id
).
then
(
res
=>
{
getDCDetails
(
id
).
then
(
res
=>
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
addressProvince
=
res
.
RECIVER_PROVINCE
;
this
.
addressProvince
=
res
.
data
[
0
].
RECIVER_PROVINCE
;
this
.
addressCity
=
res
.
RECIVER_CITY
;
this
.
addressCity
=
res
.
data
[
0
].
RECIVER_CITY
;
this
.
addressRegion
=
res
izeBy
.
RECIVER_REGION
;
this
.
addressRegion
=
res
.
data
[
0
]
.
RECIVER_REGION
;
res
.
WORK_TIME_START
=
this
.
timeGet
(
res
.
WORK_TIME
)[
0
]
res
.
data
[
0
].
WORK_TIME_START
=
this
.
timeGet
(
res
.
data
[
0
]
.
WORK_TIME
)[
0
]
res
.
WORK_TIME_END
=
this
.
timeGet
(
res
.
WORK_TIME
)[
1
]
res
.
data
[
0
].
WORK_TIME_END
=
this
.
timeGet
(
res
.
data
[
0
]
.
WORK_TIME
)[
1
]
res
.
DELIVERY_TIME_START
=
this
.
timeGet
(
res
.
DELIVERY_TIME
)[
0
]
res
.
data
[
0
].
DELIVERY_TIME_START
=
this
.
timeGet
(
res
.
data
[
0
]
.
DELIVERY_TIME
)[
0
]
res
.
DELIVERY_TIME_END
=
this
.
timeGet
(
res
.
DELIVERY_TIME
)[
1
]
res
.
data
[
0
].
DELIVERY_TIME_END
=
this
.
timeGet
(
res
.
data
[
0
]
.
DELIVERY_TIME
)[
1
]
this
.
form
.
setFieldsValue
(
res
)
this
.
form
.
setFieldsValue
(
res
.
data
[
0
]
)
})
})
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
...
src/views/storedc/details/storeManage_details.vue
View file @
ebc05cf7
...
@@ -245,12 +245,12 @@
...
@@ -245,12 +245,12 @@
<a-col
:span=
"3"
></a-col>
<a-col
:span=
"3"
></a-col>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<span>
开始营业时间
</span>
<span>
开始营业时间
</span>
<a-time-picker
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'worktime_start')"
v-decorator=
"['WORK_TIME_START',
{normalize:checkDate}]" />
<a-time-picker
id=
"startWorktime"
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'worktime_start')"
v-decorator=
"['WORK_TIME_START',
{normalize:checkDate}]" />
</a-col>
</a-col>
<a-col
:span=
"2"
></a-col>
<a-col
:span=
"2"
></a-col>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<span>
结束营业时间
</span>
<span>
结束营业时间
</span>
<a-time-picker
hideDisabledOptions
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'worktime_end')"
:disabledHours=
"getDisabledHours"
:disabledMinutes=
"getDisabledMinutes"
:disabledSeconds=
"getDisabledSeconds"
v-decorator=
"['WORK_TIME_END',
{normalize:checkDate}]" />
<a-time-picker
id=
"endWorktime"
hideDisabledOptions
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'worktime_end')"
:disabledHours=
"getDisabledHours"
:disabledMinutes=
"getDisabledMinutes"
:disabledSeconds=
"getDisabledSeconds"
v-decorator=
"['WORK_TIME_END',
{normalize:checkDate}]" />
</a-col>
</a-col>
<a-col
:span=
"3"
></a-col>
<a-col
:span=
"3"
></a-col>
</a-form-item>
</a-form-item>
...
@@ -261,12 +261,12 @@
...
@@ -261,12 +261,12 @@
<a-col
:span=
"3"
></a-col>
<a-col
:span=
"3"
></a-col>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<span>
开始配送时间
</span>
<span>
开始配送时间
</span>
<a-time-picker
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'develiytime_start')"
v-decorator=
"['DELIVERY_TIME_START',
{normalize:checkDate}]" />
<a-time-picker
id=
"startDeliveritime"
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'develiytime_start')"
v-decorator=
"['DELIVERY_TIME_START',
{normalize:checkDate}]" />
</a-col>
</a-col>
<a-col
:span=
"2"
></a-col>
<a-col
:span=
"2"
></a-col>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<span>
结束配送时间
</span>
<span>
结束配送时间
</span>
<a-time-picker
hideDisabledOptions
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'develiytime_end')"
:disabledHours=
"getDisabledHoursDeveliy"
:disabledMinutes=
"getDisabledMinutesDeveliy"
:disabledSeconds=
"getDisabledSecondsDeveliy"
v-decorator=
"['DELIVERY_TIME_END',
{normalize:checkDate}]" />
<a-time-picker
id=
"endDeliveritime"
hideDisabledOptions
@
change=
"(val,dateStrings)=>changeTime(val,dateStrings,'develiytime_end')"
:disabledHours=
"getDisabledHoursDeveliy"
:disabledMinutes=
"getDisabledMinutesDeveliy"
:disabledSeconds=
"getDisabledSecondsDeveliy"
v-decorator=
"['DELIVERY_TIME_END',
{normalize:checkDate}]" />
</a-col>
</a-col>
<a-col
:span=
"3"
></a-col>
<a-col
:span=
"3"
></a-col>
</a-form-item>
</a-form-item>
...
@@ -794,31 +794,31 @@
...
@@ -794,31 +794,31 @@
var
id
=
this
.
$route
.
query
.
GUID
;
var
id
=
this
.
$route
.
query
.
GUID
;
getStoreDetails
(
id
).
then
(
res
=>
{
getStoreDetails
(
id
).
then
(
res
=>
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
addressProvince
=
res
.
RECIVER_PROVINCE
;
this
.
addressProvince
=
res
.
data
[
0
].
RECIVER_PROVINCE
;
this
.
addressCity
=
res
.
RECIVER_CITY
;
this
.
addressCity
=
res
.
data
[
0
].
RECIVER_CITY
;
this
.
addressRegion
=
res
izeBy
.
RECIVER_REGION
;
this
.
addressRegion
=
res
.
data
[
0
]
.
RECIVER_REGION
;
res
.
WORK_TIME_START
=
this
.
timeGet
(
res
.
WORK_TIME
)[
0
]
res
.
data
[
0
].
WORK_TIME_START
=
this
.
timeGet
(
res
.
data
[
0
]
.
WORK_TIME
)[
0
]
res
.
WORK_TIME_END
=
this
.
timeGet
(
res
.
WORK_TIME
)[
1
]
res
.
data
[
0
].
WORK_TIME_END
=
this
.
timeGet
(
res
.
data
[
0
]
.
WORK_TIME
)[
1
]
res
.
DELIVERY_TIME_START
=
this
.
timeGet
(
res
.
DELIVERY_TIME
)[
0
]
res
.
data
[
0
].
DELIVERY_TIME_START
=
this
.
timeGet
(
res
.
data
[
0
]
.
DELIVERY_TIME
)[
0
]
res
.
DELIVERY_TIME_END
=
this
.
timeGet
(
res
.
DELIVERY_TIME
)[
1
]
res
.
data
[
0
].
DELIVERY_TIME_END
=
this
.
timeGet
(
res
.
data
[
0
]
.
DELIVERY_TIME
)[
1
]
if
(
res
.
LICENCE_IMAGE_PATH
){
if
(
res
.
data
[
0
].
LICENCE_IMAGE_PATH
){
this
.
fileList
.
push
({
this
.
fileList
.
push
({
uid
:
'-1'
,
uid
:
'-1'
,
name
:
'test.png'
,
name
:
'test.png'
,
status
:
'done'
,
status
:
'done'
,
url
:
res
.
LICENCE_IMAGE_PATH
,
url
:
res
.
data
[
0
].
LICENCE_IMAGE_PATH
,
})
})
}
}
if
(
res
.
BRANCH_IMAGE_PATH
){
if
(
res
.
data
[
0
].
BRANCH_IMAGE_PATH
){
this
.
BranchfileList
.
push
({
this
.
BranchfileList
.
push
({
uid
:
'-1'
,
uid
:
'-1'
,
name
:
'test.png'
,
name
:
'test.png'
,
status
:
'done'
,
status
:
'done'
,
url
:
res
.
BRANCH_IMAGE_PATH
,
url
:
res
.
data
[
0
].
BRANCH_IMAGE_PATH
,
})
})
}
}
console
.
log
(
res
)
console
.
log
(
res
.
data
[
0
]
)
this
.
form
.
setFieldsValue
(
res
)
this
.
form
.
setFieldsValue
(
res
.
data
[
0
]
)
})
})
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
...
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