fix:光子工序中的route添加ordering:-update_time

This commit is contained in:
shijing 2025-04-25 16:04:51 +08:00
parent 831c33cb98
commit 1d3f3a124c
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
<el-switch v-model="form.need_enm"></el-switch>
</el-form-item> -->
</el-form>
<sc-form-table v-if="baseCode!=='bxerp'" ref="table" v-model="materialList" :addTemplate="addTemplate" placeholder="暂无数据">
<sc-form-table v-if="baseCode!=='bxerp'" ref="table" v-model="materialList" :pushType="'unshift'" :addTemplate="addTemplate" placeholder="暂无数据">
<el-table-column prop="type" label="输入物料" min-width="120" align="center">
<template #default="scope">
<span v-if="!scope.row.isedit">{{
@ -199,7 +199,7 @@ export default {
},
getRoute(id) {
let that = this;
that.$API.mtm.route.list.req({ mgroup: id, page: 0 }).then(res => {
that.$API.mtm.route.list.req({ mgroup: id,ordering:'-update_time', page: 0 }).then(res => {
that.routes = res;
let mList = []
res.forEach(item => {