Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
6c816807
提交
6c816807
authored
8月 09, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev_hxz' into test
上级
f0ff8dfa
bcdbc843
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
60 行增加
和
47 行删除
+60
-47
permission.js
src/permission.js
+4
-2
user.js
src/store/modules/user.js
+2
-1
request.js
src/utils/request.js
+1
-0
newyuncang.vue
src/views/entry/newyuncang.vue
+2
-2
platformlogin.vue
src/views/platformlogin.vue
+1
-1
goodsparameter.vue
src/views/system/goods/add/components/goodsparameter.vue
+32
-14
index.vue
src/views/system/goods/add/index.vue
+18
-27
没有找到文件。
src/permission.js
浏览文件 @
6c816807
...
@@ -23,13 +23,13 @@ router.beforeEach((to, from, next) => {
...
@@ -23,13 +23,13 @@ router.beforeEach((to, from, next) => {
NProgress
.
done
()
NProgress
.
done
()
}
else
{
}
else
{
if
(
store
.
getters
.
roles
.
length
===
0
)
{
if
(
store
.
getters
.
roles
.
length
===
0
)
{
debugger
//
debugger
// 判断当前用户是否已拉取完user_info信息
// 判断当前用户是否已拉取完user_info信息
store
.
dispatch
(
'GetInfo'
).
then
(
res
=>
{
store
.
dispatch
(
'GetInfo'
).
then
(
res
=>
{
// return false
// return false
// 拉取user_info
// 拉取user_info
const
roles
=
res
.
data
.
roles
const
roles
=
res
.
data
.
roles
debugger
//
debugger
store
.
dispatch
(
'GenerateRoutes'
,
{
roles
}).
then
(
accessRoutes
=>
{
store
.
dispatch
(
'GenerateRoutes'
,
{
roles
}).
then
(
accessRoutes
=>
{
// 测试 默认静态页面
// 测试 默认静态页面
// store.dispatch('permission/generateRoutes', { roles }).then(accessRoutes => {
// store.dispatch('permission/generateRoutes', { roles }).then(accessRoutes => {
...
@@ -40,6 +40,7 @@ router.beforeEach((to, from, next) => {
...
@@ -40,6 +40,7 @@ router.beforeEach((to, from, next) => {
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
store
.
dispatch
(
'FedLogOut'
).
then
(()
=>
{
store
.
dispatch
(
'FedLogOut'
).
then
(()
=>
{
Message
.
error
(
err
)
Message
.
error
(
err
)
//debugger
next
({
path
:
'/home/index'
})
next
({
path
:
'/home/index'
})
})
})
})
})
...
@@ -62,6 +63,7 @@ router.beforeEach((to, from, next) => {
...
@@ -62,6 +63,7 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入
// 在免登录白名单,直接进入
next
()
next
()
}
else
{
}
else
{
//debugger
next
(
`/login?redirect=
${
to
.
path
}
`
)
// 否则全部重定向到登录页
next
(
`/login?redirect=
${
to
.
path
}
`
)
// 否则全部重定向到登录页
// next(`/newyuncang?redirect=${to.path}`) // 否则全部重定向到登录页
// next(`/newyuncang?redirect=${to.path}`) // 否则全部重定向到登录页
NProgress
.
done
()
NProgress
.
done
()
...
...
src/store/modules/user.js
浏览文件 @
6c816807
...
@@ -67,7 +67,7 @@ const user = {
...
@@ -67,7 +67,7 @@ const user = {
GetInfo
({
commit
,
state
})
{
GetInfo
({
commit
,
state
})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getInfo
().
then
(
res
=>
{
getInfo
().
then
(
res
=>
{
debugger
//
debugger
const
user
=
res
.
data
.
user
const
user
=
res
.
data
.
user
// const avatar = user.avatar == "" ? require("@/assets/image/login-background.jpg") : process.env.VUE_APP_BASE_API +"/"+ user.avatar;
// const avatar = user.avatar == "" ? require("@/assets/image/login-background.jpg") : process.env.VUE_APP_BASE_API +"/"+ user.avatar;
const
avatar
=
require
(
"@/assets/image/login-background.jpg"
)
const
avatar
=
require
(
"@/assets/image/login-background.jpg"
)
...
@@ -94,6 +94,7 @@ const user = {
...
@@ -94,6 +94,7 @@ const user = {
commit
(
'SET_TOKEN'
,
''
)
commit
(
'SET_TOKEN'
,
''
)
commit
(
'SET_ROLES'
,
[])
commit
(
'SET_ROLES'
,
[])
commit
(
'SET_PERMISSIONS'
,
[])
commit
(
'SET_PERMISSIONS'
,
[])
removeToken
()
removeToken
()
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
// setTimeout(function (){
// setTimeout(function (){
...
...
src/utils/request.js
浏览文件 @
6c816807
...
@@ -96,6 +96,7 @@ service.interceptors.response.use(res => {
...
@@ -96,6 +96,7 @@ service.interceptors.response.use(res => {
})
})
return
Promise
.
reject
(
'error'
)
return
Promise
.
reject
(
'error'
)
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
//debugger
var
ssa
=
window
.
location
.
host
;
var
ssa
=
window
.
location
.
host
;
if
(
ssa
==
'localhost:1024'
)
{
if
(
ssa
==
'localhost:1024'
)
{
...
...
src/views/entry/newyuncang.vue
浏览文件 @
6c816807
...
@@ -280,12 +280,12 @@
...
@@ -280,12 +280,12 @@
toRegister
()
{
toRegister
()
{
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
var
ssa
=
window
.
location
.
host
;
var
ssa
=
window
.
location
.
host
;
window
.
location
.
href
=
'http://sso.jxhh.com/log
out
?redirect=http://'
+
window
.
location
.
host
+
'/platformlogin'
window
.
location
.
href
=
'http://sso.jxhh.com/log
in
?redirect=http://'
+
window
.
location
.
host
+
'/platformlogin'
})
})
},
},
// 去登录
// 去登录
toLogin
()
{
toLogin
()
{
window
.
location
.
href
=
'http://sso.jxhh.com/log
out
?redirect=http://'
+
window
.
location
.
host
+
'/platformlogin'
window
.
location
.
href
=
'http://sso.jxhh.com/log
in
?redirect=http://'
+
window
.
location
.
host
+
'/platformlogin'
//http://sso.jxhh.com/logout?redirect=http://' + ssa + '/login
//http://sso.jxhh.com/logout?redirect=http://' + ssa + '/login
}
}
...
...
src/views/platformlogin.vue
浏览文件 @
6c816807
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
// 获取客户是否有审核信息
// 获取客户是否有审核信息
getShopInf
().
then
(
res
=>
{
getShopInf
().
then
(
res
=>
{
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
debugger
//
debugger
switch
(
res
.
data
.
state
)
{
switch
(
res
.
data
.
state
)
{
case
0
:
case
0
:
switch
(
res
.
data
.
status
){
switch
(
res
.
data
.
status
){
...
...
src/views/system/goods/add/components/goodsparameter.vue
浏览文件 @
6c816807
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"sl_price"
label=
"结算价"
>
<el-table-column
align=
"center"
prop=
"sl_price"
label=
"结算价"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!--
<el-input
size=
"mini"
style=
"width:90%"
v-model=
"scope.row.sl_price"
:disabled=
"true"
placeholder=
"根据结算价自动计算"
></el-input>
-->
<span
<span
class=
"sl-price-span-input"
>
{{
scope
.
row
.
sl_price
=
scope
.
row
.
js_price
?
scope
.
row
.
js_price
:
''
}}
</span>
class=
"sl-price-span-input"
>
{{
scope
.
row
.
sl_price
=
scope
.
row
.
js_price
?
scope
.
row
.
js_price
:
''
}}
</span>
</
template
>
</
template
>
...
@@ -216,19 +215,11 @@ export default {
...
@@ -216,19 +215,11 @@ export default {
this
.
orgGoodsPam
=
val
;
this
.
orgGoodsPam
=
val
;
console
.
log
(
"监听"
,
this
.
orgGoodsPam
);
console
.
log
(
"监听"
,
this
.
orgGoodsPam
);
},
},
// "orgGoodsPam": {
// handler: function(val) {
// console.log(222,val);
//
// },
// deep: true
// }
},
},
created
()
{
created
()
{
//this.orgGoodsPam = this.parameterdata;
//this.orgGoodsPam = this.parameterdata;
},
},
mounted
()
{
mounted
()
{
//console.log("加载后,",this.parameterdata);
if
(
this
.
parameterdata
.
pamTableList
&&
this
.
parameterdata
.
pamTableList
.
length
>
0
)
{
if
(
this
.
parameterdata
.
pamTableList
&&
this
.
parameterdata
.
pamTableList
.
length
>
0
)
{
this
.
orgGoodsPam
=
this
.
parameterdata
;
this
.
orgGoodsPam
=
this
.
parameterdata
;
}
else
{
}
else
{
...
@@ -253,14 +244,11 @@ export default {
...
@@ -253,14 +244,11 @@ export default {
},
},
// 上传 无规格组合 的图片
// 上传 无规格组合 的图片
upLoadSingleSpecImg
(
param
)
{
upLoadSingleSpecImg
(
param
)
{
// this.loading = true;
//debugger
this
.
getBase64
(
param
.
file
).
then
((
res
)
=>
{
this
.
getBase64
(
param
.
file
).
then
((
res
)
=>
{
let
result
=
res
.
split
(
","
);
let
result
=
res
.
split
(
","
);
this
.
Base64img
=
result
[
1
];
this
.
Base64img
=
result
[
1
];
let
data
=
{
"img_data"
:
this
.
Base64img
}
let
data
=
{
"img_data"
:
this
.
Base64img
}
UploadImg
(
data
).
then
(
res
=>
{
UploadImg
(
data
).
then
(
res
=>
{
// this.loading = false;
if
(
res
&&
res
.
code
==
1
)
{
if
(
res
&&
res
.
code
==
1
)
{
this
.
singleSpecImgList
.
push
({
url
:
res
.
data
.
image_url
});
this
.
singleSpecImgList
.
push
({
url
:
res
.
data
.
image_url
});
this
.
singleSpecTable
[
0
].
imgs9
=
[];
this
.
singleSpecTable
[
0
].
imgs9
=
[];
...
@@ -329,8 +317,38 @@ export default {
...
@@ -329,8 +317,38 @@ export default {
})
})
});
});
},
//console.log(3333,file);
// 如果保存失败,将乘以100的价格还原
priceReduce
()
{
if
(
this
.
parameterdata
.
pamTableList
&&
this
.
parameterdata
.
pamTableList
.
length
>
0
)
{
this
.
parameterdata
.
pamTableList
.
forEach
((
item
)
=>
{
if
(
item
.
js_price
)
{
item
.
js_price
=
item
.
js_price
/
100
;
}
if
(
item
.
price
)
{
item
.
price
=
item
.
price
/
100
;
}
if
(
item
.
sc_price
)
{
item
.
sc_price
=
item
.
sc_price
/
100
;
}
if
(
item
.
sl_price
)
{
item
.
sl_price
=
item
.
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
浏览文件 @
6c816807
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div>
<div>
<p
class=
"goods-type-tip"
>
为商品设置正确的类目,能让商品快速的被搜索到
</p>
<p
class=
"goods-type-tip"
>
为商品设置正确的类目,能让商品快速的被搜索到
</p>
</div>
</div>
<div
class=
"goods-type-options"
v-loading=
"loading"
>
<div
class=
"goods-type-options"
>
<el-cascader-panel
v-model=
"SSQList"
:props=
'props'
@
change=
"SSQChange"
ref=
"ssqCascader"
></el-cascader-panel>
<el-cascader-panel
v-model=
"SSQList"
:props=
'props'
@
change=
"SSQChange"
ref=
"ssqCascader"
></el-cascader-panel>
</div>
</div>
<el-button
type=
"primary"
class=
"next-step"
:disabled=
"isNextStep"
@
click=
"nextStep"
>
下一步
</el-button>
<el-button
type=
"primary"
class=
"next-step"
:disabled=
"isNextStep"
@
click=
"nextStep"
>
下一步
</el-button>
...
@@ -272,6 +272,11 @@
...
@@ -272,6 +272,11 @@
methods
:
{
methods
:
{
// 规格子组件,传给父组件的数据
// 规格子组件,传给父组件的数据
calcSpeTable
(
data
)
{
calcSpeTable
(
data
)
{
//debugger
// let hax = "-1g";
// console.log( Number(hax));
// return
// 第一步,获取原来的值
// 第一步,获取原来的值
let
spsjData2
=
this
.
$refs
.
goodsparameter
.
orgGoodsPam
;
let
spsjData2
=
this
.
$refs
.
goodsparameter
.
orgGoodsPam
;
...
@@ -285,8 +290,6 @@
...
@@ -285,8 +290,6 @@
}
}
})
})
}
}
// console.log(153,data);
// console.log(222,spsjData2);
// 第三步,重新赋值
// 第三步,重新赋值
if
(
data
.
pamTableList
.
length
>
0
&&
spsjData2
.
pamTableList
.
length
>
0
)
{
if
(
data
.
pamTableList
.
length
>
0
&&
spsjData2
.
pamTableList
.
length
>
0
)
{
...
@@ -314,7 +317,6 @@
...
@@ -314,7 +317,6 @@
lazyLoad
(
node
,
resolve
)
{
lazyLoad
(
node
,
resolve
)
{
this
.
SSQList
=
[];
this
.
SSQList
=
[];
this
.
SSQStr
=
''
;
this
.
SSQStr
=
''
;
//debugger
this
.
getArea
(
node
,
resolve
);
this
.
getArea
(
node
,
resolve
);
if
(
this
.
SSQList
&&
this
.
SSQList
.
length
>
0
)
{
if
(
this
.
SSQList
&&
this
.
SSQList
.
length
>
0
)
{
this
.
isNextStep
=
false
this
.
isNextStep
=
false
...
@@ -334,11 +336,12 @@
...
@@ -334,11 +336,12 @@
if
(
level
===
2
)
{
if
(
level
===
2
)
{
limboNode
=
{
id
:
node
.
value
};
limboNode
=
{
id
:
node
.
value
};
}
}
//this.loading = true;
NewGetCategory
(
limboNode
).
then
(
res
=>
{
NewGetCategory
(
limboNode
).
then
(
res
=>
{
let
result
=
{};
let
result
=
{};
//debugger
//debugger
if
(
level
===
0
)
{
if
(
level
===
0
)
{
result
=
res
.
data
result
=
res
.
data
result
.
forEach
(
item
=>
{
result
.
forEach
(
item
=>
{
...
@@ -385,7 +388,7 @@
...
@@ -385,7 +388,7 @@
}
}
resolve
(
result
)
resolve
(
result
)
//this.loading = false;
});
});
},
},
// 添加商品后,下一步 操作
// 添加商品后,下一步 操作
...
@@ -395,11 +398,13 @@
...
@@ -395,11 +398,13 @@
this
.
goodsinfodata
.
categoryList
=
this
.
SSQList
;
this
.
goodsinfodata
.
categoryList
=
this
.
SSQList
;
this
.
goodsinfodata
.
categoryStr
=
ssqLabelList
[
0
]
+
'/'
+
ssqLabelList
[
1
]
+
'/'
+
ssqLabelList
[
2
];
this
.
goodsinfodata
.
categoryStr
=
ssqLabelList
[
0
]
+
'/'
+
ssqLabelList
[
1
]
+
'/'
+
ssqLabelList
[
2
];
this
.
isShowGoodsDetails
=
true
;
this
.
isShowGoodsDetails
=
true
;
// console.log(232,this.goodsinfodata.categoryStr,this.goodsinfodata.categoryList);
},
},
// 保存/提交
// 保存/提交
save
()
{
save
()
{
// console.log(401,)
//
// return;
//debugger
//debugger
// 此处变量 有顺序 校验时,电梯至某处
// 此处变量 有顺序 校验时,电梯至某处
...
@@ -418,22 +423,15 @@
...
@@ -418,22 +423,15 @@
for
(
let
i
=
0
;
i
<
spsjData2
.
pamTableList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
spsjData2
.
pamTableList
.
length
;
i
++
)
{
let
itemObj
=
spsjData2
.
pamTableList
[
i
][
0
];
let
itemObj
=
spsjData2
.
pamTableList
[
i
][
0
];
for
(
let
itemKey
in
itemObj
)
{
for
(
let
itemKey
in
itemObj
)
{
//----------------
// 有多余字段,可能为空,需要对有效字段单独判断
// 有多余字段,可能为空,需要对有效字段单独判断
if
(
(
itemObj
[
'js_price'
]
===
''
)
||
(
itemObj
[
'sl_price'
]
===
''
)
||
(
itemObj
[
'price'
]
===
''
)
||
(
itemObj
[
'sc_price'
]
===
''
)
||
(
itemObj
[
'stock'
]
===
''
)
||
(
itemObj
[
'weight'
]
===
''
)
)
{
if
(
(
itemObj
[
'js_price'
]
===
''
)
||
(
itemObj
[
'sl_price'
]
===
''
)
||
(
itemObj
[
'price'
]
===
''
)
||
(
itemObj
[
'sc_price'
]
===
''
)
||
(
itemObj
[
'stock'
]
===
''
)
||
(
itemObj
[
'weight'
]
===
''
)
)
{
isGoodsPrice
=
false
;
isGoodsPrice
=
false
;
break
break
}
else
{
}
else
{
// // 所有校验通过,对价格进行处理,*100
// if ( itemKey === 'js_price' || itemKey === 'sl_price' || itemKey === 'price' || itemKey === 'sc_price') {
// itemObj[itemKey] = itemObj[itemKey] * 100;
// }
// if( itemKey === 'stock') {
// itemObj[itemKey] = Number(itemObj[itemKey]);
// }
isGoodsPrice
=
true
;
isGoodsPrice
=
true
;
}
}
// ---------------
}
}
if
(
!
isGoodsPrice
)
{
if
(
!
isGoodsPrice
)
{
break
break
...
@@ -520,6 +518,7 @@
...
@@ -520,6 +518,7 @@
// 售后服务 数据
// 售后服务 数据
let
ssffData
=
this
.
$refs
.
goodsaftersale
.
goodsAfterSaleForm
;
let
ssffData
=
this
.
$refs
.
goodsaftersale
.
goodsAfterSaleForm
;
// 所有数据合并
Object
.
assign
(
this
.
goodsAllData
,
spxxData
,
spsjData
,
spxqData
,
ssffData
);
Object
.
assign
(
this
.
goodsAllData
,
spxxData
,
spsjData
,
spxqData
,
ssffData
);
// 经营类目,服务标签,需要单独处理数据格式
// 经营类目,服务标签,需要单独处理数据格式
...
@@ -529,7 +528,6 @@
...
@@ -529,7 +528,6 @@
}
}
debugger
// 价格数字需要 乘以100
// 价格数字需要 乘以100
if
(
this
.
goodsAllData
.
specs_group
&&
this
.
goodsAllData
.
specs_group
.
length
>
0
)
{
if
(
this
.
goodsAllData
.
specs_group
&&
this
.
goodsAllData
.
specs_group
.
length
>
0
)
{
this
.
goodsAllData
.
specs_group
.
forEach
((
item
)
=>
{
this
.
goodsAllData
.
specs_group
.
forEach
((
item
)
=>
{
...
@@ -555,10 +553,6 @@
...
@@ -555,10 +553,6 @@
delete
this
.
goodsAllData
.
specs_group
;
delete
this
.
goodsAllData
.
specs_group
;
}
}
// stock 库存需要转为 int
// console.log(531,this.goodsAllData)
// return
// 商品id 不为 0 是修改
// 商品id 不为 0 是修改
if
(
this
.
goodsAllData
.
goods_id
)
{
if
(
this
.
goodsAllData
.
goods_id
)
{
// 商品id 为 0 是新增
// 商品id 为 0 是新增
...
@@ -569,7 +563,6 @@
...
@@ -569,7 +563,6 @@
goodsStatus
=
3
;
goodsStatus
=
3
;
}
}
updateGoodsNew
(
this
.
goodsAllData
).
then
(
res
=>
{
updateGoodsNew
(
this
.
goodsAllData
).
then
(
res
=>
{
//this.goodsLoading = false;
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
this
.
$message
({
type
:
'success'
,
message
:
'编辑成功'
});
this
.
$message
({
type
:
'success'
,
message
:
'编辑成功'
});
this
.
initAllGoodsInfo
();
this
.
initAllGoodsInfo
();
...
@@ -579,6 +572,7 @@
...
@@ -579,6 +572,7 @@
});
});
}
}
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
$refs
.
goodsparameter
.
priceReduce
()
let
msg
=
res
.
message
?
res
.
message
:
'编辑失败'
let
msg
=
res
.
message
?
res
.
message
:
'编辑失败'
this
.
$message
({
type
:
'error'
,
message
:
msg
});
this
.
$message
({
type
:
'error'
,
message
:
msg
});
}
}
...
@@ -592,7 +586,6 @@
...
@@ -592,7 +586,6 @@
goodsStatus
=
3
;
goodsStatus
=
3
;
}
}
addGoods
(
this
.
goodsAllData
).
then
(
res
=>
{
addGoods
(
this
.
goodsAllData
).
then
(
res
=>
{
// this.goodsLoading = false;
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
this
.
$message
({
type
:
'success'
,
message
:
'新增成功'
});
this
.
$message
({
type
:
'success'
,
message
:
'新增成功'
});
this
.
initAllGoodsInfo
();
this
.
initAllGoodsInfo
();
...
@@ -602,6 +595,8 @@
...
@@ -602,6 +595,8 @@
});
});
}
}
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
// 如果保存失败,将价格还原
this
.
$refs
.
goodsparameter
.
priceReduce
()
let
msg
=
res
.
message
?
res
.
message
:
'新增失败'
let
msg
=
res
.
message
?
res
.
message
:
'新增失败'
this
.
$message
({
type
:
'error'
,
message
:
msg
});
this
.
$message
({
type
:
'error'
,
message
:
msg
});
}
}
...
@@ -610,7 +605,6 @@
...
@@ -610,7 +605,6 @@
},
},
/*-----------------------*/
// 初始化 商品所有数据
// 初始化 商品所有数据
initAllGoodsInfo
()
{
initAllGoodsInfo
()
{
// 初始化 商品信息 数据
// 初始化 商品信息 数据
...
@@ -699,9 +693,6 @@
...
@@ -699,9 +693,6 @@
}
}
},
timer
.
times
)
},
timer
.
times
)
},
},
}
// methods end
}
// methods end
}
}
</
script
>
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论