Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
杨硕
template_vue
Commits
58821f21
Commit
58821f21
authored
Apr 02, 2024
by
Hagsn3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
9f236417
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
265 additions
and
381 deletions
+265
-381
outcomeWmsApply.js
src/api/outcomeWmsApply.js
+10
-0
ConfirmationMaterials.vue
src/views/template/ConfirmationMaterials.vue
+67
-67
enterboundTwo.vue
src/views/template/enterboundTwo.vue
+54
-189
incomeMatBaseinfo.vue
src/views/template/incomeMatBaseinfo.vue
+15
-41
incomeWmsBox.vue
src/views/template/incomeWmsBox.vue
+53
-9
outcomeWmsApply.vue
src/views/template/outcomeWmsApply.vue
+66
-75
No files found.
src/api/outcomeWmsApply.js
View file @
58821f21
...
@@ -8,6 +8,7 @@ import Qs from 'qs'
...
@@ -8,6 +8,7 @@ import Qs from 'qs'
* 4. 修改
* 4. 修改
* 5. 逻辑删除
* 5. 逻辑删除
* 6. 导出
* 6. 导出
* 7.确认
*
*
*/
*/
...
@@ -66,3 +67,12 @@ export function exportOutcomeWmsApply(query) {
...
@@ -66,3 +67,12 @@ export function exportOutcomeWmsApply(query) {
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
export
function
sureStatus
(
data
)
{
return
request
({
url
:
'/outcomewmsapply/sure'
,
method
:
'put'
,
data
,
headers
:
{
'Content-Type'
:
'application/json;charset=utf8'
}
})
}
src/views/template/ConfirmationMaterials.vue
View file @
58821f21
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"queryParams.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"100"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"wh_id"
prop=
"whId"
>
<el-form-item
label=
"wh_id"
prop=
"whId"
>
<el-select
<el-select
v-model=
"queryParams.whId"
v-model=
"queryParams.whId"
...
@@ -44,6 +34,16 @@
...
@@ -44,6 +34,16 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"queryParams.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"100"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"出库状态"
prop=
"dealStatus"
>
<el-form-item
label=
"出库状态"
prop=
"dealStatus"
>
<el-select
v-model=
"queryParams.dealStatus"
placeholder=
"请选择出库状态"
clearable
size=
"small"
:maxlength=
"1"
>
<el-select
v-model=
"queryParams.dealStatus"
placeholder=
"请选择出库状态"
clearable
size=
"small"
:maxlength=
"1"
>
<el-option
<el-option
...
@@ -64,16 +64,6 @@
...
@@ -64,16 +64,6 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"flag"
>
<el-select
v-model=
"queryParams.flag"
placeholder=
"请选择状态"
clearable
size=
"small"
>
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
...
@@ -89,33 +79,12 @@
...
@@ -89,33 +79,12 @@
@
click=
"resetQuery"
@
click=
"resetQuery"
>
重置
</el-button>
>
重置
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
:class=
"commonField.exportClass"
:type=
"commonField.typeSuccess"
:icon=
"commonField.exportIcon"
:size=
"commonField.smallSize"
@
click=
"handleExport"
>
导出
</el-button>
</el-form-item>
</div>
</el-form>
</el-form>
<div
class=
"placeholder"
/>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
材料确认列表
</div>
<div
class=
"mb12 font-small-bold"
>
材料确认列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"outcomeWmsApplyList"
>
<el-table
v-loading=
"loading"
border
:data=
"outcomeWmsApplyList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"qty"
prop=
"qty"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
qty
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"wh_id"
prop=
"whId"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"wh_id"
prop=
"whId"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.whId === '001'"
>
仓库1
</span>
<span
v-if=
"scope.row.whId === '001'"
>
仓库1
</span>
...
@@ -133,6 +102,16 @@
...
@@ -133,6 +102,16 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"qty"
prop=
"qty"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
qty
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"出库状态"
prop=
"dealStatus"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"出库状态"
prop=
"dealStatus"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.dealStatus === '1'"
>
已出库
</span>
<span
v-if=
"scope.row.dealStatus === '1'"
>
已出库
</span>
...
@@ -147,41 +126,36 @@
...
@@ -147,41 +126,36 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<
el-table-column
width=
"120"
label=
"启用状态"
prop=
"flag"
>
<
!-- <el-table-column width="120" label="启用状态" prop="flag">--
>
<
template
slot-scope=
"scope"
>
<!-- <template slot-scope="scope">--
>
<el-switch
<!-- <el-switch-->
v-model=
"scope.row.flag"
<!-- v-model="scope.row.flag"-->
class=
"switchDisabledStyle"
<!-- class="switchDisabledStyle"-->
inactive-value=
"0"
<!-- inactive-value="0"-->
active-value=
"1"
<!-- active-value="1"-->
@
click
.
native=
"handleStatusChange(scope.row)"
<!-- @click.native="handleStatusChange(scope.row)"-->
/
>
<!-- />--
>
</
template
>
<!-- </template>--
>
<
/el-table-column
>
<
!-- </el-table-column>--
>
<
el-table-column
label=
"备注"
prop=
"remarks"
:show-overflow-tooltip=
"true"
>
<
!-- <el-table-column label="备注" prop="remarks" :show-overflow-tooltip="true">--
>
<
template
slot-scope=
"scope"
>
<!-- <template slot-scope="scope">--
>
{{
scope
.
row
.
remarks
||
'-'
}}
<!-- {{ scope.row.remarks || '-' }}-->
</
template
>
<!-- </template>--
>
<
/el-table-column
>
<
!-- </el-table-column>--
>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
2
00px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
1
00px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-if=
"scope.row.dealStatus ==='1'&&scope.row.sureStatus === '0' "
:class=
"commonField.updateClass"
:class=
"commonField.updateClass"
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
:size=
"commonField.size"
:size=
"commonField.size"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleSureStatus(scope.row)"
>
修改
</el-button>
>
确认
</el-button>
<el-button
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -269,7 +243,8 @@ import {
...
@@ -269,7 +243,8 @@ import {
getOutcomeWmsApply
,
getOutcomeWmsApply
,
delOutcomeWmsApply
,
delOutcomeWmsApply
,
updateOutcomeWmsApply
,
updateOutcomeWmsApply
,
exportOutcomeWmsApply
}
from
'@/api/outcomeWmsApply'
exportOutcomeWmsApply
,
sureStatus
}
from
'@/api/outcomeWmsApply'
import
commonField
from
'@/utils/commonField'
import
commonField
from
'@/utils/commonField'
import
{
getDicts
}
from
'@/api/system/dict/data'
import
{
getDicts
}
from
'@/api/system/dict/data'
export
default
{
export
default
{
...
@@ -395,6 +370,31 @@ export default {
...
@@ -395,6 +370,31 @@ export default {
this
.
getwareHouse
()
this
.
getwareHouse
()
},
},
methods
:
{
methods
:
{
/** 确认按钮*/
handleSureStatus
(
data
)
{
this
.
$confirm
(
'是否确认操作?'
,
'确认'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
sureStatus
(
data
)
}).
then
(()
=>
{
this
.
$message
({
message
:
'确认成功!'
,
type
:
'success'
})
this
.
getList
()
}).
catch
(
function
()
{
})
// sureStatus(data).then(res => {
// if (res.code === 200) {
// this.$message.success('确认成功!')
// this.getList()
// } else {
// this.$message.error('失败!')
// }
// })
},
/** 查询????列表 */
/** 查询????列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
...
...
src/views/template/enterboundTwo.vue
View file @
58821f21
This diff is collapsed.
Click to expand it.
src/views/template/incomeMatBaseinfo.vue
View file @
58821f21
...
@@ -59,16 +59,6 @@
...
@@ -59,16 +59,6 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"flag"
>
<el-select
v-model=
"queryParams.flag"
placeholder=
"请选择状态"
clearable
size=
"small"
>
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
...
@@ -93,19 +83,19 @@
...
@@ -93,19 +83,19 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"handleAdd"
@
click=
"handleAdd"
>
新增
</el-button>
>
新增
</el-button>
<el-button
<!--
<el-button-->
:class=
"commonField.exportClass"
<!-- :class="commonField.exportClass"-->
:type=
"commonField.typeSuccess"
<!-- :type="commonField.typeSuccess"-->
:icon=
"commonField.exportIcon"
<!-- :icon="commonField.exportIcon"-->
:size=
"commonField.smallSize"
<!-- :size="commonField.smallSize"-->
@
click=
"handleExport"
<!-- @click="handleExport"-->
>
导出
</el-button
>
<!-- >导出
</el-button>
--
>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
<div
class=
"placeholder"
/>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
库存管理
列表
</div>
<div
class=
"mb12 font-small-bold"
>
材料信息
列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"incomeMatBaseinfoList"
>
<el-table
v-loading=
"loading"
border
:data=
"incomeMatBaseinfoList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
...
@@ -144,35 +134,19 @@
...
@@ -144,35 +134,19 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"120"
label=
"状态"
prop=
"flag"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.flag"
class=
"switchDisabledStyle"
inactive-value=
"0"
active-value=
"1"
@
click
.
native=
"handleStatusChange(scope.row)"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"备注"
prop=
"remarks"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
remarks
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
200px
"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
100
"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<!--
<el-button-->
:class=
"commonField.updateClass"
<!-- :class="commonField.updateClass"-->
:type=
"commonField.typeParent"
<!-- :type="commonField.typeParent"-->
:size=
"commonField.size"
<!-- :size="commonField.size"-->
@
click=
"handleUpdate(scope.row)"
<!-- @click="handleUpdate(scope.row)"-->
>
修改
</el-button
>
<!-- >修改
</el-button>
--
>
<el-button
<el-button
:class=
"commonField.delClass"
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
...
...
src/views/template/incomeWmsBox.vue
View file @
58821f21
...
@@ -41,6 +41,23 @@
...
@@ -41,6 +41,23 @@
style=
"width: 150px"
style=
"width: 150px"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"ptype"
prop=
"ptype"
>
<el-select
v-model=
"queryParams.ptype"
placeholder=
"请选择ptype值"
clearable
:maxlength=
"1"
size=
"small"
style=
"width: 150px"
>
<el-option
v-for=
"dict in ptypeOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
...
@@ -73,11 +90,21 @@
...
@@ -73,11 +90,21 @@
<div
class=
"mb12 font-small-bold"
>
库存管理列表
</div>
<div
class=
"mb12 font-small-bold"
>
库存管理列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"incomeWmsBoxList"
>
<el-table
v-loading=
"loading"
border
:data=
"incomeWmsBoxList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"code"
prop=
"orderCode"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"code"
prop=
"orderCode"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderCode
||
'-'
}}
{{
scope
.
row
.
orderCode
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"ptype"
prop=
"ptype"
:show-overflow-tooltip=
"true"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.ptype === '1'"
>
jb
</span>
<span
v-else-if=
"scope.row.ptype === '2'"
>
label
</span>
<span
v-else-if=
"scope.row.ptype === '3'"
>
wd
</span>
<span
v-else-if=
"scope.row.ptype === '4'"
>
sl
</span>
<span
v-else-if=
"scope.row.ptype === '5'"
>
zd
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"lot"
prop=
"lot"
:show-overflow-tooltip=
"true"
width=
"110"
>
<el-table-column
label=
"lot"
prop=
"lot"
:show-overflow-tooltip=
"true"
width=
"110"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
lot
||
'-'
}}
{{
scope
.
row
.
lot
||
'-'
}}
...
@@ -98,7 +125,7 @@
...
@@ -98,7 +125,7 @@
{{
scope
.
row
.
qty
||
'-'
}}
{{
scope
.
row
.
qty
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"label_id"
prop=
"labelId"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"label_id"
prop=
"labelId"
:show-overflow-tooltip=
"true"
width=
"90"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
mac
||
'-'
}}
{{
scope
.
row
.
mac
||
'-'
}}
</
template
>
</
template
>
...
@@ -108,19 +135,13 @@
...
@@ -108,19 +135,13 @@
{{
scope
.
row
.
createName
||
'-'
}}
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"100px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
:class=
"commonField.updateClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
<el-button
:class=
"commonField.delClass"
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
...
@@ -208,6 +229,29 @@ export default {
...
@@ -208,6 +229,29 @@ export default {
dictValue
:
'0'
dictValue
:
'0'
}
}
],
],
// ptype菜单
ptypeOptions
:
[
{
dictLabel
:
'jb'
,
dictValue
:
'1'
},
{
dictLabel
:
'label'
,
dictValue
:
'2'
},
{
dictLabel
:
'wd'
,
dictValue
:
'3'
},
{
dictLabel
:
'sl'
,
dictValue
:
'4'
},
{
dictLabel
:
'zd'
,
dictValue
:
'5'
}
],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
page
:
1
,
page
:
1
,
...
...
src/views/template/outcomeWmsApply.vue
View file @
58821f21
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"queryParams.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"100"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"wh_id"
prop=
"whId"
>
<el-form-item
label=
"wh_id"
prop=
"whId"
>
<el-select
<el-select
v-model=
"queryParams.whId"
v-model=
"queryParams.whId"
...
@@ -44,6 +34,16 @@
...
@@ -44,6 +34,16 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"queryParams.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"100"
size=
"small"
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"出库状态"
prop=
"dealStatus"
>
<el-form-item
label=
"出库状态"
prop=
"dealStatus"
>
<el-select
v-model=
"queryParams.dealStatus"
placeholder=
"请选择出库状态"
clearable
size=
"small"
:maxlength=
"1"
>
<el-select
v-model=
"queryParams.dealStatus"
placeholder=
"请选择出库状态"
clearable
size=
"small"
:maxlength=
"1"
>
<el-option
<el-option
...
@@ -64,16 +64,6 @@
...
@@ -64,16 +64,6 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"flag"
>
<el-select
v-model=
"queryParams.flag"
placeholder=
"请选择状态"
clearable
size=
"small"
>
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
...
@@ -98,13 +88,13 @@
...
@@ -98,13 +88,13 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"handleAdd"
@
click=
"handleAdd"
>
新增
</el-button>
>
新增
</el-button>
<
el-button
<
!--
<el-button-->
:class=
"commonField.exportClass"
<!-- :class="commonField.exportClass"-->
:type=
"commonField.typeSuccess"
<!-- :type="commonField.typeSuccess"-->
:icon=
"commonField.exportIcon"
<!-- :icon="commonField.exportIcon"-->
:size=
"commonField.smallSize"
<!-- :size="commonField.smallSize"-->
@
click=
"handleExport"
<!-- @click="handleExport"-->
>
导出
</el-button
>
<!-- >导出
</el-button>
--
>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -113,16 +103,6 @@
...
@@ -113,16 +103,6 @@
<div
class=
"mb12 font-small-bold"
>
领用申请列表
</div>
<div
class=
"mb12 font-small-bold"
>
领用申请列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"outcomeWmsApplyList"
>
<el-table
v-loading=
"loading"
border
:data=
"outcomeWmsApplyList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"qty"
prop=
"qty"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
qty
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"wh_id"
prop=
"whId"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"wh_id"
prop=
"whId"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.whId === '001'"
>
仓库1
</span>
<span
v-if=
"scope.row.whId === '001'"
>
仓库1
</span>
...
@@ -140,6 +120,16 @@
...
@@ -140,6 +120,16 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"qty"
prop=
"qty"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
qty
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"出库状态"
prop=
"dealStatus"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"出库状态"
prop=
"dealStatus"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.dealStatus === '1'"
>
已出库
</span>
<span
v-if=
"scope.row.dealStatus === '1'"
>
已出库
</span>
...
@@ -154,28 +144,28 @@
...
@@ -154,28 +144,28 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<
el-table-column
width=
"120"
label=
"启用状态"
prop=
"flag"
>
<
!-- <el-table-column width="120" label="启用状态" prop="flag">--
>
<
template
slot-scope=
"scope"
>
<!-- <template slot-scope="scope">--
>
<el-switch
<!-- <el-switch-->
v-model=
"scope.row.flag"
<!-- v-model="scope.row.flag"-->
class=
"switchDisabledStyle"
<!-- class="switchDisabledStyle"-->
inactive-value=
"0"
<!-- inactive-value="0"-->
active-value=
"1"
<!-- active-value="1"-->
@
click
.
native=
"handleStatusChange(scope.row)"
<!-- @click.native="handleStatusChange(scope.row)"-->
/
>
<!-- />--
>
</
template
>
<!-- </template>--
>
<
/el-table-column
>
<
!-- </el-table-column>--
>
<
el-table-column
label=
"备注"
prop=
"remarks"
:show-overflow-tooltip=
"true"
>
<
!-- <el-table-column label="备注" prop="remarks" :show-overflow-tooltip="true">--
>
<
template
slot-scope=
"scope"
>
<!-- <template slot-scope="scope">--
>
{{
scope
.
row
.
remarks
||
'-'
}}
<!-- {{ scope.row.remarks || '-' }}-->
</
template
>
<!-- </template>--
>
<
/el-table-column
>
<
!-- </el-table-column>--
>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
2
00px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
1
00px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!--
<el-button-->
<!--
<el-button-->
<!-- :class="commonField.updateClass"-->
<!-- :class="commonField.updateClass"-->
...
@@ -188,6 +178,7 @@
...
@@ -188,6 +178,7 @@
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
:size=
"commonField.size"
:size=
"commonField.size"
@
click=
"handleDelete(scope.row)"
@
click=
"handleDelete(scope.row)"
v-if=
"scope.row.dealStatus === '0' "
>
删除
</el-button>
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -534,28 +525,28 @@ export default {
...
@@ -534,28 +525,28 @@ export default {
})
})
}).
catch
(
function
()
{
}).
catch
(
function
()
{
})
})
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
this
.
$confirm
(
'是否确认操作?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
exportOutcomeWmsApply
(
queryParams
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
download
=
'????信息'
+
'.xls'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
)
// 释放掉blob对象
})
})
}
}
/** 导出按钮操作 */
// handleExport() {
// const queryParams = this.queryParams
// this.$confirm('是否确认操作?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(function() {
// return exportOutcomeWmsApply(queryParams).then(response => {
// const blob = new Blob([response])
// const downloadElement = document.createElement('a')
// const href = window.URL.createObjectURL(blob)// 创建下载的链接
// downloadElement.href = href
// downloadElement.download = '????信息' + '.xls' // 下载后文件名
// document.body.appendChild(downloadElement)
// downloadElement.click()// 点击下载
// document.body.removeChild(downloadElement)// 下载完成移除元素
// window.URL.revokeObjectURL(href)// 释放掉blob对象
// })
// })
// }
}
}
}
}
</
script
>
</
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