Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-h5app-drs
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
zhuxiaomei
patzn-cloud-web-h5app-drs
Commits
ed06803b
Commit
ed06803b
authored
Nov 13, 2020
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
农产品
parent
e6dac794
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
19 deletions
+35
-19
SamplingList.vue
src/page/sampling-list/SamplingList.vue
+29
-18
SamplingListAddAgriculture.vue
src/page/sampling-list/SamplingListAddAgriculture.vue
+0
-0
SamplingListDetailAgriculture.vue
src/page/sampling-list/SamplingListDetailAgriculture.vue
+0
-0
SelectShelves.vue
src/page/sampling-list/components/SelectShelves.vue
+1
-0
sampling-list-routes.js
src/router/sampling-list-routes.js
+5
-1
No files found.
src/page/sampling-list/SamplingList.vue
View file @
ed06803b
...
...
@@ -178,11 +178,15 @@
this
.
$refs
.
shelvesSelect
.
_open
(
this
.
planId
)
},
_shelvesResult
({
testedType
,
shelfId
})
{
console
.
log
(
testedType
,
'testedType'
)
if
(
testedType
===
1
)
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_add_net'
,
query
:
{
testedType
,
shelfId
}})
}
else
{
}
else
if
(
testedType
===
0
)
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_add'
,
query
:
{
testedType
,
shelfId
}})
}
else
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_add_agriculture'
,
query
:
{
testedType
,
shelfId
}
})
}
},
_longtapHandler
()
{
...
...
@@ -209,34 +213,41 @@
}
else
{
if
(
item
.
testedType
===
1
)
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_detail_net'
,
query
:
{
id
:
item
.
id
}})
}
else
{
}
else
if
(
item
.
testedType
===
0
)
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_detail'
,
query
:
{
id
:
item
.
id
}})
}
else
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_detail_agriculture'
,
query
:
{
id
:
item
.
id
}
})
}
}
},
_edit
(
item
)
{
if
(
item
.
testedType
===
1
)
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_add_net'
,
query
:
{
id
:
item
.
id
}})
}
else
{
}
else
if
(
item
.
testedType
===
0
)
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_add'
,
query
:
{
id
:
item
.
id
}})
}
else
{
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_add_agriculture'
,
query
:
{
id
:
item
.
id
}})
}
},
_print
(
item
)
{
//调用第三放程序打开指定文件(必须是本地路径)
this
.
$toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
//调用第三放程序打开指定文件(必须是本地路径)
this
.
$toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
});
var
dtask
=
plus
.
downloader
.
createDownload
(
this
.
$global
.
baseURL
+
'/drs/v1/sampling_summary/export_sampling?id='
+
item
.
id
,
{},
(
d
,
status
)
=>
{
if
(
status
==
200
)
{
plus
.
runtime
.
openFile
(
d
.
filename
);
//cn.wps.moffice_eng-----wps的包名
}
this
.
$toast
.
clear
();
});
var
dtask
=
plus
.
downloader
.
createDownload
(
this
.
$global
.
baseURL
+
'/drs/v1/sampling_summary/export_sampling?id='
+
item
.
id
,
{},
(
d
,
status
)
=>
{
if
(
status
==
200
)
{
plus
.
runtime
.
openFile
(
d
.
filename
);
//cn.wps.moffice_eng-----wps的包名
}
this
.
$toast
.
clear
();
});
dtask
.
setRequestHeader
(
'Content-Type'
,
'application/x-www-form-urlencoded'
);
dtask
.
setRequestHeader
(
'accessToken'
,
localStorage
.
getItem
(
'accessToken'
));
dtask
.
start
();
dtask
.
setRequestHeader
(
'Content-Type'
,
'application/x-www-form-urlencoded'
);
dtask
.
setRequestHeader
(
'accessToken'
,
localStorage
.
getItem
(
'accessToken'
));
dtask
.
start
();
},
_del
(
ids
)
{
if
(
ids
.
length
===
0
)
{
...
...
src/page/sampling-list/SamplingListAddAgriculture.vue
0 → 100644
View file @
ed06803b
This diff is collapsed.
Click to expand it.
src/page/sampling-list/SamplingListDetailAgriculture.vue
0 → 100644
View file @
ed06803b
This diff is collapsed.
Click to expand it.
src/page/sampling-list/components/SelectShelves.vue
View file @
ed06803b
...
...
@@ -15,6 +15,7 @@
<van-radio-group
v-model=
"radio"
direction=
"horizontal"
>
<van-radio
:name=
"1"
>
网络
</van-radio>
<van-radio
:name=
"0"
>
非网络
</van-radio>
<van-radio
:name=
"2"
>
农产品
</van-radio>
</van-radio-group>
</div>
<div>
...
...
src/router/sampling-list-routes.js
View file @
ed06803b
...
...
@@ -8,16 +8,20 @@ import File from '@/page/sampling-list/file/File.vue'
import
FileUpload
from
'@/page/sampling-list/file/FileUpload.vue'
import
FileDownLoad
from
'@/page/sampling-list/file/FileDownLoad.vue'
import
ScanBar
from
'@/page/sampling-list/ScanBar.vue'
import
SamplingListAddAgriculture
from
'@/page/sampling-list/SamplingListAddAgriculture.vue'
import
SamplingListDetailAgriculture
from
'@/page/sampling-list/SamplingListDetailAgriculture.vue'
export
default
[
{
path
:
'sampling_task'
,
component
:
SamplingTask
,
meta
:
{
title
:
'抽样任务'
}},
{
path
:
'sampling_list'
,
component
:
SamplingList
,
meta
:
{
title
:
'抽样单'
,
hideNavBar
:
true
}},
{
path
:
'sampling_list_add'
,
component
:
SamplingListAdd
,
meta
:
{
title
:
'抽样单添加-非网络'
}},
{
path
:
'sampling_list_add_agriculture'
,
component
:
SamplingListAddAgriculture
,
meta
:
{
title
:
'抽样单添加-农场品'
}},
{
path
:
'sampling_list_add_net'
,
component
:
SamplingListAddNet
,
meta
:
{
title
:
'抽样单添加-网络'
}},
{
path
:
'sampling_list_detail'
,
component
:
SamplingListDetail
,
meta
:
{
title
:
'抽样单详情-非网络'
}},
{
path
:
'sampling_list_detail_agriculture'
,
component
:
SamplingListDetailAgriculture
,
meta
:
{
title
:
'抽样单详情-农产品'
}},
{
path
:
'sampling_list_detail_net'
,
component
:
SamplingListDetailNet
,
meta
:
{
title
:
'抽样单详情-网络'
}},
{
path
:
'file'
,
component
:
File
,
meta
:
{
title
:
'附件'
}},
{
path
:
'file_upload'
,
component
:
FileUpload
,
meta
:
{
title
:
'添加附件'
}},
{
path
:
'file_download'
,
component
:
FileDownLoad
,
meta
:
{
title
:
'预览附件'
}},
{
path
:
'scan_bar'
,
component
:
ScanBar
,
meta
:
{
title
:
'扫码'
,
hideNavBar
:
true
}},
{
path
:
'scan_bar'
,
component
:
ScanBar
,
meta
:
{
title
:
'扫码'
,
hideNavBar
:
true
}},
]
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