Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
7418b237
Commit
7418b237
authored
Jul 19, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加视频未加载
parent
e050452c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
19 deletions
+34
-19
src/views/businessGoods/goodsEdit/goods_api.js
+18
-8
src/views/businessGoods/goodsEdit/goods_edit.vue
+13
-9
src/views/businessGoods/index.vue
+1
-0
src/views/businessOrder/details.vue
+1
-1
src/views/businessOrder/index.vue
+1
-1
No files found.
src/views/businessGoods/goodsEdit/goods_api.js
View file @
7418b237
...
...
@@ -41,15 +41,25 @@ export function getGoodsDetails(query) {
}
// addOrEditGoods(this.form)
// .then((res)=>{
// this.$message.success('添加成功')
// this.$emit('success')
// }).catch(e => {
// this.$message.success('添加失败')
// });
// }).catch(() => {
// this.tableLoading = false
// })
// export function addOrEditGoods(data) {
// return request({
// url: '/admin/merchantMallGoods/addOrEditGoods',
// method: 'post',
// params: data
//
// })
// }
export
function
addOrEditGoods
(
data
)
{
return
request
({
url
:
'/admin/mallGoods/addOrEditGoods'
,
method
:
'post'
,
params
:
data
})
}
/*** 自定义添加 ***/
...
...
src/views/businessGoods/goodsEdit/goods_edit.vue
View file @
7418b237
...
...
@@ -175,7 +175,7 @@
<
script
>
let
DBG
=
fals
e
let
DBG
=
tru
e
import
{
ZmMixin
}
from
'@/mixins/ZmMixin.js'
...
...
@@ -189,6 +189,7 @@
getGoodsDetails
,
addOrEditGoods
,
getMerchantByAccount
,
addOrEdit
}
from
'./goods_api.js'
export
default
{
...
...
@@ -687,23 +688,26 @@
{
account
:
account
}
).
then
(
response
=>
{
this
.
form
.
merchantId
=
response
.
data
.
data
.
id
this
.
$http
.
post
(
'/admin/mallGoods/addOrEdit'
,
JSON
.
stringify
(
this
.
form
),
this
.
$http
.
post
(
'/admin/merchantMallGoods/addOrEditGoods'
,
JSON
.
stringify
(
this
.
form
),
{
headers
:{
'Content-Type'
:
'application/json;charset=UTF-8'
}})
.
then
((
res
)
=>
{
this
.
$message
.
success
(
'
添加
成功'
)
this
.
$message
.
success
(
'
操作
成功'
)
this
.
$emit
(
'success'
)
}).
catch
(
e
=>
{
this
.
$message
.
success
(
'添加
失败'
)
this
.
$message
.
success
(
'操作
失败'
)
});
}).
catch
(()
=>
{
this
.
tableLoading
=
false
})
}
else
{
addOrEditGoods
(
this
.
form
).
then
(
data
=>
{
this
.
$message
.
success
(
'修改成功'
)
this
.
$emit
(
'success'
)
}).
catch
(()
=>
{
this
.
$http
.
post
(
'/admin/merchantMallGoods/addOrEditGoods'
,
JSON
.
stringify
(
this
.
form
),
{
headers
:{
'Content-Type'
:
'application/json;charset=UTF-8'
}})
.
then
((
res
)
=>
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$emit
(
'success'
)
}).
catch
(
e
=>
{
this
.
$message
.
success
(
'操作失败'
)
});
}
}
...
...
src/views/businessGoods/index.vue
View file @
7418b237
...
...
@@ -22,6 +22,7 @@
<el-button
type=
"button"
size=
"small"
@
click=
"lookDetail(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
详情
</el-button>
<el-button
type=
"button"
size=
"small"
v-if=
"scope.row.auditState!=0"
@
click=
"handleUpdate(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
编辑
</el-button>
<el-button
type=
"button"
size=
"small"
@
click=
"handleDel(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
删除
</el-button>
...
...
src/views/businessOrder/details.vue
View file @
7418b237
...
...
@@ -309,7 +309,7 @@
loadInfo
()
{
this
.
loading
=
true
getOrderInfo
({
orderNo
:
this
.
id
id
:
this
.
id
}).
then
(
r
=>
{
this
.
loading
=
false
this
.
info
=
this
.
zmRes
(
r
)
...
...
src/views/businessOrder/index.vue
View file @
7418b237
...
...
@@ -267,7 +267,7 @@
},
// 查看详情
checkTheDetails
(
row
){
this
.
$router
.
push
(
'/businessOrder/details?id='
+
row
.
orderNo
)
this
.
$router
.
push
(
'/businessOrder/details?id='
+
row
.
id
)
},
// 列表查询
getList
(
page
,
params
)
{
...
...
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