huminmin
12 小时以前 35a28e272e903359a326f629db7a69bf49eaf2bb
src/views/productionManagement/processRoute/index.vue
@@ -52,15 +52,14 @@
const data = reactive({
   searchForm: {
      name: "",
      no: "",
    model: "",
   },
});
const { searchForm } = toRefs(data);
const tableColumn = ref([
   {
      label: "零件名称",
      prop: "speculativeTradingName",
      label: "规格名称",
      prop: "model",
   },
   {
      label: "描述",
@@ -73,6 +72,13 @@
    fixed: "right",
    width: 280,
    operation: [
      {
        name: "详情",
        type: "text",
        clickFun: (row) => {
          showEditModal(row);
        }
      },
      {
        name: "编辑",
        type: "text",
@@ -139,18 +145,17 @@
// 删除
function handleDelete() {
  // const no = selectedRows.value.map((item) => item.no);
  // const ids = selectedRows.value.map((item) => item.id);
  // proxy.$modal
  //     .confirm('是否确认删除工序编号为"' + no + '"的数据项?')
  //     .then(function () {
  //       return del(ids);
  //     })
  //     .then(() => {
  //       getList();
  //       proxy.$modal.msgSuccess("删除成功");
  //     })
  //     .catch(() => {});
  const ids = selectedRows.value.map((item) => item.id);
  proxy.$modal
      .confirm('是否确认删除已勾选的数据项?')
      .then(function () {
        return del(ids);
      })
      .then(() => {
        getList();
        proxy.$modal.msgSuccess("删除成功");
      })
      .catch(() => {});
}
onMounted(() => {