|
@@ -29,8 +29,8 @@
|
|
|
@click="handleUpdate">修改</el-button>
|
|
@click="handleUpdate">修改</el-button>
|
|
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple"
|
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple"
|
|
|
@click="handleDelete">删除</el-button>
|
|
@click="handleDelete">删除</el-button>
|
|
|
- <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
|
|
- :disabled="single">详情</el-button>
|
|
|
|
|
|
|
+ <!-- <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
|
|
+ :disabled="single">详情</el-button> -->
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:plannedCapacity="{ row }">
|
|
<template v-slot:plannedCapacity="{ row }">
|
|
|
{{ row.plannedCapacity }}{{ row.plannedCapacityUnit ? row.plannedCapacityUnit : '' }}
|
|
{{ row.plannedCapacity }}{{ row.plannedCapacityUnit ? row.plannedCapacityUnit : '' }}
|
|
@@ -39,6 +39,9 @@
|
|
|
{{ row.averageDailyCapacity }}{{ row.plannedCapacityUnit ? row.plannedCapacityUnit : '' }}
|
|
{{ row.averageDailyCapacity }}{{ row.plannedCapacityUnit ? row.plannedCapacityUnit : '' }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="handleExport(row)">
|
|
|
|
|
+ 详情
|
|
|
|
|
+ </el-link>
|
|
|
<el-link type="primary" :underline="false" icon="el-icon-edit" @click="handleUpdate(row)">
|
|
<el-link type="primary" :underline="false" icon="el-icon-edit" @click="handleUpdate(row)">
|
|
|
修改
|
|
修改
|
|
|
</el-link>
|
|
</el-link>
|
|
@@ -76,7 +79,8 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="规划产能" prop="plannedCapacity">
|
|
<el-form-item label="规划产能" prop="plannedCapacity">
|
|
|
<div style="display: flex;align-items: center;justify-content: space-between;">
|
|
<div style="display: flex;align-items: center;justify-content: space-between;">
|
|
|
- <el-input v-model="form.plannedCapacity" placeholder="请输入规划产能" style="width: calc(100% - 300px)" />
|
|
|
|
|
|
|
+ <el-input v-model="form.plannedCapacity" placeholder="请输入规划产能" style="width: calc(100% - 300px)"
|
|
|
|
|
+ @input="handleInput1" />
|
|
|
|
|
|
|
|
<el-select v-model="form.measureType" placeholder="计量类型">
|
|
<el-select v-model="form.measureType" placeholder="计量类型">
|
|
|
<el-option v-for="item in measureTypeList" :key="item.value" :label="item.label"
|
|
<el-option v-for="item in measureTypeList" :key="item.value" :label="item.label"
|
|
@@ -93,7 +97,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="工作日天数" prop="expandedCapacity">
|
|
<el-form-item label="工作日天数" prop="expandedCapacity">
|
|
|
- <el-input v-model="form.expandedCapacity" placeholder="请输入工作日天数">
|
|
|
|
|
|
|
+ <el-input v-model="form.expandedCapacity" placeholder="请输入工作日天数" @input="handleInput2">
|
|
|
<template v-slot:append>天</template>
|
|
<template v-slot:append>天</template>
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -105,17 +109,17 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
- <el-dialog :title="titleDetail" :visible.sync="openDetail" width="75%" append-to-body>
|
|
|
|
|
- <el-table v-loading="loading" :data="factory_capacity_detailList" @selection-change="handleSelectionChange">
|
|
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
|
+ <el-dialog :title="titleDetail" :visible.sync="openDetail" width="65%" append-to-body>
|
|
|
|
|
+ <el-table v-loading="loading" :data="factory_capacity_detailList" height="550">
|
|
|
|
|
+
|
|
|
<el-table-column label="序号" align="center" prop="id" />
|
|
<el-table-column label="序号" align="center" prop="id" />
|
|
|
<el-table-column label="年份" align="center" prop="year" />
|
|
<el-table-column label="年份" align="center" prop="year" />
|
|
|
<el-table-column label="月份" align="center" prop="month" />
|
|
<el-table-column label="月份" align="center" prop="month" />
|
|
|
<el-table-column label="日期" align="center" prop="day" />
|
|
<el-table-column label="日期" align="center" prop="day" />
|
|
|
<el-table-column label="规划产能" align="center" prop="plannedCapacity" />
|
|
<el-table-column label="规划产能" align="center" prop="plannedCapacity" />
|
|
|
<el-table-column label="已排产产能" align="center" prop="plannedSumCapacity" />
|
|
<el-table-column label="已排产产能" align="center" prop="plannedSumCapacity" />
|
|
|
- <el-table-column label="已排产单号" align="center" prop="plannedOrder" />
|
|
|
|
|
- <el-table-column label="已排产产能" align="center" prop="plannedOrderCapacity" />
|
|
|
|
|
|
|
+ <el-table-column label="已排产单号" align="center" prop="plannedOrder" width="120" show-overflow-tooltip />
|
|
|
|
|
+ <el-table-column label="已排产产能" align="center" prop="plannedOrderCapacity" width="120" show-overflow-tooltip />
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -243,7 +247,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
columnKey: 'action',
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
label: '操作',
|
|
|
- width: 150,
|
|
|
|
|
|
|
+ width: 200,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
resizable: false,
|
|
resizable: false,
|
|
|
slot: 'action',
|
|
slot: 'action',
|
|
@@ -314,7 +318,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
resetQuery() {
|
|
|
- this.resetForm("queryForm");
|
|
|
|
|
|
|
+ this.queryParams.year = null;
|
|
|
|
|
+ this.queryParams.month = null;
|
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
|
},
|
|
},
|
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
@@ -372,23 +377,30 @@ export default {
|
|
|
}).catch(() => { });
|
|
}).catch(() => { });
|
|
|
},
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
|
- handleExport() {
|
|
|
|
|
|
|
+ handleExport(row) {
|
|
|
this.openDetail = true;
|
|
this.openDetail = true;
|
|
|
- this.getDetailList();
|
|
|
|
|
|
|
+ this.getDetailList(row);
|
|
|
// this.download('aps/capacity/export', {
|
|
// this.download('aps/capacity/export', {
|
|
|
// ...this.queryParams
|
|
// ...this.queryParams
|
|
|
// }, `capacity_${new Date().getTime()}.xlsx`)
|
|
// }, `capacity_${new Date().getTime()}.xlsx`)
|
|
|
},
|
|
},
|
|
|
/** 查询工厂月产能定义列表 */
|
|
/** 查询工厂月产能定义列表 */
|
|
|
- getDetailList() {
|
|
|
|
|
- const ids = this.ids;
|
|
|
|
|
|
|
+ getDetailList(row) {
|
|
|
|
|
+ // const ids = this.ids;
|
|
|
|
|
+ console.log(row.id, 'dddd');
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
- listFactory_capacity_detail(this.queryParams).then(response => {
|
|
|
|
|
|
|
+ listFactory_capacity_detail({ factoriesId: row.factoriesId, year: row.year, month: row.month }).then(response => {
|
|
|
this.factory_capacity_detailList = response.data;
|
|
this.factory_capacity_detailList = response.data;
|
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ handleInput1(val) {
|
|
|
|
|
+ this.form.plannedCapacity = this.$handleInputPublicHasPoint(val);
|
|
|
|
|
+ },
|
|
|
|
|
+ handleInput2(val) {
|
|
|
|
|
+ this.form.expandedCapacity = this.$handleInputPublicHasPoint(val);
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|