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
ff211720
Commit
ff211720
authored
Feb 02, 2021
by
tao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量管理
parent
199c5631
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
58 deletions
+19
-58
dist.rar
dist.rar
+0
-0
LeftNav1.vue
src/components/leftNav/LeftNav1.vue
+2
-2
cpk.vue
src/views/cpk/cpk.vue
+10
-50
RWTextBox13.vue
src/views/customer/conponent/RWTextBox13.vue
+4
-3
customer.vue
src/views/customer/customer.vue
+1
-1
quality.vue
src/views/quality/quality.vue
+1
-1
table.vue
src/views/table/table.vue
+1
-1
No files found.
dist.rar
View file @
ff211720
No preview for this file type
src/components/leftNav/LeftNav1.vue
View file @
ff211720
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* @Description: 左侧导航栏
* @Description: 左侧导航栏
* @Date: 2019-11-23 11:50:53
* @Date: 2019-11-23 11:50:53
* @Author: 随风
* @Author: 随风
* @LastEditors:
随风
* @LastEditors:
Tao
* @LastEditTime: 20
19-12-01 19:01:37
* @LastEditTime: 20
21-02-02 15:31:22
-->
-->
<
template
>
<
template
>
<div
<div
...
...
src/views/cpk/cpk.vue
View file @
ff211720
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @since: 2019-11-08 15:00:48
* @since: 2019-11-08 15:00:48
* @Author: jawnwa22
* @Author: jawnwa22
* @LastEditors: Tao
* @LastEditors: Tao
* @LastEditTime: 2021-0
1-29 19:46:17
* @LastEditTime: 2021-0
2-02 15:23:01
-->
-->
<
template
>
<
template
>
<div
class=
"tapwater"
v-loading=
"this.$store.state.isShow"
<div
class=
"tapwater"
v-loading=
"this.$store.state.isShow"
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
stripe
stripe
ref=
"multipleTable"
ref=
"multipleTable"
border
border
:header-cell-style=
"
{background:($store.state.color=='grey')?'#D9DBDE':'#5a6c98',color:($store.state.color=='grey')?'#000':'#fff','border-left':'1px solid #cccccc',height:'50px',padding:'0'}
"
:header-cell-style=
"
[
{background:(($store.state.color=='grey')?'#D9DBDE':'#5a6c98')},{color:(($store.state.color=='grey')?'#000':'#fff')}, {'border-left':'1px solid #cccccc',height:'50px',padding:'0'}]
"
@row-click="handleRowChange1"
@row-click="handleRowChange1"
@cell-mouse-leave="leave"
@cell-mouse-leave="leave"
@cell-dblclick="twoclick"
@cell-dblclick="twoclick"
...
@@ -243,7 +243,7 @@ export default {
...
@@ -243,7 +243,7 @@ export default {
//表格导入
//表格导入
var
that
=
this
;
var
that
=
this
;
const
files
=
e
.
target
.
files
;
const
files
=
e
.
target
.
files
;
console
.
log
(
files
);
if
(
files
.
length
<=
0
)
{
if
(
files
.
length
<=
0
)
{
//如果没有文件名
//如果没有文件名
return
false
;
return
false
;
...
@@ -251,43 +251,20 @@ export default {
...
@@ -251,43 +251,20 @@ export default {
this
.
$Message
.
error
(
'上传格式不正确,请上传xls或者xlsx格式'
);
this
.
$Message
.
error
(
'上传格式不正确,请上传xls或者xlsx格式'
);
return
false
;
return
false
;
}
}
const
fileReader
=
new
FileReader
();
const
fileReader
=
new
FileReader
();
fileReader
.
onload
=
ev
=>
{
fileReader
.
onload
=
ev
=>
{
try
{
try
{
const
data
=
ev
.
target
.
result
;
const
data
=
ev
.
target
.
result
;
const
workbook
=
XLSX
.
read
(
data
,
{
const
workbook
=
XLSX
.
read
(
data
,
{
type
:
'binary'
type
:
'binary'
});
});
console
.
log
(
workbook
)
const
wsname
=
workbook
.
SheetNames
[
0
];
//取第一张表
const
wsname
=
workbook
.
SheetNames
[
0
];
//取第一张表
const
ws
=
XLSX
.
utils
.
sheet_to_json
(
const
ws
=
XLSX
.
utils
.
sheet_to_json
(
workbook
.
Sheets
[
wsname
]
workbook
.
Sheets
[
wsname
]
);
//生成json表格内容
);
//生成json表格内容
let
timearr
=
[]
console
.
log
(
workbook
);
console
.
log
(
ws
)
let
b
=
0
;
ws
.
forEach
((
item
)
=>
{
timearr
.
push
(
item
.
记录时间
)
})
console
.
log
(
"sj"
,
timearr
)
// this.$axios({
// method:'POST',
// url:'/api/QualityManage/verificationtime',
// data:timearr
// }).then(res=>{
// console.log(res)
// if(res.data.code!==0){
// this.tipchange1 = true;
// this.pdyd3 = true;
// this.w = res.data.msg;
// }else{
let
b
=
0
;
for
(
b
in
workbook
.
Strings
)
{
for
(
b
in
workbook
.
Strings
)
{
if
(
!
workbook
.
Strings
[
0
].
t
==
'序号'
)
{
if
(
!
workbook
.
Strings
[
0
].
t
==
'序号'
)
{
return
false
;
return
false
;
...
@@ -313,9 +290,6 @@ export default {
...
@@ -313,9 +290,6 @@ export default {
// ws[a].array = null;
// ws[a].array = null;
// }
// }
}
}
let
a1
=
parseInt
(
this
.
data
.
PrSampleNumber
);
let
a1
=
parseInt
(
this
.
data
.
PrSampleNumber
);
console
.
log
(
"this"
,
this
.
data
)
console
.
log
(
"this"
,
this
.
data
)
if
(
ws
.
length
%
this
.
data
.
PrSampleNumber
!==
0
)
{
if
(
ws
.
length
%
this
.
data
.
PrSampleNumber
!==
0
)
{
...
@@ -323,8 +297,7 @@ export default {
...
@@ -323,8 +297,7 @@ export default {
this
.
pdyd3
=
true
;
this
.
pdyd3
=
true
;
this
.
ccc
=
true
;
this
.
ccc
=
true
;
this
.
w
=
`导入的样本总数不是样本容量的整数倍,请修改样本表重新导入`
;
this
.
w
=
`导入的样本总数不是样本容量的整数倍,请修改样本表重新导入`
;
}
else
{
}
else
{
let
a3
=
0
;
let
a3
=
0
;
for
(
a3
=
0
;
a3
<
ws
.
length
;
a3
++
){
for
(
a3
=
0
;
a3
<
ws
.
length
;
a3
++
){
let
a4
=
a3
+
1
;
let
a4
=
a3
+
1
;
...
@@ -437,11 +410,7 @@ export default {
...
@@ -437,11 +410,7 @@ export default {
that
.
outputs
.
push
(
sheetData
);
that
.
outputs
.
push
(
sheetData
);
}
}
this
.
$refs
.
upload
.
value
=
''
;
this
.
$refs
.
upload
.
value
=
''
;
// }
// })
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
return
false
;
return
false
;
}
}
};
};
...
@@ -618,7 +587,6 @@ export default {
...
@@ -618,7 +587,6 @@ export default {
url
:
'/api/QualityManage/samplefromlist'
,
url
:
'/api/QualityManage/samplefromlist'
,
data
:
this
.
wanttable
,
data
:
this
.
wanttable
,
}).
then
(
res1
=>
{
}).
then
(
res1
=>
{
console
.
log
(
"网页"
,
res1
)
if
(
res1
.
data
.
code
==
0
)
{
if
(
res1
.
data
.
code
==
0
)
{
let
aa
=
JSON
.
stringify
(
res1
.
data
.
data
);
let
aa
=
JSON
.
stringify
(
res1
.
data
.
data
);
let
bb
=
JSON
.
stringify
(
this
.
data
);
let
bb
=
JSON
.
stringify
(
this
.
data
);
...
@@ -655,7 +623,6 @@ export default {
...
@@ -655,7 +623,6 @@ export default {
url
:
'/api/QualityManage/samplefromlist'
,
url
:
'/api/QualityManage/samplefromlist'
,
data
:
this
.
wanttable
,
data
:
this
.
wanttable
,
}).
then
(
res1
=>
{
}).
then
(
res1
=>
{
console
.
log
(
"网页"
,
res1
)
if
(
res1
.
data
.
code
==
0
)
{
if
(
res1
.
data
.
code
==
0
)
{
let
aa
=
JSON
.
stringify
(
res1
.
data
.
data
);
let
aa
=
JSON
.
stringify
(
res1
.
data
.
data
);
let
bb
=
JSON
.
stringify
(
this
.
data
);
let
bb
=
JSON
.
stringify
(
this
.
data
);
...
@@ -961,9 +928,7 @@ export default {
...
@@ -961,9 +928,7 @@ export default {
event
.
currentTarget
.
style
.
cursor
=
'move'
;
event
.
currentTarget
.
style
.
cursor
=
'move'
;
},
},
exportTable
()
{
exportTable
()
{
var
s
=
JSON
.
stringify
(
this
.
tabledata1
)
require
.
ensure
([],
()
=>
{
require
.
ensure
([],
()
=>
{
const
{
const
{
export_json_to_excel
export_json_to_excel
}
=
require
(
'../../vendor/Export2Excel'
);
}
=
require
(
'../../vendor/Export2Excel'
);
...
@@ -1750,7 +1715,6 @@ export default {
...
@@ -1750,7 +1715,6 @@ export default {
}
}
this
.
json2excel
(
this
.
excelDatas
,
'质量管理'
,
true
,
'xlsx'
);
this
.
json2excel
(
this
.
excelDatas
,
'质量管理'
,
true
,
'xlsx'
);
this
.
tabledata1
=
JSON
.
parse
(
s
)
});
});
},
},
json2excel
(
tableJson
,
filenames
,
autowidth
,
bookTypes
)
{
json2excel
(
tableJson
,
filenames
,
autowidth
,
bookTypes
)
{
...
@@ -1820,7 +1784,7 @@ export default {
...
@@ -1820,7 +1784,7 @@ export default {
this
.
$store
.
state
.
a
.
endtime
=
this
.
value2
;
this
.
$store
.
state
.
a
.
endtime
=
this
.
value2
;
this
.
$store
.
state
.
a
.
num
=
this
.
Number1
;
this
.
$store
.
state
.
a
.
num
=
this
.
Number1
;
this
.
$store
.
state
.
one
=
2
;
this
.
$store
.
state
.
one
=
2
;
if
(
res
.
data
.
code
!==
0
)
{
if
(
res
.
data
.
code
==
1
)
{
this
.
tipchange1
=
true
;
this
.
tipchange1
=
true
;
this
.
pdyd3
=
true
;
this
.
pdyd3
=
true
;
this
.
w
=
'这段时间无样本数据'
;
this
.
w
=
'这段时间无样本数据'
;
...
@@ -2048,8 +2012,7 @@ export default {
...
@@ -2048,8 +2012,7 @@ export default {
}
}
}
else
{
}
else
{
if
(
this
.
$store
.
state
.
a
.
data
){
if
(
this
.
$store
.
state
.
a
.
data
.
length
!==
0
){
if
(
this
.
$store
.
state
.
a
.
data
.
length
!==
0
){
this
.
value1
=
this
.
$store
.
state
.
a
.
starttime
;
this
.
value1
=
this
.
$store
.
state
.
a
.
starttime
;
this
.
value2
=
this
.
$store
.
state
.
a
.
endtime
;
this
.
value2
=
this
.
$store
.
state
.
a
.
endtime
;
this
.
Number1
=
this
.
$store
.
state
.
a
.
num
;
this
.
Number1
=
this
.
$store
.
state
.
a
.
num
;
...
@@ -2119,8 +2082,6 @@ export default {
...
@@ -2119,8 +2082,6 @@ export default {
}
}
});
});
}
}
}
}
}
},
},
...
@@ -2503,4 +2464,4 @@ img {
...
@@ -2503,4 +2464,4 @@ img {
font-size
:
15px
;
font-size
:
15px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/customer/conponent/RWTextBox13.vue
View file @
ff211720
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Date: 2019-11-18 15:23:41
* @Date: 2019-11-18 15:23:41
* @Author: Tao
* @Author: Tao
* @LastEditors: Tao
* @LastEditors: Tao
* @LastEditTime: 202
0-08-03 15:38:53
* @LastEditTime: 202
1-02-01 18:04:04
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -300,7 +300,7 @@ export default {
...
@@ -300,7 +300,7 @@ export default {
keupFun
(
item
){
keupFun
(
item
){
var
value
var
value
var
arr
=
[]
var
arr
=
[]
console
.
log
(
'item'
,
item
)
if
(
item
.
TagName
!=
''
){
if
(
item
.
TagName
!=
''
){
this
.
jurisdictionShow
(
item
).
then
(
val
=>
{
this
.
jurisdictionShow
(
item
).
then
(
val
=>
{
...
@@ -409,6 +409,7 @@ export default {
...
@@ -409,6 +409,7 @@ export default {
url
:
'/api/Base/PostIOServiceTest'
,
url
:
'/api/Base/PostIOServiceTest'
,
data
:
arr
data
:
arr
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
'下发13==>'
,
res
)
// console.log('res',res)
// console.log('res',res)
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
// console.log(error);
// console.log(error);
...
@@ -682,7 +683,7 @@ export default {
...
@@ -682,7 +683,7 @@ export default {
url
:
"/api/Base/PostRediusTest?varNameString="
+
name
,
url
:
"/api/Base/PostRediusTest?varNameString="
+
name
,
data
:
arr
data
:
arr
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
'13读写框==>'
,
res
)
this
.
ElementNameHas
=
[
'1'
]
this
.
ElementNameHas
=
[
'1'
]
if
(
res
.
data
.
data
.
length
){
if
(
res
.
data
.
data
.
length
){
...
...
src/views/customer/customer.vue
View file @
ff211720
...
@@ -262,7 +262,7 @@ export default {
...
@@ -262,7 +262,7 @@ export default {
this
.
nameC
=
name
this
.
nameC
=
name
console
.
log
(
'读取方法'
,
name
)
console
.
log
(
'读取方法'
,
name
)
// 本地服务器读取方法
//
//
本地服务器读取方法
this
.
$axios
({
this
.
$axios
({
method
:
'get'
,
method
:
'get'
,
url
:
`/ViewJson/
${
name
}
.json`
,
url
:
`/ViewJson/
${
name
}
.json`
,
...
...
src/views/quality/quality.vue
View file @
ff211720
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Date: 2019-11-23 11:54:01
* @Date: 2019-11-23 11:54:01
* @Author: 随风
* @Author: 随风
* @LastEditors: Tao
* @LastEditors: Tao
* @LastEditTime: 202
0-08-28 11:02:59
* @LastEditTime: 202
1-02-02 15:28:26
-->
-->
<
template
>
<
template
>
<div
class=
"alarm-container"
>
<div
class=
"alarm-container"
>
...
...
src/views/table/table.vue
View file @
ff211720
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @since: 2019-11-08 15:00:48
* @since: 2019-11-08 15:00:48
* @Author: jawnwa22
* @Author: jawnwa22
* @LastEditors: Tao
* @LastEditors: Tao
* @LastEditTime: 202
0-08-28 11:06:00
* @LastEditTime: 202
1-02-02 15:29:35
-->
-->
<
template
>
<
template
>
<div
class=
"tapwater"
>
<div
class=
"tapwater"
>
...
...
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