chenrui
3 天以前 ddd7b9af964842f308530907dc009a289fdf9ce6
src/views/salesManagement/invoiceLedger/index.vue
@@ -52,9 +52,10 @@
            <el-button v-else link type="primary" @click="handleDownload(scope.row)">上传</el-button>
          </template>
        </el-table-column>
        <el-table-column fixed="right" label="操作" min-width="60" align="center">
        <el-table-column fixed="right" label="操作" width="150" align="center" >
          <template #default="scope">
            <el-button link type="primary" size="small" @click="openForm(scope.row);">编辑</el-button>
            <el-button link type="primary" size="small" @click="delInvoiceLedger(scope.row);">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
@@ -194,7 +195,7 @@
  invoiceLedgerSaveOrUpdate,
  invoiceLedgerProductInfo,
  commitFile,
  registrationProductPage
  registrationProductPage, delInvoiceLedgerByRegProductId
} from "../../../api/salesManagement/invoiceLedger.js";
import useUserStore from "@/store/modules/user.js";
const { proxy } = getCurrentInstance()
@@ -404,7 +405,22 @@
    currentId.value = ''
    fileList.value = []
  })
}
// 删除开票台账
const delInvoiceLedger = (row) => {
  ElMessageBox.confirm(
      '该发票台账将被删除,是否确认删除', {
        confirmButtonText: '确认',
        cancelButtonText: '取消',
        type: 'warning',
      }
  ).then(() => {
    delInvoiceLedgerByRegProductId(row.id).then(res => {
    })
  }).catch(() => {
    proxy.$modal.msg("已取消")
  })
}
// 获取当前日期并格式化为 YYYY-MM-DD