Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
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
ximai
mes-pda-scan
Commits
663d2ad1
Commit
663d2ad1
authored
Jan 17, 2025
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 录入入库单接口更改
parent
6a694903
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
54 deletions
+52
-54
http.api.js
common/http.api.js
+1
-1
Main.vue
pages/forstorage/Main.vue
+51
-53
No files found.
common/http.api.js
View file @
663d2ad1
...
@@ -46,7 +46,7 @@ const install = (Vue, vm) => {
...
@@ -46,7 +46,7 @@ const install = (Vue, vm) => {
// 品号信息
// 品号信息
getforinvmbinfo
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/invmb/getforinvmbinfo'
,
params
),
getforinvmbinfo
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/invmb/getforinvmbinfo'
,
params
),
// 入库单创建
// 入库单创建
createforstorage
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/
sfctb/createforstorage
'
,
params
),
createforstorage
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/
moctf/createByErp
'
,
params
),
stockSaleOutList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/stockSaleOut/list'
,
params
),
stockSaleOutList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/stockSaleOut/list'
,
params
),
stockList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/stockSaleOut/stockList'
,
params
),
stockList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/stockSaleOut/stockList'
,
params
),
confirmStock
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/stockSaleOut/confirm'
,
params
),
confirmStock
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
vuex_api_url
+
'/stockSaleOut/confirm'
,
params
),
...
...
pages/forstorage/Main.vue
View file @
663d2ad1
...
@@ -3,32 +3,32 @@
...
@@ -3,32 +3,32 @@
<NavBar
:title=
"$t('录入入库单')"
></NavBar>
<NavBar
:title=
"$t('录入入库单')"
></NavBar>
<view
class=
"infoedit"
>
<view
class=
"infoedit"
>
<u-form
ref=
"form"
:modelValue=
"form"
class=
"login-form"
:labelWidth=
"190"
>
<u-form
ref=
"form"
:modelValue=
"form"
class=
"login-form"
:labelWidth=
"190"
>
<u-form-item
prop=
"t
b
001"
:label=
"$t('入库单别:')"
>
<u-form-item
prop=
"t
g
001"
:label=
"$t('入库单别:')"
>
<input
<input
v-model=
"form.t
b
001"
v-model=
"form.t
g
001"
type=
"text"
type=
"text"
>
>
</input>
</input>
</u-form-item>
</u-form-item>
<!--
<u-form-item
prop=
"t
c013
"
:label=
"$t('类型:')"
>
<!--
<u-form-item
prop=
"t
g010
"
:label=
"$t('类型:')"
>
<uni-data-select
<uni-data-select
v-model=
"form.t
c013
"
v-model=
"form.t
g010
"
:clear=
"false"
:clear=
"false"
:localdata=
"typeData"
:localdata=
"typeData"
></uni-data-select>
></uni-data-select>
</u-form-item>
-->
</u-form-item>
-->
<u-form-item
prop=
"t
c00
4"
:label=
"$t('工单单别:')"
>
<u-form-item
prop=
"t
g01
4"
:label=
"$t('工单单别:')"
>
<input
<input
v-model=
"form.t
c00
4"
v-model=
"form.t
g01
4"
type=
"text"
type=
"text"
@
confirm=
"inputCC"
@
confirm=
"inputCC"
>
>
</input>
</input>
</u-form-item>
</u-form-item>
<u-form-item
prop=
"t
c00
5"
:label=
"$t('工单单号:')"
>
<u-form-item
prop=
"t
g01
5"
:label=
"$t('工单单号:')"
>
<input
<input
v-model=
"form.t
c00
5"
v-model=
"form.t
g01
5"
focus
focus
type=
"text"
type=
"text"
@
confirm=
"inputCC"
@
confirm=
"inputCC"
...
@@ -53,16 +53,14 @@
...
@@ -53,16 +53,14 @@
>
>
</input>
</input>
</u-form-item>
-->
</u-form-item>
-->
<u-form-item
prop=
"t
c05
6"
:label=
"$t('库位:')"
>
<u-form-item
prop=
"t
g03
6"
:label=
"$t('库位:')"
>
<input
<input
v-model
.
number=
"form.tc056"
v-model
.
number=
"form.tg036"
type=
"text"
type=
"text"
@
confirm=
"submit"
@
confirm=
"submit"
>
>
</input>
</input>
</u-form-item>
</u-form-item>
<!--
<u-form-item
prop=
"tb008"
:label=
"$t('移入地:')"
>
<!--
<u-form-item
prop=
"tb008"
:label=
"$t('移入地:')"
>
<input
<input
v-model
.
number=
"form.tb008"
v-model
.
number=
"form.tb008"
...
@@ -72,7 +70,7 @@
...
@@ -72,7 +70,7 @@
>
>
</input>
</input>
</u-form-item>
-->
</u-form-item>
-->
<u-form-item
prop=
"tc032"
:label=
"$t('批号:')"
>
<
!--
<
u-form-item
prop=
"tc032"
:label=
"$t('批号:')"
>
<input
<input
v-model
.
number=
"form.tc032"
v-model
.
number=
"form.tc032"
...
@@ -80,16 +78,16 @@
...
@@ -80,16 +78,16 @@
@
confirm=
"submit"
@
confirm=
"submit"
>
>
</input>
</input>
</u-form-item>
</u-form-item>
-->
<u-form-item
prop=
"t
c036"
:label=
"$t('转移
数量:')"
>
<u-form-item
prop=
"t
g011"
:label=
"$t('
数量:')"
>
<input
<input
v-model=
"form.t
c036
"
v-model=
"form.t
g011
"
type=
"text"
type=
"text"
@
confirm=
"submit"
@
confirm=
"submit"
>
>
</input>
</input>
</u-form-item>
</u-form-item>
<u-form-item
prop=
"tc020"
:label=
"$t('使用人时:')"
>
<
!--
<
u-form-item
prop=
"tc020"
:label=
"$t('使用人时:')"
>
<input
<input
v-model=
"form.tc020"
v-model=
"form.tc020"
type=
"text"
type=
"text"
...
@@ -104,7 +102,7 @@
...
@@ -104,7 +102,7 @@
@
confirm=
"submit"
@
confirm=
"submit"
>
>
</input>
</input>
</u-form-item>
</u-form-item>
-->
<u-form-item
style=
"width:100%;"
>
<u-form-item
style=
"width:100%;"
>
<button
<button
size=
"medium"
size=
"medium"
...
@@ -136,10 +134,10 @@ import i18n from '../../lang/index'
...
@@ -136,10 +134,10 @@ import i18n from '../../lang/index'
this
.
index
=
option
.
index
this
.
index
=
option
.
index
this
.
info
=
data
this
.
info
=
data
this
.
form
=
data
.
moctis
[
this
.
index
]
this
.
form
=
data
.
moctis
[
this
.
index
]
this
.
form
[
't
c004'
]
=
this
.
form
[
'tc004'
]
?
this
.
form
[
'tc00
4'
].
trim
()
:
''
this
.
form
[
't
g014'
]
=
this
.
form
[
'tg014'
]
?
this
.
form
[
'tg01
4'
].
trim
()
:
''
this
.
form
[
't
c005'
]
=
this
.
form
[
'tc005'
]
?
this
.
form
[
'tc00
5'
].
trim
()
:
''
this
.
form
[
't
g015'
]
=
this
.
form
[
'tg015'
]
?
this
.
form
[
'tg01
5'
].
trim
()
:
''
this
.
form
[
'tc006'
]
=
this
.
form
[
'tc006'
]
?
this
.
form
[
'tc006'
].
trim
()
:
''
//
this.form['tc006'] = this.form['tc006'] ? this.form['tc006'].trim() : ''
this
.
form
[
't
c056'
]
=
this
.
form
[
'tc056'
]
?
this
.
form
[
'tc05
6'
].
trim
()
:
''
this
.
form
[
't
g036'
]
=
this
.
form
[
'tg036'
]
?
this
.
form
[
'tg03
6'
].
trim
()
:
''
}
}
},
},
data
()
{
data
()
{
...
@@ -172,18 +170,18 @@ import i18n from '../../lang/index'
...
@@ -172,18 +170,18 @@ import i18n from '../../lang/index'
}
}
],
],
form
:
{
form
:
{
t
c013
:
'
1'
,
t
g010
:
'0
1'
,
t
b001
:
'D20
'
,
t
g001
:
'5801
'
,
t
c004
:
'5101
'
,
t
g014
:
'510
'
,
t
c00
5
:
null
,
t
g01
5
:
null
,
tc006
:
null
,
//
tc006: null,
tb005
:
null
,
//
tb005: null,
t
c05
6
:
null
,
t
g03
6
:
null
,
tb008
:
null
,
//
tb008: null,
tc032
:
null
,
//
tc032: null,
tc036
:
null
,
// tg011
: null,
tc020
:
null
,
//
tc020: null,
tc021
:
null
,
//
tc021: null,
}
}
};
};
},
},
...
@@ -195,8 +193,8 @@ import i18n from '../../lang/index'
...
@@ -195,8 +193,8 @@ import i18n from '../../lang/index'
if
(
e
.
detail
.
value
.
includes
(
"-"
)){
if
(
e
.
detail
.
value
.
includes
(
"-"
)){
const
arr
=
e
.
detail
.
value
.
split
(
"-"
)
const
arr
=
e
.
detail
.
value
.
split
(
"-"
)
if
(
arr
.
length
===
2
)
{
if
(
arr
.
length
===
2
)
{
this
.
form
.
t
c00
4
=
arr
[
0
]
this
.
form
.
t
g01
4
=
arr
[
0
]
this
.
form
.
t
c00
5
=
arr
[
1
]
this
.
form
.
t
g01
5
=
arr
[
1
]
}
}
}
else
{
}
else
{
this
.
submit
()
this
.
submit
()
...
@@ -204,13 +202,13 @@ import i18n from '../../lang/index'
...
@@ -204,13 +202,13 @@ import i18n from '../../lang/index'
}
}
},
},
submit
(
row
)
{
submit
(
row
)
{
if
(
!
this
.
form
[
't
b
001'
])
{
if
(
!
this
.
form
[
't
g
001'
])
{
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入入库单别'
))
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入入库单别'
))
}
}
if
(
!
this
.
form
[
't
c00
4'
])
{
if
(
!
this
.
form
[
't
g01
4'
])
{
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入工单单别'
))
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入工单单别'
))
}
}
if
(
!
this
.
form
[
't
c00
5'
])
{
if
(
!
this
.
form
[
't
g01
5'
])
{
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入工单单号'
))
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入工单单号'
))
}
}
// if (!this.form['tc006']) {
// if (!this.form['tc006']) {
...
@@ -219,31 +217,31 @@ import i18n from '../../lang/index'
...
@@ -219,31 +217,31 @@ import i18n from '../../lang/index'
// if (!this.form['tb005']) {
// if (!this.form['tb005']) {
// return this.$u.toast(i18n.t('请输入移出地'))
// return this.$u.toast(i18n.t('请输入移出地'))
// }
// }
if
(
!
this
.
form
[
't
c05
6'
])
{
if
(
!
this
.
form
[
't
g03
6'
])
{
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入库位'
))
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入库位'
))
}
}
// if (!this.form['tb008']) {
// if (!this.form['tb008']) {
// return this.$u.toast(i18n.t('请输入移入地'))
// return this.$u.toast(i18n.t('请输入移入地'))
// }
// }
if
(
!
this
.
form
[
't
c036
'
])
{
if
(
!
this
.
form
[
't
g011
'
])
{
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入入库数量'
))
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入入库数量'
))
}
}
this
.
$u
.
api
.
createforstorage
(
this
.
form
).
then
(
res
=>
{
this
.
$u
.
api
.
createforstorage
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$u
.
toast
(
i18n
.
t
(
'入库成功'
))
this
.
$u
.
toast
(
i18n
.
t
(
'入库成功'
))
this
.
form
=
{
this
.
form
=
{
t
c013
:
'
1'
,
t
g010
:
'0
1'
,
t
b001
:
'D20
'
,
t
g001
:
'5801
'
,
t
c004
:
'5101
'
,
t
g014
:
'510
'
,
t
c00
5
:
null
,
t
g01
5
:
null
,
tc006
:
null
,
//
tc006: null,
tb005
:
null
,
//
tb005: null,
t
c05
6
:
null
,
t
g03
6
:
null
,
tb008
:
null
,
//
tb008: null,
tc032
:
null
,
//
tc032: null,
t
c036
:
null
,
t
g011
:
null
,
tc020
:
null
,
//
tc020: null,
tc021
:
null
,
//
tc021: null,
}
}
}
}
})
})
...
...
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