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
4bb290c8
Commit
4bb290c8
authored
Jun 18, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同管理
parent
f31fb380
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
81 deletions
+3
-81
MeterSampleQuoteManage.vue
pages/meter-business/MeterSampleQuoteManage.vue
+2
-80
MeterContractAccepted.vue
pages/meter-business/accepted/MeterContractAccepted.vue
+1
-1
No files found.
pages/meter-business/MeterSampleQuoteManage.vue
View file @
4bb290c8
...
...
@@ -60,7 +60,7 @@
</div>
</template>
<
script
>
import
{
meterSample
}
from
'../
../../api'
import
{
meterSample
Quote
}
from
'
../../api'
export
default
{
components
:
{
// FoodSampleGovernDetail,
...
...
@@ -232,7 +232,7 @@ export default {
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
meterSample
.
page
(
this
.
formObj
)
const
result
=
await
meterSample
Quote
.
page
(
this
.
formObj
)
if
(
result
)
{
this
.
getPage
=
result
this
.
$refs
.
pageTable
.
_hideLoading
()
...
...
@@ -270,21 +270,6 @@ export default {
})
})
},
_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'
...
...
@@ -310,62 +295,6 @@ export default {
this
.
$Message
.
success
(
msg
)
}
},
_copy
(
sampleId
,
type
)
{
this
.
$refs
.
refModal
.
_open
(
sampleId
,
type
)
},
// 复制样品
_copySample
(
data
)
{
if
(
data
.
type
===
2
)
{
// 粮油的编辑页
this
.
currentComponent
=
'FoodSampleGovernLYEdit'
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
data
.
sampleId
)
.
then
(()
=>
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
refModal
.
_openCopySample
(
this
.
$store
.
state
.
FoodSample
.
governModel
)
})
})
}
else
{
this
.
currentComponent
=
'FoodSampleGovernEdit'
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
data
.
sampleId
)
.
then
(()
=>
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
refModal
.
_openCopySample
(
this
.
$store
.
state
.
FoodSample
.
governModel
)
})
})
}
},
_copyAll
(
data
)
{
if
(
data
.
type
===
2
)
{
// 粮油的编辑页
this
.
currentComponent
=
'FoodSampleGovernLYEdit'
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
data
.
sampleId
)
.
then
(()
=>
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
refModal
.
_openCopyAll
(
this
.
$store
.
state
.
FoodSample
.
governModel
)
})
})
}
else
{
this
.
currentComponent
=
'FoodSampleGovernEdit'
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
data
.
sampleId
)
.
then
(()
=>
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
refModal
.
_openCopyAll
(
this
.
$store
.
state
.
FoodSample
.
governModel
)
})
})
}
},
// 导入样品
_importSample
()
{
const
data
=
{
...
...
@@ -401,13 +330,6 @@ export default {
this
.
_subpackage
(
this
.
selectIds
)
}
},
_subpackage
:
async
function
(
ids
)
{
const
result
=
await
meterSample
.
subpackageSample
(
ids
)
if
(
result
)
{
this
.
$Message
.
success
(
'分包成功!'
)
await
this
.
_page
()
}
},
_importItemPackage
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
...
...
pages/meter-business/accepted/MeterContractAccepted.vue
View file @
4bb290c8
...
...
@@ -55,7 +55,7 @@
import
{
meterContract
,
meterEntrust
,
meterSubcontractor
}
from
'../../../api'
import
Operation
from
'../../../components/operation/Operation'
import
Reason
from
'../../../components/base/Reason'
import
MeterSampleManage
from
'.
/MeterSampl
eManage'
import
MeterSampleManage
from
'.
./MeterSampleQuot
eManage'
import
MeterEntrustDetail
from
'./MeterContractAcceptedDetail'
export
default
{
components
:
{
MeterSampleManage
,
MeterEntrustDetail
,
Operation
},
...
...
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