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
663af0c8
Commit
663af0c8
authored
Aug 17, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了合同登记添加编辑
parent
003e31d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
MeterSampleQuoteManage.vue
pages/meter-contract/MeterSampleQuoteManage.vue
+1
-0
EditModal.vue
pages/meter-contract/contract-register/EditModal.vue
+2
-1
MeterContractRegisterEdit.vue
...-contract/contract-register/MeterContractRegisterEdit.vue
+32
-2
No files found.
pages/meter-contract/MeterSampleQuoteManage.vue
View file @
663af0c8
...
@@ -121,6 +121,7 @@ export default {
...
@@ -121,6 +121,7 @@ export default {
{
title
:
'名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'型号'
,
key
:
'spec'
},
{
title
:
'型号'
,
key
:
'spec'
},
{
title
:
'数量'
,
key
:
'quantity'
},
{
title
:
'数量'
,
key
:
'quantity'
},
{
title
:
'检测依据'
,
key
:
'verification'
},
{
title
:
'技术参数'
,
key
:
'technicalParameter'
},
{
title
:
'技术参数'
,
key
:
'technicalParameter'
},
{
title
:
'生产厂家'
,
key
:
'manufacturer'
},
{
title
:
'生产厂家'
,
key
:
'manufacturer'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
{
title
:
'出厂编号'
,
key
:
'factoryNumber'
},
...
...
pages/meter-contract/contract-register/EditModal.vue
View file @
663af0c8
...
@@ -95,7 +95,8 @@ export default {
...
@@ -95,7 +95,8 @@ export default {
pageColumns
:
[
pageColumns
:
[
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'样品名称'
,
key
:
'name'
},
{
title
:
'检定依据'
,
key
:
'code'
},
{
title
:
'检定依据'
,
key
:
'code'
},
{
title
:
'检定依据名称'
,
key
:
'basis'
}
{
title
:
'检定依据名称'
,
key
:
'basis'
},
{
title
:
'单价'
,
key
:
'price'
}
],
],
getPage
:
[],
getPage
:
[],
showUserGroupModal
:
false
,
showUserGroupModal
:
false
,
...
...
pages/meter-contract/contract-register/MeterContractRegisterEdit.vue
View file @
663af0c8
...
@@ -111,14 +111,31 @@
...
@@ -111,14 +111,31 @@
</Option>
</Option>
</Select>
</Select>
</div>
</div>
<div
v-else-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-if=
"item.key==='lastTime'"
@
click
.
stop=
"_handleRow(scope)"
>
<Date-picker
v-model=
"scope.row.lastTime"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择上次检定时间"
></Date-picker>
</div>
<div
v-if=
"item.key==='price'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.price"
@
input=
"_quantityChange(scope.$rowIndex)"
@
keydown
.
native=
"channelInputLimit"
type=
"number"
/>
</div>
<div
v-else-if=
"item.key==='quantity'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
<el-input
v-model=
"scope.row.quantity"
v-model=
"scope.row.quantity"
@
input=
"_quantityChange(scope.$rowIndex)"
@
keydown
.
native=
"channelInputLimit"
type=
"number"
type=
"number"
placeholder=
"请输入或选择数量"
placeholder=
"请输入或选择数量"
@
keydown
.
native=
"channelInputLimit"
/>
/>
</div>
</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-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'
):
''
}}
</div>
</div>
...
@@ -353,6 +370,18 @@ export default {
...
@@ -353,6 +370,18 @@ export default {
// )
// )
// },
// },
methods
:
{
methods
:
{
_quantityChange
(
index
)
{
this
.
$forceUpdate
()
this
.
index
=
index
if
(
undefined
!==
this
.
getPage
.
records
[
this
.
index
].
price
&&
undefined
!==
this
.
getPage
.
records
[
this
.
index
].
quantity
)
{
this
.
getPage
.
records
[
this
.
index
].
totalPrice
=
this
.
getPage
.
records
[
this
.
index
].
quantity
*
this
.
getPage
.
records
[
this
.
index
].
price
}
},
_cusNameChange
(
msg
,
data
)
{
_cusNameChange
(
msg
,
data
)
{
// this.financeObj = {} // 清空维护发票信息的数据
// this.financeObj = {} // 清空维护发票信息的数据
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
...
@@ -429,6 +458,7 @@ export default {
...
@@ -429,6 +458,7 @@ export default {
this
.
getPage
.
records
[
this
.
index
].
verification
=
this
.
getPage
.
records
[
this
.
index
].
verification
=
(
undefined
===
data
.
code
?
''
:
data
.
code
)
+
(
undefined
===
data
.
code
?
''
:
data
.
code
)
+
(
undefined
===
data
.
basis
?
''
:
data
.
basis
)
(
undefined
===
data
.
basis
?
''
:
data
.
basis
)
this
.
getPage
.
records
[
this
.
index
].
price
=
data
.
price
console
.
log
(
'返回的数据'
)
console
.
log
(
'返回的数据'
)
console
.
log
(
data
)
console
.
log
(
data
)
console
.
log
(
this
.
getPage
.
records
)
console
.
log
(
this
.
getPage
.
records
)
...
...
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