现场运行调整优化和页面移除绑定信息功能

This commit is contained in:
FT577-Server
2026-10-16 09:47:49 +08:00
parent b9469d414a
commit d0ba03e9c9
9 changed files with 88 additions and 50 deletions

View File

@@ -55,7 +55,7 @@ export function delBindTrayMsg(id) {
// 删除入库信息
export function delBindTrayMsgByRollerNumber(rollerNumbers) {
return request({
url: '/in/bindMsg/delete/' + rollerNumbers,
method: 'delete'
url: '/in/bindMsg/delete/' + rollerNumbers.join(','),
method: 'delete'
})
}

View File

@@ -104,7 +104,7 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<!-- <el-col :span="1.5">
<el-button
type="primary"
plain
@@ -123,7 +123,7 @@
@click="handleAdd('emptyTray')"
v-hasPermi="['in:bindMsg:add']"
>新增空托盘绑定</el-button>
</el-col>
</el-col> -->
<!-- <el-col :span="1.5">
<el-button
type="success"
@@ -135,17 +135,17 @@
v-hasPermi="['in:bindTrayMsg:edit']"
>修改</el-button>
</el-col> -->
<el-col :span="1.5">
<!-- <el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
@click="handleDelete()"
v-hasPermi="['in:bindMsg:remove']"
>删除</el-button>
</el-col>
</el-col> -->
<!-- <el-col :span="1.5">
<el-button
type="warning"
@@ -255,7 +255,7 @@
</template>
<script>
import { listBindTrayMsg, getBindTrayMsg, delBindTrayMsgByRollerNumber, addBindTrayMsg, addBindEmptyTrayMsg } from "@/api/in/bindTrayMsg"
import { listBindTrayMsg, getBindTrayMsg, delBindTrayMsg, addBindTrayMsg, addBindEmptyTrayMsg } from "@/api/in/bindTrayMsg"
import { data } from "vue-barcode";
export default {
@@ -462,31 +462,31 @@ export default {
},
/** 删除按钮操作 */
// handleDelete(row) {
// // 统一将单条数据转为数组,方便后端 String[] 接收
// const ids = row.id || row.ids;
// this.$modal.confirm('是否确认删除编号为"' + ids + '"的数据项?').then(function() {
// return delBindTrayMsg(ids)
// }).then(() => {
// this.getList()
// this.$modal.msgSuccess("删除成功")
// }).catch(() => {})
// },
handleDelete(row) {
// 统一将单条数据转为数组,方便后端 String[] 接收
const rollerNumbers = row.rollerNumber ? [row.rollerNumber] : this.rollerNumbers;
console.log(row)
console.log(rollerNumbers)
this.$modal.confirm('是否确认删除版辊编号为"' + rollerNumbers.join(",") + '"的数据项?').then(() => {
return delBindTrayMsgByRollerNumber(rollerNumbers)
const ids = row.id || row.ids;
this.$modal.confirm('是否确认删除编号为"' + ids + '"的数据项?').then(function() {
return delBindTrayMsg(ids)
}).then(() => {
this.getList()
this.$modal.msgSuccess("删除成功")
}).catch(() => {
this.getList()
})
}).catch(() => {})
},
// handleDelete(row) {
// // 统一将单条数据转为数组,方便后端 String[] 接收
// const rollerNumbers = row ? [row.productId] : this.productIds;
// console.log(row)
// console.log(rollerNumbers)
// this.$modal.confirm('是否确认删除版辊编号为"' + rollerNumbers.join(",") + '"的数据项?').then(() => {
// return delBindTrayMsgByRollerNumber(rollerNumbers)
// }).then(() => {
// this.getList()
// this.$modal.msgSuccess("删除成功")
// }).catch(() => {
// this.getList()
// })
// },
/** 导出按钮操作 */
handleExport() {