Преглед изворни кода

物料添加不限制是否上下架

NULL1222 пре 3 дана
родитељ
комит
ec822ebc1a

+ 1 - 27
src/bgj/headquartersServiceMaterial/modules/batchAddToSite.vue

@@ -17,38 +17,12 @@ export default {
     name: "counterExamine",
     name: "counterExamine",
     data() {
     data() {
         return {
         return {
-            flag: false,
             loading: false,
             loading: false,
         };
         };
     },
     },
     methods: {
     methods: {
         onshow() {
         onshow() {
-            // 统一处理 单个对象 / 数组
-            const dataList = this.btnName ? [this.rowData] : this.rowData;
-            this.flag = false;
-            // 统一用 dataList 遍历
-            dataList.forEach((e) => {
-                if (e.shelf === 0) {
-                    this.flag = true;
-                }
-            });
-            if (this.flag) {
-                this.$alert(
-                    this.$t("所选数据中有数据还未上架,请检查后再进行操作"),
-                    this.$t("提示"),
-                    {
-                        confirmButtonText: this.$t("确定"),
-                        callback: (action) => {
-                            this.$message({
-                                type: "info",
-                                message: this.$t(`请检查所选数据`),
-                            });
-                        },
-                    }
-                );
-            } else {
-                this.onCounter();
-            }
+            this.onCounter();
         },
         },
         onCounter() {
         onCounter() {
             //根据是否传入 btnName 切换 单数/批量 文案
             //根据是否传入 btnName 切换 单数/批量 文案

+ 1 - 4
src/bgj/headquartersServiceMaterial/modules/detail.vue

@@ -26,10 +26,7 @@
                     @onSuccess="queryMainData"
                     @onSuccess="queryMainData"
                 ></Edit>
                 ></Edit>
                 <batchAddToSite
                 <batchAddToSite
-                    v-if="
-                        mainData.shelf === 1 &&
-                        tool.checkAuth($route.name, 'addToSite')
-                    "
+                    v-if="tool.checkAuth($route.name, 'addToSite')"
                     class="inline-16"
                     class="inline-16"
                     :rowData="mainData"
                     :rowData="mainData"
                     btnName="添加至本站"
                     btnName="添加至本站"

+ 0 - 19
src/bgj/headquartersServiceMaterial/modules/selectAllAddToSite.vue

@@ -15,25 +15,6 @@ export default {
             this.onSelectAllAddToSite();
             this.onSelectAllAddToSite();
         },
         },
         async onSelectAllAddToSite() {
         async onSelectAllAddToSite() {
-            const hasUnreviewed = this.basicLayout.list.some(
-                (row) => row.shelf === 0
-            );
-            if (hasUnreviewed) {
-                this.$alert(
-                    this.$t("所选数据中有数据还未上架,请检查后再进行操作"),
-                    this.$t("提示"),
-                    {
-                        confirmButtonText: this.$t("确定"),
-                        callback: () => {
-                            this.$message({
-                                type: "info",
-                                message: this.$t("请检查所选数据"),
-                            });
-                        },
-                    }
-                );
-                return;
-            }
             const elTable = this.basicLayout.$refs.table.$refs.tables;
             const elTable = this.basicLayout.$refs.table.$refs.tables;
             this.basicLayout.list.forEach((row) => {
             this.basicLayout.list.forEach((row) => {
                 elTable.toggleRowSelection(row, true);
                 elTable.toggleRowSelection(row, true);