fix:辅料出入库记录撤回
This commit is contained in:
parent
023abaff33
commit
9fd9cf9983
|
@ -124,6 +124,15 @@
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
link
|
||||||
|
type="danger"
|
||||||
|
@click="table_revert(scope.row)"
|
||||||
|
v-auth="'mio.submit'"
|
||||||
|
v-if="scope.row.state == 20"
|
||||||
|
>
|
||||||
|
撤回
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
|
@ -216,20 +225,28 @@ export default {
|
||||||
table_del(row) {
|
table_del(row) {
|
||||||
this.$confirm(`确定删除吗?`, "提示", {
|
this.$confirm(`确定删除吗?`, "提示", {
|
||||||
type: "warning",
|
type: "warning",
|
||||||
})
|
}).then(() => {
|
||||||
.then(() => {
|
this.$API.inm.mio.delete.req(row.id).then((res) => {
|
||||||
this.$API.inm.mio.delete
|
this.$message.success("删除成功");
|
||||||
.req(row.id)
|
this.$refs.table.refresh();
|
||||||
.then((res) => {
|
return res;
|
||||||
this.$message.success("删除成功");
|
}).catch((err) => {
|
||||||
this.$refs.table.refresh();
|
return err;
|
||||||
return res;
|
});
|
||||||
})
|
}).catch(() => {});
|
||||||
.catch((err) => {
|
},
|
||||||
return err;
|
table_revert(row){
|
||||||
});
|
this.$confirm(`确定撤回吗?`, "提示", {
|
||||||
})
|
type: "warning",
|
||||||
.catch(() => {});
|
}).then(() => {
|
||||||
|
this.$API.inm.mio.revert.req(row.id).then((res) => {
|
||||||
|
this.$message.success("撤回成功");
|
||||||
|
this.$refs.table.refresh();
|
||||||
|
return res;
|
||||||
|
}).catch((err) => {
|
||||||
|
return err;
|
||||||
|
});
|
||||||
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
table_submit(row) {
|
table_submit(row) {
|
||||||
this.$API.inm.mio.submit.req(row.id).then((res) => {
|
this.$API.inm.mio.submit.req(row.id).then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue