Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
b2212cb5
提交
b2212cb5
authored
9月 24, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
资产优化;商品保存失败,数据还原(非除以100)
上级
5715125e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
28 行增加
和
21 行删除
+28
-21
wddetails.vue
src/views/system/asset/wddetails.vue
+6
-3
goodsinfomation.vue
src/views/system/goods/add/components/goodsinfomation.vue
+1
-1
goodsparameter.vue
src/views/system/goods/add/components/goodsparameter.vue
+17
-14
index.vue
src/views/system/goods/add/index.vue
+4
-3
没有找到文件。
src/views/system/asset/wddetails.vue
浏览文件 @
b2212cb5
...
...
@@ -3,6 +3,7 @@
<el-card
class=
"box-card"
>
<p
class=
"card-header-tip"
>
提现状态:
<span
class=
"pay-status"
>
{{
payStatusFormatter
(
withdrawInfo
.
pay_status
)
}}
</span>
<!-- 提现状态:
<strong>
{{
payStatusFormatter
(
withdrawInfo
.
pay_status
)
}}
</strong>
-->
<span>
如果您是电子发票,则不用填写快递公司和单号信息,需上传电子发票图片,同时将电子发票发送至电子邮箱,查看
</span>
<span
class=
"checked-email-rule"
@
click=
"isViewSendRuleDialog = true"
>
【电子邮箱及发票发送格式】
</span>
</p>
...
...
@@ -81,7 +82,7 @@
<p><span
class=
"span-title spe-1"
>
附件:
</span>
电子发票
</p>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"isViewSendRuleDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"isViewSendRuleDialog = false"
size=
"small"
>
关 闭
</el-button>
</span>
</el-dialog>
...
...
@@ -174,12 +175,12 @@
:preview-src-list=
"viewInvoiceForm.invoiceImgList"
>
</el-image>
</div>
<div
class=
"textTip"
>
最多上传一张图片,仅限jpg/png格式,大小限制在500kb以内
</div
>
<!--
<div
class=
"textTip"
>
最多上传一张图片,仅限jpg/png格式,大小限制在500kb以内
</div>
--
>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"isViewInvoiceAgainDialog = false"
size=
"small"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"isViewInvoiceAgainDialog = false"
size=
"small"
>
关 闭
</el-button>
</span>
</el-dialog>
...
...
@@ -288,6 +289,7 @@
//debugger
if
(
res
.
code
==
1
)
{
if
(
res
.
data
)
{
this
.
$message
({
type
:
'success'
,
message
:
'导出成功'
});
const
aLink
=
document
.
createElement
(
'a'
);
aLink
.
href
=
res
.
data
;
//aLink.download = '订单.xls'; //下载的文件名
...
...
@@ -525,6 +527,7 @@
color
:
#333333
;
padding
:
0
15px
;
margin-bottom
:
0
;
overflow
:
hidden
;
}
.pay-status
{
margin
:
0
10px
;
...
...
src/views/system/goods/add/components/goodsinfomation.vue
浏览文件 @
b2212cb5
...
...
@@ -380,7 +380,7 @@
urlObj
.
url
=
res
.
data
.
image_url
;
this
.
goodsImgFileList
.
push
(
urlObj
);
this
.
goodsImgFileList
.
forEach
(
item
=>
{
//
this.goodsInfoForm.imgs.push(item.url)
this
.
goodsInfoForm
.
imgs
.
push
(
item
.
url
)
})
this
.
$message
({
type
:
'success'
,
message
:
'图片上传成功'
});
// 只清除一次,不浪费哦
...
...
src/views/system/goods/add/components/goodsparameter.vue
浏览文件 @
b2212cb5
...
...
@@ -318,7 +318,9 @@ export default {
});
},
// 如果保存失败,将乘以100的价格还原
/**如果保存失败,将乘以100的价格还原
* 当多规格数据时候,才调用
* */
priceReduce
()
{
// debugger
if
(
this
.
parameterdata
.
pamTableList
&&
this
.
parameterdata
.
pamTableList
.
length
>
0
)
{
...
...
@@ -336,20 +338,21 @@ export default {
item
[
0
].
sl_price
=
item
[
0
].
sl_price
/
100
;
}
})
}
else
{
if
(
this
.
singleSpecTable
[
0
].
js_price
)
{
this
.
singleSpecTable
[
0
].
js_price
=
this
.
singleSpecTable
[
0
].
js_price
/
100
}
if
(
this
.
singleSpecTable
[
0
].
price
)
{
this
.
singleSpecTable
[
0
].
price
=
this
.
singleSpecTable
[
0
].
price
/
100
}
if
(
this
.
singleSpecTable
[
0
].
sc_price
)
{
this
.
singleSpecTable
[
0
].
sc_price
=
this
.
singleSpecTable
[
0
].
sc_price
/
100
}
if
(
this
.
singleSpecTable
[
0
].
sl_price
)
{
this
.
singleSpecTable
[
0
].
sl_price
=
this
.
singleSpecTable
[
0
].
sl_price
/
100
}
}
// else {
// if(this.singleSpecTable[0].js_price) {
// this.singleSpecTable[0].js_price = this.singleSpecTable[0].js_price / 100
// }
// if(this.singleSpecTable[0].price) {
// this.singleSpecTable[0].price = this.singleSpecTable[0].price / 100
// }
// if(this.singleSpecTable[0].sc_price) {
// this.singleSpecTable[0].sc_price = this.singleSpecTable[0].sc_price / 100
// }
// if(this.singleSpecTable[0].sl_price) {
// this.singleSpecTable[0].sl_price = this.singleSpecTable[0].sl_price / 100
// }
// }
},
// 删除 单个规格的图片
...
...
src/views/system/goods/add/index.vue
浏览文件 @
b2212cb5
...
...
@@ -596,7 +596,8 @@
query
:
{
goodsStatus
:
goodsStatus
}
});
}
else
{
//this.$refs.goodsparameter.priceReduce()
// 如果保存失败,将价格还原,仅处理 多规格数据
this
.
$refs
.
goodsparameter
.
priceReduce
()
let
msg
=
res
.
message
?
res
.
message
:
'编辑失败'
this
.
$message
({
type
:
'error'
,
message
:
msg
});
}
...
...
@@ -619,8 +620,8 @@
query
:
{
goodsStatus
:
goodsStatus
}
});
}
else
{
// 如果保存失败,将价格还原
//
this.$refs.goodsparameter.priceReduce()
// 如果保存失败,将价格还原
,仅处理 多规格数据
this
.
$refs
.
goodsparameter
.
priceReduce
()
let
msg
=
res
.
message
?
res
.
message
:
'新增失败'
this
.
$message
({
type
:
'error'
,
message
:
msg
});
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论