Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
e723d006
提交
e723d006
authored
9月 22, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
资产\运费 bug修复
上级
454af0e4
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
24 行删除
+21
-24
index.vue
src/views/system/asset/myAsset/index.vue
+2
-2
index.vue
src/views/system/freight/freight_list/index.vue
+19
-22
没有找到文件。
src/views/system/asset/myAsset/index.vue
浏览文件 @
e723d006
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<!-- 商品信息 -->
<!-- 商品信息 -->
<div
class=
"card-header-custom"
>
<div
class=
"card-header-custom"
>
<div
class=
"card-header-title"
>
<div
class=
"card-header-title"
>
<span
class=
"blue-block blue-block-goods-title"
></span>
账
号
资产
<span
class=
"blue-block blue-block-goods-title"
></span>
账
户
资产
</div>
</div>
<div
class=
"card-header-handle"
>
<div
class=
"card-header-handle"
>
<el-button
plain
type=
"primary"
size=
"small"
@
click=
"explainWithdrawal"
>
提现说明
</el-button>
<el-button
plain
type=
"primary"
size=
"small"
@
click=
"explainWithdrawal"
>
提现说明
</el-button>
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"对公银行账号:"
prop=
"bank_account_sn"
>
<el-form-item
label=
"对公银行账号:"
prop=
"bank_account_sn"
>
<el-input
v-model=
"bankcardForm.bank_account_sn"
placeholder=
"请输入
快递单
号"
style=
"width: 70%"
></el-input>
<el-input
v-model=
"bankcardForm.bank_account_sn"
placeholder=
"请输入
对公银行账
号"
style=
"width: 70%"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
...
src/views/system/freight/freight_list/index.vue
浏览文件 @
e723d006
...
@@ -34,13 +34,13 @@
...
@@ -34,13 +34,13 @@
<el-table
v-loading=
"loading"
:data=
"freightList"
:height=
"tableHeight"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"freightList"
:height=
"tableHeight"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"ID"
align=
"center"
prop=
"
I
d"
/>
<el-table-column
label=
"ID"
align=
"center"
prop=
"
i
d"
/>
<el-table-column
label=
"模板名称"
align=
"center"
prop=
"
N
ame"
/>
<el-table-column
label=
"模板名称"
align=
"center"
prop=
"
n
ame"
/>
<el-table-column
label=
"排序"
align=
"center"
prop=
"
S
ort"
/>
<el-table-column
label=
"排序"
align=
"center"
prop=
"
s
ort"
/>
<el-table-column
label=
"是否是默认模板"
align=
"center"
:formatter=
"formatDefault"
prop=
"
IsD
efault"
/>
<el-table-column
label=
"是否是默认模板"
align=
"center"
:formatter=
"formatDefault"
prop=
"
is_d
efault"
/>
<!--
<el-table-column
label=
"类型"
align=
"center"
:formatter=
"formatType"
prop=
"ChargeType"
/>
-->
<!--
<el-table-column
label=
"类型"
align=
"center"
:formatter=
"formatType"
prop=
"ChargeType"
/>
-->
<el-table-column
label=
"启用状态"
align=
"center"
:formatter=
"formaStatus"
prop=
"
P
ublish"
/>
<el-table-column
label=
"启用状态"
align=
"center"
:formatter=
"formaStatus"
prop=
"
p
ublish"
/>
<el-table-column
label=
"创建时间"
align=
"center"
:formatter=
"formatTime"
prop=
"
C
reated"
/>
<el-table-column
label=
"创建时间"
align=
"center"
:formatter=
"formatTime"
prop=
"
c
reated"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -148,9 +148,9 @@
...
@@ -148,9 +148,9 @@
this
.
isOpen
=
val
;
this
.
isOpen
=
val
;
this
.
getList
();
this
.
getList
();
},
},
/
/ 模板是否启用状态
/
** 启用状态 格式化*/
formaStatus
(
row
)
{
formaStatus
(
row
)
{
let
isPublish
=
row
.
P
ublish
;
let
isPublish
=
row
.
p
ublish
;
let
publish
=
''
;
let
publish
=
''
;
if
(
isPublish
===
1
)
{
if
(
isPublish
===
1
)
{
publish
=
'启用'
;
publish
=
'启用'
;
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
},
},
//格式化状态
//格式化状态
formatDefault
(
row
)
{
formatDefault
(
row
)
{
var
types
=
row
.
IsD
efault
var
types
=
row
.
is_d
efault
var
optDes
=
''
var
optDes
=
''
if
(
types
==
1
)
{
if
(
types
==
1
)
{
optDes
=
"是"
optDes
=
"是"
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
},
},
//格式化时间
//格式化时间
formatTime
(
row
)
{
formatTime
(
row
)
{
var
Time
=
row
.
C
reated
var
Time
=
row
.
c
reated
var
newtime
=
""
var
newtime
=
""
if
(
Time
>
0
)
{
if
(
Time
>
0
)
{
newtime
=
dateFormat
(
Time
*
1000
,
"Y-m-d H:i:s"
);
newtime
=
dateFormat
(
Time
*
1000
,
"Y-m-d H:i:s"
);
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
getList
()
{
getList
()
{
listFreight
(
this
.
queryParams
).
then
(
res
=>
{
listFreight
(
this
.
queryParams
).
then
(
res
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
debugger
//
this
.
freightList
=
res
.
data
.
list
;
this
.
freightList
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
count
;
this
.
total
=
res
.
data
.
count
;
}
}
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
I
d
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
i
d
)
this
.
single
=
selection
.
length
!==
1
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
this
.
multiple
=
!
selection
.
length
},
},
...
@@ -269,10 +269,10 @@
...
@@ -269,10 +269,10 @@
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
();
const
id
=
row
.
I
d
const
id
=
row
.
i
d
getFreight
(
id
).
then
(
response
=>
{
getFreight
(
id
).
then
(
response
=>
{
let
formdate
=
response
.
data
let
formdate
=
response
.
data
debugger
//
response
.
data
.
Dispatching
=
JSON
.
parse
(
formdate
.
Dispatching
)
response
.
data
.
Dispatching
=
JSON
.
parse
(
formdate
.
Dispatching
)
console
.
log
(
"点击修改获取的数据:"
,
formdate
.
Dispatching
);
console
.
log
(
"点击修改获取的数据:"
,
formdate
.
Dispatching
);
this
.
form
=
response
.
data
this
.
form
=
response
.
data
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
/** 提交按钮 */
/** 提交按钮 */
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
)
{
...
@@ -311,8 +311,7 @@
...
@@ -311,8 +311,7 @@
* */
* */
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
ids
=
row
.
Id
||
this
.
ids
;
const
ids
=
row
.
id
||
this
.
ids
;
debugger
this
.
$confirm
(
'是否确认删除运费模板编号为“'
+
ids
+
'"的数据?'
,
'警告'
,{
this
.
$confirm
(
'是否确认删除运费模板编号为“'
+
ids
+
'"的数据?'
,
'警告'
,{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -321,13 +320,11 @@
...
@@ -321,13 +320,11 @@
this
.
loading
=
true
;
this
.
loading
=
true
;
let
delResult
=
await
delFreight
(
ids
);
let
delResult
=
await
delFreight
(
ids
);
if
(
delResult
.
code
===
1
)
{
if
(
delResult
.
code
===
1
)
{
this
.
$message
({
type
:
'success'
,
message
:
delResult
.
msg
});
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
});
this
.
getList
();
this
.
getList
();
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
delResult
.
msg
?
delResult
.
msg
:
'删除失败'
});
}
}
if
(
delResult
.
code
===
0
)
{
this
.
$message
({
type
:
'error'
,
message
:
delResult
.
msg
});
}
this
.
loading
=
false
;
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
},
},
}
//methods结束
}
//methods结束
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论