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
8fa653bd
Commit
8fa653bd
authored
Jun 12, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了出检委托
parent
ab4ea64f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
649 additions
and
9 deletions
+649
-9
MeterGoOutEntrustFinish.vue
pages/meter-entrust/go-out-test/MeterGoOutEntrustFinish.vue
+265
-0
MeterGoOutEntrustHis.vue
pages/meter-entrust/go-out-test/MeterGoOutEntrustHis.vue
+265
-0
MeterGoOutEntrustIndex.vue
pages/meter-entrust/go-out-test/MeterGoOutEntrustIndex.vue
+41
-0
MeterGoOutTestEdit.vue
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
+76
-7
meter-routes.js
router/meter-routes.js
+2
-2
No files found.
pages/meter-entrust/go-out-test/MeterGoOutEntrustFinish.vue
0 → 100644
View file @
8fa653bd
<
template
>
<div>
<!--内容-->
<div
class=
"layout-content-padding"
>
<div
class=
"layout-content-main"
>
<Row>
<!--查询-->
<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>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary"
>
搜索
</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>
</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"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:field=
"item.key"
:title=
"item.title"
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
</PTVXETable>
</Col>
</Row>
</div>
</div>
<MeterSubcontractorEdit
ref=
"editSubcontractorModal"
@
on-result-change=
"_formSearch"
></MeterSubcontractorEdit>
</div>
</template>
<
script
>
import
{
meterEntrust
}
from
'../../../api'
import
MeterSubcontractorEdit
from
'./MeterGoOutTestEdit'
export
default
{
components
:
{
MeterSubcontractorEdit
},
data
()
{
return
{
currentComponent
:
''
,
formId
:
'meterSubcontractorFormId'
,
searchOpen
:
false
,
btn
:
[
{
type
:
'success'
,
id
:
'meter-go-out-entrust-add-btn'
,
name
:
'添加'
},
{
type
:
'success'
,
id
:
'meter-go-out-entrust-submit-btn'
,
name
:
'提交'
}
],
iconMsg
:
[
{
type
:
'md-create'
,
id
:
''
,
name
:
'编辑'
},
{
type
:
'ios-beaker'
,
id
:
''
,
name
:
'管理样品'
},
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'操作日志'
}
],
formObj
:
{
name
:
undefined
,
aptitude
:
undefined
},
selectIds
:
[],
getPage
:
{},
pageColumns
:
[
{
title
:
'委托单位'
,
key
:
'client'
,
width
:
200
},
{
title
:
'联系人'
,
key
:
'person'
,
width
:
120
},
{
title
:
'联系电话'
,
key
:
'tel'
,
width
:
120
},
{
title
:
'传真'
,
key
:
'fax'
,
width
:
120
},
{
title
:
'详细地址'
,
key
:
'address'
,
width
:
250
},
{
title
:
'邮编'
,
key
:
'postcode'
},
{
title
:
'E-mail'
,
key
:
'email'
,
width
:
120
},
{
title
:
'委托日期'
,
key
:
'edate'
,
width
:
120
},
{
title
:
'费用合计'
,
key
:
'fee'
,
width
:
120
},
{
title
:
'合同号'
,
key
:
'contractCode'
,
width
:
120
},
{
title
:
'备注'
,
key
:
'remark'
}
]
}
},
computed
:
{
tableHeight
:
function
()
{
if
(
this
.
searchOpen
)
{
return
this
.
$tableHeight
(
'search'
)
}
else
{
return
this
.
$tableHeight
(
'noSearch'
)
}
}
},
mounted
()
{
this
.
_page
()
},
methods
:
{
_modalResult
()
{
if
(
this
.
currentComponent
===
'FoodSubcontracterEdit'
)
{
this
.
_page
()
}
},
_btnClick
(
msg
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
case
'添加'
:
this
.
_editModal
(
false
)
break
case
'提交'
:
this
.
_submitToReview
()
break
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
break
}
})
},
_submitToReview
()
{
this
.
_submitByContractIds
(
'委托评审'
)
},
_submitByContractIds
(
cont
)
{
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要把这 '
+
ids
.
length
+
' 条记录提交到'
+
cont
+
'?'
,
onOk
:
()
=>
{
const
result
=
meterEntrust
.
submit
(
ids
)
if
(
result
)
{
console
.
log
(
result
)
}
}
})
}
},
_iconClick
(
res
,
data
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
case
'编辑'
:
this
.
_editModal
(
true
,
data
.
id
)
break
case
'资质项目'
:
this
.
_itemModal
(
data
.
id
)
break
case
'附件'
:
this
.
_upload
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
case
'操作日志'
:
this
.
_record
(
data
.
id
)
break
}
})
},
_record
(
id
)
{
this
.
$refs
.
refModal
.
_open
(
id
)
},
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
case
'page'
:
this
.
getPage
=
this
.
$store
.
state
.
FoodSubcontracter
.
page
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
case
'selectIds'
:
this
.
selectIds
=
data
break
case
'changeSize'
:
this
.
_page
()
break
}
},
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
meterEntrust
.
pageGoOutEntrust
(
this
.
formObj
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
}
},
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
// 删除
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
// 编辑&添加
_editModal
(
edit
,
id
)
{
if
(
edit
)
{
// 编辑
this
.
_getById
(
id
)
}
else
{
// 添加
this
.
$refs
.
editSubcontractorModal
.
_open
()
}
},
// 追加项目
_itemModal
(
data
)
{
this
.
$refs
.
refModal
.
_open
(
data
)
},
_upload
(
id
)
{
// 上传文件
this
.
$refs
.
refModal
.
_open
(
id
,
'subcontractorId'
)
},
_getById
:
async
function
(
id
)
{
const
result
=
await
meterEntrust
.
getVOById
(
id
)
if
(
result
)
{
this
.
$refs
.
editSubcontractorModal
.
_openEdit
(
result
)
}
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
meterEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
}
}
}
</
script
>
pages/meter-entrust/go-out-test/MeterGoOutEntrustHis.vue
0 → 100644
View file @
8fa653bd
<
template
>
<div>
<!--内容-->
<div
class=
"layout-content-padding"
>
<div
class=
"layout-content-main"
>
<Row>
<!--查询-->
<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>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary"
>
搜索
</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>
</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"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
:field=
"item.key"
:title=
"item.title"
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
</PTVXETable>
</Col>
</Row>
</div>
</div>
<MeterSubcontractorEdit
ref=
"editSubcontractorModal"
@
on-result-change=
"_formSearch"
></MeterSubcontractorEdit>
</div>
</template>
<
script
>
import
{
meterEntrust
}
from
'../../../api'
import
MeterSubcontractorEdit
from
'./MeterGoOutTestEdit'
export
default
{
components
:
{
MeterSubcontractorEdit
},
data
()
{
return
{
currentComponent
:
''
,
formId
:
'meterSubcontractorFormId'
,
searchOpen
:
false
,
btn
:
[
{
type
:
'success'
,
id
:
'meter-go-out-entrust-add-btn'
,
name
:
'添加'
},
{
type
:
'success'
,
id
:
'meter-go-out-entrust-submit-btn'
,
name
:
'提交'
}
],
iconMsg
:
[
{
type
:
'md-create'
,
id
:
''
,
name
:
'编辑'
},
{
type
:
'ios-beaker'
,
id
:
''
,
name
:
'管理样品'
},
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'操作日志'
}
],
formObj
:
{
name
:
undefined
,
aptitude
:
undefined
},
selectIds
:
[],
getPage
:
{},
pageColumns
:
[
{
title
:
'委托单位'
,
key
:
'client'
,
width
:
200
},
{
title
:
'联系人'
,
key
:
'person'
,
width
:
120
},
{
title
:
'联系电话'
,
key
:
'tel'
,
width
:
120
},
{
title
:
'传真'
,
key
:
'fax'
,
width
:
120
},
{
title
:
'详细地址'
,
key
:
'address'
,
width
:
250
},
{
title
:
'邮编'
,
key
:
'postcode'
},
{
title
:
'E-mail'
,
key
:
'email'
,
width
:
120
},
{
title
:
'委托日期'
,
key
:
'edate'
,
width
:
120
},
{
title
:
'费用合计'
,
key
:
'fee'
,
width
:
120
},
{
title
:
'合同号'
,
key
:
'contractCode'
,
width
:
120
},
{
title
:
'备注'
,
key
:
'remark'
}
]
}
},
computed
:
{
tableHeight
:
function
()
{
if
(
this
.
searchOpen
)
{
return
this
.
$tableHeight
(
'search'
)
}
else
{
return
this
.
$tableHeight
(
'noSearch'
)
}
}
},
mounted
()
{
this
.
_page
()
},
methods
:
{
_modalResult
()
{
if
(
this
.
currentComponent
===
'FoodSubcontracterEdit'
)
{
this
.
_page
()
}
},
_btnClick
(
msg
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
case
'添加'
:
this
.
_editModal
(
false
)
break
case
'提交'
:
this
.
_submitToReview
()
break
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
break
}
})
},
_submitToReview
()
{
this
.
_submitByContractIds
(
'委托评审'
)
},
_submitByContractIds
(
cont
)
{
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要把这 '
+
ids
.
length
+
' 条记录提交到'
+
cont
+
'?'
,
onOk
:
()
=>
{
const
result
=
meterEntrust
.
submit
(
ids
)
if
(
result
)
{
console
.
log
(
result
)
}
}
})
}
},
_iconClick
(
res
,
data
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
case
'编辑'
:
this
.
_editModal
(
true
,
data
.
id
)
break
case
'资质项目'
:
this
.
_itemModal
(
data
.
id
)
break
case
'附件'
:
this
.
_upload
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
case
'操作日志'
:
this
.
_record
(
data
.
id
)
break
}
})
},
_record
(
id
)
{
this
.
$refs
.
refModal
.
_open
(
id
)
},
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
case
'page'
:
this
.
getPage
=
this
.
$store
.
state
.
FoodSubcontracter
.
page
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
case
'selectIds'
:
this
.
selectIds
=
data
break
case
'changeSize'
:
this
.
_page
()
break
}
},
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
meterEntrust
.
pageGoOutEntrust
(
this
.
formObj
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
}
},
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
// 删除
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
// 编辑&添加
_editModal
(
edit
,
id
)
{
if
(
edit
)
{
// 编辑
this
.
_getById
(
id
)
}
else
{
// 添加
this
.
$refs
.
editSubcontractorModal
.
_open
()
}
},
// 追加项目
_itemModal
(
data
)
{
this
.
$refs
.
refModal
.
_open
(
data
)
},
_upload
(
id
)
{
// 上传文件
this
.
$refs
.
refModal
.
_open
(
id
,
'subcontractorId'
)
},
_getById
:
async
function
(
id
)
{
const
result
=
await
meterEntrust
.
getVOById
(
id
)
if
(
result
)
{
this
.
$refs
.
editSubcontractorModal
.
_openEdit
(
result
)
}
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
meterEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
}
}
}
</
script
>
pages/meter-entrust/go-out-test/MeterGoOutEntrustIndex.vue
0 → 100644
View file @
8fa653bd
<
template
>
<div>
<div
class=
"layout-content-padding"
>
<div
class=
"layout-content-main"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"待完成"
name=
"wait"
>
<MeterGoOutEntrust
ref=
"waitTabs"
></MeterGoOutEntrust>
</el-tab-pane>
<el-tab-pane
label=
"已完成"
name=
"finish"
>
<MeterGoOutEntrustFinish
ref=
"finishTabs"
></MeterGoOutEntrustFinish>
</el-tab-pane>
<el-tab-pane
label=
"历史记录"
name=
"his"
>
<MeterGoOutEntrustHis
ref=
"hisTabs"
></MeterGoOutEntrustHis>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</
template
>
<
script
>
import
MeterGoOutEntrust
from
'./MeterGoOutEntrust'
import
MeterGoOutEntrustFinish
from
'./MeterGoOutEntrustFinish'
import
MeterGoOutEntrustHis
from
'./MeterGoOutEntrustHis'
export
default
{
name
:
'MeterGoOutEntrustIndex'
,
components
:
{
MeterGoOutEntrust
,
MeterGoOutEntrustFinish
,
MeterGoOutEntrustHis
},
data
()
{
return
{
activeName
:
'wait'
}
}
}
</
script
>
<
style
scoped
>
</
style
>
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
View file @
8fa653bd
...
@@ -5,8 +5,13 @@
...
@@ -5,8 +5,13 @@
<div>
<div>
<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=
"firsted"
class=
"width-48"
>
-->
<!--
<Input
v-model=
"formObj.firsted"
name=
"firsted"
placeholder=
"委托方是否第一次送检"
/>
-->
<!--
</Form-item>
-->
<Form-item
label=
"委托方是否第一次送检"
prop=
"firsted"
class=
"width-48"
>
<Form-item
label=
"委托方是否第一次送检"
prop=
"firsted"
class=
"width-48"
>
<Input
v-model=
"formObj.firsted"
name=
"firsted"
placeholder=
"委托方是否第一次送检"
/>
<Radio-group
v-model=
"formObj.firsted"
>
<Radio
v-for=
"item in judgeType"
:label=
"item.value"
:key=
"item.value"
>
{{
item
.
name
}}
</Radio>
</Radio-group>
</Form-item>
</Form-item>
<Form-item
label=
"委托单位"
prop=
"client"
class=
"width-48"
>
<Form-item
label=
"委托单位"
prop=
"client"
class=
"width-48"
>
<Input
v-model=
"formObj.client"
name=
"client"
placeholder=
"请输入委托单位"
/>
<Input
v-model=
"formObj.client"
name=
"client"
placeholder=
"请输入委托单位"
/>
...
@@ -21,7 +26,9 @@
...
@@ -21,7 +26,9 @@
<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=
"name"
class=
"width-48"
>
<Form-item
label=
"省、市、区"
prop=
"name"
class=
"width-48"
>
<Input
v-model=
"formObj.client"
name=
"name"
placeholder=
"请输入委托单位"
/>
<!--
<Input
v-model=
"formObj.client"
name=
"name"
placeholder=
"请输入委托单位"
/>
-->
<CityNameCascader
:value=
"testedCityData"
@
on-result-change=
"_cascaderResult"
name=
"tested"
>
</CityNameCascader>
</Form-item>
</Form-item>
<Form-item
label=
"街道"
prop=
"street"
class=
"width-48"
>
<Form-item
label=
"街道"
prop=
"street"
class=
"width-48"
>
<Input
v-model=
"formObj.street"
name=
"street"
placeholder=
"请输入委托单位"
/>
<Input
v-model=
"formObj.street"
name=
"street"
placeholder=
"请输入委托单位"
/>
...
@@ -47,7 +54,7 @@
...
@@ -47,7 +54,7 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<!--
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:showSearchBtn=
"false"
@
on-result-change=
"_btnClick"
--
>
<!--
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:showSearchBtn=
"false"
@
on-result-change=
"_btnClick"
--
>
<!-- class="contHide">
</btn-list>
-->
<!-- class="contHide">
</btn-list>
-->
<Button
type=
"success"
@
click=
"_add()
"
>
添加
</Button>
<Button
@
click=
"_add()"
type=
"success
"
>
添加
</Button>
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
<PTVXETable
...
@@ -69,7 +76,7 @@
...
@@ -69,7 +76,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"
blur
placeholder=
"请输入或选择样品名称"
@
on-result-change=
"_judgeBasisChange"
@
click
.
native=
"_selectjudgeBasis(scope.$rowIndex)
"
<el-input
v-model=
"scope.row.name"
@
on-result-change=
"_judgeBasisChange"
@
click
.
native=
"_selectjudgeBasis(scope.$rowIndex)"
blur
placeholder=
"请输入或选择样品名称
"
></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)"
>
...
@@ -90,9 +97,9 @@
...
@@ -90,9 +97,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
>
...
@@ -103,7 +110,7 @@
...
@@ -103,7 +110,7 @@
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<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>
<EditModal
ref=
"EditModal"
is-change
@
on-result-change=
"_backData"
/>
<EditModal
ref=
"EditModal"
@
on-result-change=
"_backData"
is-change
/>
</Modal>
</Modal>
</div>
</div>
</template>
</template>
...
@@ -112,16 +119,29 @@
...
@@ -112,16 +119,29 @@
* 添加编辑分包商
* 添加编辑分包商
*/
*/
import
{
lmsBaseDict
,
meterEntrust
}
from
'../../../api'
import
{
lmsBaseDict
,
meterEntrust
}
from
'../../../api'
import
CityNameCascader
from
'../../../components/base/CityNameCascader'
import
EditModal
from
'./EditModal'
import
EditModal
from
'./EditModal'
export
default
{
export
default
{
components
:
{
EditModal
},
components
:
{
EditModal
,
CityNameCascader
},
data
()
{
data
()
{
return
{
return
{
formId
:
'meterSendTestEditFormId'
,
formId
:
'meterSendTestEditFormId'
,
getPage
:
{
getPage
:
{
records
:
[]
records
:
[]
},
},
testedCityData
:
[],
testedTemp
:
{
testedName
:
''
,
testedContactor
:
''
,
testedContactorTel
:
''
,
testedTel
:
''
,
testedProvince
:
''
,
testedCity
:
''
,
testedCounty
:
''
,
testedStreet
:
''
},
judgeType
:
[{
value
:
1
,
name
:
'是'
},
{
value
:
0
,
name
:
'否'
}],
iconMsg
:
[
iconMsg
:
[
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'编辑'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'编辑'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'删除'
}
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'删除'
}
...
@@ -150,6 +170,7 @@ export default {
...
@@ -150,6 +170,7 @@ export default {
modalTitle
:
''
,
modalTitle
:
''
,
subcontractorId
:
''
,
subcontractorId
:
''
,
formObj
:
{
formObj
:
{
firsted
:
1
,
client
:
''
,
client
:
''
,
linkman
:
''
,
linkman
:
''
,
tel
:
''
,
tel
:
''
,
...
@@ -187,6 +208,13 @@ export default {
...
@@ -187,6 +208,13 @@ export default {
aptitudeData
:
[]
aptitudeData
:
[]
}
}
},
},
created
()
{
this
.
$set
(
this
.
formObj
,
'tested'
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
testedTemp
))
)
},
methods
:
{
methods
:
{
_backData
(
data
)
{
_backData
(
data
)
{
console
.
log
(
typeof
this
.
index
)
console
.
log
(
typeof
this
.
index
)
...
@@ -201,6 +229,47 @@ export default {
...
@@ -201,6 +229,47 @@ export default {
this
.
index
=
index
this
.
index
=
index
this
.
$refs
.
EditModal
.
_open
()
this
.
$refs
.
EditModal
.
_open
()
},
},
_cascaderResult
(
name
,
data
,
msg
)
{
switch
(
name
)
{
case
'cus'
:
this
.
_casChange
(
data
,
msg
)
break
case
'tested'
:
this
.
_testedChange
(
data
,
msg
)
break
}
},
_emptyProvince
()
{
this
.
cityData
=
[]
this
.
testedCityData
=
[]
this
.
formObj
.
tested
.
testedProvince
=
''
this
.
formObj
.
tested
.
testedCity
=
''
this
.
formObj
.
tested
.
testedCounty
=
''
},
_testedChange
(
data
,
msg
)
{
// 省、市、区
console
.
log
(
'数据'
)
console
.
log
(
data
)
console
.
log
(
msg
)
if
(
msg
===
'clear'
)
{
this
.
formObj
.
tested
.
testedProvince
=
''
this
.
formObj
.
tested
.
testedCity
=
''
this
.
formObj
.
tested
.
testedCounty
=
''
this
.
formObj
.
province
=
''
this
.
formObj
.
city
=
''
this
.
formObj
.
county
=
''
this
.
testedCityData
=
[]
}
else
{
this
.
formObj
.
tested
.
testedProvince
=
data
.
value
[
0
]
this
.
formObj
.
tested
.
testedCity
=
data
.
value
[
1
]
this
.
formObj
.
tested
.
testedCounty
=
data
.
value
[
2
]
this
.
formObj
.
province
=
data
.
value
[
0
]
this
.
formObj
.
city
=
data
.
value
[
1
]
this
.
formObj
.
county
=
data
.
value
[
2
]
this
.
testedCityData
=
[
data
.
value
[
0
],
data
.
value
[
1
],
data
.
value
[
2
]]
}
},
_getJudgeBasisList
(
data
)
{
_getJudgeBasisList
(
data
)
{
const
obj
=
{
classify
:
0
}
const
obj
=
{
classify
:
0
}
if
(
data
)
{
if
(
data
)
{
...
...
router/meter-routes.js
View file @
8fa653bd
...
@@ -11,7 +11,7 @@ import MeterAptitudeManage from '../pages/meter-aptitude/manage/MeterAptitudeMan
...
@@ -11,7 +11,7 @@ import MeterAptitudeManage from '../pages/meter-aptitude/manage/MeterAptitudeMan
import
MeterAptitudeStandard
from
'../pages/meter-aptitude/standard/MeterAptitudeStandard'
import
MeterAptitudeStandard
from
'../pages/meter-aptitude/standard/MeterAptitudeStandard'
import
MeterSubcontractor
from
'../pages/meter-subcontract/subcontractor/MeterSubcontractor'
import
MeterSubcontractor
from
'../pages/meter-subcontract/subcontractor/MeterSubcontractor'
import
MeterSendEntrustIndex
from
'../pages/meter-entrust/send-test/MeterSendEntrustIndex'
import
MeterSendEntrustIndex
from
'../pages/meter-entrust/send-test/MeterSendEntrustIndex'
import
MeterGoOutEntrust
from
'../pages/meter-entrust/go-out-test/MeterGoOutEntrust
'
import
MeterGoOutEntrust
Index
from
'../pages/meter-entrust/go-out-test/MeterGoOutEntrustIndex
'
import
MeterReviewEntrust
from
'../pages/meter-review/MeterReviewEntrust'
import
MeterReviewEntrust
from
'../pages/meter-review/MeterReviewEntrust'
import
MeterSubpackageTaskIndex
from
'../pages/meter-subcontract/subpackage-task/MeterSubpackageTaskIndex'
import
MeterSubpackageTaskIndex
from
'../pages/meter-subcontract/subpackage-task/MeterSubpackageTaskIndex'
import
Blank
from
'~/pages/blank'
import
Blank
from
'~/pages/blank'
...
@@ -64,7 +64,7 @@ export default [
...
@@ -64,7 +64,7 @@ export default [
},
},
{
{
path
:
'go_out_test'
,
path
:
'go_out_test'
,
component
:
MeterGoOutEntrust
,
component
:
MeterGoOutEntrust
Index
,
meta
:
{
title
:
'出检委托登记'
}
meta
:
{
title
:
'出检委托登记'
}
},
},
{
{
...
...
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