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
b1104649
Commit
b1104649
authored
Dec 30, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了样品管理
parent
f6ba9718
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
18 deletions
+75
-18
FileManageCont.vue
components/file/file-manage/FileManageCont.vue
+1
-1
FilesList.vue
components/file/file-manage/FilesList.vue
+1
-1
AddressManage.vue
...-sample-manage/storehouse-sample-manage/AddressManage.vue
+71
-14
stockSampleEdit.vue
...ample-manage/storehouse-sample-manage/stockSampleEdit.vue
+0
-0
EntrustRegister.vue
pages/soil-alone-sample/EntrustRegister.vue
+1
-1
SampleProgress.vue
pages/workbench/sample-progress/SampleProgress.vue
+1
-1
No files found.
components/file/file-manage/FileManageCont.vue
View file @
b1104649
...
@@ -111,7 +111,7 @@ export default {
...
@@ -111,7 +111,7 @@ export default {
viewUri
:
'/soil/v1/standard_annex/preview/'
viewUri
:
'/soil/v1/standard_annex/preview/'
}
}
break
break
case
'
s
ampleId'
:
case
'
aloneS
ampleId'
:
// 样品
// 样品
this
.
entrustId
=
id
this
.
entrustId
=
id
this
.
urlData
=
{
this
.
urlData
=
{
...
...
components/file/file-manage/FilesList.vue
View file @
b1104649
...
@@ -208,7 +208,7 @@ export default {
...
@@ -208,7 +208,7 @@ export default {
},
},
methods
:
{
methods
:
{
_batchUpload
()
{
_batchUpload
()
{
if
(
this
.
formObj
.
s
ampleId
)
{
if
(
this
.
formObj
.
aloneS
ampleId
)
{
this
.
$refs
.
batchUploadSample
.
_open
(
this
.
id
)
this
.
$refs
.
batchUploadSample
.
_open
(
this
.
id
)
}
else
{
}
else
{
this
.
$refs
.
batchUpload
.
_open
(
this
.
id
)
this
.
$refs
.
batchUpload
.
_open
(
this
.
id
)
...
...
pages/soil-alone-sample-manage/storehouse-sample-manage/AddressManage.vue
View file @
b1104649
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
<!--搜索表单-->
<!--搜索表单-->
<Form
id=
"search-form"
:label-width=
"90"
v-show=
"searchOpen"
inline
onsubmit=
"return false"
>
<Form
id=
"search-form"
:label-width=
"90"
v-show=
"searchOpen"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"钻孔名称:"
>
<Input
@
on-enter=
"_formSearch"
v-model=
"formObj.boreholeName"
name=
"boreholeName"
placeholder=
"请输入钻孔名称"
clearable
/>
</Form-item>
<Form-item
class=
"search-item"
label=
"库房号:"
>
<Form-item
class=
"search-item"
label=
"库房号:"
>
<Input
@
on-enter=
"_formSearch"
v-model=
"formObj.warehouse"
name=
"warehouse"
placeholder=
"请输入库房号"
clearable
/>
<Input
@
on-enter=
"_formSearch"
v-model=
"formObj.warehouse"
name=
"warehouse"
placeholder=
"请输入库房号"
clearable
/>
</Form-item>
</Form-item>
...
@@ -60,18 +63,22 @@
...
@@ -60,18 +63,22 @@
</div>
</div>
<!--组件加载-->
<!--组件加载-->
<ViewSample
ref=
"viewSample"
></ViewSample>
<ViewSample
ref=
"viewSample"
></ViewSample>
<StandardsManageEdit
ref=
"editModal"
@
on-result-change=
"_page"
></StandardsManageEdit>
<ViewDetail
ref=
"viewDetail"
></ViewDetail>
<FileManage
ref=
"FileManage"
@
on-result-change=
"_page"
></FileManage>
<stockSampleEdit
ref=
"editModal"
@
on-result-change=
"_page"
></stockSampleEdit>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
soilSample
}
from
'../../../api'
import
{
soil
Entrust
,
soil
Sample
}
from
'../../../api'
import
StandardsManageEdit
from
'./AddressManageEdit'
// 添加、编辑
import
ViewDetail
from
'../../soil-alone-sample/ViewDetail'
import
ViewSample
from
'./ViewLocationEntrust'
import
ViewSample
from
'./ViewLocationEntrust'
import
stockSampleEdit
from
'./stockSampleEdit'
export
default
{
export
default
{
components
:
{
components
:
{
StandardsManageEdit
,
stockSampleEdit
,
ViewSample
ViewSample
,
ViewDetail
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -84,10 +91,9 @@ export default {
...
@@ -84,10 +91,9 @@ export default {
{
{
type
:
'success'
,
type
:
'success'
,
id
:
''
,
id
:
''
,
name
:
'添加'
,
name
:
'出库'
componentName
:
'StandardsManageEdit'
},
},
{
type
:
'
error'
,
id
:
''
,
name
:
'删除
'
}
{
type
:
'
success'
,
id
:
''
,
name
:
'批量填写
'
}
],
],
// 表格
// 表格
pageColumns
:
[
pageColumns
:
[
...
@@ -107,10 +113,20 @@ export default {
...
@@ -107,10 +113,20 @@ export default {
componentName
:
'StandardsManageEdit'
componentName
:
'StandardsManageEdit'
},
},
{
{
type
:
'ios-list'
,
id
:
''
,
name
:
'查看'
},
{
type
:
'md-apps'
,
type
:
'md-apps'
,
id
:
''
,
id
:
''
,
name
:
'查看试样'
name
:
'查看试样'
},
},
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
}
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
}
],
],
searchOpen
:
false
,
searchOpen
:
false
,
...
@@ -170,24 +186,65 @@ export default {
...
@@ -170,24 +186,65 @@ export default {
case
'查看试样'
:
case
'查看试样'
:
this
.
_viewSample
(
data
.
name
)
this
.
_viewSample
(
data
.
name
)
break
break
case
'查看'
:
this
.
_viewModal
(
true
,
data
.
id
)
break
case
'附件'
:
this
.
_upload
(
data
.
id
)
break
case
'删除'
:
case
'删除'
:
this
.
_deleteById
(
data
.
id
)
this
.
_deleteById
(
data
.
id
)
break
break
}
}
})
})
},
},
_upload
(
id
)
{
// 上传文件
this
.
$refs
.
FileManage
.
_open
(
id
,
'aloneSampleId'
)
},
_viewModal
(
edit
,
id
)
{
if
(
edit
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
// 编辑
this
.
_getDetailById
(
id
)
}
else
{
// 添加
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
()
})
}
},
_getDetailById
:
async
function
(
id
)
{
const
result
=
await
soilEntrust
.
aloneSampleGetById
(
id
)
if
(
result
)
{
this
.
$refs
.
viewDetail
.
_open
(
result
)
this
.
$refs
.
pageTable
.
_hideLoading
()
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
}
},
_viewSample
(
data
)
{
_viewSample
(
data
)
{
this
.
$refs
.
viewSample
.
_open
(
data
)
this
.
$refs
.
viewSample
.
_open
(
data
)
},
},
_editModal
:
async
function
(
edit
,
id
)
{
_editModal
(
edit
,
id
)
{
if
(
edit
)
{
if
(
edit
)
{
const
result
=
await
soilSample
.
aloneWarehouseLocationGetById
(
id
)
this
.
$refs
.
pageTable
.
_showLoading
()
if
(
result
)
{
// 编辑
this
.
$refs
.
editModal
.
_open
(
result
)
this
.
_getById
(
id
)
}
}
else
{
}
else
{
// 添加
// 添加
this
.
$refs
.
editModal
.
_open
()
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
()
})
}
},
_getById
:
async
function
(
id
)
{
const
result
=
await
soilEntrust
.
aloneSampleGetById
(
id
)
if
(
result
)
{
this
.
$refs
.
editModal
.
_openEdit
(
result
)
this
.
$refs
.
pageTable
.
_hideLoading
()
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
}
}
},
},
// 获取数据
// 获取数据
...
...
pages/soil-alone-sample-manage/storehouse-sample-manage/stockSampleEdit.vue
0 → 100644
View file @
b1104649
This diff is collapsed.
Click to expand it.
pages/soil-alone-sample/EntrustRegister.vue
View file @
b1104649
...
@@ -376,7 +376,7 @@ export default {
...
@@ -376,7 +376,7 @@ export default {
// 上传文件
// 上传文件
this
.
currentComponent
=
'FileManage'
this
.
currentComponent
=
'FileManage'
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
id
,
'
s
ampleId'
)
this
.
$refs
.
refModal
.
_open
(
id
,
'
aloneS
ampleId'
)
})
})
},
},
_getById
:
async
function
(
id
)
{
_getById
:
async
function
(
id
)
{
...
...
pages/workbench/sample-progress/SampleProgress.vue
View file @
b1104649
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
contractId
:
''
,
contractId
:
''
,
//
//
page
:
0
,
page
:
0
,
rows
:
3
0
,
rows
:
1
0
,
formObj
:
{},
formObj
:
{},
processObj
:
{
processObj
:
{
height
:
document
.
documentElement
.
clientHeight
-
300
+
'px'
height
:
document
.
documentElement
.
clientHeight
-
300
+
'px'
...
...
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