运检食堂代码修改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> </el-form>
<ImportFile ref="importRef" :show-popup="showPopup" @update:showPopup="showPopup = $event" textTip="导入文件不能超过5M" <ImportFile ref="importRef" :show-popup="showPopup" @update:showPopup="showPopup = $event" textTip="导入文件不能超过5M"
key="odAlarmOrderRecordFile" @uploadFinish="handleQuery" uploadUrl="/canteen/cmPersonAccount/importData" 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="用户餐补数据模板" errorUrl="canteen/cmPersonAccount/importExport" template-file-name="用户餐补数据模板"
export-error-file-name="用户餐补数据.xls" title="用户餐补数据" /> export-error-file-name="用户餐补数据.xls" title="用户餐补数据" />
</div> </div>

View File

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