修改接口

master
夜笙歌 9 months ago
parent 1351200411
commit 2099abb970

@ -44,7 +44,8 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['base:processStation:add']" v-hasPermi="['base:processStation:add']"
>新增</el-button> >新增
</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -55,7 +56,8 @@
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['base:processStation:edit']" v-hasPermi="['base:processStation:edit']"
>修改</el-button> >修改
</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -66,7 +68,8 @@
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['base:processStation:remove']" v-hasPermi="['base:processStation:remove']"
>删除</el-button> >删除
</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -76,7 +79,8 @@
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['base:processStation:export']" v-hasPermi="['base:processStation:export']"
>导出</el-button> >导出
</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -85,7 +89,8 @@
icon="el-icon-close" icon="el-icon-close"
size="mini" size="mini"
@click="handleClose" @click="handleClose"
>关闭</el-button> >关闭
</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</el-row> </el-row>
@ -126,14 +131,16 @@
type="text" type="text"
icon="el-icon-s-grid" icon="el-icon-s-grid"
@click="findStation(scope.row)" @click="findStation(scope.row)"
>下级工位</el-button> >下级工位
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['base:processStation:edit']" v-hasPermi="['base:processStation:edit']"
>修改</el-button> >修改
</el-button>
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->
@ -201,8 +208,15 @@
</template> </template>
<script> <script>
import { listProcessStation, getProcessStation, delProcessStation, addProcessStation, updateProcessStation } from "@/api/base/processStation"; import {
listProcessStation,
getProcessStation,
delProcessStation,
addProcessStation,
updateProcessStation
} from "@/api/base/processStation";
import {findProductLineList} from "@/api/base/productLine"; import {findProductLineList} from "@/api/base/productLine";
export default { export default {
name: "ProcessStation", name: "ProcessStation",
dicts: ['is_flag', 'process_type'], dicts: ['is_flag', 'process_type'],
@ -247,8 +261,7 @@ export default {
// //
form: {}, form: {},
// //
rules: { rules: {},
},
columns: [ columns: [
{key: 0, label: `主键标识`, visible: false}, {key: 0, label: `主键标识`, visible: false},
{key: 1, label: `生产工序/工位编号`, visible: true}, {key: 1, label: `生产工序/工位编号`, visible: true},
@ -280,17 +293,17 @@ export default {
}, },
methods: { methods: {
/** 查询生产工序/工位信息列表 */ /** 查询生产工序/工位信息列表 */
getList() { async getList() {
this.loading = true; this.loading = true;
listProcessStation(this.queryParams).then(response => { await findProductLineList({productLineType: 1}).then(response => {
this.productLineList = response.data;
this.queryParams.productLineCode = response.data.find(val => val.productLineName === '一产线')?.productLineCode
})
await listProcessStation(this.queryParams).then(response => {
this.processStationList = response.rows; this.processStationList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
findProductLineList({productLineType: 1}).then(response => {
this.productLineList = response.data;
this.queryParams.productLineCode = response.data.find(val=>val.productLineName === '一产线')?.productLineCode
});
findProductLineList({productLineType: 2}).then(response => { findProductLineList({productLineType: 2}).then(response => {
this.findStationList = response.data; this.findStationList = response.data;
}); });
@ -397,7 +410,8 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); }).catch(() => {
});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {

Loading…
Cancel
Save