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
dba98a21
Commit
dba98a21
authored
Jun 16, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.patzn.com/root/patzn-cloud-service-metr-web
into dev
parents
b097a930
d6311959
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
23 deletions
+40
-23
meter-sample.js
api/meter/meter-sample.js
+6
-0
DownloadTemplateImport.vue
components/import/DownloadTemplateImport.vue
+3
-2
MeterQuoteRegisterEdit.vue
.../meter-business/quote-register/MeterQuoteRegisterEdit.vue
+19
-11
MeterSampleFlow.vue
pages/meter-send/sample-flow/MeterSampleFlow.vue
+1
-1
transferListModal.vue
pages/meter-send/sample-flow/transferListModal.vue
+11
-9
No files found.
api/meter/meter-sample.js
View file @
dba98a21
...
@@ -70,6 +70,12 @@ export default {
...
@@ -70,6 +70,12 @@ export default {
http
http
.
post
(
'meter/v1/sample/submit_report_to_check?ids='
+
data
)
.
post
(
'meter/v1/sample/submit_report_to_check?ids='
+
data
)
.
then
(
res
=>
res
),
.
then
(
res
=>
res
),
submitFlow
:
data
=>
https
.
post
(
'meter/v1/sample/sample_flow'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
),
generateReport
:
data
=>
generateReport
:
data
=>
https
https
.
post
(
'meter/v1/sample/report_generate'
,
JSON
.
stringify
(
data
))
.
post
(
'meter/v1/sample/report_generate'
,
JSON
.
stringify
(
data
))
...
...
components/import/DownloadTemplateImport.vue
View file @
dba98a21
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</Spin>
</Spin>
</div>
</div>
<div>
<div>
<Button
@
click=
"_download"
v-if=
"hideDownloadBtn===undefined"
size=
"large
"
>
下载模板
</Button>
<Button
v-if=
"hideDownloadBtn===undefined"
size=
"large"
@
click=
"_download
"
>
下载模板
</Button>
</div>
</div>
<div
slot=
"footer"
class=
"btn-width"
>
<div
slot=
"footer"
class=
"btn-width"
>
...
@@ -107,9 +107,10 @@ export default {
...
@@ -107,9 +107,10 @@ export default {
_handelsuccess
(
response
,
file
,
fileList
)
{
_handelsuccess
(
response
,
file
,
fileList
)
{
// 上传成功
// 上传成功
if
(
response
.
success
)
{
if
(
response
.
success
)
{
console
.
log
(
'---response'
,
response
)
this
.
isLoad
=
false
this
.
isLoad
=
false
this
.
$Message
.
success
(
'导入成功!'
)
this
.
$Message
.
success
(
'导入成功!'
)
this
.
$emit
(
'on-result-change'
)
this
.
$emit
(
'on-result-change'
,
response
.
data
)
this
.
showModal
=
false
this
.
showModal
=
false
this
.
isDisabled
=
false
this
.
isDisabled
=
false
this
.
showError
=
false
this
.
showError
=
false
...
...
pages/meter-business/quote-register/MeterQuoteRegisterEdit.vue
View file @
dba98a21
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<Form
id=
"edit-form"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"90"
inline
>
<Form
id=
"edit-form"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"90"
inline
>
<Form-item
label=
"委托单位"
prop=
"client"
class=
"width-48"
>
<Form-item
label=
"委托单位"
prop=
"client"
class=
"width-48"
>
<AutoComplete
:value=
"formObj.client"
:down
Data=
"customerData"
@
on-result-change=
"_cusNameChange
"
<AutoComplete
:value=
"formObj.client"
:down
-data=
"customerData"
name=
"client
"
name=
"client"
placeholder=
"请输入或选择委托单位
"
placeholder=
"请输入或选择委托单位"
@
on-result-change=
"_cusNameChange
"
></AutoComplete>
></AutoComplete>
</Form-item>
</Form-item>
<Form-item
label=
"联系人"
prop=
"operation.person"
class=
"width-48"
>
<Form-item
label=
"联系人"
prop=
"operation.person"
class=
"width-48"
>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<Input
v-model=
"formObj.operation.fax"
name=
"operation.fax"
placeholder=
"请输入委托单位"
/>
<Input
v-model=
"formObj.operation.fax"
name=
"operation.fax"
placeholder=
"请输入委托单位"
/>
</Form-item>
</Form-item>
<Form-item
label=
"省、市、区"
prop=
"testedCityData"
class=
"width-48"
>
<Form-item
label=
"省、市、区"
prop=
"testedCityData"
class=
"width-48"
>
<CityNameCascader
:value=
"testedCityData"
@
on-result-change=
"_cascaderResult"
name=
"tested
"
>
<CityNameCascader
:value=
"testedCityData"
name=
"tested"
@
on-result-change=
"_cascaderResult
"
>
</CityNameCascader>
</CityNameCascader>
</Form-item>
</Form-item>
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
<Input
v-model=
"formObj.operation.email"
name=
"operation.email"
placeholder=
"请输入实验室名称"
/>
<Input
v-model=
"formObj.operation.email"
name=
"operation.email"
placeholder=
"请输入实验室名称"
/>
</Form-item>
</Form-item>
<Form-item
label=
"委托日期:"
prop=
"edate"
class=
"width-48"
>
<Form-item
label=
"委托日期:"
prop=
"edate"
class=
"width-48"
>
<Date-picker
@
on-change=
"_ctimeChange"
type=
"date"
split-panels
style=
"width:100%;
"
<Date-picker
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择委托日期
"
placeholder=
"请选择委托日期
"
></Date-picker>
@
on-change=
"_ctimeChange
"
></Date-picker>
</Form-item>
</Form-item>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick
"
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
class=
"contHide
"
class=
"contHide
"
></btn-list>
@
on-result-change=
"_btnClick
"
></btn-list>
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
<PTVXETable
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.key==='name'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-if=
"item.key==='name'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.name"
@
on-result-change=
"_judgeBasisChange"
@
click
.
native=
"_selectjudgeBasis(scope.$rowIndex)"
blur
placeholder=
"请输入或选择样品名称
"
<el-input
v-model=
"scope.row.name"
blur
placeholder=
"请输入或选择样品名称"
@
on-result-change=
"_judgeBasisChange"
@
click
.
native=
"_selectjudgeBasis(scope.$rowIndex)
"
></el-input>
></el-input>
</div>
</div>
<div
v-if=
"item.key==='spec'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-if=
"item.key==='spec'"
@
click
.
stop=
"_handleRow(scope)"
>
...
@@ -94,9 +94,9 @@
...
@@ -94,9 +94,9 @@
<div
v-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
<el-input
v-model=
"scope.row.quantity"
v-model=
"scope.row.quantity"
@
keydown
.
native=
"channelInputLimit"
type=
"number"
type=
"number"
placeholder=
"请输入或选择数量"
placeholder=
"请输入或选择数量"
@
keydown
.
native=
"channelInputLimit"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -108,8 +108,8 @@
...
@@ -108,8 +108,8 @@
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
></modal-footer>
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
></modal-footer>
</div>
</div>
</Modal>
</Modal>
<EditModal
ref=
"EditModal"
@
on-result-change=
"_backData"
is-change
/>
<EditModal
ref=
"EditModal"
is-change
@
on-result-change=
"_backData"
/>
<importModal
ref=
"importModal"
aptitude-item
></importModal>
<importModal
ref=
"importModal"
aptitude-item
@
on-result-change=
"_inputBack"
></importModal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -347,6 +347,14 @@ export default {
...
@@ -347,6 +347,14 @@ export default {
console
.
log
(
data
)
console
.
log
(
data
)
console
.
log
(
this
.
getPage
.
records
)
console
.
log
(
this
.
getPage
.
records
)
},
},
_inputBack
(
data
)
{
if
(
undefined
!==
data
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
this
.
getPage
.
records
.
push
(
data
[
i
])
}
}
},
_add
()
{
_add
()
{
const
data
=
{
const
data
=
{
name
:
''
,
name
:
''
,
...
...
pages/meter-send/sample-flow/MeterSampleFlow.vue
View file @
dba98a21
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</div>
</div>
<MeterPersonItemTaskManage
ref=
"personModal"
></MeterPersonItemTaskManage>
<MeterPersonItemTaskManage
ref=
"personModal"
></MeterPersonItemTaskManage>
<personModal
ref=
"personModal"
></personModal>
<personModal
ref=
"personModal"
></personModal>
<ListModal
ref=
"ListModal"
></ListModal>
<ListModal
ref=
"ListModal"
@
on-result-change=
"_page"
></ListModal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
...
pages/meter-send/sample-flow/transferListModal.vue
View file @
dba98a21
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
<!--
<Input
v-model=
"scope.row.person"
name=
"person"
placeholder=
"请输入流转人"
style=
"width: 100px;"
/>
-->
<!--
<Input
v-model=
"scope.row.person"
name=
"person"
placeholder=
"请输入流转人"
style=
"width: 100px;"
/>
-->
<Input
<Input
v-model=
"scope.row.flower"
v-model=
"scope.row.flower"
@
click
.
native=
"_selectStaff(scope.$index)"
readonly=
"readonly"
readonly=
"readonly"
placeholder=
"请选择人员"
placeholder=
"请选择人员"
@
click
.
native=
"_selectStaff(scope.$index)"
/>
/>
</span>
</span>
<span
v-else-if=
"item.key==='flowTime'"
>
<span
v-else-if=
"item.key==='flowTime'"
>
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
/>
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
/>
</div>
</div>
</Modal>
</Modal>
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userData"
is-change
/>
<UserInfo
ref=
"userModal"
is-change
@
on-result-change=
"_userData"
/>
</div>
</div>
</template>
</template>
...
@@ -75,6 +75,7 @@
...
@@ -75,6 +75,7 @@
import
UserInfo
from
'../../../components/user-info-single/assignPerson'
import
UserInfo
from
'../../../components/user-info-single/assignPerson'
// import { drugSample } from '../../api'
// import { drugSample } from '../../api'
import
Global
from
'../../../api/config'
import
Global
from
'../../../api/config'
import
{
meterSample
}
from
'../../../api'
export
default
{
export
default
{
name
:
'TransferListModal'
,
name
:
'TransferListModal'
,
...
@@ -185,6 +186,7 @@ export default {
...
@@ -185,6 +186,7 @@ export default {
const
object
=
data
[
i
]
const
object
=
data
[
i
]
const
obj
=
{}
const
obj
=
{}
// obj.sampleId = object.id
// obj.sampleId = object.id
obj
.
id
=
object
.
id
obj
.
code
=
object
.
code
obj
.
code
=
object
.
code
obj
.
name
=
object
.
name
obj
.
name
=
object
.
name
obj
.
spec
=
object
.
spec
obj
.
spec
=
object
.
spec
...
@@ -193,7 +195,7 @@ export default {
...
@@ -193,7 +195,7 @@ export default {
obj
.
flower
=
user
.
realname
obj
.
flower
=
user
.
realname
obj
.
flowerId
=
user
.
userId
obj
.
flowerId
=
user
.
userId
obj
.
flowTime
=
time
obj
.
flowTime
=
time
obj
.
flowQuantity
=
1
obj
.
flowQuantity
=
object
.
quantity
this
.
getPage
.
records
.
push
(
obj
)
this
.
getPage
.
records
.
push
(
obj
)
}
}
// this.$refs.pageTable._initTable()
// this.$refs.pageTable._initTable()
...
@@ -217,12 +219,12 @@ export default {
...
@@ -217,12 +219,12 @@ export default {
console
.
log
(
data
)
console
.
log
(
data
)
},
},
_flow
:
async
function
(
data
)
{
_flow
:
async
function
(
data
)
{
// const result = await drugSample.submitFlow({ sampleFlows
: data })
const
result
=
await
meterSample
.
submitFlow
({
sampleVOList
:
data
})
//
if (result) {
if
(
result
)
{
//
this.showListModal = false
this
.
showListModal
=
false
//
this.$message.success('流转成功')
this
.
$message
.
success
(
'流转成功'
)
//
this.$emit('on-result-change')
this
.
$emit
(
'on-result-change'
)
//
}
}
}
}
}
}
}
}
...
...
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