|
@@ -147,7 +147,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import byTable from "/src/components/byTable/index";
|
|
|
-import { ElMessage } from "element-plus";
|
|
|
+import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import SelectBOM from "/src/views/group/BOM/management/index";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
@@ -296,15 +296,26 @@ const config = computed(() => {
|
|
|
},
|
|
|
renderHTML(row) {
|
|
|
return [
|
|
|
+ // {
|
|
|
+ // attrs: {
|
|
|
+ // label: "一键包装",
|
|
|
+ // type: "primary",
|
|
|
+ // text: true,
|
|
|
+ // },
|
|
|
+ // el: "button",
|
|
|
+ // click() {
|
|
|
+ // clickPacking(row);
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "一键包装",
|
|
|
+ label: "完成订单",
|
|
|
type: "primary",
|
|
|
text: true,
|
|
|
},
|
|
|
el: "button",
|
|
|
click() {
|
|
|
- clickPacking(row);
|
|
|
+ clickCompleteOrder(row);
|
|
|
},
|
|
|
},
|
|
|
];
|
|
@@ -436,6 +447,20 @@ const clickPacking = (row) => {
|
|
|
}
|
|
|
);
|
|
|
};
|
|
|
+const clickCompleteOrder = (row) => {
|
|
|
+ ElMessageBox.confirm("你是否确认此操作", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ proxy.post("/productionOrder/finishOrder", { id: row.orderId }).then(() => {
|
|
|
+ ElMessage({ message: "操作成功", type: "success" });
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+};
|
|
|
const openExpressPacking = ref(false);
|
|
|
const clickExpressPacking = () => {
|
|
|
openExpressPacking.value = true;
|