物料装箱列表调整

dev-scheduling
zhangdi 2 weeks ago
parent 62dd2877af
commit 96d4a8a726
  1. 35
      src/views/logisticsManagement/materialPacking.vue

@ -23,6 +23,11 @@
<template #menu="scope"> <template #menu="scope">
<el-button type="text" @click="detailsFn(scope.row)">详情</el-button> <el-button type="text" @click="detailsFn(scope.row)">详情</el-button>
</template> </template>
<template #statusDesc="scope">
<el-tag v-if="scope.row.statusDesc == '未绑定'" type="info">未绑定</el-tag>
<el-tag v-if="scope.row.statusDesc == '已绑定'" type="success">已绑定</el-tag>
<el-tag v-if="scope.row.statusDesc == '已解绑'" type="danger">已解绑</el-tag>
</template>
</avue-crud> </avue-crud>
<!-- 新增 --> <!-- 新增 -->
<addPackingDialog <addPackingDialog
@ -52,19 +57,19 @@
import addPackingDialog from './components/addPackingDialog.vue'; import addPackingDialog from './components/addPackingDialog.vue';
import unbindDialog from './components/unbindDialog.vue'; import unbindDialog from './components/unbindDialog.vue';
import materialDetails from './components/materialDetails.vue'; import materialDetails from './components/materialDetails.vue';
import { getList ,boxUnbind} from '@/api/logisticsManagement/materialPacking'; import { getList, boxUnbind } from '@/api/logisticsManagement/materialPacking';
export default { export default {
components: { components: {
addPackingDialog, addPackingDialog,
unbindDialog, unbindDialog,
materialDetails materialDetails,
}, },
data() { data() {
return { return {
showReceiveDialog: false, showReceiveDialog: false,
showReturnDialog: false, showReturnDialog: false,
showAddDialogd: false, showAddDialogd: false,
showUnbindDialogd:false, showUnbindDialogd: false,
rowItem: {}, rowItem: {},
form: {}, form: {},
selectionList: [], selectionList: [],
@ -116,7 +121,7 @@ export default {
gridBtn: false, gridBtn: false,
searchMenuPosition: 'right', searchMenuPosition: 'right',
align: 'center', align: 'center',
menu: true, menu: false,
column: [ column: [
{ {
label: '箱条码', label: '箱条码',
@ -125,6 +130,13 @@ export default {
sortable: true, sortable: true,
span: 12, span: 12,
}, },
{
label: '流程卡号',
prop: 'cardNo',
search: true,
sortable: true,
span: 12,
},
// { // {
// label: '', // label: '',
// prop: 'wcName', // prop: 'wcName',
@ -158,7 +170,6 @@ export default {
{ label: '未绑定', value: 0 }, { label: '未绑定', value: 0 },
{ label: '已绑定', value: 1 }, { label: '已绑定', value: 1 },
{ label: '已解绑', value: 2 }, { label: '已解绑', value: 2 },
], ],
}, },
{ {
@ -191,26 +202,26 @@ export default {
}, },
data: [], data: [],
showDetails:false showDetails: false,
}; };
}, },
methods: { methods: {
detailsFn(row){ detailsFn(row) {
this.rowItem = row this.rowItem = row;
this.showDetails = true this.showDetails = true;
}, },
addFn() { addFn() {
this.showAddDialogd = true; this.showAddDialogd = true;
}, },
unbindFn(){ unbindFn() {
this.showUnbindDialogd = true; this.showUnbindDialogd = true;
}, },
closeDialog() { closeDialog() {
this.showAddDialogd = false; this.showAddDialogd = false;
this.showReturnDialog = false; this.showReturnDialog = false;
this.showReceiveDialog = false; this.showReceiveDialog = false;
this.showUnbindDialogd=false; this.showUnbindDialogd = false;
this.showDetails = false this.showDetails = false;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
rowSave(row, done, loading) { rowSave(row, done, loading) {

Loading…
Cancel
Save