|
|
|
@ -10,10 +10,10 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="切换工位编号" prop="switchStationCode">-->
|
|
|
|
|
<!-- <el-form-item label="切换工位" prop="switchStationCode">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="queryParams.switchStationCode"-->
|
|
|
|
|
<!-- placeholder="请输入切换工位编号"-->
|
|
|
|
|
<!-- placeholder="请输入切换工位"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
<!-- <el-form-item label="切换订单标识" prop="isSwitch">-->
|
|
|
|
|
<!-- <el-select v-model="queryParams.isSwitch" placeholder="请选择切换订单标识" clearable>-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="dict in dict.type.is_flag"-->
|
|
|
|
|
<!-- v-for="dict in dict.type.is_switch"-->
|
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
|
<!-- :label="dict.label"-->
|
|
|
|
|
<!-- :value="dict.value"-->
|
|
|
|
@ -85,7 +85,7 @@
|
|
|
|
|
<el-form-item label="打印标识" prop="isPrint">
|
|
|
|
|
<el-select v-model="queryParams.isPrint" placeholder="请选择打印标识" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.is_flag"
|
|
|
|
|
v-for="dict in dict.type.is_switch"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
@ -110,18 +110,18 @@
|
|
|
|
|
<!-- >新增-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['report:switchOrder:edit']"
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="success"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- icon="el-icon-edit"-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- :disabled="single"-->
|
|
|
|
|
<!-- @click="handleUpdate"-->
|
|
|
|
|
<!-- v-hasPermi="['report:switchOrder:edit']"-->
|
|
|
|
|
<!-- >修改-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
@ -151,10 +151,19 @@
|
|
|
|
|
<el-table v-loading="loading" :data="switchOrderList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
|
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
|
|
|
|
|
<el-table-column label="箱体码" align="center" prop="materialBarcode" v-if="columns[1].visible"/>
|
|
|
|
|
<el-table-column label="切换工位编号" align="center" prop="switchStationCode" v-if="columns[2].visible"/>
|
|
|
|
|
<el-table-column label="订单编号" align="center" prop="orderCode" v-if="columns[10].visible"/>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="切换工位" align="center" prop="switchStationName" v-if="columns[2].visible"/>
|
|
|
|
|
<el-table-column label="箱体码" align="center" prop="materialBarcode" v-if="columns[1].visible" width="190"/>
|
|
|
|
|
<el-table-column label="切换订单标识" align="center" prop="isSwitch" v-if="columns[4].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.is_switch" :value="scope.row.isSwitch"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="打印标识" align="center" prop="isPrint" v-if="columns[11].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.is_switch" :value="scope.row.isPrint"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" v-if="columns[5].visible"/>
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180" v-if="columns[6].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -168,16 +177,6 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" v-if="columns[9].visible"/>
|
|
|
|
|
<el-table-column label="切换订单标识" align="center" prop="isSwitch" v-if="columns[4].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.is_flag" :value="scope.row.isSwitch"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="打印标识" align="center" prop="isPrint" v-if="columns[11].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.is_flag" :value="scope.row.isPrint"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="原订单编号" align="center" prop="oldOrderCode" v-if="columns[3].visible"/>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -187,16 +186,16 @@
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['report:switchOrder:edit']"
|
|
|
|
|
>修改订单
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['report:switchOrder:remove']"
|
|
|
|
|
>删除
|
|
|
|
|
>修改SAP订单
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- icon="el-icon-delete"-->
|
|
|
|
|
<!-- @click="handleDelete(scope.row)"-->
|
|
|
|
|
<!-- v-hasPermi="['report:switchOrder:remove']"-->
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -211,26 +210,26 @@
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改切换订单管理对话框 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
<!-- <el-form-item label="主键标识" prop="objId">-->
|
|
|
|
|
<!-- <el-input v-model="form.objId" placeholder="请输入主键标识"/>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="箱体码" prop="materialBarcode">
|
|
|
|
|
<el-input v-model="form.materialBarcode" placeholder="请输入箱体码"/>
|
|
|
|
|
<el-input v-model="form.materialBarcode" placeholder="请输入箱体码" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="订单编号" prop="orderCode">
|
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入订单编号"/>
|
|
|
|
|
<el-form-item label="原订单编号" prop="orderCode">
|
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入原订单编号" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="切换工位" prop="switchStationName">
|
|
|
|
|
<el-input v-model="form.switchStationName" placeholder="请输入切换工位" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="新订单编号" prop="oldOrderCode">
|
|
|
|
|
<el-input v-model="form.oldOrderCode" placeholder="请输入新订单编号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="切换工位" prop="switchStationCode">-->
|
|
|
|
|
<!-- <el-input v-model="form.switchStationCode" placeholder="请输入切换工位编号"/>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- <el-form-item label="原订单编号" prop="oldOrderCode">-->
|
|
|
|
|
<!-- <el-input v-model="form.oldOrderCode" placeholder="请输入原订单编号"/>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- <el-form-item label="切换订单标识" prop="isSwitch">-->
|
|
|
|
|
<!-- <el-radio-group v-model="form.isSwitch">-->
|
|
|
|
|
<!-- <el-radio-->
|
|
|
|
|
<!-- v-for="dict in dict.type.is_flag"-->
|
|
|
|
|
<!-- v-for="dict in dict.type.is_switch"-->
|
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
|
<!-- :label="dict.value"-->
|
|
|
|
|
<!-- >{{ dict.label }}-->
|
|
|
|
@ -243,7 +242,7 @@
|
|
|
|
|
<!-- <el-form-item label="打印标识" prop="isPrint">-->
|
|
|
|
|
<!-- <el-radio-group v-model="form.isPrint">-->
|
|
|
|
|
<!-- <el-radio-->
|
|
|
|
|
<!-- v-for="dict in dict.type.is_flag"-->
|
|
|
|
|
<!-- v-for="dict in dict.type.is_switch"-->
|
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
|
<!-- :label="dict.value"-->
|
|
|
|
|
<!-- >{{ dict.label }}-->
|
|
|
|
@ -270,7 +269,7 @@ import {
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'SwitchOrder',
|
|
|
|
|
dicts: ['is_flag'],
|
|
|
|
|
dicts: ['is_switch'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 遮罩层
|
|
|
|
@ -302,6 +301,7 @@ export default {
|
|
|
|
|
objId: null,
|
|
|
|
|
materialBarcode: null,
|
|
|
|
|
switchStationCode: null,
|
|
|
|
|
switchStationName: null,
|
|
|
|
|
oldOrderCode: null,
|
|
|
|
|
isSwitch: null,
|
|
|
|
|
createBy: null,
|
|
|
|
@ -314,11 +314,15 @@ export default {
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {},
|
|
|
|
|
rules: {
|
|
|
|
|
oldOrderCode: [
|
|
|
|
|
{ required: true, message: '新订单编号不能为空', trigger: 'blur' }
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
|
|
|
|
{ key: 0, label: `主键标识`, visible: false },
|
|
|
|
|
{ key: 1, label: `箱体码`, visible: true },
|
|
|
|
|
{ key: 2, label: `切换工位编号`, visible: true },
|
|
|
|
|
{ key: 2, label: `切换工位`, visible: true },
|
|
|
|
|
{ key: 3, label: `原订单编号`, visible: false },
|
|
|
|
|
{ key: 4, label: `切换订单标识`, visible: true },
|
|
|
|
|
{ key: 5, label: `创建人`, visible: false },
|
|
|
|
@ -416,7 +420,7 @@ export default {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.objId != null) {
|
|
|
|
|
updateSwitchOrder(this.form).then(response => {
|
|
|
|
|
this.$modal.msgSuccess('修改成功')
|
|
|
|
|
this.$modal.msgSuccess('修改SAP订单成功,请到打印机旁进行补打条码!')
|
|
|
|
|
this.open = false
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|