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
016dbe9c
Commit
016dbe9c
authored
Jul 15, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
87e456e2
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
475 additions
and
94 deletions
+475
-94
meter-entrust.js
api/meter/meter-entrust.js
+4
-0
meter-sample-quote.js
api/meter/meter-sample-quote.js
+4
-0
MeterContractReview.vue
pages/meter-contract/contract-review/MeterContractReview.vue
+1
-1
MeterReviewQuoteManage.vue
...meter-contract/contract-review/MeterReviewQuoteManage.vue
+374
-0
MeterGoOutTestEdit.vue
pages/meter-entrust/client-online/MeterGoOutTestEdit.vue
+4
-4
MeterCannotSub.vue
pages/meter-subcontract/cannot-sub/MeterCannotSub.vue
+5
-5
MeterCannotSubEdit.vue
pages/meter-subcontract/cannot-sub/MeterCannotSubEdit.vue
+66
-65
MeterCannotSubHis.vue
pages/meter-subcontract/cannot-sub/MeterCannotSubHis.vue
+1
-1
MeterCannotSubSampleManage.vue
...ter-subcontract/cannot-sub/MeterCannotSubSampleManage.vue
+16
-18
No files found.
api/meter/meter-entrust.js
View file @
016dbe9c
...
@@ -107,6 +107,10 @@ export default {
...
@@ -107,6 +107,10 @@ export default {
https
https
.
post
(
'meter/v1/entrust/edit_entrust'
,
JSON
.
stringify
(
data
))
.
post
(
'meter/v1/entrust/edit_entrust'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
),
.
then
(
res
=>
res
),
editOnlineDTO
:
data
=>
https
.
post
(
'meter/v1/entrust/edit_online_entrust'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
),
// 提交
// 提交
submit
:
data
=>
submit
:
data
=>
https
https
...
...
api/meter/meter-sample-quote.js
View file @
016dbe9c
...
@@ -5,6 +5,10 @@ import http from '../http'
...
@@ -5,6 +5,10 @@ import http from '../http'
export
default
{
export
default
{
// page
// page
page
:
data
=>
http
.
post
(
'meter/v1/sample_quote/page'
,
data
).
then
(
res
=>
res
),
page
:
data
=>
http
.
post
(
'meter/v1/sample_quote/page'
,
data
).
then
(
res
=>
res
),
pageInAptitude
:
data
=>
http
.
post
(
'meter/v1/sample_quote/page_in_aptitude'
,
data
).
then
(
res
=>
res
),
pageSubSample
:
data
=>
http
.
post
(
'meter/v1/sample_quote/page_out_sample'
,
data
).
then
(
res
=>
res
),
getById
:
data
=>
http
.
get
(
'meter/v1/sample_quote/'
+
data
).
then
(
res
=>
res
),
getById
:
data
=>
http
.
get
(
'meter/v1/sample_quote/'
+
data
).
then
(
res
=>
res
),
deleteById
:
data
=>
deleteById
:
data
=>
http
.
delete
(
'meter/v1/sample_quote/?ids='
+
data
).
then
(
res
=>
res
),
http
.
delete
(
'meter/v1/sample_quote/?ids='
+
data
).
then
(
res
=>
res
),
...
...
pages/meter-contract/contract-review/MeterContractReview.vue
View file @
016dbe9c
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
import
{
meterContract
}
from
'../../../api'
import
{
meterContract
}
from
'../../../api'
import
Reason
from
'../../../components/base/Reason'
import
Reason
from
'../../../components/base/Reason'
import
MeterSendOperation
from
'../MeterContractReviewOperation'
import
MeterSendOperation
from
'../MeterContractReviewOperation'
import
MeterSampleManage
from
'.
./MeterSample
QuoteManage'
import
MeterSampleManage
from
'.
/MeterReview
QuoteManage'
import
MeterSubcontractorEdit
from
'./MeterContractReviewEdit'
import
MeterSubcontractorEdit
from
'./MeterContractReviewEdit'
import
MeterSubcontractorAddEdit
from
'./MeterContractReviewAddEdit'
import
MeterSubcontractorAddEdit
from
'./MeterContractReviewAddEdit'
export
default
{
export
default
{
...
...
pages/meter-contract/contract-review/MeterReviewQuoteManage.vue
0 → 100644
View file @
016dbe9c
<
template
>
<div>
<Modal
v-model=
"showModal"
width=
"1200"
class=
"modal-footer-none"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<div>
<!--内容-->
<Row>
<!--查询-->
<Col
span=
"24"
>
<Form
id=
"formId"
:label-width=
"80"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
label=
"样品名称:"
class=
"search-item"
>
<Input
v-model=
"formObj.name"
placeholder=
"请输入样品名称"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
<Form-item
class=
"search-btn"
style=
"margin-left: -10px"
>
<Button
type=
"primary"
@
click=
"_formSearch"
>
搜索
</Button>
</Form-item>
</Form>
</Col>
<Col
span=
"24"
>
<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"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
select-data
@
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"
>
<div
v-if=
"item.detail"
><a
@
click
.
stop=
"_detailModal(scope.row.id)"
>
{{
scope
.
row
[
item
.
key
]
}}
</a></div>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
<div
v-else-if=
"item.key==='jobOut'"
>
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
</div>
<div
v-else-if=
"item.key==='type'"
>
<span
v-if=
"scope.row[item.key]===0"
>
检定
</span>
<span
v-if=
"scope.row[item.key]===1"
>
校准
</span>
<span
v-if=
"scope.row[item.key]===2"
>
外观检查
</span>
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</vxe-table-column>
</PTVXETable>
</Col>
</Row>
</div>
</Modal>
</div>
</template>
<
script
>
import
{
meterSampleQuote
}
from
'../../../api'
export
default
{
components
:
{
// FoodSampleGovernDetail,
// CopyModal,
// FoodSampleGovernLYEdits
},
data
()
{
return
{
currentComponent
:
''
,
// btn: [
// {type: 'success', id: '', name: '添加', componentName: 'FoodSampleGovernEdit'},
// {id: 'food-gov-sample-batch-add', name: '批量添加', componentName: 'FoodSampleGovernBatchAdd'},
// {id: '', name: '导入样品', componentName: 'FoodImportSample'},
// {id: '', name: '导入检测项目', componentName: 'RelItem'},
// {id: '', name: '导入检测项目包', componentName: 'RelItemPackage'},
// {id: '', name: '复制历史样品检测项目', componentName: 'CopyHisItem'},
// {id: '', name: '删除'},
// ],
iconMsg
:
[
// { type: 'compose', id: '', name: '编辑' },
// { type: 'ios-copy', id: '', name: '复制', componentName: 'CopyModal' },
// { type: 'trash-a', id: '', name: '删除' }
],
btn
:
[
// {
// // meter-review-entrust-pass-btn
// type: 'success',
// id: '',
// name: '分包'
// },
// // meter-review-entrust-back-btn
// {
// type: 'success',
// id: '',
// name: '取消分包'
// }
],
options
:
[
{
name
:
'检定'
},
{
name
:
'校准'
},
{
name
:
'外观检查'
}
],
searchOpen
:
false
,
formId
:
'meterReviewSampleManageFormId'
,
showModal
:
false
,
modalTitle
:
'管理样品'
,
selectIds
:
[],
selectData
:
[],
getPage
:
{},
pageColumns
:
[
{
title
:
'名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'型号'
,
key
:
'spec'
},
{
title
:
'数量'
,
key
:
'quantity'
},
{
title
:
'技术参数'
,
key
:
'technicalParameter'
},
{
title
:
'生产厂家'
,
key
:
'manufacturer'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'上次检定校准日期'
,
key
:
'lastTime'
,
date
:
true
},
{
title
:
'收费单位'
,
key
:
'unit'
},
{
title
:
'单价/元'
,
key
:
'price'
},
{
title
:
'总价/元'
,
key
:
'totalPrice'
},
{
title
:
'备注'
,
key
:
'remark'
}
],
dateList
:
[],
formObj
:
{
contractId
:
undefined
,
name
:
undefined
,
code
:
undefined
,
type
:
undefined
}
}
},
computed
:
{
tableHeight
:
function
()
{
return
this
.
$tableHeight
(
'tableModal'
)
}
},
methods
:
{
_dateChange
(
data
)
{
this
.
formObj
.
ctimeBegin
=
data
[
0
]
this
.
formObj
.
ctimeEnd
=
data
[
1
]
},
_btnClick
(
msg
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
case
'分包'
:
this
.
_subpackageSample
()
break
case
'导入检测项目'
:
this
.
_importItem
()
break
case
'导入检测项目包'
:
this
.
_importItemPackage
()
break
case
'复制历史样品检测项目'
:
this
.
_copyHisItem
()
break
case
'删除'
:
this
.
_deleteSelected
()
break
}
})
},
_iconClick
(
res
,
data
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
case
'编辑'
:
localStorage
.
setItem
(
'type'
,
data
.
type
)
if
(
data
.
type
===
2
)
{
this
.
_editLY
(
data
.
id
)
// 粮油的编辑页
}
else
{
this
.
_editModal
(
true
,
data
.
id
)
}
break
case
'复制'
:
this
.
_copy
(
data
.
id
,
data
.
type
)
break
case
'删除'
:
this
.
_deleteById
(
data
.
id
)
break
case
'检测项目'
:
this
.
_itemDetail
(
data
.
id
)
break
}
})
},
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
case
'selectData'
:
const
selectIds
=
[]
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
selectIds
.
push
(
data
[
i
].
id
)
}
this
.
selectIds
=
selectIds
this
.
selectData
=
data
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
case
'changeSize'
:
this
.
_page
()
break
}
},
_open
(
id
)
{
this
.
formObj
.
contractId
=
id
this
.
showModal
=
true
this
.
_page
()
},
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
meterSampleQuote
.
pageInAptitude
(
this
.
formObj
)
if
(
result
)
{
this
.
getPage
=
result
this
.
$refs
.
pageTable
.
_hideLoading
()
}
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
$store
.
dispatch
(
'FoodSample/deleteByIds'
,
ids
).
then
(()
=>
{
this
.
_resultChange
(
'删除成功!'
)
})
}
})
},
_deleteById
(
id
)
{
// 删除一条记录
this
.
_deleteByIds
([
id
])
},
_deleteSelected
()
{
// 批量删除
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请选择一条或多条数据!'
)
}
else
{
this
.
_deleteByIds
(
ids
,
'确定删除 '
+
ids
.
length
+
' 条记录?'
)
}
},
_detailModal
(
id
)
{
this
.
currentComponent
=
'FoodSampleGovernDetail'
this
.
$nextTick
(
function
()
{
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
id
).
then
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
this
.
$store
.
state
.
FoodSample
.
governModel
)
})
})
},
_editModal
(
edit
,
id
)
{
this
.
currentComponent
=
'FoodSampleGovernEdit'
this
.
$nextTick
(
function
()
{
if
(
edit
)
{
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
id
).
then
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
this
.
$store
.
state
.
FoodSample
.
governModel
,
this
.
contractId
)
})
}
else
{
this
.
$refs
.
refModal
.
_open
(
''
,
this
.
contractId
)
}
})
},
_editLY
(
id
)
{
// 粮油的编辑
this
.
currentComponent
=
'FoodSampleGovernLYEdit'
this
.
$nextTick
(
function
()
{
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
id
).
then
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
this
.
$store
.
state
.
FoodSample
.
governModel
,
this
.
contractId
)
})
})
},
_search
()
{
this
.
_page
()
},
_searchParams
()
{
const
data
=
this
.
$serialize
(
'search-sample-govern'
)
return
this
.
$extend
(
data
,
this
.
pageParams
)
},
_resultChange
(
msg
)
{
if
(
this
.
$store
.
state
.
FoodSample
.
success
)
{
this
.
_page
()
this
.
$Message
.
success
(
msg
)
}
},
_copy
(
sampleId
,
type
)
{
this
.
$refs
.
refModal
.
_open
(
sampleId
,
type
)
},
// 导入样品
_importSample
()
{
const
data
=
{
importUrl
:
'/food/v1/sample/government/import_'
+
this
.
contractId
,
downloadUrl
:
'/food/v1/excel/template/FoodSampleGovernment'
,
title
:
'导入'
}
this
.
$refs
.
refModal
.
_open
(
data
)
},
// 导入检测项目
_importItem
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选中一条样品数据!'
)
}
else
{
this
.
$refs
.
refModal
.
_open
(
this
.
selectIds
,
this
.
selectData
[
0
])
}
},
_subpackageSample
()
{
if
(
this
.
selectData
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选中一条样品进行分包!'
)
return
false
}
else
{
for
(
let
i
=
0
;
i
<
this
.
selectData
.
length
;
i
++
)
{
if
(
this
.
selectData
[
i
].
jobOut
===
1
)
{
this
.
$Message
.
warning
(
'样品编号为'
+
this
.
selectData
[
i
].
code
+
'已经分包了,请选择未分包的样品!'
)
return
false
}
}
this
.
_subpackage
(
this
.
selectIds
)
}
},
_subpackage
:
async
function
(
ids
)
{
const
result
=
await
meterSampleQuote
.
subpackageSample
(
ids
)
if
(
result
)
{
this
.
$Message
.
success
(
'分包成功!'
)
await
this
.
_page
()
}
},
_importItemPackage
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选中一条样品数据!'
)
}
else
{
this
.
$refs
.
refModal
.
_open
(
this
.
selectIds
,
'batch-rel-package-item'
)
}
},
_copyHisItem
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选中一条样品数据!'
)
}
else
{
this
.
$refs
.
refModal
.
_open
(
this
.
selectIds
)
}
},
_itemDetail
(
id
)
{
this
.
$refs
.
foodItem
.
_open
(
id
)
},
_operationRecord
(
id
)
{
// 操作日志
this
.
$refs
.
recordModal
.
_open
(
id
)
}
}
}
</
script
>
pages/meter-entrust/client-online/MeterGoOutTestEdit.vue
View file @
016dbe9c
...
@@ -95,8 +95,8 @@
...
@@ -95,8 +95,8 @@
</Option>
</Option>
</Select>
</Select>
</div>
</div>
<div
v-if=
"item.key==='
sample
Type'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-if=
"item.key==='
test
Type'"
@
click
.
stop=
"_handleRow(scope)"
>
<Select
v-model=
"scope.row.
sample
Type"
>
<Select
v-model=
"scope.row.
test
Type"
>
<Option
v-for=
"(item,index) in typeOptions"
:key=
"item.name"
:value=
"index"
>
<Option
v-for=
"(item,index) in typeOptions"
:key=
"item.name"
:value=
"index"
>
{{
item
.
name
}}
{{
item
.
name
}}
</Option>
</Option>
...
@@ -189,7 +189,7 @@ export default {
...
@@ -189,7 +189,7 @@ export default {
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'型号规格'
,
key
:
'spec'
},
{
title
:
'型号规格'
,
key
:
'spec'
},
{
title
:
'送检/出检'
,
key
:
'
sample
Type'
,
width
:
130
},
{
title
:
'送检/出检'
,
key
:
'
test
Type'
,
width
:
130
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'检测类型'
,
key
:
'type'
},
{
title
:
'检测类型'
,
key
:
'type'
},
{
title
:
'数量'
,
key
:
'quantity'
},
{
title
:
'数量'
,
key
:
'quantity'
},
...
@@ -659,7 +659,7 @@ export default {
...
@@ -659,7 +659,7 @@ export default {
}
}
},
},
_edit
:
async
function
(
data
)
{
_edit
:
async
function
(
data
)
{
const
result
=
await
meterEntrust
.
editDTO
(
data
)
const
result
=
await
meterEntrust
.
edit
Online
DTO
(
data
)
if
(
result
)
{
if
(
result
)
{
this
.
_resultChange
(
'编辑成功!'
)
this
.
_resultChange
(
'编辑成功!'
)
}
}
...
...
pages/meter-subcontract/cannot-sub/MeterCannotSub.vue
View file @
016dbe9c
...
@@ -58,11 +58,11 @@ export default {
...
@@ -58,11 +58,11 @@ export default {
formId
:
'meterSubcontractorFormId'
,
formId
:
'meterSubcontractorFormId'
,
searchOpen
:
false
,
searchOpen
:
false
,
btn
:
[
btn
:
[
{
//
{
type
:
'success'
,
//
type: 'success',
id
:
'cannot-sub-meter-cannot-sub-add'
,
//
id: 'cannot-sub-meter-cannot-sub-add',
name
:
'添加'
//
name: '添加'
},
//
},
{
{
type
:
'success'
,
type
:
'success'
,
id
:
'cannot-sub-meter-cannot-sub-submit'
,
id
:
'cannot-sub-meter-cannot-sub-submit'
,
...
...
pages/meter-subcontract/cannot-sub/MeterCannotSubEdit.vue
View file @
016dbe9c
...
@@ -73,56 +73,57 @@
...
@@ -73,56 +73,57 @@
>
>
<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"
@
click
.
native=
"_selectjudgeBasis(scope.$rowIndex)"
blur
placeholder=
"请输入或选择样品名称"
{{
scope
.
row
[
item
.
key
]
}}
></el-input>
<!--
<el-input
v-model=
"scope.row.name"
@
click
.
native=
"_selectjudgeBasis(scope.$rowIndex)"
blur
placeholder=
"请输入或选择样品名称"
--
>
</div>
<!-- >
</el-input>
-->
<div
v-if=
"item.key==='spec'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.spec"
blur
placeholder=
"请输入或选择型号规格"
></el-input>
</div>
<div
v-if=
"item.key==='factoryNumber'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.factoryNumber"
blur
placeholder=
"请输入或选择出厂编号"
></el-input>
</div>
<div
v-if=
"item.key==='technicalParameter'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.technicalParameter"
blur
placeholder=
"请输入技术参数"
></el-input>
</div>
<div
v-if=
"item.key==='manufacturer'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.manufacturer"
blur
placeholder=
"请输入生产厂家"
></el-input>
</div>
<div
v-if=
"item.key==='type'"
@
click
.
stop=
"_handleRow(scope)"
>
<Select
v-model=
"scope.row.type"
>
<Option
v-for=
"(item,index) in options"
:key=
"item.name"
:value=
"index"
>
{{
item
.
name
}}
</Option>
</Select>
</div>
<div
v-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.quantity"
@
blur=
"_quantityChange(scope.$rowIndex)"
@
keydown
.
native=
"channelInputLimit"
type=
"number"
placeholder=
"请输入或选择数量"
/>
</div>
<div
v-if=
"item.key==='unit'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.unit"
blur
placeholder=
"请输入收费单位"
></el-input>
</div>
<div
v-if=
"item.key==='remark'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.remark"
blur
placeholder=
"请输入备注"
></el-input>
</div>
</div>
<!--
<div
v-if=
"item.key==='spec'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<el-input
v-model=
"scope.row.spec"
blur
placeholder=
"请输入或选择型号规格"
--
>
<!-- >
</el-input>
-->
<!--
</div>
-->
<!--
<div
v-if=
"item.key==='factoryNumber'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<el-input
v-model=
"scope.row.factoryNumber"
blur
placeholder=
"请输入或选择出厂编号"
--
>
<!-- >
</el-input>
-->
<!--
</div>
-->
<!--
<div
v-if=
"item.key==='technicalParameter'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<el-input
v-model=
"scope.row.technicalParameter"
blur
placeholder=
"请输入技术参数"
--
>
<!-- >
</el-input>
-->
<!--
</div>
-->
<!--
<div
v-if=
"item.key==='manufacturer'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<el-input
v-model=
"scope.row.manufacturer"
blur
placeholder=
"请输入生产厂家"
--
>
<!-- >
</el-input>
-->
<!--
</div>
-->
<!--
<div
v-if=
"item.key==='type'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<Select
v-model=
"scope.row.type"
>
-->
<!--
<Option
v-for=
"(item,index) in options"
:key=
"item.name"
:value=
"index"
>
-->
<!--
{{
item
.
name
}}
-->
<!--
</Option>
-->
<!--
</Select>
-->
<!--
</div>
-->
<!--
<div
v-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<el-input-->
<!-- v-model="scope.row.quantity"-->
<!-- @blur="_quantityChange(scope.$rowIndex)"-->
<!-- @keydown.native="channelInputLimit"-->
<!-- type="number"-->
<!-- placeholder="请输入或选择数量"-->
<!-- />-->
<!--
</div>
-->
<!--
<div
v-if=
"item.key==='unit'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<el-input
v-model=
"scope.row.unit"
blur
placeholder=
"请输入收费单位"
--
>
<!-- >
</el-input>
-->
<!--
</div>
-->
<!--
<div
v-if=
"item.key==='remark'"
@
click
.
stop=
"_handleRow(scope)"
>
-->
<!--
<el-input
v-model=
"scope.row.remark"
blur
placeholder=
"请输入备注"
--
>
<!-- >
</el-input>
-->
<!--
</div>
-->
<div
v-else-if=
"item.date"
>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
...
@@ -186,11 +187,11 @@ export default {
...
@@ -186,11 +187,11 @@ export default {
judgeType
:
[{
value
:
1
,
name
:
'是'
},
{
value
:
0
,
name
:
'否'
}],
judgeType
:
[{
value
:
1
,
name
:
'是'
},
{
value
:
0
,
name
:
'否'
}],
iconMsg
:
[
iconMsg
:
[
// { type: 'md-create', id: '', name: '编辑' },
// { type: 'md-create', id: '', name: '编辑' },
{
//
{
type
:
'md-trash'
,
//
type: 'md-trash',
id
:
'meter-cannot-sub-edit-remove-o'
,
//
id: 'meter-cannot-sub-edit-remove-o',
name
:
'删除'
//
name: '删除'
}
//
}
],
],
pageColumns
:
[
pageColumns
:
[
{
title
:
'名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'名称'
,
key
:
'name'
,
width
:
160
},
...
@@ -212,16 +213,16 @@ export default {
...
@@ -212,16 +213,16 @@ export default {
}
}
],
],
btn
:
[
btn
:
[
{
//
{
type
:
'success'
,
//
type: 'success',
id
:
'cannot-sub-meter-cannot-sub-edit-add'
,
//
id: 'cannot-sub-meter-cannot-sub-edit-add',
name
:
'添加'
//
name: '添加'
},
//
},
{
//
{
type
:
'success'
,
//
type: 'success',
id
:
'cannot-sub-meter-cannot-sub-edit-import'
,
//
id: 'cannot-sub-meter-cannot-sub-edit-import',
name
:
'导入'
//
name: '导入'
}
//
}
],
],
id
:
''
,
id
:
''
,
modalTitle
:
''
,
modalTitle
:
''
,
...
@@ -639,7 +640,7 @@ export default {
...
@@ -639,7 +640,7 @@ export default {
this
.
formObj
=
formObj
this
.
formObj
=
formObj
this
.
_showAddress
(
formObj
)
this
.
_showAddress
(
formObj
)
this
.
_showTime
(
formObj
)
this
.
_showTime
(
formObj
)
this
.
getPage
.
records
=
formObj
.
sampleList
this
.
getPage
.
records
=
formObj
.
s
ubS
ampleList
},
},
_getList
:
async
function
()
{
_getList
:
async
function
()
{
const
result
=
await
meterEntrust
.
pageList
()
const
result
=
await
meterEntrust
.
pageList
()
...
...
pages/meter-subcontract/cannot-sub/MeterCannotSubHis.vue
View file @
016dbe9c
...
@@ -151,7 +151,7 @@ export default {
...
@@ -151,7 +151,7 @@ export default {
this
.
_upload
(
data
.
id
)
this
.
_upload
(
data
.
id
)
break
break
case
'查看样品'
:
case
'查看样品'
:
this
.
_sampleManage
(
data
.
i
d
)
this
.
_sampleManage
(
data
.
contractI
d
)
break
break
case
'删除'
:
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
this
.
_deleteByIds
([
data
.
id
])
...
...
pages/meter-subcontract/cannot-sub/MeterCannotSubSampleManage.vue
View file @
016dbe9c
...
@@ -10,24 +10,24 @@
...
@@ -10,24 +10,24 @@
<Form
id=
"formId"
:label-width=
"80"
inline
onsubmit=
"return false"
>
<Form
id=
"formId"
:label-width=
"80"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<label
class=
"label-sign"
></label>
<Form-item
label=
"样品名称:"
class=
"search-item"
>
<Form-item
label=
"样品名称:"
class=
"search-item"
>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
placeholder=
"请输入样品名称"
clearable
/>
<Input
v-model=
"formObj.name"
placeholder=
"请输入样品名称"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
</Form-item>
<Form-item
label=
"样品编号:"
class=
"search-item"
>
<Form-item
label=
"样品编号:"
class=
"search-item"
>
<Input
v-model=
"formObj.code"
@
on-enter=
"_formSearch"
placeholder=
"请输入样品编号"
clearable
/>
<Input
v-model=
"formObj.code"
placeholder=
"请输入样品编号"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
style=
"margin-left: -10px"
>
<Form-item
class=
"search-btn"
style=
"margin-left: -10px"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<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
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:get-page=
"getPage"
<PTVXETable
ref=
"pageTable"
:table-height=
"tableHeight"
:form-id=
"formId"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
select-data
>
:icon-msg=
"iconMsg"
select-data
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
<vxe-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
:key=
"item.key"
:key=
"item.key"
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
meterSample
}
from
'../../../api'
import
{
meterSample
,
meterSampleQuote
}
from
'../../../api'
// import importModal from '../contract-tab/ContractTab'
// import importModal from '../contract-tab/ContractTab'
// import MeterSampleManageEdit from './MeterItemManage'
// import MeterSampleManageEdit from './MeterItemManage'
// import MeterSampleHisEdit from './MeterSampleHisEdit'
// import MeterSampleHisEdit from './MeterSampleHisEdit'
...
@@ -137,18 +137,16 @@ export default {
...
@@ -137,18 +137,16 @@ export default {
selectData
:
[],
selectData
:
[],
getPage
:
{},
getPage
:
{},
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品编号'
,
key
:
'code'
,
width
:
120
},
{
title
:
'名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'样品名称'
,
key
:
'name'
,
width
:
140
},
{
title
:
'规格型号'
,
key
:
'spec'
},
{
title
:
'型号规格'
,
key
:
'spec'
,
width
:
140
},
{
title
:
'数量'
,
key
:
'quantity'
,
width
:
130
},
{
title
:
'检测项目'
,
key
:
'itemNames'
,
width
:
140
},
{
title
:
'生产厂家'
,
key
:
'manufacturer'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
,
width
:
140
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'是否分包'
,
key
:
'jobOut'
,
width
:
110
},
{
title
:
'备注'
,
key
:
'remark'
}
{
title
:
'检测类型'
,
key
:
'type'
,
width
:
140
},
{
title
:
'数量'
,
key
:
'quantity'
,
width
:
140
}
],
],
dateList
:
[],
dateList
:
[],
formObj
:
{
formObj
:
{
subC
ontractId
:
undefined
,
c
ontractId
:
undefined
,
name
:
undefined
,
name
:
undefined
,
code
:
undefined
,
code
:
undefined
,
type
:
undefined
type
:
undefined
...
@@ -269,7 +267,7 @@ export default {
...
@@ -269,7 +267,7 @@ export default {
}
}
},
},
_open
(
id
)
{
_open
(
id
)
{
this
.
formObj
.
subC
ontractId
=
id
this
.
formObj
.
c
ontractId
=
id
this
.
showModal
=
true
this
.
showModal
=
true
this
.
_page
()
this
.
_page
()
},
},
...
@@ -280,7 +278,7 @@ export default {
...
@@ -280,7 +278,7 @@ export default {
this
.
selectIds
=
[]
this
.
selectIds
=
[]
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
meterSample
.
pageSubSample
(
this
.
formObj
)
const
result
=
await
meterSample
Quote
.
pageSubSample
(
this
.
formObj
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
this
.
getPage
=
result
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
...
...
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