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
aad5d506
Commit
aad5d506
authored
Dec 28, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了入库管理
parent
628c2f6c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
259 additions
and
17 deletions
+259
-17
soil-entrust.js
api/soil/soil-entrust.js
+5
-1
soil-sample.js
api/soil/soil-sample.js
+5
-1
EntrustRegister.vue
pages/soil-alone-sample-instock/EntrustRegister.vue
+19
-8
Instock.vue
pages/soil-alone-sample-instock/Instock.vue
+222
-0
AddressManageEdit.vue
...mple-manage/storehouse-place-manage/AddressManageEdit.vue
+2
-0
EntrustRegister.vue
pages/soil-alone-sample/EntrustRegister.vue
+4
-7
AddressManageEdit.vue
...s/soil-sample-manage/sample-address/AddressManageEdit.vue
+2
-0
No files found.
api/soil/soil-entrust.js
View file @
aad5d506
...
@@ -148,5 +148,9 @@ export default {
...
@@ -148,5 +148,9 @@ export default {
aloneSampleDelete
:
data
=>
aloneSampleDelete
:
data
=>
http
.
delete
(
'soil/v1/alone_sample/?ids='
+
data
).
then
(
res
=>
res
),
http
.
delete
(
'soil/v1/alone_sample/?ids='
+
data
).
then
(
res
=>
res
),
getUserByGroupId
:
data
=>
getUserByGroupId
:
data
=>
http
.
post
(
'base/v1/user/page'
,
data
).
then
(
res
=>
res
)
http
.
post
(
'base/v1/user/page'
,
data
).
then
(
res
=>
res
),
submitToInstock
:
data
=>
http
.
post
(
'soil/v1/alone_sample/submit_to_out_storage'
,
data
)
.
then
(
res
=>
res
)
}
}
api/soil/soil-sample.js
View file @
aad5d506
...
@@ -246,5 +246,9 @@ export default {
...
@@ -246,5 +246,9 @@ export default {
aloneWarehouseLocationDelete
:
data
=>
aloneWarehouseLocationDelete
:
data
=>
http
http
.
delete
(
'soil/v1/alone_warehouse_location/?ids='
+
data
)
.
delete
(
'soil/v1/alone_warehouse_location/?ids='
+
data
)
.
then
(
res
=>
res
)
.
then
(
res
=>
res
),
pageWaitStorage
:
data
=>
http
.
post
(
'soil/v1/alone_sample/page_wait_storage'
,
data
).
then
(
res
=>
res
),
inStorageSubmit
:
data
=>
http
.
post
(
'soil/v1/alone_sample/in_storage_submit'
,
data
).
then
(
res
=>
res
)
}
}
pages/soil-alone-sample-instock/EntrustRegister.vue
View file @
aad5d506
...
@@ -63,6 +63,7 @@ import importModal from '../../components/import/DownloadTemplateImport'
...
@@ -63,6 +63,7 @@ import importModal from '../../components/import/DownloadTemplateImport'
import
EntrustRegisterEdit
from
'./EntrustRegisterEdit'
import
EntrustRegisterEdit
from
'./EntrustRegisterEdit'
import
RegisterDetail
from
'./RegisterDetail'
import
RegisterDetail
from
'./RegisterDetail'
import
ViewDetail
from
'./ViewDetail'
import
ViewDetail
from
'./ViewDetail'
import
Instock
from
'./Instock'
export
default
{
export
default
{
components
:
{
components
:
{
// eslint-disable-next-line vue/no-unused-components
// eslint-disable-next-line vue/no-unused-components
...
@@ -74,7 +75,9 @@ export default {
...
@@ -74,7 +75,9 @@ export default {
// eslint-disable-next-line vue/no-unused-components
// eslint-disable-next-line vue/no-unused-components
RegisterDetail
,
RegisterDetail
,
// eslint-disable-next-line vue/no-unused-components
// eslint-disable-next-line vue/no-unused-components
ViewDetail
ViewDetail
,
// eslint-disable-next-line vue/no-unused-components
Instock
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -85,12 +88,7 @@ export default {
...
@@ -85,12 +88,7 @@ export default {
{
{
type
:
'success'
,
type
:
'success'
,
id
:
''
,
id
:
''
,
name
:
'登记'
name
:
'入库'
},
{
type
:
'success'
,
id
:
''
,
name
:
'提交'
}
}
],
],
iconMsg
:
[
iconMsg
:
[
...
@@ -147,6 +145,9 @@ export default {
...
@@ -147,6 +145,9 @@ export default {
this
.
currentComponent
=
componentName
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
switch
(
msg
)
{
case
'入库'
:
this
.
_instock
()
break
case
'试验委托单导入'
:
case
'试验委托单导入'
:
this
.
_import
()
this
.
_import
()
break
break
...
@@ -165,6 +166,16 @@ export default {
...
@@ -165,6 +166,16 @@ export default {
}
}
})
})
},
},
_instock
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
}
else
{
this
.
currentComponent
=
'Instock'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
this
.
selectIds
)
})
}
},
_detailModal
(
data
)
{
_detailModal
(
data
)
{
console
.
log
(
data
)
console
.
log
(
data
)
this
.
_getUserInfo
(
data
)
this
.
_getUserInfo
(
data
)
...
@@ -322,7 +333,7 @@ export default {
...
@@ -322,7 +333,7 @@ export default {
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilSample
.
aloneSampleP
age
(
const
result
=
await
soilSample
.
pageWaitStor
age
(
this
.
$serializeForm
(
this
.
formObj
)
this
.
$serializeForm
(
this
.
formObj
)
)
)
if
(
result
)
{
if
(
result
)
{
...
...
pages/soil-alone-sample-instock/Instock.vue
0 → 100644
View file @
aad5d506
<
template
>
<div>
<Modal
v-model=
"showEditModal"
v-drag
:mask-closable=
"false"
:width=
"500"
class=
"zIndex-1200"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<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=
"请输入库房号"
/>
</Form-item>
<Form-item
label=
"架位号"
prop=
"shelfCode"
style=
"width: 100%"
>
<Input
v-model=
"formObj.shelfCode"
name=
"shelfCode"
placeholder=
"请输入架位号"
/>
</Form-item>
<Form-item
label=
"入库人"
prop=
"inStocker"
style=
"width: 100%"
>
<Input
v-model=
"formObj.inStocker"
@
click
.
native=
"_selectStaff"
name=
"inStocker"
readonly
/>
</Form-item>
<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"
>
<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"
>
<Date-picker
v-model=
"formObj.keepLimitTime"
@
on-change=
"_keepLimitTimeChange"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择入库时间"
name=
"keepLimitTime"
></Date-picker>
</Form-item>
</Form>
</div>
<div
slot=
"footer"
>
<ModalFooter
ref=
"footerModal"
@
on-result-change=
"_footerResult"
:footer=
"footerList"
></ModalFooter>
</div>
</Modal>
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userData"
is-change
></UserInfo>
</div>
</
template
>
<
script
>
/**
* 添加编辑
*/
import
ModalFooter
from
'../../components/base/modalFooter'
import
{
soilSample
}
from
'../../api'
import
Global
from
'../../api/config'
import
UserInfo
from
'../../components/user-info-single/assignPerson'
export
default
{
components
:
{
ModalFooter
,
UserInfo
},
data
()
{
return
{
formId
:
''
,
id
:
''
,
lengthLimitList
:
[
{
key
:
'stdNum'
,
title
:
'标准号'
},
{
key
:
'enName'
,
title
:
'英文名称'
},
{
key
:
'belongUnit'
,
title
:
'归口单位'
},
{
key
:
'publishUnit'
,
title
:
'发布单位'
}
],
modalTitle
:
'入库'
,
formObj
:
{
name
:
''
,
warehouse
:
''
,
type
:
''
,
remark
:
''
,
inStocker
:
''
,
inStockerId
:
''
},
options
:
[
{
name
:
'国家标准'
},
{
name
:
'地方标准'
},
{
name
:
'行业标准'
},
{
name
:
'企业标准'
}
],
typeData
:
[
{
name
:
'待检'
,
value
:
0
},
{
name
:
'备样'
,
value
:
1
},
{
name
:
'备用'
,
value
:
2
}
],
ruleValidate
:
{
warehouse
:
[
{
required
:
true
,
message
:
'库房号不能为空'
,
trigger
:
'blur'
}
]
},
showEditModal
:
false
,
classifyList
:
[
{
value
:
0
,
name
:
'判定依据'
},
{
value
:
1
,
name
:
'检测依据'
},
{
value
:
2
,
name
:
'其他'
}
],
typeList
:
[
{
value
:
0
,
name
:
'国家标准'
},
{
value
:
1
,
name
:
'地方标准'
},
{
value
:
2
,
name
:
'行业标准'
},
{
value
:
3
,
name
:
'企业标准'
}
],
statusList
:
[
{
value
:
0
,
name
:
'现行'
},
{
value
:
1
,
name
:
'即将实施'
},
{
value
:
2
,
name
:
'部分被代替'
},
{
value
:
3
,
name
:
'被代替'
},
{
value
:
4
,
name
:
'作废'
}
],
footerList
:
[
{
id
:
''
,
name
:
'取消'
,
type
:
''
},
{
id
:
''
,
name
:
'确定'
,
type
:
'primary'
}
]
}
},
methods
:
{
_getUser
()
{
const
user
=
Global
.
getUserInfo
()
this
.
formObj
.
inStocker
=
user
.
realname
this
.
formObj
.
inStockerId
=
user
.
id
console
.
log
(
user
)
},
_selectStaff
()
{
this
.
$refs
.
userModal
.
_open
()
},
_userData
(
data
,
msg
,
contractTempData
)
{
this
.
formObj
.
inStocker
=
data
.
realname
this
.
formObj
.
inStockerId
=
data
.
id
console
.
log
(
data
,
msg
)
},
_ctimeChange
(
data
)
{
this
.
formObj
.
instockTime
=
data
},
_keepLimitTimeChange
(
data
)
{
this
.
formObj
.
keepLimitTime
=
data
},
/** *modal-footer */
_footerResult
(
name
)
{
switch
(
name
)
{
case
'取消'
:
this
.
_cancel
()
break
case
'确定'
:
this
.
_ok
()
break
}
},
_hideLoading
()
{
this
.
$refs
.
footerModal
.
_hideLoading
()
},
_resultChange
(
msg
)
{
this
.
showEditModal
=
false
this
.
$Message
.
success
(
msg
)
this
.
$emit
(
'on-result-change'
)
this
.
_hideLoading
()
},
_ok
()
{
this
.
$refs
.
formObj
.
validate
(
valid
=>
{
if
(
valid
)
{
const
data
=
this
.
$serialize
(
'edit-form'
)
console
.
log
(
data
)
data
.
ids
=
this
.
id
this
.
_instockSubmit
(
data
)
}
else
{
this
.
$Message
.
error
(
'表单验证失败!'
)
this
.
_hideLoading
()
}
})
},
_instockSubmit
:
async
function
(
data
)
{
const
result
=
await
soilSample
.
inStorageSubmit
(
data
)
if
(
result
)
{
this
.
_resultChange
(
'成功入库'
)
}
},
_save
:
async
function
(
data
)
{
const
result
=
await
soilSample
.
aloneWarehouseLocationAdd
(
data
)
if
(
result
)
{
this
.
_resultChange
(
'添加成功!'
)
}
},
_edit
:
async
function
(
data
)
{
const
result
=
await
soilSample
.
aloneWarehouseLocationEdit
(
data
)
if
(
result
)
{
this
.
_resultChange
(
'编辑成功!'
)
}
},
_cancel
()
{
this
.
_hideLoading
()
this
.
showEditModal
=
false
},
_open
(
ids
)
{
this
.
formId
=
this
.
$randomCode
()
this
.
_hideLoading
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
id
=
ids
.
join
(
','
)
this
.
_getUser
()
this
.
showEditModal
=
true
},
_registerAdd
()
{
this
.
formId
=
this
.
$randomCode
()
this
.
_hideLoading
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
modalTitle
=
'添加'
this
.
formObj
.
id
=
''
this
.
formObj
.
type
=
3
this
.
showEditModal
=
true
}
}
}
</
script
>
pages/soil-alone-sample-manage/storehouse-place-manage/AddressManageEdit.vue
View file @
aad5d506
...
@@ -134,6 +134,8 @@ export default {
...
@@ -134,6 +134,8 @@ export default {
this
.
$refs
.
userModal
.
_open
()
this
.
$refs
.
userModal
.
_open
()
},
},
_userData
(
data
,
msg
,
contractTempData
)
{
_userData
(
data
,
msg
,
contractTempData
)
{
this
.
formObj
.
manager
=
data
.
realname
this
.
formObj
.
managerId
=
data
.
id
console
.
log
(
data
,
msg
)
console
.
log
(
data
,
msg
)
},
},
/** *modal-footer */
/** *modal-footer */
...
...
pages/soil-alone-sample/EntrustRegister.vue
View file @
aad5d506
...
@@ -152,11 +152,8 @@ export default {
...
@@ -152,11 +152,8 @@ export default {
case
'登记'
:
case
'登记'
:
this
.
_editModal
(
false
)
this
.
_editModal
(
false
)
break
break
case
'提交至评审'
:
this
.
_submitToReview
()
break
case
'提交'
:
case
'提交'
:
this
.
_submitTo
SkipReview
()
this
.
_submitTo
Instock
()
break
break
case
'search'
:
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
this
.
searchOpen
=
!
this
.
searchOpen
...
@@ -247,8 +244,8 @@ export default {
...
@@ -247,8 +244,8 @@ export default {
this
.
$refs
.
refModal
.
_openByEntrustId
(
data
)
this
.
$refs
.
refModal
.
_openByEntrustId
(
data
)
})
})
},
},
_submitTo
Review
()
{
_submitTo
Instock
()
{
this
.
_submitByContractIds
(
'
委托评审
'
)
this
.
_submitByContractIds
(
'
出库
'
)
},
},
_submitToSkipReview
()
{
_submitToSkipReview
()
{
const
ids
=
this
.
selectIds
const
ids
=
this
.
selectIds
...
@@ -281,7 +278,7 @@ export default {
...
@@ -281,7 +278,7 @@ export default {
}
}
},
},
_subToRe
:
async
function
(
ids
)
{
_subToRe
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
submit
(
ids
)
const
result
=
await
soilEntrust
.
submit
ToInstock
({
ids
:
ids
.
join
(
','
)
}
)
if
(
result
)
{
if
(
result
)
{
this
.
_resultChange
(
'提交成功'
)
this
.
_resultChange
(
'提交成功'
)
}
}
...
...
pages/soil-sample-manage/sample-address/AddressManageEdit.vue
View file @
aad5d506
...
@@ -117,6 +117,8 @@ export default {
...
@@ -117,6 +117,8 @@ export default {
this
.
$refs
.
userModal
.
_open
()
this
.
$refs
.
userModal
.
_open
()
},
},
_userData
(
data
,
msg
,
contractTempData
)
{
_userData
(
data
,
msg
,
contractTempData
)
{
this
.
formObj
.
manager
=
data
.
realname
this
.
formObj
.
managerId
=
data
.
id
console
.
log
(
data
,
msg
)
console
.
log
(
data
,
msg
)
},
},
/** *modal-footer */
/** *modal-footer */
...
...
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