|
@@ -851,6 +851,7 @@ import outBoundPrint from "@/utils/print/outBoundPrint";
|
|
|
import { listCustomer } from "@/api/system/customer";
|
|
|
import OutStock from "@/views/orderMange/components/dialogForm/OutStock.vue";
|
|
|
import { numToCapital } from "@/utils/other";
|
|
|
+import { async } from "@/components/updateModule/k-form-design/lib/k-form-design.common";
|
|
|
|
|
|
export default {
|
|
|
name: "listInfo",
|
|
@@ -3470,26 +3471,40 @@ export default {
|
|
|
},
|
|
|
// 完成回调
|
|
|
async myComplateHandler(row) {
|
|
|
- console.log(row);
|
|
|
- let payload = {
|
|
|
- id: row.id,
|
|
|
- status: 6,
|
|
|
- saleNo: row.saleNo,
|
|
|
- };
|
|
|
- let res = await updateOrder(payload);
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "订单已完成",
|
|
|
- });
|
|
|
- this.getList();
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: "error",
|
|
|
- message: "订单已完成失败,请稍后再试",
|
|
|
+ this.$confirm("即将确认完成, 是否继续?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(async () => {
|
|
|
+ let payload = {
|
|
|
+ id: row.id,
|
|
|
+ status: 6,
|
|
|
+ saleNo: row.saleNo,
|
|
|
+ };
|
|
|
+ let res = await updateOrder(payload);
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "订单已完成",
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: "订单已完成失败,请稍后再试",
|
|
|
+ });
|
|
|
+ console.log(res);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "已取消完成",
|
|
|
+ });
|
|
|
});
|
|
|
- console.log(res);
|
|
|
- }
|
|
|
+
|
|
|
+ console.log(row);
|
|
|
},
|
|
|
noNeedHandler(btnData, row) {
|
|
|
this.$modal
|