|
|
@ -34,9 +34,9 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="{size,row,index}"> |
|
|
|
<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'" @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==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" v-if="row.trayStatus !=='3'" @click="Details(row)">在 托 详 情</el-button> |
|
|
|
<el-button type="primary" text icon="el-icon-view" @click="historys(row)">历 史 记 录</el-button> |
|
|
|
<el-button type="primary" text icon="el-icon-view" @click="historys(row)">历 史 记 录</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -228,6 +228,24 @@ |
|
|
|
.catch(_ => { |
|
|
|
.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){ |
|
|
|
Details(row){ |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: '/basicdata/warehouse/tray/basicdataTrayedt', |
|
|
|
path: '/basicdata/warehouse/tray/basicdataTrayedt', |
|
|
|