|
@@ -472,43 +472,43 @@ const action: detailAction[] = [
|
|
|
await openDeptChoosen(curRecords);
|
|
|
}
|
|
|
}),
|
|
|
- buttonDefault({
|
|
|
- label: t("common.recalculateFromNotFlag"),
|
|
|
- power: 72,
|
|
|
- clickFunc: item => {
|
|
|
- const { curRecords } = getCurrentRecords(vxeTableRef.value);
|
|
|
-
|
|
|
- console.log("curRecords :>> ", curRecords);
|
|
|
- if (!curRecords.length) {
|
|
|
- ElMessage.warning(t("business.tips.mattress.records"));
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- let list = curRecords.map((item: any) => {
|
|
|
- return { mattressid: Number(item.mattressid) };
|
|
|
- });
|
|
|
-
|
|
|
- ElMessageBox.confirm(`是否确定要批重算${curRecords.length}张床垫报价单吗?`, "询问", {
|
|
|
- confirmButtonText: t("common.okText"),
|
|
|
- cancelButtonText: "否",
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- ReCalculateNoAudit({ list }).then(() => {
|
|
|
- ElMessage.success("批重算成功!");
|
|
|
-
|
|
|
- vxeTableRef.value.refresh();
|
|
|
- });
|
|
|
- })
|
|
|
- .catch((e: TypeError) => {
|
|
|
- console.log("e :>> ", e);
|
|
|
- ElMessage({
|
|
|
- type: "info",
|
|
|
- message: "操作取消"
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
+ // buttonDefault({
|
|
|
+ // label: t("common.recalculateFromNotFlag"),
|
|
|
+ // power: 72,
|
|
|
+ // clickFunc: item => {
|
|
|
+ // const { curRecords } = getCurrentRecords(vxeTableRef.value);
|
|
|
+
|
|
|
+ // console.log("curRecords :>> ", curRecords);
|
|
|
+ // if (!curRecords.length) {
|
|
|
+ // ElMessage.warning(t("business.tips.mattress.records"));
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // let list = curRecords.map((item: any) => {
|
|
|
+ // return { mattressid: Number(item.mattressid) };
|
|
|
+ // });
|
|
|
+
|
|
|
+ // ElMessageBox.confirm(`是否确定要批重算${curRecords.length}张床垫报价单吗?`, "询问", {
|
|
|
+ // confirmButtonText: t("common.okText"),
|
|
|
+ // cancelButtonText: "否",
|
|
|
+ // type: "warning"
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // ReCalculateNoAudit({ list }).then(() => {
|
|
|
+ // ElMessage.success("批重算成功!");
|
|
|
+
|
|
|
+ // vxeTableRef.value.refresh();
|
|
|
+ // });
|
|
|
+ // })
|
|
|
+ // .catch((e: TypeError) => {
|
|
|
+ // console.log("e :>> ", e);
|
|
|
+ // ElMessage({
|
|
|
+ // type: "info",
|
|
|
+ // message: "操作取消"
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // }),
|
|
|
buttonDefault({
|
|
|
label: t("common.viewHistoricalQuotes"),
|
|
|
power: 72,
|