Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
4725ba9d56
|
|
@ -1,9 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container" id="plan">
|
<div class="app-container" id="plan">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="80px"
|
||||||
|
>
|
||||||
<el-form-item label="名称" prop="name">
|
<el-form-item label="名称" prop="name">
|
||||||
<el-input v-model="queryParams.name" placeholder="请输入名称" clearable maxlength="50" style="width: 240px"
|
<el-input
|
||||||
@keyup.enter.native="handleQuery" />
|
v-model="queryParams.name"
|
||||||
|
placeholder="请输入名称"
|
||||||
|
clearable
|
||||||
|
maxlength="50"
|
||||||
|
style="width: 240px"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
|
@ -17,20 +30,35 @@
|
||||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="warning" plain icon="el-icon-download" size="mini">导出</el-button>
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="planList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="planList">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column label="序号" align="center" type="index" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
<el-table-column label="基层单位" align="center" prop="lenderCompany" :show-overflow-tooltip="true" />
|
<el-table-column
|
||||||
|
label="基层单位"
|
||||||
|
align="center"
|
||||||
|
prop="lenderCompany"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column label="物资名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
<el-table-column label="物资名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="规格型号" align="center" prop="typeModelName" :show-overflow-tooltip="true" />
|
<el-table-column
|
||||||
|
label="规格型号"
|
||||||
|
align="center"
|
||||||
|
prop="typeModelName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column label="单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
|
<el-table-column label="单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="计划数" align="center" prop="lenderOrigPlanNum" :show-overflow-tooltip="true" />
|
<el-table-column
|
||||||
|
label="计划数"
|
||||||
|
align="center"
|
||||||
|
prop="lenderOrigPlanNum"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column label="计划单价" align="center" prop="planPrice" :show-overflow-tooltip="true" />
|
<el-table-column label="计划单价" align="center" prop="planPrice" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="计划总价" align="center" prop="planCost" :show-overflow-tooltip="true" />
|
<el-table-column label="计划总价" align="center" prop="planCost" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
|
|
@ -44,20 +72,23 @@
|
||||||
</el-table-column>-->
|
</el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
<pagination
|
||||||
@pagination="getList" />
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listType } from "@/api/system/dict/type";
|
import { listType } from "@/api/system/dict/type";
|
||||||
import { getPlanList } from "@/api/store/newBuy";
|
import { getPlanList, planExport } from "@/api/store/newBuy";
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Plan",
|
name: "Plan",
|
||||||
dicts: ['sys_normal_disable'],
|
dicts: ["sys_normal_disable"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
|
@ -80,7 +111,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
dictType: undefined,
|
dictType: undefined,
|
||||||
status: undefined
|
status: undefined
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -94,8 +125,7 @@ export default {
|
||||||
this.planList = response.rows;
|
this.planList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
});
|
||||||
);
|
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
|
|
@ -110,20 +140,19 @@ export default {
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$tab.closeOpenPage({
|
this.$tab.closeOpenPage({
|
||||||
path: "/store/plan/planAdd",
|
path: "/store/plan/planAdd"
|
||||||
});
|
});
|
||||||
// console.log(this.$router);
|
// console.log(this.$router);
|
||||||
|
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
// handleSelectionChange(selection) {
|
||||||
this.ids = selection.map(item => item)
|
// this.ids = selection.map(item => item);
|
||||||
this.single = selection.length != 1
|
// this.single = selection.length != 1;
|
||||||
this.multiple = !selection.length
|
// this.multiple = !selection.length;
|
||||||
},
|
// },
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
let query = { taskId: row.taskId }
|
let query = { taskId: row.taskId };
|
||||||
this.$tab.closeOpenPage({ path: "/store/plan/planAdd", query });
|
this.$tab.closeOpenPage({ path: "/store/plan/planAdd", query });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -139,10 +168,14 @@ export default {
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
// this.download('system/dict/type/export', {
|
this.download(
|
||||||
// ...this.queryParams
|
"/material/planManagement/export",
|
||||||
// }, `type_${new Date().getTime()}.xlsx`)
|
{
|
||||||
|
...this.queryParams
|
||||||
},
|
},
|
||||||
|
`type_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="typeList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="typeList">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column label="序号" align="center">
|
<el-table-column label="序号" align="center">
|
||||||
<template slot-scope="scope">{{ scope.$index + 1 }}</template>
|
<template slot-scope="scope">{{ scope.$index + 1 }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -396,11 +396,11 @@ export default {
|
||||||
this.getunitInfoAll();
|
this.getunitInfoAll();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
// handleSelectionChange(selection) {
|
||||||
this.ids = selection.map(item => item);
|
// this.ids = selection.map(item => item);
|
||||||
this.single = selection.length != 1;
|
// this.single = selection.length != 1;
|
||||||
this.multiple = !selection.length;
|
// this.multiple = !selection.length;
|
||||||
},
|
// },
|
||||||
/** 借调单位数据 */
|
/** 借调单位数据 */
|
||||||
getunitInfoAll() {
|
getunitInfoAll() {
|
||||||
getunitInfoAll().then(response => {
|
getunitInfoAll().then(response => {
|
||||||
|
|
@ -492,9 +492,13 @@ export default {
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
// this.download('system/dict/type/export', {
|
this.download(
|
||||||
// ...this.queryParams
|
"/material/planManagement/exportManage",
|
||||||
// }, `type_${new Date().getTime()}.xlsx`)
|
{
|
||||||
|
...this.queryParams
|
||||||
|
},
|
||||||
|
`type_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue