7.23二级库修改
This commit is contained in:
parent
6ed51c8072
commit
a43dbda975
|
|
@ -1,5 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container" id="secondStore">
|
<div class="app-container" id="secondStore">
|
||||||
|
<div
|
||||||
|
class="upper-sec"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
:class="[{ clicked: leaseType == 1 }]"
|
||||||
|
@click="toggleBtn(1)"
|
||||||
|
>
|
||||||
|
长期领用
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
:class="[{ clicked: leaseType == 0 }]"
|
||||||
|
@click="toggleBtn(0)"
|
||||||
|
|
||||||
|
>
|
||||||
|
工程领用
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<el-form
|
<el-form
|
||||||
:model="queryParams"
|
:model="queryParams"
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
|
|
@ -148,6 +165,7 @@
|
||||||
align="center"
|
align="center"
|
||||||
prop="proName"
|
prop="proName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
v-if="leaseType == 0"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="类型名称"
|
label="类型名称"
|
||||||
|
|
@ -156,10 +174,16 @@
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="规格型号"
|
label="规格型号"
|
||||||
align="center"
|
align="center"
|
||||||
prop="modelName"
|
prop="modelName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="计量单位"
|
||||||
|
align="center"
|
||||||
|
prop="nuitName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="进场数量"
|
label="进场数量"
|
||||||
|
|
@ -195,10 +219,6 @@
|
||||||
prop="kcNum"
|
prop="kcNum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<!-- <template slot-scope="scope">-->
|
|
||||||
<!-- <span class="clickText" @click="openRecords(scope.row,3)">{{scope.row.kcNum}}</span>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<!-- </el-table-column>-->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="已出库数量"
|
label="已出库数量"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -228,12 +248,11 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="计量单位"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
prop="nuitName"
|
width="150"
|
||||||
:show-overflow-tooltip="true"
|
v-if="leaseType == 1"
|
||||||
/>
|
>
|
||||||
<el-table-column label="操作" align="center" width="150">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
|
|
@ -528,6 +547,8 @@ export default {
|
||||||
components: { Treeselect },
|
components: { Treeselect },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
// 上方按钮状态
|
||||||
|
leaseType: 1,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
|
|
@ -641,10 +662,14 @@ export default {
|
||||||
this.getUnitList()
|
this.getUnitList()
|
||||||
this.getProList()
|
this.getProList()
|
||||||
this.equipmentType()
|
this.equipmentType()
|
||||||
|
this.getList(this.leaseType)
|
||||||
this.getList()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 按钮状态改变
|
||||||
|
toggleBtn (count) {
|
||||||
|
this.leaseType = count;
|
||||||
|
this.getList(this.leaseType);
|
||||||
|
},
|
||||||
//获取单位
|
//获取单位
|
||||||
getUnitList() {
|
getUnitList() {
|
||||||
getUnitData().then((response) => {
|
getUnitData().then((response) => {
|
||||||
|
|
@ -692,8 +717,9 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
getList() {
|
getList(leaseType) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
this.queryParams.leaseType = leaseType;
|
||||||
secondaryWarehouseList(this.queryParams).then((response) => {
|
secondaryWarehouseList(this.queryParams).then((response) => {
|
||||||
this.deviceList = response.rows
|
this.deviceList = response.rows
|
||||||
this.total = response.total
|
this.total = response.total
|
||||||
|
|
@ -716,7 +742,7 @@ export default {
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
this.getList()
|
this.getList(this.leaseType)
|
||||||
},
|
},
|
||||||
handleDialogQuery() {
|
handleDialogQuery() {
|
||||||
this.dialogQuery.pageNum = 1
|
this.dialogQuery.pageNum = 1
|
||||||
|
|
@ -853,6 +879,30 @@ export default {
|
||||||
width: 60px !important;
|
width: 60px !important;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
.upper-sec{
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
div{
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 10px 30px;
|
||||||
|
background-color: #fff;
|
||||||
|
color: #999999;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
div:first-child{
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
}
|
||||||
|
div:last-child{
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
}
|
||||||
|
.clicked{
|
||||||
|
background-color: #409EFF;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
.clickText {
|
.clickText {
|
||||||
color: #02a7f0;
|
color: #02a7f0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,14 @@
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="框架年份" prop="year">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="queryParams.year"
|
||||||
|
type="year"
|
||||||
|
value-format="yyyy"
|
||||||
|
placeholder="选择年">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
@ -36,6 +44,14 @@
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-bottom"
|
||||||
|
size="mini"
|
||||||
|
v-hasPermi="['machinery:parts:add']"
|
||||||
|
>导入</el-button
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
|
|
@ -55,6 +71,13 @@
|
||||||
@click="toggleExpandAll"
|
@click="toggleExpandAll"
|
||||||
>展开/折叠</el-button
|
>展开/折叠</el-button
|
||||||
>
|
>
|
||||||
|
<el-button
|
||||||
|
type="info"
|
||||||
|
plain
|
||||||
|
icon="el-icon-top"
|
||||||
|
size="mini"
|
||||||
|
>下载导入模板</el-button
|
||||||
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
|
|
@ -267,7 +290,7 @@ export default {
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
paName: undefined,
|
paName: undefined,
|
||||||
status: undefined,
|
year: undefined
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|
@ -318,6 +341,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询部门列表 */
|
/** 查询部门列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
console.log(this.queryParams)
|
||||||
// this.loading = true;
|
// this.loading = true;
|
||||||
listPartType(this.queryParams)
|
listPartType(this.queryParams)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|
@ -504,4 +528,4 @@ export default {
|
||||||
width: 60px !important;
|
width: 60px !important;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue