执行退货
This commit is contained in:
parent
f14613f2ca
commit
551a6a0a51
@ -42,3 +42,11 @@ export function delRtvendor(rtId) {
|
|||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//执行入库
|
||||||
|
export function execute(rtId) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/wm/rtvendor/' + rtId,
|
||||||
|
method: 'put'
|
||||||
|
})
|
||||||
|
}
|
@ -112,6 +112,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
v-if="scope.row.status =='CONFIRMED'"
|
||||||
|
@click="handleExecute(scope.row)"
|
||||||
|
v-hasPermi="['mes:wm:rtvendor:edit']"
|
||||||
|
>执行退货</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -224,7 +232,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listRtvendor, getRtvendor, delRtvendor, addRtvendor, updateRtvendor } from "@/api/mes/wm/rtvendor";
|
import { listRtvendor, getRtvendor, delRtvendor, addRtvendor, updateRtvendor,execute } from "@/api/mes/wm/rtvendor";
|
||||||
import {genCode} from "@/api/system/autocode/rule"
|
import {genCode} from "@/api/system/autocode/rule"
|
||||||
import VendorSelect from "@/components/vendorSelect/single.vue";
|
import VendorSelect from "@/components/vendorSelect/single.vue";
|
||||||
import Rtvendorline from "./line.vue"
|
import Rtvendorline from "./line.vue"
|
||||||
@ -386,6 +394,24 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//确认单据
|
||||||
|
doconfirm(){
|
||||||
|
let that = this;
|
||||||
|
this.$modal.confirm('是否完成供应商退货编制?【完成后将不能更改】').then(function(){
|
||||||
|
that.form.status = 'CONFIRMED';
|
||||||
|
that.submitForm();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//执行退货
|
||||||
|
handleExecute(row){
|
||||||
|
const rtIds = row.rtId || this.ids;
|
||||||
|
this.$modal.confirm('确认执行退货?').then(function() {
|
||||||
|
return execute(rtIds)//执行入库
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("退货成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const rtIds = row.rtId || this.ids;
|
const rtIds = row.rtId || this.ids;
|
||||||
|
Loading…
Reference in New Issue
Block a user