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
46c52321
Commit
46c52321
authored
Dec 28, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了样品管理
parent
a9cdee5d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
558 additions
and
8 deletions
+558
-8
Instock.vue
pages/soil-alone-sample-instock/Instock.vue
+16
-4
storageSelect.vue
pages/soil-alone-sample-instock/storageSelect.vue
+263
-0
Outstock.vue
...one-sample-manage/soil-alone-sample-outstock/Outstock.vue
+16
-4
storageSelect.vue
...ample-manage/soil-alone-sample-outstock/storageSelect.vue
+263
-0
No files found.
pages/soil-alone-sample-instock/Instock.vue
View file @
46c52321
...
...
@@ -5,7 +5,8 @@
<div>
<Form
id=
"edit-form"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"100"
inline
>
<Form-item
label=
"库房号"
prop=
"storehouse"
style=
"width: 100%"
>
<Input
v-model=
"formObj.storehouse"
name=
"storehouse"
placeholder=
"请输入库房号"
/>
<Input
v-model=
"formObj.storehouse"
name=
"storehouse"
placeholder=
"请输入库房号"
style=
"width: 95%;"
/>
<span
@
click=
"_storageModel()"
style=
"font-size: 20px;color: #00b5ec"
>
+
</span>
</Form-item>
<Form-item
label=
"架位号"
prop=
"shelfCode"
style=
"width: 100%"
>
<Input
v-model=
"formObj.shelfCode"
name=
"shelfCode"
placeholder=
"请输入架位号"
/>
...
...
@@ -16,11 +17,11 @@
<Form-item
prop=
"inStockerId"
style=
"width: 100%;display: none"
>
<Input
v-model=
"formObj.inStockerId"
@
click
.
native=
"_selectStaff"
name=
"inStockerId"
readonly
/>
</Form-item>
<Form-item
label=
"入库时间:"
prop=
"instockTime"
>
<Form-item
label=
"入库时间:"
prop=
"instockTime"
style=
"width: 100%;"
>
<Date-picker
v-model=
"formObj.instockTime"
@
on-change=
"_ctimeChange"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择入库时间"
name=
"instockTime"
></Date-picker>
</Form-item>
<Form-item
label=
"留存有效期:"
prop=
"keepLimitTime"
>
<Form-item
label=
"留存有效期:"
prop=
"keepLimitTime"
style=
"width: 100%;"
>
<Date-picker
v-model=
"formObj.keepLimitTime"
@
on-change=
"_keepLimitTimeChange"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择入库时间"
name=
"keepLimitTime"
></Date-picker>
</Form-item>
...
...
@@ -31,6 +32,7 @@
</div>
</Modal>
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userData"
is-change
></UserInfo>
<storageSelect
ref=
"storageModal"
@
on-result-change=
"_storageData"
></storageSelect>
</div>
</
template
>
<
script
>
...
...
@@ -41,11 +43,13 @@ import ModalFooter from '../../components/base/modalFooter'
import
{
soilSample
}
from
'../../api'
import
Global
from
'../../api/config'
import
UserInfo
from
'../../components/user-info-single/assignPerson'
import
storageSelect
from
'./storageSelect'
export
default
{
components
:
{
ModalFooter
,
UserInfo
UserInfo
,
storageSelect
},
data
()
{
return
{
...
...
@@ -125,6 +129,14 @@ export default {
}
},
methods
:
{
_storageModel
()
{
this
.
$refs
.
storageModal
.
_open
()
},
_storageData
(
data
)
{
this
.
$forceUpdate
()
this
.
formObj
.
storehouse
=
data
.
warehouse
this
.
formObj
.
shelfCode
=
data
.
name
},
_getUser
()
{
const
user
=
Global
.
getUserInfo
()
this
.
formObj
.
inStocker
=
user
.
realname
...
...
pages/soil-alone-sample-instock/storageSelect.vue
0 → 100644
View file @
46c52321
<!--检测项目编辑列表(添加、导入检测项目)-->
<
template
>
<div>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
:width=
"690"
title=
"库房信息"
>
<Row>
<Col
span=
"24"
>
<Form
v-model=
"formObj"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form-item
class=
"search-item"
label=
"库房号:"
style=
"margin-left: -25px"
>
<Input
v-model=
"formObj.warehouse"
@
on-enter=
"_formSearch"
placeholder=
"请输入库房号"
clearable
/>
</Form-item>
<!--
<Form-item
class=
"search-item"
label=
"检测依据:"
>
-->
<!--
<Input
v-model=
"formObj.code"
placeholder=
"请输入检测依据名称"
clearable
@
on-enter=
"_formSearch"
/>
-->
<!--
</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"
@
on-result-change=
"_btnClick"
/>
</Col>
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:loading=
"true"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
:hide-checkbox=
"true"
:is-radio=
"true"
select-data
>
<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
v-if=
"item.key==='judged'"
>
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
</span>
<div
v-else-if=
"item.key==='compareSymbol'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.compareSymbol"
placeholder=
"请输入比较符"
/>
</div>
<div
v-else-if=
"item.key==='limitValue'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.limitValue"
placeholder=
"请输入限值"
/>
</div>
<div
v-else-if=
"item.key==='unit'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.unit"
placeholder=
"请输入单位"
/>
</div>
<div
v-else-if=
"item.key==='code'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.code"
style=
"width: 130px;"
blur
placeholder=
"请选择检测依据"
/>
<i
@
click
.
stop=
"_selectjudgeBasis(scope.$index)"
style=
"cursor: pointer;font-size: 14px;"
class=
"icons iconfont pt-search icon-search"
></i>
</div>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
</PTVXETable>
</Col>
</Row>
<div
slot=
"footer"
>
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
/>
</div>
</Modal>
</div>
</template>
<
script
>
import
{
soilSample
}
from
'../../api'
export
default
{
components
:
{},
data
()
{
return
{
formObj
:
{
catalogueId
:
''
,
name
:
''
,
code
:
''
,
standardCode
:
''
,
standardName
:
''
},
showModal
:
false
,
searchOpen
:
false
,
btn
:
[],
index
:
''
,
iconMsg
:
[],
footerList
:
[
{
id
:
''
,
name
:
'取消'
,
type
:
''
},
{
id
:
''
,
name
:
'保存'
,
type
:
'primary'
}
],
pageColumns
:
[
{
title
:
'库房名'
,
key
:
'warehouse'
,
width
:
140
},
{
title
:
'货架号'
,
key
:
'name'
,
width
:
140
}
// { title: '设备', key: 'device', width: 180 },
// { title: '检测依据', key: 'code', width: 180 },
// { title: '检测科室', key: 'groupName', width: 110 },
// { title: '比较符', key: 'compareSymbol', width: 120 },
// { title: '限值', key: 'limitValue' },
// { title: '单位', key: 'unit' },
// { title: '是否系统判定', key: 'judged', width: 120, judged: true },
// { title: '备注', key: 'remark' }
],
catalogueId
:
''
,
getPage
:
{},
selectData
:
[]
}
},
methods
:
{
_open
(
catalogueId
,
label
)
{
this
.
formObj
=
this
.
$resetFields
(
this
.
formObj
)
this
.
showModal
=
true
this
.
catalogueId
=
catalogueId
this
.
formObj
.
catalogueId
=
catalogueId
this
.
getPage
.
records
=
[]
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
selectData
=
[]
this
.
_page
()
// if (catalogueId) {
// this._page()
// }
},
_handleRow
(
scope
)
{
console
.
log
(
scope
)
},
_selectjudgeBasis
(
index
)
{
console
.
log
(
index
)
this
.
index
=
index
this
.
$refs
.
EditModal
.
_open
()
},
_backData
(
data
)
{
console
.
log
(
typeof
this
.
index
)
this
.
getPage
.
records
[
this
.
index
].
code
=
data
.
code
this
.
$set
(
this
.
getPage
.
records
,
this
.
index
,
this
.
getPage
.
records
[
this
.
index
]
)
console
.
log
(
this
.
getPage
.
records
)
},
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
_footerResult
(
name
)
{
switch
(
name
)
{
case
'取消'
:
this
.
_cancel
()
break
case
'保存'
:
this
.
_ok
()
break
}
},
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilSample
.
aloneWarehouseLocation
(
this
.
$serializeForm
(
this
.
formObj
)
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
}
},
_btnClick
(
msg
)
{
switch
(
msg
)
{
case
'导入检测项目'
:
this
.
$refs
.
relItemModal
.
_open
(
this
.
catalogueId
)
break
}
},
// 操作列操作
_iconClick
(
res
,
data
)
{
switch
(
res
)
{
case
'删除'
:
this
.
_deleteById
(
data
.
relPackageId
)
break
}
},
// 删除
_deleteById
(
id
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除该数据?'
,
onOk
:
()
=>
{
this
.
_deleteOk
(
id
)
}
})
},
// _deleteOk: async function(id) {
// // const result = await drugCatalogueItem.deleteById(id)
// if (result) {
// this.$Message.success('删除成功')
// this._page()
// }
// },
// table结果 返回整行
_tableResultChange
(
msg
,
data
)
{
console
.
log
(
msg
,
data
)
switch
(
msg
)
{
case
'page'
:
this
.
_page
()
break
case
'selectData'
:
this
.
selectData
=
data
break
case
'singleSelect'
:
this
.
selectData
=
[]
this
.
selectData
=
data
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
)
break
case
'changeSize'
:
this
.
_page
()
break
}
},
_ok
()
{
const
data
=
this
.
selectData
if
(
data
.
length
===
0
)
{
this
.
_hideLoading
()
this
.
$Message
.
warning
(
'请选择至少一条数据!'
)
}
// const ids = []
// data.forEach(item => {
// ids.push(item.id)
// })
this
.
_saveCatalogueItem
(
data
)
},
_saveCatalogueItem
(
data
)
{
this
.
showModal
=
false
this
.
_hideLoading
()
this
.
$emit
(
'on-result-change'
,
data
)
console
.
log
(
'data------'
,
data
)
this
.
_hideLoading
()
},
_cancel
()
{
this
.
selectData
=
[]
this
.
showModal
=
false
},
_hideLoading
()
{
this
.
$refs
.
footerModal
.
_hideLoading
()
}
}
}
</
script
>
pages/soil-alone-sample-manage/soil-alone-sample-outstock/Outstock.vue
View file @
46c52321
...
...
@@ -5,7 +5,8 @@
<div>
<Form
id=
"edit-form"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"100"
inline
>
<Form-item
label=
"库房号"
prop=
"storehouse"
style=
"width: 100%"
>
<Input
v-model=
"formObj.storehouse"
name=
"storehouse"
placeholder=
"请输入库房号"
/>
<Input
v-model=
"formObj.storehouse"
name=
"storehouse"
style=
"width: 95%;"
placeholder=
"请输入库房号"
/>
<span
@
click=
"_storageModel()"
style=
"font-size: 20px;color: #00b5ec"
>
+
</span>
</Form-item>
<Form-item
label=
"架位号"
prop=
"shelfCode"
style=
"width: 100%"
>
<Input
v-model=
"formObj.shelfCode"
name=
"shelfCode"
placeholder=
"请输入架位号"
/>
...
...
@@ -22,7 +23,7 @@
<Form-item
prop=
"outStockReceiverId"
style=
"width: 100%;display: none"
>
<Input
v-model=
"formObj.outStockReceiverId"
@
click
.
native=
"_selectoutStockReceiver"
name=
"outStockReceiverId"
readonly
/>
</Form-item>
<Form-item
label=
"出库时间:"
prop=
"outStock"
>
<Form-item
label=
"出库时间:"
prop=
"outStock"
style=
"width: 100%;"
>
<Date-picker
v-model=
"formObj.outStock"
@
on-change=
"_ctimeChange"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择出库时间"
name=
"outStock"
></Date-picker>
</Form-item>
...
...
@@ -37,6 +38,7 @@
</div>
</Modal>
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userData"
is-change
></UserInfo>
<storageSelect
ref=
"storageModal"
@
on-result-change=
"_storageData"
></storageSelect>
</div>
</
template
>
<
script
>
...
...
@@ -47,11 +49,12 @@ import ModalFooter from '../../../components/base/modalFooter'
import
{
soilSample
}
from
'../../../api'
import
Global
from
'../../../api/config'
import
UserInfo
from
'../../../components/user-info-single/assignPerson'
import
storageSelect
from
'./storageSelect'
export
default
{
components
:
{
ModalFooter
,
UserInfo
UserInfo
,
storageSelect
},
data
()
{
return
{
...
...
@@ -134,6 +137,14 @@ export default {
}
},
methods
:
{
_storageModel
()
{
this
.
$refs
.
storageModal
.
_open
()
},
_storageData
(
data
)
{
this
.
$forceUpdate
()
this
.
formObj
.
storehouse
=
data
.
warehouse
this
.
formObj
.
shelfCode
=
data
.
name
},
_getUser
()
{
const
user
=
Global
.
getUserInfo
()
this
.
formObj
.
outStocker
=
user
.
realname
...
...
@@ -151,6 +162,7 @@ export default {
this
.
$refs
.
userModal
.
_open
()
},
_userData
(
data
,
msg
,
contractTempData
)
{
this
.
$forceUpdate
()
if
(
this
.
userType
===
'outStockReceiver'
)
{
this
.
formObj
.
outStockReceiver
=
data
.
realname
this
.
formObj
.
outStockReceiverId
=
data
.
id
...
...
pages/soil-alone-sample-manage/soil-alone-sample-outstock/storageSelect.vue
0 → 100644
View file @
46c52321
<!--检测项目编辑列表(添加、导入检测项目)-->
<
template
>
<div>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
:width=
"690"
title=
"库房信息"
>
<Row>
<Col
span=
"24"
>
<Form
v-model=
"formObj"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form-item
class=
"search-item"
label=
"库房号:"
style=
"margin-left: -25px"
>
<Input
v-model=
"formObj.warehouse"
@
on-enter=
"_formSearch"
placeholder=
"请输入库房号"
clearable
/>
</Form-item>
<!--
<Form-item
class=
"search-item"
label=
"检测依据:"
>
-->
<!--
<Input
v-model=
"formObj.code"
placeholder=
"请输入检测依据名称"
clearable
@
on-enter=
"_formSearch"
/>
-->
<!--
</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"
@
on-result-change=
"_btnClick"
/>
</Col>
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:loading=
"true"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
:hide-checkbox=
"true"
:is-radio=
"true"
select-data
>
<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
v-if=
"item.key==='judged'"
>
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
</span>
<div
v-else-if=
"item.key==='compareSymbol'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.compareSymbol"
placeholder=
"请输入比较符"
/>
</div>
<div
v-else-if=
"item.key==='limitValue'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.limitValue"
placeholder=
"请输入限值"
/>
</div>
<div
v-else-if=
"item.key==='unit'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.unit"
placeholder=
"请输入单位"
/>
</div>
<div
v-else-if=
"item.key==='code'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.code"
style=
"width: 130px;"
blur
placeholder=
"请选择检测依据"
/>
<i
@
click
.
stop=
"_selectjudgeBasis(scope.$index)"
style=
"cursor: pointer;font-size: 14px;"
class=
"icons iconfont pt-search icon-search"
></i>
</div>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</vxe-table-column>
</PTVXETable>
</Col>
</Row>
<div
slot=
"footer"
>
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
/>
</div>
</Modal>
</div>
</template>
<
script
>
import
{
soilSample
}
from
'../../../api'
export
default
{
components
:
{},
data
()
{
return
{
formObj
:
{
catalogueId
:
''
,
name
:
''
,
code
:
''
,
standardCode
:
''
,
standardName
:
''
},
showModal
:
false
,
searchOpen
:
false
,
btn
:
[],
index
:
''
,
iconMsg
:
[],
footerList
:
[
{
id
:
''
,
name
:
'取消'
,
type
:
''
},
{
id
:
''
,
name
:
'保存'
,
type
:
'primary'
}
],
pageColumns
:
[
{
title
:
'库房名'
,
key
:
'warehouse'
,
width
:
140
},
{
title
:
'货架号'
,
key
:
'name'
,
width
:
140
}
// { title: '设备', key: 'device', width: 180 },
// { title: '检测依据', key: 'code', width: 180 },
// { title: '检测科室', key: 'groupName', width: 110 },
// { title: '比较符', key: 'compareSymbol', width: 120 },
// { title: '限值', key: 'limitValue' },
// { title: '单位', key: 'unit' },
// { title: '是否系统判定', key: 'judged', width: 120, judged: true },
// { title: '备注', key: 'remark' }
],
catalogueId
:
''
,
getPage
:
{},
selectData
:
[]
}
},
methods
:
{
_open
(
catalogueId
,
label
)
{
this
.
formObj
=
this
.
$resetFields
(
this
.
formObj
)
this
.
showModal
=
true
this
.
catalogueId
=
catalogueId
this
.
formObj
.
catalogueId
=
catalogueId
this
.
getPage
.
records
=
[]
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
selectData
=
[]
this
.
_page
()
// if (catalogueId) {
// this._page()
// }
},
_handleRow
(
scope
)
{
console
.
log
(
scope
)
},
_selectjudgeBasis
(
index
)
{
console
.
log
(
index
)
this
.
index
=
index
this
.
$refs
.
EditModal
.
_open
()
},
_backData
(
data
)
{
console
.
log
(
typeof
this
.
index
)
this
.
getPage
.
records
[
this
.
index
].
code
=
data
.
code
this
.
$set
(
this
.
getPage
.
records
,
this
.
index
,
this
.
getPage
.
records
[
this
.
index
]
)
console
.
log
(
this
.
getPage
.
records
)
},
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
_footerResult
(
name
)
{
switch
(
name
)
{
case
'取消'
:
this
.
_cancel
()
break
case
'保存'
:
this
.
_ok
()
break
}
},
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilSample
.
aloneWarehouseLocation
(
this
.
$serializeForm
(
this
.
formObj
)
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
}
},
_btnClick
(
msg
)
{
switch
(
msg
)
{
case
'导入检测项目'
:
this
.
$refs
.
relItemModal
.
_open
(
this
.
catalogueId
)
break
}
},
// 操作列操作
_iconClick
(
res
,
data
)
{
switch
(
res
)
{
case
'删除'
:
this
.
_deleteById
(
data
.
relPackageId
)
break
}
},
// 删除
_deleteById
(
id
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除该数据?'
,
onOk
:
()
=>
{
this
.
_deleteOk
(
id
)
}
})
},
// _deleteOk: async function(id) {
// // const result = await drugCatalogueItem.deleteById(id)
// if (result) {
// this.$Message.success('删除成功')
// this._page()
// }
// },
// table结果 返回整行
_tableResultChange
(
msg
,
data
)
{
console
.
log
(
msg
,
data
)
switch
(
msg
)
{
case
'page'
:
this
.
_page
()
break
case
'selectData'
:
this
.
selectData
=
data
break
case
'singleSelect'
:
this
.
selectData
=
[]
this
.
selectData
=
data
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
)
break
case
'changeSize'
:
this
.
_page
()
break
}
},
_ok
()
{
const
data
=
this
.
selectData
if
(
data
.
length
===
0
)
{
this
.
_hideLoading
()
this
.
$Message
.
warning
(
'请选择至少一条数据!'
)
}
// const ids = []
// data.forEach(item => {
// ids.push(item.id)
// })
this
.
_saveCatalogueItem
(
data
)
},
_saveCatalogueItem
(
data
)
{
this
.
showModal
=
false
this
.
_hideLoading
()
this
.
$emit
(
'on-result-change'
,
data
)
console
.
log
(
'data------'
,
data
)
this
.
_hideLoading
()
},
_cancel
()
{
this
.
selectData
=
[]
this
.
showModal
=
false
},
_hideLoading
()
{
this
.
$refs
.
footerModal
.
_hideLoading
()
}
}
}
</
script
>
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