Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
6baf1c0a
提交
6baf1c0a
authored
6月 22, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug修复,运费模板限制50个
上级
45118920
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
48 行增加
和
22 行删除
+48
-22
index.vue
src/views/system/freight/freight_list/index.vue
+33
-17
indexbtn.vue
src/views/system/freight/freight_list/indexbtn.vue
+6
-4
address.vue
src/views/system/retreat/address.vue
+8
-1
index.vue
src/views/system/retreat/retreat/index.vue
+1
-0
没有找到文件。
src/views/system/freight/freight_list/index.vue
浏览文件 @
6baf1c0a
...
@@ -46,14 +46,13 @@
...
@@ -46,14 +46,13 @@
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
>
修改
>
修改
</el-button>
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
@
click=
"handleDelete(scope.row)"
>
删除
>
删除
</el-button>
</el-button>
...
@@ -68,7 +67,7 @@
...
@@ -68,7 +67,7 @@
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
<!-- 添加或修改freight对话框 -->
<!-- 添加或修改freight对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"isOpen"
v-if=
"isOpen"
width=
"70%"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"isOpen"
v-if=
"isOpen"
width=
"70%"
class=
"freightTemplate-add"
>
<IndexBtn
:option=
"form"
@
closeIndexbtn=
"closeDialog"
/>
<IndexBtn
:option=
"form"
@
closeIndexbtn=
"closeDialog"
/>
</el-dialog>
</el-dialog>
</el-card>
</el-card>
...
@@ -240,8 +239,8 @@
...
@@ -240,8 +239,8 @@
},
},
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
if
(
this
.
total
>=
2
0
)
{
if
(
this
.
total
>=
5
0
)
{
this
.
$message
({
message
:
'您已经有
20个运费模板了,暂时不再支持更多哦
!'
,
type
:
'warning'
});
this
.
$message
({
message
:
'您已经有
50个运费模板了,暂时不再支持更多
!'
,
type
:
'warning'
});
return
;
return
;
}
}
this
.
reset
();
this
.
reset
();
...
@@ -273,7 +272,7 @@
...
@@ -273,7 +272,7 @@
getFreight
(
id
).
then
(
response
=>
{
getFreight
(
id
).
then
(
response
=>
{
let
formdate
=
response
.
data
let
formdate
=
response
.
data
response
.
data
.
Dispatching
=
JSON
.
parse
(
formdate
.
Dispatching
)
response
.
data
.
Dispatching
=
JSON
.
parse
(
formdate
.
Dispatching
)
console
.
log
(
"点击修改获取的数据:"
,
response
.
data
.
Dispatching
);
//
console.log("点击修改获取的数据:",response.data.Dispatching);
this
.
form
=
response
.
data
this
.
form
=
response
.
data
this
.
isOpen
=
true
;
this
.
isOpen
=
true
;
this
.
title
=
"修改运费模板"
;
this
.
title
=
"修改运费模板"
;
...
@@ -282,7 +281,9 @@
...
@@ -282,7 +281,9 @@
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
debugger
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateFreight
(
this
.
form
).
then
(
response
=>
{
updateFreight
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
if
(
response
.
code
===
0
)
{
...
@@ -309,20 +310,35 @@
...
@@ -309,20 +310,35 @@
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
ids
=
row
.
Id
||
this
.
ids
;
const
ids
=
row
.
Id
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除运费模板编号为"'
+
ids
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认删除运费模板编号为“'
+
ids
+
'"的数据?'
,
'警告'
,{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
type
:
'warning'
}).
then
(
function
()
{
}).
then
(
async
()
=>
{
return
delFreight
(
ids
);
this
.
loading
=
true
;
}).
then
(()
=>
{
let
delResult
=
await
delFreight
(
ids
);
this
.
getList
();
this
.
loading
=
false
;
this
.
msgSuccess
(
"删除成功"
);
if
(
delResult
.
code
===
1
)
{
}).
catch
(
function
()
{});
this
.
$message
({
type
:
'success'
,
message
:
delResult
.
msg
});
}
if
(
delResult
.
code
===
0
)
{
this
.
$message
({
type
:
'error'
,
message
:
delResult
.
msg
});
}
}).
catch
(()
=>
{});
},
},
}
//methods结束
}
//methods结束
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
type=
"text/stylus"
>
<
style
scoped
lang=
"scss"
type=
"text/stylus"
>
.freightTemplate-add
{
/
deep
/
.el-dialog
{
height
:
80%
;
overflow
:
hidden
;
}
/
deep
/
.el-dialog__body
{
height
:
calc
(
100%
-
60px
);
overflow-x
:
hidden
;
overflow-y
:
scroll
;
}
}
</
style
>
</
style
>
src/views/system/freight/freight_list/indexbtn.vue
浏览文件 @
6baf1c0a
...
@@ -271,13 +271,15 @@ export default {
...
@@ -271,13 +271,15 @@ export default {
item
.
fp
=
Number
(
item
.
fp
*
100
).
toFixed
();
item
.
fp
=
Number
(
item
.
fp
*
100
).
toFixed
();
item
.
np
=
Number
(
item
.
np
*
100
).
toFixed
();
item
.
np
=
Number
(
item
.
np
*
100
).
toFixed
();
})
})
//console.log(275,this.goodsDate);
console
.
log
(
"提交前的数据:"
,
this
.
goodsDate
);
addFreight
(
this
.
goodsDate
).
then
(
response
=>
{
addFreight
(
this
.
goodsDate
).
then
(
response
=>
{
//console.log(296,response);
if
(
response
.
data
.
code
===
1
)
{
if
(
response
.
data
.
code
===
1
)
{
this
.
$message
({
message
:
'新增成功!'
,
type
:
'success'
});
this
.
$emit
(
"closeIndexbtn"
,
false
);
this
.
$emit
(
"closeIndexbtn"
,
false
);
if
(
this
.
goodsDate
.
Id
===
0
)
{
this
.
$message
({
message
:
'新增成功'
,
type
:
'success'
});
}
else
{
this
.
$message
({
message
:
'修改成功'
,
type
:
'success'
});
}
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
...
...
src/views/system/retreat/address.vue
浏览文件 @
6baf1c0a
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
<el-table-column
label=
"操作"
align=
"center"
>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -87,7 +88,13 @@
...
@@ -87,7 +88,13 @@
</template>
</template>
<
script
>
<
script
>
import
{
getAddressList
,
getAreaList
,
addAddress
,
getAddressDetails
,
deleteAddress
}
from
'@/api/module/retreat/address'
;
import
{
addAddress
,
deleteAddress
,
getAddressDetails
,
getAddressList
,
getAreaList
}
from
'@/api/module/retreat/address'
;
export
default
{
export
default
{
name
:
"Address"
,
name
:
"Address"
,
...
...
src/views/system/retreat/retreat/index.vue
浏览文件 @
6baf1c0a
...
@@ -355,6 +355,7 @@
...
@@ -355,6 +355,7 @@
},
},
//拒绝原因 1:,2:,3:,4:,5,6:,7:,8:,9:,10:,11:,12:,13:,14:
//拒绝原因 1:,2:,3:,4:,5,6:,7:,8:,9:,10:,11:,12:,13:,14:
actCause
:
[
actCause
:
[
{
label
:
'请选择拒绝原因'
,
value
:
0
},
{
label
:
"买家要求退款金额过高"
,
value
:
1
},
{
label
:
"买家要求退款金额过高"
,
value
:
1
},
{
label
:
"买家举证无效,商品没问题"
,
value
:
2
},
{
label
:
"买家举证无效,商品没问题"
,
value
:
2
},
{
label
:
"买家未举证,商品没问题"
,
value
:
3
},
{
label
:
"买家未举证,商品没问题"
,
value
:
3
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论