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
f1c2d013
Commit
f1c2d013
authored
Nov 02, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
土工试验Lims
parent
5240f78c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
57 deletions
+1
-57
Preparation.vue
pages/soil-sample-manage/sample-preparation/Preparation.vue
+1
-57
No files found.
pages/soil-sample-manage/sample-preparation/Preparation.vue
View file @
f1c2d013
...
...
@@ -344,46 +344,6 @@ export default {
this
.
showModal
=
false
this
.
_hideLoading
()
},
_changeMic
()
{
const
preList
=
[]
for
(
let
i
=
0
;
i
<
this
.
getPage
.
records
.
length
;
i
++
)
{
const
obj
=
{
groupName
:
this
.
getPage
.
records
[
i
].
groupName
,
groupId
:
this
.
getPage
.
records
[
i
].
groupId
,
sampleId
:
this
.
getPage
.
records
[
i
].
sampleId
,
itemName
:
this
.
getPage
.
records
[
i
].
itemName
,
resultQuantity
:
this
.
getPage
.
records
[
i
].
resultQuantity
,
preparationWay
:
this
.
getPage
.
records
[
i
].
preparationWay
,
unit
:
this
.
getPage
.
records
[
i
].
unit
,
remark
:
this
.
getPage
.
records
[
i
].
remark
,
resultState
:
this
.
getPage
.
records
[
i
].
resultState
,
saveWay
:
this
.
getPage
.
records
[
i
].
saveWay
,
pack
:
this
.
getPage
.
records
[
i
].
pack
,
storePlace
:
this
.
getPage
.
records
[
i
].
storePlace
,
preparationDate
:
this
.
getPage
.
records
[
i
].
preparationDate
,
sampleQuantity
:
this
.
getPage
.
records
[
i
].
sampleQuantity
,
preparationPerson
:
this
.
getPage
.
records
[
i
].
preparationPerson
,
preparationPersonId
:
this
.
getPage
.
records
[
i
].
preparationPersonId
}
if
(
this
.
getPage
.
records
[
i
].
id
)
{
obj
.
id
=
this
.
getPage
.
records
[
i
].
id
}
preList
.
push
(
obj
)
}
this
.
$store
.
dispatch
(
'FoodSamplePreparation/saveBatch'
,
{
foodSamplePreparationList
:
preList
,
flag
:
1
})
.
then
(()
=>
{
if
(
this
.
$store
.
state
.
FoodSamplePreparation
.
success
)
{
this
.
showModal
=
false
this
.
$Message
.
success
(
'操作成功'
)
this
.
$emit
(
'on-result-change'
)
}
this
.
$refs
.
footerModal
.
_hideLoading
()
})
},
_ok
()
{
console
.
log
(
this
.
getPage
.
records
)
const
prepareList
=
[]
...
...
@@ -396,22 +356,6 @@ export default {
return
false
}
this
.
save
({
prepareList
:
prepareList
})
// const preList = []
// for (let i = 0; i
<
this
.
getPage
.
records
.
length
;
i
++
)
{
// const reg = /^[0-9]+([.]{1}[0-9]+){0,1}$/
// if (!reg.test(this.getPage.records[i].resultQuantity)) {
// this.$Message.warning('制备数量请输入数字')
// this._hideLoading()
// return
// }
// const obj = {
// groupName: this.getPage.records[i].groupName
// }
// if (this.getPage.records[i].id) {
// obj.id = this.getPage.records[i].id
// }
// preList.push(obj)
// }
},
save
:
async
function
(
data
)
{
const
result
=
await
soilEntrust
.
savePrepare
(
data
)
...
...
@@ -496,7 +440,7 @@ export default {
'58.87mm'
,
'24.74mm'
,
'QRCode'
,
data
[
i
].
sampleCode
+
'-'
+
data
[
i
].
group
Name
data
[
i
].
sampleCode
+
'-'
+
data
[
i
].
group
Id
)
LODOP
.
ADD_PRINT_TEXT
(
130
,
...
...
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