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
8e038027
Commit
8e038027
authored
Jun 28, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整体优化
parent
cca6e3b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
36 deletions
+45
-36
MeterSubpackageInput.vue
...ter-subcontract/subpackage-input/MeterSubpackageInput.vue
+3
-7
MeterSubpackageInputHis.vue
...-subcontract/subpackage-input/MeterSubpackageInputHis.vue
+42
-29
No files found.
pages/meter-subcontract/subpackage-input/MeterSubpackageInput.vue
View file @
8e038027
...
...
@@ -8,11 +8,8 @@
<Col
span=
"24"
style=
"margin-top: 10px"
>
<Form
id=
"formId"
v-show=
"searchOpen"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"实验室名称:"
>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
name=
"name"
placeholder=
"请输入实验室名称"
clearable
/>
</Form-item>
<Form-item
class=
"search-item"
label=
"资质:"
>
<Input
v-model=
"formObj.aptitude"
@
on-enter=
"_formSearch"
name=
"aptitude"
placeholder=
"请输入资质"
clearable
/>
<Form-item
class=
"search-item"
label=
"委托单位:"
>
<Input
v-model=
"formObj.client"
@
on-enter=
"_formSearch"
name=
"name"
placeholder=
"请输入委托单位"
clearable
/>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary"
>
搜索
</Button>
...
...
@@ -94,8 +91,7 @@ export default {
}
],
formObj
:
{
name
:
undefined
,
aptitude
:
undefined
client
:
undefined
},
selectIds
:
[],
getPage
:
{},
...
...
pages/meter-subcontract/subpackage-input/MeterSubpackageInputHis.vue
View file @
8e038027
...
...
@@ -6,29 +6,26 @@
<Row>
<!--查询-->
<Col
span=
"24"
style=
"margin-top: 10px"
>
<Form
id=
"formId"
v-show=
"searchOpen
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
v-show=
"searchOpen"
id=
"formId
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"实验室名称:"
>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
name=
"name"
placeholder=
"请输入实验室名称"
clearable
/>
</Form-item>
<Form-item
class=
"search-item"
label=
"资质:"
>
<Input
v-model=
"formObj.aptitude"
@
on-enter=
"_formSearch"
name=
"aptitude"
placeholder=
"请输入资质"
clearable
/>
<Form-item
class=
"search-item"
label=
"委托单位:"
>
<Input
v-model=
"formObj.client"
name=
"name"
placeholder=
"请输入委托单位"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form>
</Col>
<!--操作-->
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick
"
class=
"contHide
"
></btn-list>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
class=
"contHide
"
@
on-result-change=
"_btnClick
"
></btn-list>
</Col>
<!--表格-->
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:loading=
"true"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
hide-checkbox
>
:get-page=
"getPage"
:icon-msg=
"iconMsg"
hide-checkbox
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
...
...
@@ -45,47 +42,56 @@
</Row>
</div>
</div>
<FileManage
ref=
"FileManage"
></FileManage>
<subSampleManage
ref=
"subSampleManage"
></subSampleManage>
<operationModal
ref=
"operationModal"
></operationModal>
</div>
</template>
<
script
>
import
{
meterEntrust
,
meterSubcontractor
}
from
'../../../api'
import
operationModal
from
'../../../components/operation/Operation'
import
subSampleManage
from
'./MeterSubSampleManage'
export
default
{
components
:
{},
components
:
{
subSampleManage
,
operationModal
},
data
()
{
return
{
currentComponent
:
''
,
formId
:
'meterSubpackageTask
His
FormId'
,
formId
:
'meterSubpackageTaskFormId'
,
searchOpen
:
false
,
btn
:
[
{
type
:
'success'
,
id
:
'meter-subcontractor-add-btn'
,
name
:
'添加'
}
// {
// // meter-review-entrust-pass-btn
// type: 'success',
// id: '',
// name: '通过'
// },
// // meter-review-entrust-back-btn
// {
// type: 'success',
// id: '',
// name: '驳回'
// }
],
iconMsg
:
[
{
type
:
'
ios-clock
'
,
type
:
'
md-paper
'
,
id
:
''
,
name
:
'编辑'
},
{
type
:
'ios-
clock
'
,
type
:
'ios-
beaker
'
,
id
:
''
,
name
:
'
资质项目
'
name
:
'
分包样品管理
'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'删除'
},
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'
ios-cloc
k'
,
type
:
'
md-boo
k'
,
id
:
''
,
name
:
'操作日志'
}
],
formObj
:
{
name
:
undefined
,
aptitude
:
undefined
client
:
undefined
},
selectIds
:
[],
getPage
:
{},
...
...
@@ -134,6 +140,9 @@ export default {
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
case
'分包样品管理'
:
this
.
subSampleManage
(
data
)
break
case
'编辑'
:
this
.
_editModal
(
true
,
data
.
id
)
break
...
...
@@ -152,8 +161,12 @@ export default {
}
})
},
subSampleManage
(
data
)
{
// 管理样品
this
.
$refs
.
subSampleManage
.
_open
(
data
.
id
)
},
_record
(
id
)
{
this
.
$refs
.
ref
Modal
.
_open
(
id
)
this
.
$refs
.
operation
Modal
.
_open
(
id
)
},
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
...
...
@@ -171,7 +184,7 @@ export default {
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
meterEntrust
.
pageS
end
Entrust
(
this
.
formObj
)
const
result
=
await
meterEntrust
.
pageS
ubpackageInput
Entrust
(
this
.
formObj
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
...
...
@@ -208,7 +221,7 @@ export default {
_upload
(
id
)
{
// 上传文件
this
.
$refs
.
refModal
.
_open
(
id
,
'subcontractorId'
)
this
.
$refs
.
FileManage
.
_open
(
id
,
'subcontractorId'
)
},
_getById
:
async
function
(
id
)
{
const
result
=
await
meterSubcontractor
.
getById
(
id
)
...
...
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