|
@@ -715,39 +715,39 @@ export default {
|
|
|
this.$message.error(result.message)
|
|
|
}
|
|
|
},
|
|
|
- // 打开 批量审批
|
|
|
- batchExamine() {
|
|
|
- // if (this.selectData.length) {
|
|
|
- this.submitExamineForm()
|
|
|
- // this.isShowExamineDialog = true;
|
|
|
- // return
|
|
|
- // }
|
|
|
- // this.$errorMsg('请选择审核项')
|
|
|
- },
|
|
|
- // // 打开 批量审批
|
|
|
- // batchExamine() {
|
|
|
- // if (this.selectData.length) {
|
|
|
+ // // 打开 批量审批
|
|
|
+ // batchExamine() {
|
|
|
+ // // if (this.selectData.length) {
|
|
|
+ // this.submitExamineForm()
|
|
|
+ // // this.isShowExamineDialog = true;
|
|
|
+ // // return
|
|
|
+ // // }
|
|
|
+ // // this.$errorMsg('请选择审核项')
|
|
|
+ // },
|
|
|
+ // 打开 批量审批
|
|
|
+ batchExamine() {
|
|
|
+ if (this.selectData.length) {
|
|
|
|
|
|
- // for (let i = 0; i < this.selectData.length; i++) {
|
|
|
- // if (this.selectData[i].examineStatus == 'OK' || this.selectData[i].examineStatus == 'SAVE') {
|
|
|
- // if (this.selectData[i].installDate) {
|
|
|
- // this.submitExamineForm()
|
|
|
- // }else{
|
|
|
- // this.$errorMsg('需要资料日期才能被审核')
|
|
|
- // return
|
|
|
- // }
|
|
|
+ for (let i = 0; i < this.selectData.length; i++) {
|
|
|
+ if (this.selectData[i].examineStatus == 'OK' || this.selectData[i].examineStatus == 'SAVE') {
|
|
|
+ if (this.selectData[i].installDate) {
|
|
|
+ this.submitExamineForm()
|
|
|
+ }else{
|
|
|
+ this.$errorMsg('需要资料日期才能被审核')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
- // }else{
|
|
|
- // this.$errorMsg('请选择保存状态或者待审核状态单')
|
|
|
- // return
|
|
|
+ }else{
|
|
|
+ this.$errorMsg('请选择保存状态或者待审核状态单')
|
|
|
+ return
|
|
|
|
|
|
- // }
|
|
|
- // }
|
|
|
- // // this.isShowExamineDialog = true;
|
|
|
- // return
|
|
|
- // }
|
|
|
- // this.$errorMsg('请选择需要审核的单,退押申请保存状态,待审核状态下操作批量审批,必须有资料审核日期才能被审核')
|
|
|
- // },
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // this.isShowExamineDialog = true;
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$errorMsg('请选择需要审核的单,退押申请保存状态,待审核状态下操作批量审批,必须有资料审核日期才能被审核')
|
|
|
+ },
|
|
|
// 提交 批量审批
|
|
|
submitExamineForm() {
|
|
|
let ids = this.selectData.map(item => {
|