Commit 9b5057a4 authored by zhengyi's avatar zhengyi

费用批量修改申请审批业务修改

parent 94746a9e
......@@ -119,7 +119,7 @@
<!--el-button type="text" v-if="scope.row.status == 1" @click="examineFn">{{$t('审核中')}}</el-button-->
<el-button
type="text"
v-if="modifable(scope.$index)"
v-if="modifable(scope.row)"
@click="modify(scope.row)"
>{{ $t("修改") }}
</el-button
......@@ -236,13 +236,13 @@ export default {
return !!this.currentItem;
},
modifable() {
return (index) => {
return (item) => {
// 审核中不允许修改
if (this.processInstanceId) return false;
// 有未提交的不允许修改
if (this.feeList.length) return false;
// 修改中的不允许修改
if (this.list.findIndex((item) => item.editMode) > -1) return false;
// 修改中的不允许修改
if (item.editMode) return false;
return true;
}
}
......@@ -317,18 +317,18 @@ export default {
if (errList.length) {
return this.$message.error("请填写完整费用申请信息");
}
if (this.editMode) {
// 要提交status=1,否则保持原状态
const data = {
...this.currentItem,
status: 1,
copyUserId: this.selectedUsers,
};
return applicationUpdate(data).then((r) => {
this.$message.success(this.$t("修改成功"));
this.$emit("update:dialogVisible", false);
});
}
// if (this.editMode) {
// // 要提交status=1,否则保持原状态
// const data = {
// ...this.currentItem,
// status: 1,
// copyUserId: this.selectedUsers,
// };
// return applicationUpdate(data).then((r) => {
// this.$message.success(this.$t("修改成功"));
// this.$emit("update:dialogVisible", false);
// });
// }
feeApplicationCreateBatch({
orderFeeApplicationCreateReqVOList: this.feeList,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment