Browse Source

1.托盘功能

dev-warehouse
0.0 1 year ago
parent
commit
563be24098
  1. 22
      src/views/basicdata/warehouse/tray/basicdataTray.vue

22
src/views/basicdata/warehouse/tray/basicdataTray.vue

@ -34,9 +34,9 @@
</template>
<template #menu="{size,row,index}">
<el-button type="primary" text icon="el-icon-view" v-if="row.trayStatus !=='3'" @click="losses(row)"> </el-button>
<el-button type="primary" text icon="el-icon-view" v-if="row.trayStatus !=='3' && row.disableType==1 " @click="vacant(row)"> </el-button>
<el-button type="primary" text icon="el-icon-view" v-if="row.trayStatus !=='3' && row.disableType==1 && row.trayStatus !=='1' " @click="vacant(row)"> </el-button>
<el-button type="primary" text icon="el-icon-view" v-if="row.trayStatus !=='3' && row.disableType==1" @click="disable(row)"> </el-button>
<el-button type="primary" text icon="el-icon-view" v-if="row.trayStatus !=='3' && row.disableType==2" @click="disable(row)"> </el-button>
<el-button type="primary" text icon="el-icon-view" v-if="row.trayStatus !=='3' && row.disableType==2" @click="addable(row)"> </el-button>
<el-button type="primary" text icon="el-icon-view" v-if="row.trayStatus !=='3'" @click="Details(row)"> </el-button>
<el-button type="primary" text icon="el-icon-view" @click="historys(row)"> </el-button>
</template>
@ -228,6 +228,24 @@
.catch(_ => {
});
},
addable(row){
this.$confirm('确认启用?')
.then(_ => {
row.disableType =1
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
}, error => {
loading();
console.log(error);
});
})
.catch(_ => {
});
},
Details(row){
this.$router.push({
path: '/basicdata/warehouse/tray/basicdataTrayedt',

Loading…
Cancel
Save