Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
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
wangweidong
patzn-cloud-web-back-soil
Commits
b1461a2b
Commit
b1461a2b
authored
Dec 19, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了复核审核查看原始记录
parent
dab034c5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
17 deletions
+105
-17
ItemRightList.vue
...l-test-manage/test-data-audit/item-tabs/ItemRightList.vue
+26
-4
SampleRightList.vue
...st-manage/test-data-audit/sample-tabs/SampleRightList.vue
+26
-4
ItemRightList.vue
...l-test-manage/test-data-check/item-tabs/ItemRightList.vue
+26
-4
SampleRightList.vue
...st-manage/test-data-check/sample-tabs/SampleRightList.vue
+26
-4
ItemRightList.vue
...s/soil-test-manage/test-input/item-tabs/ItemRightList.vue
+1
-1
No files found.
pages/soil-test-manage/test-data-audit/item-tabs/ItemRightList.vue
View file @
b1461a2b
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
</template>
</template>
<
script
>
<
script
>
import
Global
from
'../../../../api/config'
import
Global
from
'../../../../api/config'
import
{
soilTest
}
from
'../../../../api'
import
{
soil
Report
,
soil
Test
}
from
'../../../../api'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
EquipManage
from
'../EquipManage'
import
EquipManage
from
'../EquipManage'
// import SelectOriTempRecord from '../SelectOriTempRecord'
// import SelectOriTempRecord from '../SelectOriTempRecord'
...
@@ -176,9 +176,8 @@ export default {
...
@@ -176,9 +176,8 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
switch
(
res
)
{
switch
(
res
)
{
case
'查看原始记录'
:
case
'查看原始记录'
:
console
.
log
(
data
)
if
(
data
.
recorded
===
'是'
)
{
if
(
data
.
recordId
)
{
this
.
_recordLook
(
data
)
this
.
_viewRecord
(
data
.
recordId
)
}
else
{
}
else
{
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
}
}
...
@@ -192,6 +191,29 @@ export default {
...
@@ -192,6 +191,29 @@ export default {
}
}
})
})
},
},
_recordLook
(
data
)
{
if
(
data
.
objectKey
)
{
this
.
_reportMakeLook
(
data
)
}
else
{
this
.
_viewRecord
(
data
.
recordId
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
soilReport
.
getExcelOriginalRecord
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_equipManage
(
data
)
{
_equipManage
(
data
)
{
this
.
$refs
.
equipModal
.
_open
(
data
)
this
.
$refs
.
equipModal
.
_open
(
data
)
},
},
...
...
pages/soil-test-manage/test-data-audit/sample-tabs/SampleRightList.vue
View file @
b1461a2b
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</template>
</template>
<
script
>
<
script
>
import
Global
from
'../../../../api/config'
import
Global
from
'../../../../api/config'
import
{
soilTest
}
from
'../../../../api'
import
{
soil
Report
,
soil
Test
}
from
'../../../../api'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
IndexManage
from
'../IndexManage'
import
IndexManage
from
'../IndexManage'
import
Reason
from
'../../../../components/base/Reason'
import
Reason
from
'../../../../components/base/Reason'
...
@@ -437,9 +437,8 @@ export default {
...
@@ -437,9 +437,8 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
switch
(
res
)
{
switch
(
res
)
{
case
'查看原始记录'
:
case
'查看原始记录'
:
console
.
log
(
data
)
if
(
data
.
recorded
===
'是'
)
{
if
(
data
.
recordId
)
{
this
.
_recordLook
(
data
)
this
.
_viewRecord
(
data
.
recordId
)
}
else
{
}
else
{
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
}
}
...
@@ -453,6 +452,29 @@ export default {
...
@@ -453,6 +452,29 @@ export default {
}
}
})
})
},
},
_recordLook
(
data
)
{
if
(
data
.
objectKey
)
{
this
.
_reportMakeLook
(
data
)
}
else
{
this
.
_viewRecord
(
data
.
recordId
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
soilReport
.
getExcelOriginalRecord
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_equipManage
(
data
)
{
_equipManage
(
data
)
{
this
.
$refs
.
equipModal
.
_open
(
data
)
this
.
$refs
.
equipModal
.
_open
(
data
)
},
},
...
...
pages/soil-test-manage/test-data-check/item-tabs/ItemRightList.vue
View file @
b1461a2b
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
</template>
</template>
<
script
>
<
script
>
import
Global
from
'../../../../api/config'
import
Global
from
'../../../../api/config'
import
{
soilTest
}
from
'../../../../api'
import
{
soil
Report
,
soil
Test
}
from
'../../../../api'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
EquipManage
from
'../EquipManage'
import
EquipManage
from
'../EquipManage'
// import SelectOriTempRecord from '../SelectOriTempRecord'
// import SelectOriTempRecord from '../SelectOriTempRecord'
...
@@ -176,9 +176,8 @@ export default {
...
@@ -176,9 +176,8 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
switch
(
res
)
{
switch
(
res
)
{
case
'查看原始记录'
:
case
'查看原始记录'
:
console
.
log
(
data
)
if
(
data
.
recorded
===
'是'
)
{
if
(
data
.
recordId
)
{
this
.
_recordLook
(
data
)
this
.
_viewRecord
(
data
.
recordId
)
}
else
{
}
else
{
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
}
}
...
@@ -192,6 +191,29 @@ export default {
...
@@ -192,6 +191,29 @@ export default {
}
}
})
})
},
},
_recordLook
(
data
)
{
if
(
data
.
objectKey
)
{
this
.
_reportMakeLook
(
data
)
}
else
{
this
.
_viewRecord
(
data
.
recordId
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
soilReport
.
getExcelOriginalRecord
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_equipManage
(
data
)
{
_equipManage
(
data
)
{
this
.
$refs
.
equipModal
.
_open
(
data
)
this
.
$refs
.
equipModal
.
_open
(
data
)
},
},
...
...
pages/soil-test-manage/test-data-check/sample-tabs/SampleRightList.vue
View file @
b1461a2b
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</template>
</template>
<
script
>
<
script
>
import
Global
from
'../../../../api/config'
import
Global
from
'../../../../api/config'
import
{
soilTest
}
from
'../../../../api'
import
{
soil
Report
,
soil
Test
}
from
'../../../../api'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
AssignPerson
from
'../../../../components/user-info-single/assignPerson'
import
IndexManage
from
'../IndexManage'
import
IndexManage
from
'../IndexManage'
import
Reason
from
'../../../../components/base/Reason'
import
Reason
from
'../../../../components/base/Reason'
...
@@ -430,9 +430,8 @@ export default {
...
@@ -430,9 +430,8 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
switch
(
res
)
{
switch
(
res
)
{
case
'查看原始记录'
:
case
'查看原始记录'
:
console
.
log
(
data
)
if
(
data
.
recorded
===
'是'
)
{
if
(
data
.
recordId
)
{
this
.
_recordLook
(
data
)
this
.
_viewRecord
(
data
.
recordId
)
}
else
{
}
else
{
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
this
.
$Message
.
warning
(
'尚未填写原始记录'
)
}
}
...
@@ -446,6 +445,29 @@ export default {
...
@@ -446,6 +445,29 @@ export default {
}
}
})
})
},
},
_recordLook
(
data
)
{
if
(
data
.
objectKey
)
{
this
.
_reportMakeLook
(
data
)
}
else
{
this
.
_viewRecord
(
data
.
recordId
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
const
result
=
await
soilReport
.
getExcelOriginalRecord
(
data
.
id
)
if
(
result
)
{
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_equipManage
(
data
)
{
_equipManage
(
data
)
{
this
.
$refs
.
equipModal
.
_open
(
data
)
this
.
$refs
.
equipModal
.
_open
(
data
)
},
},
...
...
pages/soil-test-manage/test-input/item-tabs/ItemRightList.vue
View file @
b1461a2b
...
@@ -227,7 +227,6 @@ export default {
...
@@ -227,7 +227,6 @@ export default {
}
}
},
},
_reportMakeLook
:
async
function
(
data
)
{
_reportMakeLook
:
async
function
(
data
)
{
console
.
log
(
data
)
const
result
=
await
soilReport
.
getExcelOriginalRecord
(
data
.
id
)
const
result
=
await
soilReport
.
getExcelOriginalRecord
(
data
.
id
)
if
(
result
)
{
if
(
result
)
{
this
.
_viewReport
(
result
)
this
.
_viewReport
(
result
)
...
@@ -256,6 +255,7 @@ export default {
...
@@ -256,6 +255,7 @@ export default {
ids
:
this
.
selectIds
.
join
(
','
),
ids
:
this
.
selectIds
.
join
(
','
),
templateId
:
data
.
id
templateId
:
data
.
id
})
})
this
.
$refs
.
pageTable
.
_hideLoading
()
if
(
result
)
{
if
(
result
)
{
await
this
.
_page
()
await
this
.
_page
()
if
(
result
===
null
||
result
===
undefined
)
{
if
(
result
===
null
||
result
===
undefined
)
{
...
...
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