huminmin
5 天以前 d6bcd2806fcf3a2f8da602152f2423f7f86226d7
src/views/productionManagement/productionReporting/index.vue
@@ -127,15 +127,21 @@
         </PIMTable>
      </div>
      <form-dia ref="formDia" @close="handleQuery"></form-dia>
    <input-modal
        v-if="isShowInput"
        v-model:visible="isShowInput"
    />
    <output-modal
        v-if="isShowOutput"
        v-model:visible="isShowOutput"
    />
   </div>
</template>
<script setup>
import {onMounted, ref} from "vue";
import FormDia from "@/views/productionManagement/productionReporting/components/formDia.vue";
import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
import {ElMessageBox} from "element-plus";
import dayjs from "dayjs";
import {
   productionReportUpdate,
   workListPageById
@@ -144,6 +150,8 @@
  productionProductMainListPage,
} from "@/api/productionManagement/production_product_main.js";
import {userListNoPageByTenantId} from "@/api/system/user.js";
import InputModal from "@/views/productionManagement/productionReporting/Input.vue";
import OutputModal from "@/views/productionManagement/productionReporting/Output.vue";
const data = reactive({
   searchForm: {
@@ -236,9 +244,17 @@
    width: 200,
    operation: [
      {
        name: "查看",
        name: "查看投入",
        type: "text",
        clickFun: (row) => {
          showInput(row)
        }
      },
      {
        name: "查看产出",
        type: "text",
        clickFun: (row) => {
          showOutput(row)
        }
      },
    ]
@@ -376,30 +392,18 @@
   })
};
// 删除
const handleDelete = () => {
   let ids = [];
   if (selectedRows.value.length > 0) {
      ids = selectedRows.value.map((item) => item.id);
   } else {
      proxy.$modal.msgWarning("请选择数据");
      return;
// 打开投入模态框
const isShowInput = ref(false);
const showInput = (row) => {
   isShowInput.value = true;
   }
   ElMessageBox.confirm("选中的内容将被删除,是否确认删除?", "导出", {
      confirmButtonText: "确认",
      cancelButtonText: "取消",
      type: "warning",
   })
      .then(() => {
         staffJoinDel(ids).then((res) => {
            proxy.$modal.msgSuccess("删除成功");
            getList();
         });
      })
      .catch(() => {
         proxy.$modal.msg("已取消");
      });
};
// 打开产出模态框
const isShowOutput = ref(false);
const showOutput = (row) => {
   isShowOutput.value = true;
}
// 导出
const handleOut = () => {
   ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", {