Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manage
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vanke
manage
Commits
f6d1c558
Commit
f6d1c558
authored
Aug 13, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志,用户列表,管理员列表
parent
1f355521
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
274 additions
and
76 deletions
+274
-76
inventory.js
src/api/inventory.js
+26
-0
request.js
src/utils/request.js
+1
-1
StockAdmin.vue
src/views/inv/StockAdmin.vue
+40
-11
StoreList.vue
src/views/inv/StoreList.vue
+5
-1
WarehouseAdmin.vue
src/views/inv/WarehouseAdmin.vue
+53
-3
addGoodsModal.vue
src/views/inv/modules/addGoodsModal.vue
+5
-5
importGoodsModal.vue
src/views/inv/modules/importGoodsModal.vue
+6
-6
inventoryDetailsModal.vue
src/views/inv/modules/inventoryDetailsModal.vue
+123
-34
scanOutStorage.vue
src/views/inv/modules/scanOutStorage.vue
+6
-6
scanPutStorage.vue
src/views/inv/modules/scanPutStorage.vue
+6
-6
AdminList.vue
src/views/use/AdminList.vue
+3
-3
No files found.
src/api/inventory.js
View file @
f6d1c558
...
...
@@ -22,6 +22,16 @@ export function getOutboundRecordList(params) {
params
})
}
// 万科后台_根据id修改一条出库数据
export
function
updateOutboundRecord
(
data
)
{
return
request
({
url
:
'vankeOutboundRecord/updateById'
,
method
:
'post'
,
data
})
}
// 万科后台_库房分页操作
...
...
@@ -162,3 +172,19 @@ export function getInBoundList (params) {
params
})
}
// 万科后台_根据id修改订单数据
export
function
deleteInBoundList
(
data
)
{
return
request
({
url
:
'vankeInboundOrder/updateById'
,
method
:
'post'
,
data
})
}
// 万科后台_传入入库单详情集合(只需要传vorList即可)
export
function
updateInboundNum
(
data
)
{
return
request
({
url
:
'vankeInboundOrder/updateInboundNum'
,
method
:
'post'
,
data
})
}
src/utils/request.js
View file @
f6d1c558
...
...
@@ -6,7 +6,7 @@ import { getToken } from '@/utils/auth'
const
service
=
axios
.
create
({
// baseURL: process.env.BASE_API,
withCredentials
:
true
,
baseURL
:
'http://192.168.31.1
27
:8201/mall-admin'
,
baseURL
:
'http://192.168.31.1
18
:8201/mall-admin'
,
// baseURL: 'http://hhg.api.jsonpro.cn:8201/mall-admin',
timeout
:
60000
// 请求超时时间
})
...
...
src/views/inv/StockAdmin.vue
View file @
f6d1c558
...
...
@@ -62,14 +62,26 @@
width=
"220"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"success"
@
click=
"handleView(scope.row)"
>
查看详情
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"exportEntry(scope.row)"
>
生成入库单
</el-button>
<div
style=
"margin-bottom:10px;"
>
<el-button
size=
"mini"
type=
"warning"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"success"
@
click=
"handleView(scope.row)"
>
查看
</el-button>
</div>
<div>
<el-button
size=
"mini"
type=
"danger"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"exportEntry(scope.row)"
>
导出
</el-button>
</div>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -96,7 +108,7 @@
</template>
<
script
>
import
moment
from
'moment'
import
{
getInBoundList
}
from
'@/api/inventory'
import
{
getInBoundList
,
deleteInBoundList
,
updateInboundNum
}
from
'@/api/inventory'
import
inventoryDetailsModal
from
'./modules/inventoryDetailsModal'
// 列表查询参数默认值
const
defaultListQuery
=
{
...
...
@@ -187,7 +199,24 @@ export default {
},
// 查看
handleView
(
row
)
{
this
.
$refs
.
detail
.
init
(
row
)
this
.
$refs
.
detail
.
show
(
row
)
},
// 修改/
handleUpdate
(
row
){
this
.
$refs
.
detail
.
update
(
row
)
},
// 删除
handleDelete
(
row
){
this
.
$confirm
(
'是否删除该入库信息?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
deleteInBoundList
({
id
:
row
.
id
,
deleteStatus
:
0
}).
then
(
res
=>
{
this
.
getList
()
})
}).
catch
(()
=>
{
});
},
// 导出
exportEntry
(
row
)
{
...
...
@@ -199,7 +228,7 @@ export default {
// 表头
let
tHeader
=
[
'物品名称'
,
'型号'
,
'物品类别'
,
'数量'
,
'价格(元)'
,
'供应商'
]
//表头对应字段名,要和下面数据key对应
let
filterVal
=
[
'goodsName'
,
'goodsNo'
,
'categoryName'
,
'inboundNum'
,
'pric
t
'
,
'supplierName'
]
let
filterVal
=
[
'goodsName'
,
'goodsNo'
,
'categoryName'
,
'inboundNum'
,
'pric
e
'
,
'supplierName'
]
let
data
=
this
.
formatJson
(
filterVal
,
row
.
vorList
)
//数据格式化
exportJsonToExcel
(
tHeader
,
data
,
'入库单'
)
//导出文件
})
...
...
src/views/inv/StoreList.vue
View file @
f6d1c558
...
...
@@ -84,6 +84,10 @@
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
goodsNo
}}
</
template
>
</el-table-column>
<el-table-column
label=
"条形码"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
barCode
}}
</
template
>
</el-table-column>
<el-table-column
label=
"物品类别"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
goodsCategoryName
}}
</
template
>
...
...
@@ -94,7 +98,7 @@
</el-table-column>
<el-table-column
label=
"价格"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pric
t
||
0
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pric
e
||
0
}}
</
template
>
</el-table-column>
<el-table-column
label=
"供应商"
align=
"center"
>
...
...
src/views/inv/WarehouseAdmin.vue
View file @
f6d1c558
...
...
@@ -45,6 +45,17 @@
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"出库日期:"
>
<el-date-picker
v-model=
"dateRange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
@
change=
"changeDate"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearchList"
...
...
@@ -101,6 +112,20 @@
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createtime
|
formatTime
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"220"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"warning"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<!-- 分页栏 -->
...
...
@@ -120,7 +145,7 @@
</template>
<
script
>
import
moment
from
'moment'
import
{
getOutboundRecordList
,
getGoodsCategoryList
,
getStockRooms
,
getDepartmentList
}
from
'@/api/inventory'
import
{
getOutboundRecordList
,
getGoodsCategoryList
,
getStockRooms
,
getDepartmentList
,
updateOutboundRecord
}
from
'@/api/inventory'
// 列表查询参数默认值
const
defaultListQuery
=
{
pageNum
:
1
,
...
...
@@ -129,7 +154,9 @@ const defaultListQuery = {
stockRoomId
:
''
,
goodsMame
:
''
,
memberName
:
''
,
departId
:
''
departId
:
''
,
startTime
:
''
,
endTime
:
''
}
export
default
{
...
...
@@ -137,6 +164,7 @@ export default {
components
:
{},
data
()
{
return
{
dateRange
:
[],
listQuery
:
Object
.
assign
({},
defaultListQuery
),
list
:
[],
total
:
0
,
...
...
@@ -162,6 +190,11 @@ export default {
}
},
methods
:
{
// 选择时间
changeDate
(
value
){
this
.
listQuery
.
startTime
=
value
[
0
]
this
.
listQuery
.
endTime
=
value
[
1
]
},
handleResetSearch
()
{
this
.
listQuery
=
Object
.
assign
({},
defaultListQuery
)
this
.
getList
()
...
...
@@ -214,7 +247,24 @@ export default {
}).
catch
(
err
=>
{
this
.
listLoading
=
false
})
}
},
// 修改/
handleUpdate
(
row
){
this
.
$refs
.
detail
.
update
(
row
)
},
// 删除
handleDelete
(
row
){
this
.
$confirm
(
'是否删除该条出库记录?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
updateOutboundRecord
({
id
:
row
.
id
,
deleteStatus
:
0
}).
then
(
res
=>
{
this
.
getList
()
})
}).
catch
(()
=>
{
});
},
}
}
</
script
>
...
...
src/views/inv/modules/addGoodsModal.vue
View file @
f6d1c558
...
...
@@ -85,12 +85,12 @@
</el-table-column>
<el-table-column
label=
"价格(元)"
>
<
template
slot-scope=
"scope"
>
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
t
'"
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
e
'"
:rules=
"[
{validator: validatePrice,trigger: 'blur'}]">
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
t
"
class=
"input-width"
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
e
"
class=
"input-width"
placeholder=
"价格"
:disabled=
"scope.row.id? true: false"
></el-input>
<span
v-else
>
{{
scope
.
row
.
pric
t
}}
</span>
<span
v-else
>
{{
scope
.
row
.
pric
e
}}
</span>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -253,7 +253,7 @@ export default {
name
:
''
,
goodsNo
:
''
,
goodsNum
:
''
,
pric
t
:
''
,
pric
e
:
''
,
supplierId
:
''
,
goodsCategoryId
:
''
,
stockRoomId
:
this
.
$store
.
getters
.
stockRoomId
,
...
...
@@ -325,7 +325,7 @@ export default {
this
.
formData
.
tableData
[
index
].
goodsNo
=
item
.
goodsNo
this
.
formData
.
tableData
[
index
].
barCode
=
item
.
barCode
this
.
formData
.
tableData
[
index
].
stockRoomId
=
item
.
stockRoomId
this
.
formData
.
tableData
[
index
].
pric
t
=
item
.
prict
this
.
formData
.
tableData
[
index
].
pric
e
=
item
.
price
this
.
formData
.
tableData
[
index
].
supplierId
=
item
.
supplierId
this
.
formData
.
tableData
[
index
].
supplierId
=
item
.
supplierId
this
.
formData
.
tableData
[
index
].
goodsCategoryId
=
item
.
goodsCategoryId
...
...
src/views/inv/modules/importGoodsModal.vue
View file @
f6d1c558
...
...
@@ -92,12 +92,12 @@
</el-table-column>
<el-table-column
label=
"价格(元)"
>
<
template
slot-scope=
"scope"
>
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
t
'"
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
e
'"
:rules=
"[
{validator: validatePrice,trigger: 'blur'}]">
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
t
"
class=
"input-width"
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
e
"
class=
"input-width"
placeholder=
"价格"
:disabled=
"scope.row.id? true: false"
></el-input>
<span
v-else
>
{{
scope
.
row
.
pric
t
}}
</span>
<span
v-else
>
{{
scope
.
row
.
pric
e
}}
</span>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -395,7 +395,7 @@ export default {
this
.
formData
.
tableData
[
index
].
goodsNo
=
item
.
goodsNo
this
.
formData
.
tableData
[
index
].
barCode
=
item
.
barCode
this
.
formData
.
tableData
[
index
].
stockRoomId
=
item
.
stockRoomId
this
.
formData
.
tableData
[
index
].
pric
t
=
item
.
prict
this
.
formData
.
tableData
[
index
].
pric
e
=
item
.
price
this
.
formData
.
tableData
[
index
].
supplierId
=
item
.
supplierId
this
.
formData
.
tableData
[
index
].
goodsCategoryId
=
item
.
goodsCategoryId
},
...
...
@@ -443,7 +443,7 @@ export default {
rowTable
.
name
=
sheet
[
'物品名称'
]
rowTable
.
goodsNo
=
sheet
[
'型号'
]
rowTable
.
goodsNum
=
sheet
[
'数量'
]
rowTable
.
pric
t
=
sheet
[
'价格'
]
rowTable
.
pric
e
=
sheet
[
'价格'
]
rowTable
.
barCode
=
sheet
[
'条形码'
]
if
(
sheet
[
'物品类别'
])
{
let
isExist
=
this
.
categoryOptions
.
findIndex
(
item
=>
...
...
@@ -476,7 +476,7 @@ export default {
isExist
===
-
1
&&
(
rowTable
.
id
=
null
)
if
(
isExist
!==
-
1
){
rowTable
.
id
=
this
.
goodsList
[
isExist
].
id
rowTable
.
pric
t
=
this
.
goodsList
[
isExist
].
prict
rowTable
.
pric
e
=
this
.
goodsList
[
isExist
].
price
rowTable
.
goodsNo
=
this
.
goodsList
[
isExist
].
goodsNo
rowTable
.
barCode
=
this
.
goodsList
[
isExist
].
barCode
rowTable
.
goodsCategoryId
=
this
.
goodsList
[
isExist
].
goodsCategoryId
...
...
src/views/inv/modules/inventoryDetailsModal.vue
View file @
f6d1c558
<
template
>
<el-dialog
:visible
.
sync=
"visible"
title=
"物品详情
"
:title=
"title
"
center
@
close=
"close"
width=
"720px"
>
<!-- start -->
<div
class=
"scroll-container"
<div
class=
"scroll-container
no-bottom
"
ref=
"scrollContainer"
>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"goodsName"
label=
"物品名称"
>
</el-table-column>
<el-table-column
prop=
"goodsNo"
label=
"型号"
>
</el-table-column>
<el-table-column
prop=
"categoryName"
label=
"物品类别"
>
</el-table-column>
<el-table-column
prop=
"inboundNum"
label=
"数量"
>
</el-table-column>
<el-table-column
prop=
"prict"
label=
"价格(元)"
>
</el-table-column>
<el-table-column
prop=
"supplierName"
label=
"供应商"
>
</el-table-column>
</el-table>
<el-form
:model=
"formData"
ref=
"formData"
>
<el-table
:data=
"formData.tableData"
style=
"width: 100%"
class=
"my_table"
>
<el-table-column
prop=
"goodsName"
label=
"物品名称"
>
</el-table-column>
<el-table-column
prop=
"goodsNo"
label=
"型号"
>
</el-table-column>
<el-table-column
prop=
"categoryName"
label=
"物品类别"
>
</el-table-column>
<el-table-column
prop=
"inboundNum"
label=
"数量"
>
<template
slot-scope=
"scope"
>
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.inboundNum'"
:rules=
"[
{validator: validateNum,trigger: 'blur'}]">
<el-input
v-if=
"isEdit"
v-model=
"scope.row.inboundNum"
class=
"input-width"
placeholder=
"数量"
></el-input>
<span
v-else
>
{{
scope
.
row
.
inboundNum
}}
</span>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
prop=
"price"
label=
"价格(元)"
>
</el-table-column>
<el-table-column
prop=
"supplierName"
label=
"供应商"
>
</el-table-column>
</el-table>
</el-form>
</div>
<div
slot=
"footer"
>
<el-button
type=
"primary"
v-if=
"isEdit"
@
click=
"submit('formData')"
>
提交
</el-button>
<el-button
type=
""
@
click=
"close"
>
返回
</el-button>
</div>
...
...
@@ -46,27 +62,86 @@
<
script
>
// 添加编辑属性
import
{
updateInboundNum
}
from
'@/api/inventory'
export
default
{
name
:
'inventoryDetailsModal'
,
data
()
{
var
validateNum
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
===
''
)
{
callback
(
new
Error
(
'数量不能为空'
))
}
else
{
let
myReg
=
/^
\d{1,}
$/
if
(
!
myReg
.
test
(
value
))
{
callback
(
new
Error
(
'数量必须为正整数'
))
}
callback
()
}
}
return
{
validateNum
:
validateNum
,
visible
:
false
,
title
:
null
,
loading
:
false
,
tableData
:
[]
formData
:
{
tableData
:
[],
},
isEdit
:
false
}
},
methods
:
{
init
(
row
)
{
init
()
{
this
.
visible
=
true
this
.
tableData
=
row
.
vorList
this
.
formData
.
tableData
=
[]
this
.
$nextTick
(()
=>
{
this
.
$refs
.
formData
.
clearValidate
()
this
.
$refs
.
scrollContainer
.
scrollTop
=
0
})
},
show
(
row
){
this
.
init
()
this
.
title
=
'查看物品详情'
this
.
isEdit
=
false
this
.
formData
.
tableData
=
row
.
vorList
console
.
log
(
' this.formData.tableData'
,
this
.
formData
.
tableData
)
},
update
(
row
){
this
.
init
()
this
.
title
=
'修改物品详情'
this
.
isEdit
=
true
this
.
formData
.
tableData
=
row
.
vorList
},
close
()
{
if
(
this
.
isEdit
){
this
.
$emit
(
'ok'
)
}
this
.
visible
=
false
}
},
submit
(
formName
)
{
if
(
!
this
.
formData
.
tableData
.
length
){
this
.
$message
.
warning
(
'请检查必填项'
)
return
}
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
data
=
[]
this
.
formData
.
tableData
.
forEach
(
item
=>
{
data
.
push
({
id
:
item
.
id
,
inboundNum
:
item
.
inboundNum
})
})
updateInboundNum
({
vorList
:
data
}).
then
(
res
=>
{
this
.
$emit
(
'ok'
)
this
.
visible
=
false
})
}
else
{
this
.
$message
.
warning
(
'请检查必填项'
)
}
})
},
}
}
</
script
>
...
...
@@ -77,3 +152,17 @@ export default {
overflow-y
:
auto
;
}
</
style
>
<
style
>
.no-bottom
.el-form-item--mini.el-form-item
,
.el-form-item--small.el-form-item
{
margin-bottom
:
0
;
}
.no-bottom
.el-form-item__error
{
position
:
relative
;
top
:
0
;
margin
:
5px
0
;
}
.no-bottom
.el-table
th
,
.el-table
td
{
vertical-align
:
top
;
}
</
style
>
src/views/inv/modules/scanOutStorage.vue
View file @
f6d1c558
...
...
@@ -103,12 +103,12 @@
</el-table-column>
<el-table-column
label=
"价格(元)"
>
<
template
slot-scope=
"scope"
>
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
t
'"
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
e
'"
:rules=
"[
{validator: validatePrice,trigger: 'blur'}]">
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
t
"
class=
"input-width"
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
e
"
class=
"input-width"
placeholder=
"价格"
:disabled=
"scope.row.id? true: false"
></el-input>
<span
v-else
>
{{
scope
.
row
.
pric
t
}}
</span>
<span
v-else
>
{{
scope
.
row
.
pric
e
}}
</span>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -290,7 +290,7 @@ export default {
// name: '',
// goodsNo: '',
// goodsNum: '',
// pric
t
: '',
// pric
e
: '',
// supplierId: '',
// goodsCategoryId: '',
// stockRoomId: this.$store.getters.stockRoomId,
...
...
@@ -370,7 +370,7 @@ export default {
this
.
formData
.
tableData
[
index
].
goodsNo
=
item
.
goodsNo
this
.
formData
.
tableData
[
index
].
barCode
=
item
.
barCode
this
.
formData
.
tableData
[
index
].
stockRoomId
=
item
.
stockRoomId
this
.
formData
.
tableData
[
index
].
pric
t
=
item
.
prict
this
.
formData
.
tableData
[
index
].
pric
e
=
item
.
price
this
.
formData
.
tableData
[
index
].
supplierId
=
item
.
supplierId
this
.
formData
.
tableData
[
index
].
goodsCategoryId
=
item
.
goodsCategoryId
console
.
log
(
'item'
,
item
)
...
...
@@ -404,7 +404,7 @@ export default {
barCode
:
data
.
barCode
,
name
:
data
.
name
,
stockRoomId
:
data
.
stockRoomId
,
pric
t
:
data
.
prict
,
pric
e
:
data
.
price
,
goodsNo
:
data
.
goodsNo
,
supplierId
:
data
.
supplierId
,
goodsCategoryId
:
data
.
goodsCategoryId
,
...
...
src/views/inv/modules/scanPutStorage.vue
View file @
f6d1c558
...
...
@@ -90,12 +90,12 @@
</el-table-column>
<el-table-column
label=
"价格(元)"
>
<
template
slot-scope=
"scope"
>
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
t
'"
<el-form-item
size=
"mini"
:prop=
"'tableData.' + scope.$index + '.pric
e
'"
:rules=
"[
{validator: validatePrice,trigger: 'blur'}]">
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
t
"
class=
"input-width"
<el-input
v-if=
"scope.row.isOK"
v-model=
"scope.row.pric
e
"
class=
"input-width"
placeholder=
"价格"
:disabled=
"scope.row.id? true: false"
></el-input>
<span
v-else
>
{{
scope
.
row
.
pric
t
}}
</span>
<span
v-else
>
{{
scope
.
row
.
pric
e
}}
</span>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -267,7 +267,7 @@ export default {
// name: '',
// goodsNo: '',
// goodsNum: '',
// pric
t
: '',
// pric
e
: '',
// supplierId: '',
// goodsCategoryId: '',
// stockRoomId: this.$store.getters.stockRoomId,
...
...
@@ -339,7 +339,7 @@ export default {
this
.
formData
.
tableData
[
index
].
goodsNo
=
item
.
goodsNo
this
.
formData
.
tableData
[
index
].
barCode
=
item
.
barCode
this
.
formData
.
tableData
[
index
].
stockRoomId
=
item
.
stockRoomId
this
.
formData
.
tableData
[
index
].
pric
t
=
item
.
prict
this
.
formData
.
tableData
[
index
].
pric
e
=
item
.
price
this
.
formData
.
tableData
[
index
].
supplierId
=
item
.
supplierId
this
.
formData
.
tableData
[
index
].
goodsCategoryId
=
item
.
goodsCategoryId
console
.
log
(
'item'
,
item
)
...
...
@@ -358,7 +358,7 @@ export default {
goodsNo
:
data
?
data
.
goodsNo
:
null
,
barCode
:
data
?
data
.
barCode
:
this
.
barCode
,
stockRoomId
:
data
?
data
.
stockRoomId
:
stockRoomId
,
pric
t
:
data
?
data
.
prict
:
null
,
pric
e
:
data
?
data
.
price
:
null
,
supplierId
:
data
?
data
.
supplierId
:
null
,
goodsCategoryId
:
data
?
data
.
goodsCategoryId
:
null
,
name
:
data
?
data
.
name
:
null
,
...
...
src/views/use/AdminList.vue
View file @
f6d1c558
...
...
@@ -66,7 +66,7 @@
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"success"
@
click=
"handleDelete(scope.row
.id
)"
>
解绑
@
click=
"handleDelete(scope.row)"
>
解绑
</el-button>
</
template
>
</el-table-column>
...
...
@@ -160,13 +160,13 @@ export default {
})
},
// 删除
handleDelete
(
id
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'是否取消管理员权限?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
cancleAdmin
({
id
:
id
,
deleteStatus
:
1
}).
then
(
res
=>
{
cancleAdmin
({
id
:
row
.
adminId
,
memberId
:
row
.
id
,
deleteStatus
:
1
}).
then
(
res
=>
{
this
.
getList
()
})
}).
catch
(()
=>
{
...
...
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