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
f8be751f
Commit
f8be751f
authored
Aug 26, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
736ca64f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1400 additions
and
0 deletions
+1400
-0
rukuDetails.vue
src/components/Materialman/rukuDetails.vue
+1145
-0
rukuExamine.vue
src/components/Materialman/rukuExamine.vue
+243
-0
config.js
src/router/config.js
+12
-0
No files found.
src/components/Materialman/rukuDetails.vue
0 → 100644
View file @
f8be751f
This diff is collapsed.
Click to expand it.
src/components/Materialman/rukuExamine.vue
0 → 100644
View file @
f8be751f
<
template
>
<div
class=
"rukuExamine"
>
<div
class=
"routerTitle"
>
<span
class=
"pageTitle"
>
审批管理
</span>
<span
class=
"ChangeTable"
>
<span
@
click=
"showTable=1,getList()"
:class=
"showTable==1?'spanActive':''"
>
待审核
</span>
<span
@
click=
"showTable=2,getList()"
:class=
"showTable==2?'spanActive':''"
>
已审核
</span>
</span>
<span
@
click=
"morequery=!morequery"
style=
"display:inline-flex;align-items:center;cursor: pointer;"
class=
"f12 cd6"
>
<span
style=
"margin-right:5px"
>
高级查询
</span>
<img
v-show=
"!morequery"
style=
"width:12px;height:12px"
src=
"../../assets/img/more.png"
alt=
""
>
<img
v-show=
"morequery"
class=
"roatImg"
style=
"width:12px;height:12px"
src=
"../../assets/img/more.png"
alt=
""
>
</span>
<span
@
click=
"getList"
style=
"margin-left:20px"
class=
"chaxunSpan"
>
查询
</span>
</div>
<div
class=
"padContent"
>
<ul
v-show=
"morequery"
class=
"queryul"
>
<li>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.StockInNum"
placeholder=
"编码"
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
></el-input>
</li>
<li>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.SuppliesNum"
placeholder=
"耗材编码"
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
></el-input>
</li>
<li>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.SuppliesName"
placeholder=
"耗材名称"
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
></el-input>
</li>
<li>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.SupplierName"
placeholder=
"供应商"
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
></el-input>
</li>
<li>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.FinanceId"
placeholder=
"财务单Id"
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
></el-input>
</li>
<li>
<el-select
size=
"small"
filterable
clearable
v-model=
"msg.WarehouseId"
placeholder=
"仓库"
@
change=
"msg.pageIndex=1,getList()"
>
<el-option
v-for=
"item in getWareHouseList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</li>
<li>
<el-date-picker
@
change=
"msg.pageIndex=1,getList()"
v-model=
"dateList"
type=
"daterange"
range-separator=
"至"
value-format=
"yyyy-MM-dd"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</li>
</ul>
<div
class=
"overflowY"
>
<table
v-loading=
"loading"
style=
"margin-top:10px"
class=
"myTable noHoverTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<thead>
<th
width=
"75"
>
入库状态
</th>
<th>
入库时间/编码
</th>
<th>
仓库/供应商名称
</th>
<th>
耗材编码
</th>
<th>
耗材名称
</th>
<th>
规格
</th>
<th>
分类名称
</th>
<th>
品牌名称
</th>
<th>
单价
</th>
<th>
金额
</th>
<th>
数量
</th>
<th>
采购单据
</th>
<th>
操作人/时间
</th>
<th>
操作
</th>
</thead>
<tbody>
<template
v-for=
"(item,index1) in tableData"
>
<tr
:class=
"index==0?'trNobottom':''"
v-for=
"(delist,index) in item.DetailList"
:key=
"delist.Id"
>
<td
:class=
"index1==tableData.length-1?'lastTdLeft':''"
:rowspan=
"item.DetailList.length"
v-if=
"index==0"
>
<!--
<span
class=
"commonStyle hoverSpan1"
></span>
-->
<span
class=
"ColorSpan huangSpan"
v-if=
"item.StockInState==2"
>
待
</span>
<span
class=
"ColorSpan greenSpan"
v-if=
"item.StockInState==1"
>
已
</span>
{{
item
.
StockInStateStr
}}
</td>
<td
:rowspan=
"item.DetailList.length"
v-if=
"index==0"
>
{{
item
.
StockInDate
}}
/
{{
item
.
StockInNum
}}
</td>
<td
:rowspan=
"item.DetailList.length"
v-if=
"index==0"
>
{{
item
.
WareHouseName
}}
/
{{
item
.
SupplierName
}}
</td>
<td>
{{
delist
.
SuppliesNum
}}
</td>
<td
style=
"width:300px"
>
{{
delist
.
SuppliesName
}}
</td>
<td>
<p
v-for=
"(x,y) in delist.GoodsSpecificationList"
:key=
"y"
>
{{
x
}}{{
y
+
1
==
delist
.
GoodsSpecificationList
.
length
?
''
:
','
}}
</p>
</td>
<td>
{{
delist
.
CategoryName
}}
</td>
<td>
{{
delist
.
BrandName
}}
</td>
<td>
{{
delist
.
UnitPrice
}}
</td>
<td>
{{
delist
.
Money
}}
</td>
<td>
{{
delist
.
Number
}}
</td>
<td
>
{{
item
.
FinanceId
}}
</td>
<td
:rowspan=
"item.DetailList.length"
v-if=
"index==0"
>
<p>
{{
item
.
UpdateBy
}}
</p>
<p>
{{
item
.
UpdateDate
}}
</p>
</td>
<td
:class=
"index1==tableData.length-1?'lastTdRight':''"
:rowspan=
"item.DetailList.length"
v-if=
"index==0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"流程查看"
placement=
"top"
>
<img
@
click=
"See(item,'rukuDetails','rukuExamine','chakan')"
style=
"width:24px;height:24px"
src=
"../../assets/img/chakan.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"审批"
placement=
"top"
>
<img
v-show=
"showTable==1"
@
click=
"See(item,'rukuDetails','rukuExamine','shenpi')"
style=
"width:24px;height:24px"
src=
"../../assets/img/shenpi.png"
alt=
""
>
</el-tooltip>
</td>
</tr>
</
template
>
<tr
v-show=
"tableData.length==0"
>
<td
colspan=
"14"
align=
"center"
>
暂无数据
</td>
</tr>
</tbody>
</table>
</div>
<el-pagination
class=
"myPageBottom"
@
current-change=
"currentChange"
background
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</div>
</template>
<
script
>
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
export
default
{
name
:
"rukuExamine"
,
data
(){
return
{
showTable
:
1
,
morequery
:
false
,
dateList
:[],
tableData
:
[],
loading
:
false
,
total
:
0
,
msg
:{
pageIndex
:
1
,
pageSize
:
10
,
StockInNum
:
''
,
SuppliesNum
:
''
,
SuppliesName
:
''
,
SupplierName
:
''
,
StartTime
:
''
,
EndTime
:
''
,
},
getWareHouseList
:[],
}
},
mounted
(){
this
.
getList
()
this
.
getWareHouse
()
},
methods
:{
getList
(){
if
(
this
.
dateList
&&
this
.
dateList
.
length
>
0
){
this
.
msg
.
StartTime
=
this
.
dateList
[
0
];
this
.
msg
.
EndTime
=
this
.
dateList
[
1
];
}
else
{
this
.
msg
.
StartTime
=
''
;
this
.
msg
.
EndTime
=
''
;
}
if
(
this
.
showTable
==
1
){
this
.
getDaishenpi
();
}
else
if
(
this
.
showTable
==
2
){
this
.
getYishenpi
();
}
},
getDaishenpi
(){
this
.
loading
=
true
;
this
.
apiJavaPost
(
"/api/Supplies/GetStockInWaitMyAuditPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
getYishenpi
(){
this
.
loading
=
true
;
this
.
apiJavaPost
(
"/api/Supplies/GetStockInMyAuditedPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
// 仓库列表
getWareHouse
(){
this
.
apiJavaPost
(
"/api/Supplies/GetWareHouseList"
,{
Name
:
''
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
getWareHouseList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
See
(
item
,
path
,
backto
,
type
){
let
shenpistr
=
type
;
this
.
$router
.
push
({
path
:
"/"
+
path
,
query
:
{
Id
:
item
.
Id
,
backto
:
backto
,
showTable
:
this
.
showTable
,
compType
:
shenpistr
,
}
});
},
}
}
</
script
>
<
style
scoped
>
</
style
>
src/router/config.js
View file @
f8be751f
...
@@ -217,6 +217,18 @@ export default {
...
@@ -217,6 +217,18 @@ export default {
name
:
'rukudan'
,
name
:
'rukudan'
,
component
:
resolve
=>
require
([
'@/components/Materialman/rukudan'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/Materialman/rukudan'
],
resolve
),
},
},
// 入库审核列表
{
path
:
'/rukuExamine'
,
name
:
'rukuExamine'
,
component
:
resolve
=>
require
([
'@/components/Materialman/rukuExamine'
],
resolve
),
},
// 入库单详情
{
path
:
'/rukuDetails'
,
name
:
'rukuDetails'
,
component
:
resolve
=>
require
([
'@/components/Materialman/rukuDetails'
],
resolve
),
},
// 出库单
// 出库单
{
{
path
:
'/chukudan'
,
path
:
'/chukudan'
,
...
...
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