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
cf7427b5
Commit
cf7427b5
authored
Jul 08, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了分包管理删除按钮和委托日期显示
parent
e02b07a7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
23 deletions
+30
-23
MeterCannotSub.vue
pages/meter-subcontract/cannot-sub/MeterCannotSub.vue
+2
-2
MeterCannotSubEdit.vue
pages/meter-subcontract/cannot-sub/MeterCannotSubEdit.vue
+17
-15
MeterSubpackageInput.vue
...ter-subcontract/subpackage-input/MeterSubpackageInput.vue
+2
-2
MeterSubpackageInputHis.vue
...-subcontract/subpackage-input/MeterSubpackageInputHis.vue
+3
-1
MeterSubpackageTask.vue
...meter-subcontract/subpackage-task/MeterSubpackageTask.vue
+3
-2
MeterSubpackageTaskHis.vue
...er-subcontract/subpackage-task/MeterSubpackageTaskHis.vue
+3
-1
No files found.
pages/meter-subcontract/cannot-sub/MeterCannotSub.vue
View file @
cf7427b5
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
meterSubContract
,
meterSubcontractor
}
from
'../../../api'
import
{
meterSubContract
}
from
'../../../api'
import
MeterSubcontractorEdit
from
'./MeterCannotSubEdit'
import
MeterSubcontractorEdit
from
'./MeterCannotSubEdit'
export
default
{
export
default
{
components
:
{
MeterSubcontractorEdit
},
components
:
{
MeterSubcontractorEdit
},
...
@@ -242,7 +242,7 @@ export default {
...
@@ -242,7 +242,7 @@ export default {
}
}
},
},
_delete
:
async
function
(
ids
)
{
_delete
:
async
function
(
ids
)
{
const
result
=
await
meterSub
contractor
.
deleteById
(
ids
)
const
result
=
await
meterSub
Contract
.
deleteById
(
ids
)
if
(
result
)
{
if
(
result
)
{
this
.
_formSearch
()
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
this
.
$Message
.
success
(
'删除成功!'
)
...
...
pages/meter-subcontract/cannot-sub/MeterCannotSubEdit.vue
View file @
cf7427b5
...
@@ -5,18 +5,18 @@
...
@@ -5,18 +5,18 @@
<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=
"client"
class=
"width-48"
>
<Form-item
label=
"委托单位"
prop=
"client"
class=
"width-48"
>
<AutoComplete
:value=
"formObj.client"
:down-data=
"customerData"
name=
"client
"
<AutoComplete
:value=
"formObj.client"
:down-data=
"customerData"
@
on-result-change=
"_cusNameChange
"
placeholder=
"请输入或选择委托单位"
@
on-result-change=
"_cusNameChange
"
name=
"client"
placeholder=
"请输入或选择委托单位
"
></AutoComplete>
></AutoComplete>
</Form-item>
</Form-item>
<Form-item
label=
"委托时间:"
prop=
"edate"
class=
"width-48"
>
<Form-item
label=
"委托时间:"
prop=
"edate"
class=
"width-48"
>
<Date-picker
v-model=
"formObj.edate"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择委托时间
"
<Date-picker
v-model=
"formObj.edate"
@
on-change=
"_etimeChange"
type=
"date"
split-panels
style=
"width:100%;
"
@
on-change=
"_etimeChange
"
></Date-picker>
placeholder=
"请选择委托时间
"
></Date-picker>
</Form-item>
</Form-item>
<Form-item
label=
"要求完成时间:"
prop=
"odate"
class=
"width-48"
>
<Form-item
label=
"要求完成时间:"
prop=
"odate"
class=
"width-48"
>
<Date-picker
v-model=
"formObj.odate"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择要求完成时间
"
<Date-picker
v-model=
"formObj.odate"
@
on-change=
"_ctimeChange"
type=
"date"
split-panels
style=
"width:100%;
"
@
on-change=
"_ctimeChange
"
></Date-picker>
placeholder=
"请选择要求完成时间
"
></Date-picker>
</Form-item>
</Form-item>
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
</Form-item>
</Form-item>
<Form-item
label=
"分包时间:"
prop=
"subTime"
class=
"width-48"
>
<Form-item
label=
"分包时间:"
prop=
"subTime"
class=
"width-48"
>
<Date-picker
v-model=
"formObj.subTime"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择分包时间
"
<Date-picker
v-model=
"formObj.subTime"
@
on-change=
"_subTimeChange"
type=
"date"
split-panels
style=
"width:100%;
"
@
on-change=
"_subTimeChange
"
></Date-picker>
placeholder=
"请选择分包时间
"
></Date-picker>
</Form-item>
</Form-item>
<Form-item
label=
"分包费用:"
prop=
"subFee"
class=
"width-48"
>
<Form-item
label=
"分包费用:"
prop=
"subFee"
class=
"width-48"
>
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
class=
"contHide
"
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick
"
@
on-result-change=
"_btnClick
"
></btn-list>
class=
"contHide
"
></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"
blur
placeholder=
"请输入或选择样品名称"
@
click
.
native=
"_selectjudgeBasis(scope.$rowIndex)
"
<el-input
v-model=
"scope.row.name"
@
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)"
>
...
@@ -106,10 +106,10 @@
...
@@ -106,10 +106,10 @@
<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"
type=
"number"
placeholder=
"请输入或选择数量"
@
blur=
"_quantityChange(scope.$rowIndex)"
@
blur=
"_quantityChange(scope.$rowIndex)"
@
keydown
.
native=
"channelInputLimit"
@
keydown
.
native=
"channelInputLimit"
type=
"number"
placeholder=
"请输入或选择数量"
/>
/>
</div>
</div>
...
@@ -139,8 +139,8 @@
...
@@ -139,8 +139,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"
is-change
@
on-result-change=
"_backData"
/>
<EditModal
ref=
"EditModal"
@
on-result-change=
"_backData"
is-change
/>
<importModal
ref=
"importModal"
aptitude-item
@
on-result-change=
"_inputBack"
></importModal>
<importModal
ref=
"importModal"
@
on-result-change=
"_inputBack"
aptitude-item
></importModal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -299,6 +299,8 @@ export default {
...
@@ -299,6 +299,8 @@ export default {
// this.formObj.customer.cname = data
// this.formObj.customer.cname = data
}
}
},
},
_subTimeChange
()
{},
_etimeChange
()
{},
_customerMatch
(
data
)
{
_customerMatch
(
data
)
{
// this.formObj.client = data
// this.formObj.client = data
this
.
_getQueryList
(
data
)
this
.
_getQueryList
(
data
)
...
...
pages/meter-subcontract/subpackage-input/MeterSubpackageInput.vue
View file @
cf7427b5
...
@@ -226,9 +226,9 @@ export default {
...
@@ -226,9 +226,9 @@ export default {
this
.
$refs
.
FileManage
.
_open
(
id
,
'subcontractorId'
)
this
.
$refs
.
FileManage
.
_open
(
id
,
'subcontractorId'
)
},
},
_getById
:
async
function
(
id
)
{
_getById
:
async
function
(
id
)
{
const
result
=
await
meter
Subcontractor
.
get
ById
(
id
)
const
result
=
await
meter
Entrust
.
getVO
ById
(
id
)
if
(
result
)
{
if
(
result
)
{
this
.
$refs
.
editSubcontractorModal
.
_open
(
result
)
//
this.$refs.editSubcontractorModal._open(result)
}
}
},
},
_delete
:
async
function
(
ids
)
{
_delete
:
async
function
(
ids
)
{
...
...
pages/meter-subcontract/subpackage-input/MeterSubpackageInputHis.vue
View file @
cf7427b5
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
:min-width=
"item.width?item.width:200"
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
[
item
.
key
]
}}
</span>
<span
v-if=
"item.key==='edate'"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
</PTVXETable>
</PTVXETable>
...
...
pages/meter-subcontract/subpackage-task/MeterSubpackageTask.vue
View file @
cf7427b5
...
@@ -231,9 +231,10 @@ export default {
...
@@ -231,9 +231,10 @@ export default {
this
.
$refs
.
FileManage
.
_open
(
id
,
'subcontractorId'
)
this
.
$refs
.
FileManage
.
_open
(
id
,
'subcontractorId'
)
},
},
_getById
:
async
function
(
id
)
{
_getById
:
async
function
(
id
)
{
const
result
=
await
meterSubcontractor
.
getById
(
id
)
const
result
=
await
meterEntrust
.
getVOById
(
id
)
console
.
log
(
result
)
if
(
result
)
{
if
(
result
)
{
this
.
$refs
.
editSubcontractorModal
.
_open
(
result
)
//
this.$refs.editSubcontractorModal._open(result)
}
}
},
},
_delete
:
async
function
(
ids
)
{
_delete
:
async
function
(
ids
)
{
...
...
pages/meter-subcontract/subpackage-task/MeterSubpackageTaskHis.vue
View file @
cf7427b5
...
@@ -37,7 +37,9 @@
...
@@ -37,7 +37,9 @@
:min-width=
"item.width?item.width:200"
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
[
item
.
key
]
}}
</span>
<span
v-if=
"item.key==='edate'"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
</PTVXETable>
</PTVXETable>
...
...
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