Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
assets
Project
Project
Details
Activity
Releases
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
黄媛媛
assets
Commits
c51f49b2
Commit
c51f49b2
authored
Jul 31, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
02025afa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
48 deletions
+122
-48
InventoryBosun.vue
src/components/Materialman/InventoryBosun.vue
+4
-1
InventoryBoyi.vue
src/components/Materialman/InventoryBoyi.vue
+4
-1
InventoryDetail.vue
src/components/Materialman/InventoryDetail.vue
+78
-42
InventoryDetails.vue
src/components/assetsman/InventoryDetails.vue
+36
-4
No files found.
src/components/Materialman/InventoryBosun.vue
View file @
c51f49b2
...
@@ -75,7 +75,10 @@
...
@@ -75,7 +75,10 @@
</td>
</td>
<td><el-input
type=
'text'
class=
"w80"
v-model=
"item.Unit_Money"
@
keyup
.
native=
"checkInteger(item,'Unit_Money')"
/></td>
<td><el-input
type=
'text'
class=
"w80"
v-model=
"item.Unit_Money"
@
keyup
.
native=
"checkInteger(item,'Unit_Money')"
/></td>
<td
style=
"width:300px;"
>
{{
item
.
Remark
}}
</td>
<td
style=
"width:300px;"
>
{{
item
.
Remark
}}
</td>
<td>
{{
item
.
CheckEmpName
}}
/
{{
item
.
CheckDate
}}
</td>
<td>
<div>
{{
item
.
CheckEmpName
}}
</div>
<div>
{{
item
.
CheckDate
}}
</div>
</td>
<td>
<td>
<span
v-if=
"item.DealStatus==1"
style=
"color:green"
>
已处理
</span>
<span
v-if=
"item.DealStatus==1"
style=
"color:green"
>
已处理
</span>
<span
v-if=
"item.DealStatus==2"
style=
"color:red"
>
未处理
</span>
<span
v-if=
"item.DealStatus==2"
style=
"color:red"
>
未处理
</span>
...
...
src/components/Materialman/InventoryBoyi.vue
View file @
c51f49b2
...
@@ -45,7 +45,10 @@
...
@@ -45,7 +45,10 @@
</td>
</td>
<td><el-input
type=
'text'
class=
"w80"
v-model=
"item.Unit_Money"
@
keyup
.
native=
"checkInteger(item,'Unit_Money')"
/></td>
<td><el-input
type=
'text'
class=
"w80"
v-model=
"item.Unit_Money"
@
keyup
.
native=
"checkInteger(item,'Unit_Money')"
/></td>
<td
style=
"width:300px;"
>
{{
item
.
Remark
}}
</td>
<td
style=
"width:300px;"
>
{{
item
.
Remark
}}
</td>
<td>
{{
item
.
CheckEmpName
}}
/
{{
item
.
CheckDate
}}
</td>
<td>
<div>
{{
item
.
CheckEmpName
}}
</div>
<div>
{{
item
.
CheckDate
}}
</div>
</td>
<td>
<td>
<span
v-if=
"item.DealStatus==1"
style=
"color:green"
>
已处理
</span>
<span
v-if=
"item.DealStatus==1"
style=
"color:green"
>
已处理
</span>
<span
v-if=
"item.DealStatus==2"
style=
"color:red"
>
未处理
</span>
<span
v-if=
"item.DealStatus==2"
style=
"color:red"
>
未处理
</span>
...
...
src/components/Materialman/InventoryDetail.vue
View file @
c51f49b2
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<vxe-table
stripe
style=
"margin-top:15px"
:loading=
"loading"
:data=
"tableData"
>
<vxe-table
stripe
style=
"margin-top:15px"
:loading=
"loading"
:data=
"tableData"
>
<vxe-table-column
field=
"Name"
title=
"状态"
width=
"120"
>
<vxe-table-column
field=
"Name"
title=
"状态"
width=
"120"
>
<template
v-slot=
"
{ row }">
<template
v-slot=
"
{ row }">
<span
class=
"ColorSpan huangSpan"
v-if=
"row.CheckStatus == 1"
:id=
"row.SuppliesId"
>
未
</span>
<span
class=
"ColorSpan huangSpan"
v-if=
"row.CheckStatus == 1"
:id=
"row.SuppliesId"
>
未
</span>
<span
class=
"ColorSpan greenSpan"
v-if=
"row.CheckStatus == 2"
>
已
</span>
<span
class=
"ColorSpan greenSpan"
v-if=
"row.CheckStatus == 2"
>
已
</span>
<span
class=
"ColorSpan purpleSpan"
v-if=
"row.CheckStatus == 3"
>
盈
</span>
<span
class=
"ColorSpan purpleSpan"
v-if=
"row.CheckStatus == 3"
>
盈
</span>
<span
class=
"ColorSpan redSpan"
v-if=
"row.CheckStatus == 4"
>
亏
</span>
<span
class=
"ColorSpan redSpan"
v-if=
"row.CheckStatus == 4"
>
亏
</span>
...
@@ -59,23 +59,26 @@
...
@@ -59,23 +59,26 @@
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
<vxe-table-column
field=
"InventoryNum"
title=
"库存"
width=
"80"
></vxe-table-column>
<vxe-table-column
field=
"InventoryNum"
title=
"库存"
width=
"80"
></vxe-table-column>
<vxe-table-column
field=
"RealityNum"
title=
"实际数量"
width=
"1
0
0"
>
<vxe-table-column
field=
"RealityNum"
title=
"实际数量"
width=
"1
5
0"
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
<el-input
type=
'text'
class=
"w70"
@
keyup
.
native=
"checkInteger(row,'RealityNum')"
:ref=
"'barCodeInput'+row.SuppliesId"
v-model=
"row.RealityNum"
/>
<el-input
type=
'text'
class=
"w60"
@
keyup
.
native=
"checkInteger(row,'RealityNum')"
size=
"small"
:ref=
"'barCodeInput'+row.SuppliesId"
v-model=
"row.RealityNum"
/>
<span
class=
"InventoryMsg"
:id=
"'barTishi'+row.SuppliesId"
>
盘点数量+1
</span>
<span
class=
"InventoryMsg"
:id=
"'barTishi'+row.SuppliesId"
>
盘点数量+1
</span>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
<vxe-table-column
field=
"Remark"
title=
"备注"
width=
"200"
></vxe-table-column>
<vxe-table-column
field=
"Remark"
title=
"备注"
width=
"200"
></vxe-table-column>
<vxe-table-column
field=
"CheckEmpName"
title=
"盘点人/时间"
width=
"200"
>
<vxe-table-column
field=
"CheckEmpName"
title=
"盘点人/时间"
width=
"200"
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
<span
v-if=
"row.CheckEmpName||row.CheckDate"
>
{{
row
.
CheckEmpName
}}
/
{{
row
.
CheckDate
}}
</span>
<div
v-if=
"row.CheckEmpName"
>
{{
row
.
CheckEmpName
}}
</div>
<div
v-if=
"row.CheckDate"
>
{{
row
.
CheckDate
}}
</div>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
<vxe-table-column
field=
"ImageList"
title=
"图片"
width=
"200"
>
<vxe-table-column
field=
"ImageList"
title=
"图片"
width=
"200"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<div
class=
"Inven_imgList"
v-for=
"(item,index) in row.ImageList"
:key=
"index"
>
<div
class=
"Inven_imgList"
v-for=
"(item,index) in row.ImageList"
:key=
"index"
v-if=
"index
<3
"
>
<img
:src=
"item"
/>
<img
:src=
"item"
@
click=
"getImgView(row.ImageList)"
/>
</div>
</div>
<div
v-if=
"row.ImageList.length>3"
class=
"Inventory_more"
>
...
</div>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
...
@@ -129,7 +132,13 @@
...
@@ -129,7 +132,13 @@
</div>
</div>
</el-form>
</el-form>
</el-dialog>
</el-dialog>
<el-dialog
:visible
.
sync=
"isShowImageDialog"
@
closed=
"clearImg"
>
<el-carousel
indicator-position=
"outside"
height=
"600px"
>
<el-carousel-item
v-for=
"(src,index) in InvimageList"
:key=
"index"
>
<img
:src=
"src"
style=
"max-width: 100%;max-height: 100%;display: block; margin: 0 auto;"
/>
</el-carousel-item>
</el-carousel>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -139,6 +148,10 @@
...
@@ -139,6 +148,10 @@
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
//预览图片弹窗
isShowImageDialog
:
false
,
//预览图
InvimageList
:[],
dialogState
:
false
,
dialogState
:
false
,
morequery
:
true
,
morequery
:
true
,
dateList
:
[],
dateList
:
[],
...
@@ -175,7 +188,7 @@
...
@@ -175,7 +188,7 @@
//仓库id
//仓库id
WarehouseId
:
0
,
WarehouseId
:
0
,
//CheckState用于管理操作按钮
//CheckState用于管理操作按钮
CheckState
:
0
CheckState
:
0
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -189,7 +202,10 @@
...
@@ -189,7 +202,10 @@
"/api/file/LocalFileUploadImportForSuppliesCheck"
;
"/api/file/LocalFileUploadImportForSuppliesCheck"
;
},
},
methods
:
{
methods
:
{
//关闭预览图片
clearImg
()
{
this
.
InvimageList
=
null
},
currentChange
(
val
)
{
currentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
this
.
getList
();
...
@@ -373,7 +389,7 @@
...
@@ -373,7 +389,7 @@
file
.
file
.
size
<
1024
?
file
.
file
.
size
<
1024
?
file
.
file
.
size
:
file
.
file
.
size
:
(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
this
.
tableData
.
forEach
(
y
=>
{
this
.
tableData
.
forEach
(
y
=>
{
if
(
y
.
Id
==
this
.
commonId
)
{
if
(
y
.
Id
==
this
.
commonId
)
{
y
.
ImageList
.
push
(
y
.
ImageList
.
push
(
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
...
@@ -384,12 +400,12 @@
...
@@ -384,12 +400,12 @@
});
});
},
},
//批量保存
//批量保存
saveAll
(){
saveAll
()
{
let
msg
=
[];
let
msg
=
[];
this
.
tableData
.
forEach
(
x
=>
{
this
.
tableData
.
forEach
(
x
=>
{
let
obj
=
{
let
obj
=
{
Id
:
x
.
Id
,
Id
:
x
.
Id
,
RealityNum
:
x
.
RealityNum
RealityNum
:
x
.
RealityNum
}
}
msg
.
push
(
obj
);
msg
.
push
(
obj
);
})
})
...
@@ -418,26 +434,28 @@
...
@@ -418,26 +434,28 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
var
myData
=
res
.
data
.
data
.
GoodsModel
;
var
myData
=
res
.
data
.
data
.
GoodsModel
;
var
isInStore
=
true
;
var
isInStore
=
true
;
if
(
myData
)
{
if
(
myData
)
{
var
scanMsg
=
{};
var
scanMsg
=
{};
if
(
myData
.
WarehouseId
!=
this
.
WarehouseId
)
{
if
(
myData
.
WarehouseId
!=
this
.
WarehouseId
)
{
this
.
Error
(
'该商品未在此仓库中!'
);
this
.
Error
(
'该商品未在此仓库中!'
);
return
;
return
;
}
else
{
}
else
{
this
.
tableData
.
forEach
((
x
,
index
)
=>
{
this
.
tableData
.
forEach
((
x
,
index
)
=>
{
if
(
x
.
SuppliesId
==
myData
.
SuppliesId
)
{
if
(
x
.
SuppliesId
==
myData
.
SuppliesId
)
{
x
.
RealityNum
++
;
x
.
RealityNum
++
;
isInStore
=
false
;
isInStore
=
false
;
document
.
getElementById
(
myData
.
SuppliesId
).
scrollIntoView
({
behavior
:
'smooth'
})
document
.
getElementById
(
myData
.
SuppliesId
).
scrollIntoView
({
this
.
$refs
[
"barCodeInput"
+
myData
.
SuppliesId
].
focus
();
behavior
:
'smooth'
document
.
getElementById
(
"barTishi"
+
myData
.
SuppliesId
).
style
.
opacity
=
1
;
})
setTimeout
(()
=>
{
this
.
$refs
[
"barCodeInput"
+
myData
.
SuppliesId
].
focus
();
this
.
test
(
"barTishi"
+
myData
.
SuppliesId
);
document
.
getElementById
(
"barTishi"
+
myData
.
SuppliesId
).
style
.
opacity
=
1
;
},
3000
)
setTimeout
(()
=>
{
this
.
test
(
"barTishi"
+
myData
.
SuppliesId
);
},
3000
)
}
}
})
})
if
(
isInStore
)
{
if
(
isInStore
)
{
this
.
Error
(
'该商品未在列表中!'
);
this
.
Error
(
'该商品未在列表中!'
);
}
}
}
}
...
@@ -450,8 +468,13 @@
...
@@ -450,8 +468,13 @@
null
null
);
);
},
},
test
(
id
){
test
(
id
)
{
document
.
getElementById
(
id
).
style
.
opacity
=
0
;
document
.
getElementById
(
id
).
style
.
opacity
=
0
;
},
//点击图片进行预览
getImgView
(
imglist
){
this
.
isShowImageDialog
=
true
;
this
.
InvimageList
=
imglist
;
}
}
}
}
...
@@ -460,6 +483,14 @@
...
@@ -460,6 +483,14 @@
</
script
>
</
script
>
<
style
>
<
style
>
.Inventory_more
{
display
:
inline-block
;
width
:
10px
;
height
:
50px
;
line-height
:
50px
;
position
:
relative
;
top
:
-25px
;
}
.InventoryDetail
.dateList
.el-date-editor
.el-range__icon
{
.InventoryDetail
.dateList
.el-date-editor
.el-range__icon
{
line-height
:
24px
;
line-height
:
24px
;
...
@@ -513,8 +544,8 @@
...
@@ -513,8 +544,8 @@
height
:
100%
;
height
:
100%
;
}
}
.w
7
0
{
.w
6
0
{
width
:
7
0px
!important
;
width
:
6
0px
!important
;
}
}
.Inven_imgList
{
.Inven_imgList
{
...
@@ -528,15 +559,20 @@
...
@@ -528,15 +559,20 @@
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
.InventoryMsg
{
.InventoryMsg
{
opacity
:
0
;
opacity
:
0
;
z-index
:
1500
;
z-index
:
1500
;
color
:
green
;
color
:
green
;
-webkit-transition
:
opacity
1s
ease-out
;
/* Saf3.2+, Chrome */
-webkit-transition
:
opacity
1s
ease-out
;
-moz-transition
:
opacity
1s
ease-out
;
/* FF4+ */
/* Saf3.2+, Chrome */
-ms-transition
:
opacity
1s
ease-out
;
/* IE10? */
-moz-transition
:
opacity
1s
ease-out
;
-o-transition
:
opacity
1s
ease-out
;
/* Opera 10.5+ */
/* FF4+ */
transition
:
opacity
1s
ease-out
;
-ms-transition
:
opacity
1s
ease-out
;
/* IE10? */
-o-transition
:
opacity
1s
ease-out
;
/* Opera 10.5+ */
transition
:
opacity
1s
ease-out
;
}
}
</
style
>
</
style
>
src/components/assetsman/InventoryDetails.vue
View file @
c51f49b2
...
@@ -55,14 +55,16 @@
...
@@ -55,14 +55,16 @@
<vxe-table-column
field=
"Remark"
title=
"备注"
width=
"200"
></vxe-table-column>
<vxe-table-column
field=
"Remark"
title=
"备注"
width=
"200"
></vxe-table-column>
<vxe-table-column
field=
"CheckEmpName"
title=
"盘点人/时间"
width=
"200"
>
<vxe-table-column
field=
"CheckEmpName"
title=
"盘点人/时间"
width=
"200"
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
<span
v-if=
"row.CheckEmpName||row.CheckDate"
>
{{
row
.
CheckEmpName
}}
/
{{
row
.
CheckDate
}}
</span>
<div
v-if=
"row.CheckEmpName"
>
{{
row
.
CheckEmpName
}}
</div>
<div
v-if=
"row.CheckDate"
>
{{
row
.
CheckDate
}}
</div>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
<vxe-table-column
field=
"ImageList"
title=
"图片"
width=
"200"
>
<vxe-table-column
field=
"ImageList"
title=
"图片"
width=
"200"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<div
class=
"Inven_imgList"
v-for=
"(item,index) in row.ImageList"
:key=
"index"
>
<div
class=
"Inven_imgList"
v-for=
"(item,index) in row.ImageList"
:key=
"index"
v-if=
"index
<3
"
>
<img
:src=
"item"
/>
<img
:src=
"item"
@
click=
"getImgView(row.ImageList)"
/>
</div>
</div>
<div
v-if=
"row.ImageList.length>3"
class=
"Inventory_more"
>
...
</div>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
<vxe-table-column
field=
"ImageList"
title=
"溢/损处理状态"
width=
"200"
>
<vxe-table-column
field=
"ImageList"
title=
"溢/损处理状态"
width=
"200"
>
...
@@ -78,6 +80,15 @@
...
@@ -78,6 +80,15 @@
:total=
"total"
:current-page
.
sync=
"msg.pageIndex"
>
:total=
"total"
:current-page
.
sync=
"msg.pageIndex"
>
</el-pagination>
</el-pagination>
</div>
</div>
<el-dialog
:visible
.
sync=
"isShowImageDialog"
@
closed=
"clearImg"
>
<el-carousel
indicator-position=
"outside"
height=
"600px"
>
<el-carousel-item
v-for=
"(src,index) in InvimageList"
:key=
"index"
>
<img
:src=
"src"
style=
"max-width: 100%;max-height: 100%;display: block; margin: 0 auto;"
/>
</el-carousel-item>
</el-carousel>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -87,6 +98,10 @@
...
@@ -87,6 +98,10 @@
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
//预览图片弹窗
isShowImageDialog
:
false
,
//预览图
InvimageList
:[],
morequery
:
true
,
morequery
:
true
,
currentPage
:
1
,
currentPage
:
1
,
tableData
:
[],
tableData
:
[],
...
@@ -133,7 +148,6 @@
...
@@ -133,7 +148,6 @@
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
console
.
log
(
this
.
tableData
,
'tabledata'
);
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -171,12 +185,30 @@
...
@@ -171,12 +185,30 @@
}
}
});
});
},
},
//点击图片进行预览
getImgView
(
imglist
){
this
.
isShowImageDialog
=
true
;
this
.
InvimageList
=
imglist
;
},
//关闭预览图片
clearImg
()
{
this
.
InvimageList
=
null
},
}
}
};
};
</
script
>
</
script
>
<
style
>
<
style
>
.Inventory_more
{
display
:
inline-block
;
width
:
10px
;
height
:
50px
;
line-height
:
50px
;
position
:
relative
;
top
:
-25px
;
}
.InventoryDetail
.dateList
.el-date-editor
.el-range__icon
{
.InventoryDetail
.dateList
.el-date-editor
.el-range__icon
{
line-height
:
24px
;
line-height
:
24px
;
...
...
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