Browse Source

2026-02-27

询价申请、测试申请、打样申请以及刀具申请记录OA流程放重复提交
master
fengyuan_yang 15 hours ago
parent
commit
d5a1a44096
  1. 10
      src/views/modules/proofing/requestForProofing.vue
  2. 10
      src/views/modules/quotation/requestForQuote.vue
  3. 10
      src/views/modules/test/requestForTest.vue
  4. 10
      src/views/modules/tooling/searchToolApply.vue

10
src/views/modules/proofing/requestForProofing.vue

@ -396,7 +396,7 @@
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<template v-if="isAuth('103001:submit')">
<template v-if="superAdmin || (modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name))">
<el-button v-if="modalData.proofingStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.proofingStatus === '审批中'" type="primary" :loading="submitLoading" :disabled="submitLoading" @click="agreeSubmit">同意</el-button>
</template>
</template>
<template v-if="isAuth('103001:rejected')">
@ -826,8 +826,8 @@
</el-form-item>
</el-form>
<el-footer style="text-align:center;height: 30px;line-height: 30px;">
<el-button type="primary" @click="rejectSubmit">确定</el-button>
<el-button type="primary" @click="rejectVisible = false">取消</el-button>
<el-button type="primary" :loading="submitLoading" :disabled="submitLoading" @click="rejectSubmit">确定</el-button>
<el-button type="primary" :disabled="submitLoading" @click="rejectVisible = false">取消</el-button>
</el-footer>
</el-dialog>
<!-- 上传文件的modal -->
@ -2273,6 +2273,7 @@ export default {
],
rejectVisible: false,
rejectOpinion: '',
submitLoading: false,
detailVisible: false,
no: 1,
size: 20,
@ -3823,6 +3824,7 @@ export default {
userName: this.$store.state.user.name,
menuId: this.$route.meta.menuId,
}
this.submitLoading = true
submitChange(tempData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
@ -3835,6 +3837,8 @@ export default {
confirmButtonText: '确定'
})
}
}).finally(() => {
this.submitLoading = false
})
},

10
src/views/modules/quotation/requestForQuote.vue

@ -398,7 +398,7 @@
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<template v-if="isAuth('102001001:submit')">
<template v-if="superAdmin || (modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name))">
<el-button v-if="modalData.quotationStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.quotationStatus === '审批中'" type="primary" :loading="submitLoading" :disabled="submitLoading" @click="agreeSubmit">同意</el-button>
</template>
</template>
<template v-if="isAuth('102001001:rejected')">
@ -586,8 +586,8 @@
</el-form-item>
</el-form>
<el-footer style="text-align:center;height: 30px;line-height: 30px;">
<el-button type="primary" @click="rejectSubmit">确定</el-button>
<el-button type="primary" @click="closeRejectForm">取消</el-button>
<el-button type="primary" :loading="submitLoading" :disabled="submitLoading" @click="rejectSubmit">确定</el-button>
<el-button type="primary" :disabled="submitLoading" @click="closeRejectForm">取消</el-button>
</el-footer>
</el-dialog>
@ -2101,6 +2101,7 @@ export default {
],
rejectVisible: false,
rejectOpinion: '',
submitLoading: false,
detailVisible: false,
no: 1,
size: 20,
@ -3531,6 +3532,7 @@ export default {
}
this.modalData.userName = this.$store.state.user.name
this.modalData.menuId = this.$route.meta.menuId
this.submitLoading = true
submitChange(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
@ -3543,6 +3545,8 @@ export default {
confirmButtonText: '确定'
})
}
}).finally(() => {
this.submitLoading = false
})
},

10
src/views/modules/test/requestForTest.vue

@ -426,7 +426,7 @@
<el-button type="primary" @click="closeDialog">关闭</el-button>
<template v-if="isAuth('107001:submit')">
<template v-if="superAdmin || (modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name))">
<el-button v-if="modalData.testStatus === '审批中' && !detailFlag" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.testStatus === '审批中' && !detailFlag" type="primary" :loading="submitLoading" :disabled="submitLoading" @click="agreeSubmit">同意</el-button>
</template>
</template>
<template v-if="isAuth('107001:rejected')">
@ -932,8 +932,8 @@
</el-form-item>
</el-form>
<el-footer style="text-align:center;height: 30px;line-height: 30px;">
<el-button type="primary" @click="rejectSubmit">确定</el-button>
<el-button type="primary" @click="rejectVisible = false">取消</el-button>
<el-button type="primary" :loading="submitLoading" :disabled="submitLoading" @click="rejectSubmit">确定</el-button>
<el-button type="primary" :disabled="submitLoading" @click="rejectVisible = false">取消</el-button>
</el-footer>
</el-dialog>
@ -2423,6 +2423,7 @@ export default {
],
rejectVisible: false,
rejectOpinion: "",
submitLoading: false,
partPageNo: 1,
partPageSize: 20,
partPageTotal: 0,
@ -3874,6 +3875,7 @@ export default {
}
this.modalData.userName = this.$store.state.user.name
this.modalData.menuId = this.$route.meta.menuId
this.submitLoading = true
submitChange(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
@ -3886,6 +3888,8 @@ export default {
confirmButtonText: '确定'
})
}
}).finally(() => {
this.submitLoading = false
})
},

10
src/views/modules/tooling/searchToolApply.vue

@ -621,7 +621,7 @@
<el-button type="primary" @click="visible = false" class="bigButton">{{ '取消' }}</el-button>
<template v-if="isAuth('106002:submit')">
<template v-if="superAdmin || (dataForm.sp && dataForm.sp.split(';').includes(sp))">
<el-button v-if="dataForm.status === '审批中'" type="primary" @click="agreeSubmit" class="bigButton">同意</el-button>
<el-button v-if="dataForm.status === '审批中'" type="primary" :loading="submitLoading" :disabled="submitLoading" @click="agreeSubmit" class="bigButton">同意</el-button>
</template>
</template>
<template v-if="isAuth('106002:rejected')">
@ -688,8 +688,8 @@
</el-form-item>
</el-form>
<el-footer style="height:30px;margin-top: 50px;text-align:center">
<el-button type="primary" @click="rejectSubmit">确定</el-button>
<el-button type="primary" @click="submitModalFlag = false">取消</el-button>
<el-button type="primary" :loading="submitLoading" :disabled="submitLoading" @click="rejectSubmit">确定</el-button>
<el-button type="primary" :disabled="submitLoading" @click="submitModalFlag = false">取消</el-button>
</el-footer>
</el-dialog>
@ -2075,6 +2075,7 @@ export default {
],
approvalList: [],
rejectOpinion: '',
submitLoading: false,
submitModalFlag: false,
processField: '',
sp: this.$store.state.user.name,
@ -2895,6 +2896,7 @@ export default {
this.dataForm.userName = this.$store.state.user.name
this.dataForm.menuId = this.$route.meta.menuId
this.dataForm.detailList = this.toolData
this.submitLoading = true
submitChange(this.dataForm).then(({data}) => {
if (data && data.code === 0) {
this.saveHeaderMessage2()
@ -2921,6 +2923,8 @@ export default {
confirmButtonText: '确定'
})
}
}).finally(() => {
this.submitLoading = false
})
},

Loading…
Cancel
Save