Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tianjin
Project
Project
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
徐来柯
tianjin
Commits
69564844
Commit
69564844
authored
Jan 13, 2021
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6bcd53fc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
224 additions
and
424 deletions
+224
-424
common.scss
src/assets/sass/common.scss
+6
-0
index.js
src/router/index.js
+1
-0
ManageList.vue
src/views/education/ManageList.vue
+200
-367
SearchForm.vue
src/views/education/component/SearchForm.vue
+2
-0
relateDialog.vue
src/views/education/component/relateDialog.vue
+1
-1
schedulingStatistics.vue
src/views/education/schedulingStatistics.vue
+14
-56
No files found.
src/assets/sass/common.scss
View file @
69564844
...
@@ -137,3 +137,8 @@
...
@@ -137,3 +137,8 @@
}
}
}
}
}
}
.el-table
.warning-row
td
{
background
:
#ff4949
!
important
;
color
:
#fff
!
important
;
}
\ No newline at end of file
src/router/index.js
View file @
69564844
...
@@ -111,6 +111,7 @@ const productManage = () =>
...
@@ -111,6 +111,7 @@ const productManage = () =>
import
(
'@/views/education/productManage.vue'
);
import
(
'@/views/education/productManage.vue'
);
const
ProductionPlan
=
()
=>
const
ProductionPlan
=
()
=>
import
(
'@/views/education/ProductionPlan.vue'
);
import
(
'@/views/education/ProductionPlan.vue'
);
// 生产排程统计页面
const
ManageList
=
()
=>
const
ManageList
=
()
=>
import
(
'@/views/education/ManageList.vue'
);
import
(
'@/views/education/ManageList.vue'
);
const
ProducSchedule
=
()
=>
const
ProducSchedule
=
()
=>
...
...
src/views/education/ManageList.vue
View file @
69564844
<!--
* @Description: 这是***页面(组件)
* @Date: 2020-08-10 09:10:53
* @Author: Tao
* @LastEditors: Tao
* @LastEditTime: 2020-08-27 11:01:37
-->
<
template
>
<
template
>
<div
class=
"lineBox"
>
<div
class=
"box-container"
>
<div
class=
"LineCenten"
>
<div
class=
"wrap"
>
<Head
type=
"12"
></Head>
<search-form
:formList=
"[1,2]"
:searchList=
"searchList"
:formData=
"formData"
@
searchData=
"searchData"
/>
<div
class=
"conterFool_middle"
style=
"width:98%;margin:auto"
>
<el-table
<el-table
border
border
height=
"675"
height=
"675"
class=
"conterFool_middle"
ref=
"multipleTable"
ref=
"multipleTable"
:data=
"tableData"
:data=
"tableData"
class=
"table-style"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
style=
"width: 100%"
>
style=
"width: 100%"
:row-class-name=
"tableRowClassName"
>
<el-table-column
<el-table-column
label=
"序号"
label=
"序号"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
width=
"185
"
width=
"80
"
prop=
"NO"
>
prop=
"NO"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"生产计划
编号"
label=
"生产排程
编号"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
width=
"185
"
prop=
"PlanID
"
prop=
"PlanNO
"
>
width=
"180
"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"ProductID"
label=
"产品编号"
label=
"产品编号"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
width=
"185"
width=
"180"
>
prop=
"Num"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"产品名称"
label=
"产品名称"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
prop=
"ProductName"
prop=
"ProductName"
width=
"30
0"
>
width=
"18
0"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"ProductDescirbe"
label=
"产品描述"
label=
"产品描述"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
width=
"310"
>
prop=
"Pdesc"
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"unit"
label=
"单位"
label=
"单位"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
width=
"310"
>
prop=
"Prounit"
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"计划交货日期"
label=
"计划交货日期"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
prop=
"PlanDay
"
prop=
"DeliveryDt
"
width=
"3
10"
>
width=
"2
10"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"计划
数量"
label=
"排程
数量"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
prop=
"PlanCount
"
prop=
"Quantity
"
width=
"185
"
>
width=
"140
"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"排程
数量"
label=
"完工
数量"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
prop=
"PaiCount"
prop=
"FinishQuantity"
width=
"185"
>
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
FinishQuantity
}}
</span>
<span
@
click=
"openRelate('FinishQuantity',scope.row)"
class=
"relateBtn plan_relateBtn"
>
选 择
</span>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"完工数量
"
label=
"实际开工日期
"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
prop=
"FinishCount"
prop=
"StartDt"
width=
"185"
>
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"实际完工日期"
label=
"实际完工日期"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
prop=
"finishDay"
prop=
"EndDt"
width=
"300"
>
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"生产计划
状态"
label=
"生产排程
状态"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
prop=
"status"
prop=
"TextStatus"
width=
"210"
width=
"180"
>
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
<div
class=
"conterFool_bottom"
>
<Pagination
ref=
"page"
:totalCount=
"totalCount"
:totalPage=
"totalPage"
@
pageFun=
"pageFun"
/>
<div
@
click=
"jump"
class=
"bottom_jump"
>
跳转
</div>
<div
class=
"bottom_input"
>
<span>
第
</span>
<input
v-model=
"num"
@
input=
"jumpInp()"
class=
"text"
type=
"text"
/>
<span>
页
</span>
</div>
<div
@
click=
"end"
class=
"bottom_end"
>
末页
</div>
<div
ref=
"next"
@
click=
"next"
class=
"bottom_next"
>
下一页
</div>
<div
ref=
"last"
@
click=
"last"
class=
"bottom_last"
>
上一页
</div>
<div
@
click=
"firest"
class=
"bottom_firest"
>
首页
</div>
<div
class=
"bottom_text"
>
<span>
共
{{
TotalCount
}}
条记录 当前第
{{
PageIndex
}}
页 共
{{
TotalPage
}}
页 每页
{{
PageSize
}}
条记录
</span>
</div>
</div>
</div>
<deletePop
ref=
"delete"
:deletetext=
"deletetext"
:type=
"typeV"
v-if=
"deleteShow"
></deletePop>
</div>
<div
v-if=
"popShow || deleteShow"
class=
"box"
></div>
<delete-pop
ref=
"delete"
:deletetext=
"deletetext"
:type=
"typeV"
v-if=
"deleteShow"
></delete-pop>
<relate-dialog
v-if=
"relateShow"
:relateType=
"relateType"
@
conserve=
"saveData"
@
closeDialog=
"closeDialog"
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Head
from
'./component/head.vue
'
import
searchForm
from
'./component/searchForm
'
import
deletePop
from
'./component/deletePop'
import
deletePop
from
'./component/deletePop'
import
Pagination
from
'./component/Pagination.vue'
import
relateDialog
from
'./component/relateDialog'
export
default
{
export
default
{
components
:{
components
:
{
searchForm
,
relateDialog
,
Pagination
},
Head
,
data
()
{
deletePop
},
data
()
{
return
{
return
{
tableData
:[],
tableData
:
[],
AllTableData
:[],
AllTableData
:
[],
ss
:
''
,
cloneData
:
[],
num
:
1
,
popShow
:
false
,
TotalCount
:
1
,
relateShow
:
false
,
PageIndex
:
1
,
checkList
:
[],
TotalPage
:
1
,
ID
:
null
,
PageSize
:
50
,
searchList
:
[
deleteShow
:
false
,
{
popShow
:
false
,
id
:
'不限'
,
CheckDeleteShow
:
true
,
name
:
''
argKeyWord
:
''
,
},
deletetext
:
''
,
{
itemdata
:[],
id
:
'生产计划编号'
,
deleteRowData
:[],
name
:
'生产计划编号'
deleteManyData
:[],
},
typeV
:
''
,
{
type
:
''
,
id
:
'产品编号'
,
name
:
'产品编号'
},
{
id
:
'产品名称'
,
name
:
'产品名称'
},
{
id
:
'产品描述'
,
name
:
'产品描述'
},
{
id
:
'计划交货日期'
,
name
:
'计划交货日期'
},
{
id
:
'实际完工日期'
,
name
:
'实际完工日期'
},
{
id
:
'生产计划状态'
,
name
:
'生产计划状态'
},
],
deletetext
:
''
,
deleteShow
:
false
,
typeV
:
''
,
relateType
:
''
,
formData
:
{
argKeyWord
:
''
,
argWhere
:
''
,
dateValue
:
[
this
.
$moment
().
format
(
'YYYY-MM-DD 00:00:00'
),
this
.
$moment
().
format
(
'YYYY-MM-DD 23:59:59'
)],
scanValue
:
''
,
},
// 分页数据
totalCount
:
0
,
// pageIndex: 1,
totalPage
:
1
}
}
},
},
props
:[],
created
()
{
watch
:{},
this
.
searchData
()
created
(){
this
.
query
()
},
},
methods
:
{
methods
:
{
//查询
searchData
()
{
query
(){
var
$this
=
this
console
.
log
(
'请求'
)
var
postData
=
this
.
resetData
(
)
this
.
$axios
({
this
.
$axios
({
method
:
"post"
,
method
:
"post"
,
url
:
`/api/TJStatistics/Statistics_Query?argKeyWord=
${
this
.
argKeyWord
}
`
,
url
:
`/api/StatisticsManage/StatisticsManage_Query?argKeyWord=
${
postData
.
argKeyWord
}
&argWhere=
${
postData
.
argWhere
}
&Stime=
${
postData
.
Stime
}
&Etime=
${
postData
.
Etime
}
`
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
'res==>'
,
res
)
if
(
res
.
data
.
data
.
length
!=
0
){
if
(
res
.
data
.
data
.
length
!=
0
){
for
(
let
i
=
0
;
i
<
res
.
data
.
data
.
length
;
i
++
){
this
.
AllTableData
=
res
.
data
.
data
.
map
(
item
=>
({
res
.
data
.
data
[
i
].
UpdateTime
=
this
.
$moment
(
res
.
data
.
data
[
i
].
UpdateTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
...
item
,
}
DeliveryDt
:
item
.
DeliveryDt
?
this
.
$moment
(
item
.
DeliveryDt
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
this
.
AllTableData
=
res
.
data
.
data
EndDt
:
item
.
EndDt
?
this
.
$moment
(
item
.
EndDt
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
if
(
this
.
AllTableData
.
length
>
50
){
}))
this
.
tableData
=
this
.
AllTableData
.
slice
(
0
,
50
)
// 克隆一份tableData数据
this
.
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllTableData
))
if
(
this
.
AllTableData
.
length
>
this
.
$refs
.
page
.
pageSize
){
this
.
tableData
=
this
.
AllTableData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
}
else
{
}
else
{
this
.
tableData
=
this
.
AllTableData
this
.
tableData
=
this
.
AllTableData
}
}
this
.
T
otalCount
=
this
.
AllTableData
.
length
this
.
t
otalCount
=
this
.
AllTableData
.
length
this
.
P
ageIndex
=
1
// this.p
ageIndex = 1
this
.
TotalPage
=
Math
.
ceil
(
this
.
AllTableData
.
length
/
50
)
this
.
totalPage
=
Math
.
ceil
(
this
.
AllTableData
.
length
/
this
.
$refs
.
page
.
pageSize
)
}
else
{
}
else
{
this
.
tableData
=
[]
this
.
tableData
=
[]
this
.
T
otalCount
=
0
this
.
t
otalCount
=
0
this
.
P
ageIndex
=
1
// this.p
ageIndex = 1
this
.
T
otalPage
=
1
this
.
t
otalPage
=
1
}
}
this
.
pageFun
(
1
)
}).
catch
(
function
(
err
){
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
console
.
log
(
'err'
,
err
)
})
})
},
},
//查询值
tableRowClassName
({
row
,
rowIndex
})
{
textFun
(
text
){
row
.
EndDt
=
row
.
EndDt
===
''
?
0
:
row
.
EndDt
this
.
argKeyWord
=
text
row
.
DeliveryDt
=
row
.
DeliveryDt
===
''
?
0
:
row
.
DeliveryDt
if
(
new
Date
(
row
.
EndDt
).
getTime
()
>
new
Date
(
row
.
DeliveryDt
).
getTime
())
{
return
'warning-row'
}
return
''
;
},
closeDialog
()
{
this
.
relateShow
=
false
},
saveData
(
data
)
{
var
$this
=
this
this
.
$axios
({
method
:
"post"
,
url
:
`/api/ProductStorage/ProductStorage_WindowAddSave?ID=
${
this
.
ID
}
&VFinish=
${
data
.
Name
}
`
,
data
:
data
}).
then
((
res
)
=>
{
$this
.
relateShow
=
false
var
postData
=
$this
.
resetData
()
$this
.
searchData
(
postData
)
})
},
openRelate
(
type
,
row
)
{
this
.
ID
=
row
.
ID
this
.
relateType
=
type
this
.
relateShow
=
true
},
},
// 分页方法
// 分页方法
pageFun
(
num
){
pageFun
(
num
){
if
(
num
==
1
){
if
(
num
==
1
){
this
.
tableData
=
this
.
AllTableData
.
slice
(
0
,
50
)
this
.
tableData
=
this
.
cloneData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
}
else
{
}
else
{
this
.
tableData
=
this
.
AllTableData
.
slice
((
num
-
1
)
*
this
.
PageSize
+
1
,
this
.
P
ageSize
*
num
)
this
.
tableData
=
this
.
cloneData
.
slice
((
num
-
1
)
*
this
.
$refs
.
page
.
pageSize
,
this
.
$refs
.
page
.
p
ageSize
*
num
)
}
}
},
},
//上一页颜色
resetData
()
{
lastColor
(
text
){
return
{
if
(
text
==
'1'
){
argKeyWord
:
this
.
formData
.
argKeyWord
,
this
.
$refs
.
last
.
style
.
color
=
'#F9D79C'
argWhere
:
this
.
formData
.
argWhere
,
this
.
$refs
.
last
.
style
.
borderColor
=
'#F8CA7A'
Stime
:
this
.
formData
.
dateValue
?
this
.
$moment
(
this
.
formData
.
dateValue
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
this
.
$refs
.
last
.
style
.
background
=
'#F9F9F9'
Etime
:
this
.
formData
.
dateValue
?
this
.
$moment
(
this
.
formData
.
dateValue
[
1
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
else
{
this
.
$refs
.
last
.
style
.
color
=
'#FDA100'
this
.
$refs
.
last
.
style
.
borderColor
=
'#FDA100'
this
.
$refs
.
last
.
style
.
background
=
'#fff'
}
}
},
},
//下一页颜色
//关闭提示弹窗
nextColor
(
text
){
cancel_delete
(){
if
(
text
==
'1'
){
this
.
deleteShow
=
false
this
.
$refs
.
next
.
style
.
color
=
'#F9D79C'
this
.
$refs
.
next
.
style
.
borderColor
=
'#F8CA7A'
this
.
$refs
.
next
.
style
.
background
=
'#F9F9F9'
}
else
{
this
.
$refs
.
next
.
style
.
color
=
'#FDA100'
this
.
$refs
.
next
.
style
.
borderColor
=
'#FDA100'
this
.
$refs
.
next
.
style
.
background
=
'#fff'
}
},
},
//跳转
jump
(){
if
(
this
.
PageIndex
!=
this
.
num
){
conserve
(
data
)
{
if
(
this
.
num
>
this
.
TotalPage
||
this
.
num
<
1
){
var
$this
=
this
this
.
typeV
=
'3'
this
.
$axios
({
this
.
deleteShow
=
true
method
:
"post"
,
url
:
`/api/ProductStorage/ProductStorage_WindowAddSave`
,
data
:
data
}).
then
((
res
)
=>
{
if
(
res
.
data
.
code
!=
0
){
$this
.
typeV
=
'5'
$this
.
deleteShow
=
true
}
else
{
}
else
{
this
.
PageIndex
=
this
.
num
$this
.
typeV
=
'6'
this
.
pageFun
(
this
.
PageIndex
)
$this
.
popShow
=
false
}
if
(
this
.
PageIndex
==
1
){
this
.
lastColor
(
'1'
)
this
.
nextColor
(
'2'
)
}
if
(
this
.
PageIndex
==
this
.
TotalPage
){
this
.
nextColor
(
'1'
)
this
.
lastColor
(
'2'
)
}
}
},
//末页
end
(){
this
.
PageIndex
=
this
.
TotalPage
this
.
num
=
this
.
PageIndex
this
.
nextColor
(
'1'
)
this
.
lastColor
(
'2'
)
this
.
pageFun
(
this
.
PageIndex
)
},
//下一页
next
(){
if
(
this
.
PageIndex
<
this
.
TotalPage
){
this
.
nextColor
(
'2'
)
this
.
lastColor
(
'2'
)
this
.
PageIndex
=
this
.
PageIndex
+
1
this
.
num
=
this
.
PageIndex
this
.
pageFun
(
this
.
PageIndex
)
if
(
this
.
PageIndex
==
this
.
TotalPage
){
this
.
nextColor
(
'1'
)
}
}
$this
.
deletetext
=
res
.
data
.
msg
var
postData
=
$this
.
resetData
()
$this
.
searchData
(
postData
)
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
})
}
}
},
//上一页
last
(){
if
(
this
.
PageIndex
>
1
){
this
.
nextColor
(
'2'
)
this
.
lastColor
(
'2'
)
this
.
PageIndex
=
this
.
PageIndex
-
1
this
.
num
=
this
.
PageIndex
this
.
pageFun
(
this
.
PageIndex
)
if
(
this
.
PageIndex
==
1
){
this
.
lastColor
(
'1'
)
}
}
},
//首页
firest
(){
this
.
PageIndex
=
1
this
.
num
=
this
.
PageIndex
this
.
nextColor
(
'2'
)
this
.
lastColor
(
'1'
)
this
.
pageFun
(
this
.
PageIndex
)
},
jumpInp
(){
this
.
num
=
parseInt
(
this
.
num
)
if
(
String
(
this
.
num
)
==
'NaN'
){
this
.
num
=
''
}
},
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
.LineCenten
{
.el-table__header-wrapper
{
background
:
#5A6C98
;
}
.el-table
th
.is-leaf
{
background
:
#5A6C98
;
color
:
#fff
;
}
.el-table
td
,
.el-table
th
.is-leaf
{
text-align
:
center
;
}
.el-table--border
th
{
border
:
1px
solid
#EBEEF5
;
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.lineBox
{
.relateBtn
{
position
:
relative
;
width
:
75px
;
margin-top
:
100px
;
height
:
35px
;
width
:
100%
;
height
:calc
(
100vh
-
130px
)
;
background
:
#EEEEEE
;
padding-top
:
10px
;
.box
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
margin
:
auto
;
z-index
:
9
;
}
.table_remove
,
.table_edit
{
width
:
60px
;
height
:
30px
;
background
:rgba
(
255
,
255
,
255
,
1
)
;
border
:
2px
solid
rgba
(
228
,
228
,
228
,
1
);
border-radius
:
15px
;
position
:
relative
;
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
8px
;
margin-left
:
20px
;
cursor
:
pointer
;
}
.remove_img
{
position
:
absolute
;
top
:
0
;
left
:
0
;
bottom
:
0
;
right
:
0
;
margin
:auto
;
width
:
20px
;
height
:
20px
;
background
:
url('../../assets/images/icon_dell.png')
;
background-size
:cover
;
}
.edit_img
{
position
:
absolute
;
top
:
0
;
left
:
0
;
bottom
:
0
;
right
:
0
;
margin
:auto
;
width
:
18px
;
height
:
20px
;
background
:
url('../../assets/images/icon_pensoil.png')
;
background-size
:cover
;
}
.LineCenten
{
width
:
98%
;
height
:
98%
;
margin
:auto
;
background
:
#fff
;
padding-top
:
24px
;
}
.head
{
margin-bottom
:
20px
;
box-sizing
:
border-box
;
}
}
.conterFool_bottom
{
width
:
97%
;
margin
:
auto
;
height
:
60px
;
padding-top
:
15px
;
user-select
:
none
;
.bottom_text
{
float
:
left
;
color
:
#929292
;
font-size
:
14px
;
}
.bottom_firest
{
width
:
65px
;
height
:
30px
;
line-height
:
28px
;
text-align
:center
;
color
:
#FDA100
;
border
:
1px
solid
#FDA100
;
box-sizing
:
border-box
;
float
:
right
;
border-radius
:
5px
;
margin-left
:
10px
;
cursor
:
pointer
;
}
.bottom_last
{
cursor
:
pointer
;
width
:
80px
;
height
:
30px
;
line-height
:
28px
;
text-align
:center
;
color
:
#F9D79C
;
border
:
1px
solid
#F8CA7A
;
box-sizing
:
border-box
;
background
:
#f9f9f9
;
float
:
right
;
border-radius
:
5px
;
margin-left
:
10px
;
}
.bottom_next
{
cursor
:
pointer
;
float
:
right
;
width
:
80px
;
height
:
30px
;
line-height
:
28px
;
text-align
:center
;
color
:
#FDA100
;
border
:
1px
solid
#FDA100
;
box-sizing
:
border-box
;
border-radius
:
5px
;
margin-left
:
10px
;
}
.bottom_end
{
cursor
:
pointer
;
float
:
right
;
width
:
80px
;
height
:
30px
;
line-height
:
28px
;
text-align
:center
;
color
:
#FDA100
;
border
:
1px
solid
#FDA100
;
box-sizing
:
border-box
;
border-radius
:
5px
;
margin-left
:
10px
;
}
.bottom_input
{
float
:
right
;
margin-left
:
10px
;
color
:
#9C9C9C
;
.text
{
display
:
inline-block
;
width
:
65px
;
height
:
30px
;
margin
:
0
5px
;
text-align
:
center
;
text-align
:
center
;
color
:
#FDA100
;
line-height
:
35px
;
}
}
.bottom_jump
{
cursor
:
pointer
;
cursor
:
pointer
;
float
:
right
;
user-select
:
none
;
width
:
80px
;
background
:rgba
(
255
,
255
,
255
,
1
)
;
height
:
30px
;
border
:
1px
solid
rgba
(
37
,
92
,
193
,
1
);
line-height
:
28px
;
border-radius
:
4px
;
text-align
:center
;
color
:
#FDA100
;
border
:
1px
solid
#FDA100
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-radius
:
5
px
;
font-size
:
14
px
;
margin-left
:
10px
;
font-family
:
Microsoft
YaHei
;
}
font-weight
:
400
;
color
:rgba
(
51
,
51
,
51
,
1
)
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/education/component/SearchForm.vue
View file @
69564844
...
@@ -95,7 +95,9 @@ export default {
...
@@ -95,7 +95,9 @@ export default {
},
},
created
()
{
created
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
$refs
.
codeInput
)
{
this
.
$refs
.
codeInput
.
focus
()
this
.
$refs
.
codeInput
.
focus
()
}
})
})
},
},
methods
:
{
methods
:
{
...
...
src/views/education/component/relateDialog.vue
View file @
69564844
...
@@ -247,7 +247,7 @@ export default {
...
@@ -247,7 +247,7 @@ export default {
return
return
}
}
}
}
if
(
this
.
relateType
===
'VPlanQuantity'
)
{
if
(
this
.
relateType
===
'VPlanQuantity'
||
this
.
relateType
===
'FinishQuantity'
)
{
if
(
this
.
currentRow
.
DateType
.
indexOf
(
'整型'
)
!==
-
1
)
{
if
(
this
.
currentRow
.
DateType
.
indexOf
(
'整型'
)
!==
-
1
)
{
return
this
.
$emit
(
'conserve'
,
this
.
currentRow
,
this
.
relateType
)
return
this
.
$emit
(
'conserve'
,
this
.
currentRow
,
this
.
relateType
)
}
else
{
}
else
{
...
...
src/views/education/schedulingStatistics.vue
View file @
69564844
<
template
>
<
template
>
<div
class=
"box-container"
>
<div
class=
"box-container"
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<search-form
:formList=
"[1,2]"
:searchList=
"searchList"
:formData=
"formData"
@
s
canGunCode=
"scanGunCode"
@
searchData=
"searchData"
@
openDialog=
"openDialog"
@
delData=
"del
Data"
/>
<search-form
:formList=
"[1,2]"
:searchList=
"searchList"
:formData=
"formData"
@
s
earchData=
"search
Data"
/>
<el-table
<el-table
border
border
height=
"675"
height=
"675"
...
@@ -10,11 +10,8 @@
...
@@ -10,11 +10,8 @@
class=
"table-style"
class=
"table-style"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
style=
"width: 100%"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
>
:row-class-name=
"tableRowClassName"
<el-table-column
>
type=
"selection"
width=
"60"
>
</el-table-column>
<el-table-column
<el-table-column
label=
"序号"
label=
"序号"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
...
@@ -93,19 +90,17 @@
...
@@ -93,19 +90,17 @@
<Pagination
ref=
"page"
:totalCount=
"totalCount"
:totalPage=
"totalPage"
@
pageFun=
"pageFun"
/>
<Pagination
ref=
"page"
:totalCount=
"totalCount"
:totalPage=
"totalPage"
@
pageFun=
"pageFun"
/>
</div>
</div>
<store-dialog
:titleText=
"'产品入库单'"
:titleType=
"'pro'"
v-if=
"popShow"
@
closeDialog=
"closeDialog"
@
conserve=
"conserve"
/>
<delete-pop
ref=
"delete"
:deletetext=
"deletetext"
:type=
"typeV"
v-if=
"deleteShow"
></delete-pop>
<delete-pop
ref=
"delete"
:deletetext=
"deletetext"
:type=
"typeV"
v-if=
"deleteShow"
></delete-pop>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
searchForm
from
'./component/searchForm'
import
searchForm
from
'./component/searchForm'
import
storeDialog
from
'./component/storeDialog'
import
deletePop
from
'./component/deletePop'
import
deletePop
from
'./component/deletePop'
import
Pagination
from
'./component/Pagination.vue'
import
Pagination
from
'./component/Pagination.vue'
export
default
{
export
default
{
components
:
{
searchForm
,
storeDialog
,
deletePop
,
Pagination
},
components
:
{
searchForm
,
Pagination
},
data
()
{
data
()
{
return
{
return
{
tableData
:
[],
tableData
:
[],
...
@@ -200,8 +195,13 @@ export default {
...
@@ -200,8 +195,13 @@ export default {
console
.
log
(
'err'
,
err
)
console
.
log
(
'err'
,
err
)
})
})
},
},
handleSelectionChange
(
val
)
{
tableRowClassName
({
row
,
rowIndex
})
{
this
.
checkList
=
val
row
.
EndDt
=
row
.
EndDt
===
''
?
0
:
row
.
EndDt
row
.
DeliveryDt
=
row
.
DeliveryDt
===
''
?
0
:
row
.
DeliveryDt
if
(
new
Date
(
row
.
EndDt
).
getTime
()
>
new
Date
(
row
.
DeliveryDt
).
getTime
())
{
return
'warning-row'
}
return
''
;
},
},
// 分页方法
// 分页方法
pageFun
(
num
){
pageFun
(
num
){
...
@@ -211,25 +211,6 @@ export default {
...
@@ -211,25 +211,6 @@ export default {
this
.
tableData
=
this
.
cloneData
.
slice
((
num
-
1
)
*
this
.
$refs
.
page
.
pageSize
,
this
.
$refs
.
page
.
pageSize
*
num
)
this
.
tableData
=
this
.
cloneData
.
slice
((
num
-
1
)
*
this
.
$refs
.
page
.
pageSize
,
this
.
$refs
.
page
.
pageSize
*
num
)
}
}
},
},
// 扫码枪扫码
scanGunCode
(
value
)
{
console
.
log
(
'开始扫码。。。'
)
this
.
$axios
({
method
:
"post"
,
url
:
`/api/ProductStorage/ProductStorage_ScanCodeAdd?ScanCode=
${
value
}
`
,
}).
then
((
res
)
=>
{
console
.
log
(
'扫码成功。。。'
)
var
postData
=
{
argKeyWord
:
this
.
formData
.
argKeyWord
,
argWhere
:
this
.
formData
.
argWhere
,
Stime
:
this
.
formData
.
dateValue
?
this
.
$moment
(
this
.
formData
.
dateValue
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
Etime
:
this
.
formData
.
dateValue
?
this
.
$moment
(
this
.
formData
.
dateValue
[
1
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
this
.
searchData
(
this
.
postData
)
}).
catch
(()
=>
{
console
.
log
(
'扫码失败。。。'
)
})
},
resetData
()
{
resetData
()
{
return
{
return
{
argKeyWord
:
this
.
formData
.
argKeyWord
,
argKeyWord
:
this
.
formData
.
argKeyWord
,
...
@@ -238,36 +219,12 @@ export default {
...
@@ -238,36 +219,12 @@ export default {
Etime
:
this
.
formData
.
dateValue
?
this
.
$moment
(
this
.
formData
.
dateValue
[
1
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
Etime
:
this
.
formData
.
dateValue
?
this
.
$moment
(
this
.
formData
.
dateValue
[
1
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
}
},
},
delData
()
{
var
$this
=
this
if
(
$this
.
checkList
.
length
===
0
)
{
$this
.
deleteShow
=
true
$this
.
typeV
=
2
}
else
{
var
list
=
[]
$this
.
checkList
.
forEach
((
item
)
=>
{
list
.
push
(
item
.
ID
)
})
$this
.
$axios
({
method
:
"post"
,
url
:
`/api/ProductStorage/ProductStorage_Delete`
,
data
:
list
}).
then
((
res
)
=>
{
var
postData
=
$this
.
resetData
()
$this
.
searchData
(
postData
)
})
}
},
//关闭提示弹窗
//关闭提示弹窗
cancel_delete
(){
cancel_delete
(){
this
.
deleteShow
=
false
this
.
deleteShow
=
false
},
},
openDialog
()
{
this
.
popShow
=
true
},
closeDialog
()
{
this
.
popShow
=
false
},
conserve
(
data
)
{
conserve
(
data
)
{
var
$this
=
this
var
$this
=
this
this
.
$axios
({
this
.
$axios
({
...
@@ -292,3 +249,4 @@ export default {
...
@@ -292,3 +249,4 @@ export default {
}
}
}
}
</
script
>
</
script
>
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