运检食堂代码修改4

This commit is contained in:
zzyuan 2025-07-04 16:45:08 +08:00
parent b8f423846d
commit 0e138cfdff
2 changed files with 17 additions and 9 deletions

View File

@ -20,7 +20,7 @@
</el-form>
<ImportFile ref="importRef" :show-popup="showPopup" @update:showPopup="showPopup = $event" textTip="导入文件不能超过5M"
key="odAlarmOrderRecordFile" @uploadFinish="handleQuery" uploadUrl="/canteen/cmPersonAccount/importData"
localDownloadTemplateUrl="glweb/yjCanteen-template/UserFoodAllowance_template.xlsx"
localDownloadTemplateUrl="/glweb/yjCanteen-template/UserFoodAllowance_template.xlsx"
errorUrl="canteen/cmPersonAccount/importExport" template-file-name="用户餐补数据模板"
export-error-file-name="用户餐补数据.xls" title="用户餐补数据" />
</div>

View File

@ -445,13 +445,21 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm(`是否确认删除${row.userName}该条食堂客户调岗记录`).then(function () {
return delTransfer(ids);
}).then(() => {
this.getList();
this.$modal.confirm(`是否确认删除${row.userName}的调岗记录?删除后原先调岗将会还原!`)
.then(() => delTransfer(row)) // this
.then(async () => {
await this.initDeptUserTree(); //
await this.getList(); //
this.$modal.msgSuccess("删除成功");
}).catch(() => {
})
.then(() => {
this.$modal.msgSuccess("删除成功");
})
.catch((error) => {
if (error !== 'cancel') { //
console.error("删除失败:", error);
this.$modal.msgError(`删除失败: ${error.message || '未知错误'}`);
}
});
},
/** 导出按钮操作 */