|
|
@@ -59,6 +59,9 @@
|
|
|
<el-button v-if="parseInt(IsCompanyUser) !== 1 && parseInt(totalTab) >= 3 && formData.Status <= 0" type="primary" size="mini" style="float: right;margin-left: 25px" @click="commitAudit()">
|
|
|
提交审批
|
|
|
</el-button>
|
|
|
+ <el-button v-if="parseInt(totalTab) >= 3 && formData.Status == 6" type="primary" size="mini" style="float: right;margin-left: 25px" @click="recallApplyClick()" :loading="recallApplyBtn">
|
|
|
+ 撤回
|
|
|
+ </el-button>
|
|
|
<!--<el-button type="primary" @click="toPdf" size="mini" :disabled="formData.Status == 0">准入范围</el-button>-->
|
|
|
<!--<router-link :to="'/oilsupplier/supplier/goodslist'">-->
|
|
|
<!--<el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回</el-button>-->
|
|
|
@@ -342,6 +345,8 @@
|
|
|
:canadd="add_flat"
|
|
|
:candelete="delete_flat"
|
|
|
:operType="formData.OperType"
|
|
|
+ :status="formData.Status"
|
|
|
+ :needPayAmount="needPayAmount"
|
|
|
:Grade="formData.Grade"
|
|
|
height="360px"
|
|
|
@tab-click="tabclick()"
|
|
|
@@ -485,6 +490,12 @@
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="dialogVisibleCom"
|
|
|
width="520px">
|
|
|
+ <div slot="title">
|
|
|
+ <span style="line-height: 24px; font-size: 18px; color: #303133">
|
|
|
+ 提交
|
|
|
+ <span v-if="needPayAmount > 0" style="font-size: 12px; color: red">(需交费{{ needPayAmount }}元)</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
<el-form ref="searchForm"
|
|
|
label-width="100px">
|
|
|
<el-row>
|
|
|
@@ -530,6 +541,32 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog title="撤回"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :visible.sync="recallApplyVisible"
|
|
|
+ width="520px">
|
|
|
+ <el-form label-width="60px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="原因">
|
|
|
+ <el-input v-model="auditform.AuditRemark"
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请输入撤回原因">
|
|
|
+ <span><i class="el-icon-warning" style="color: red" /> 撤回后需重新发起申请,请慎重选择!</span>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer"
|
|
|
+ class="dialog-footer">
|
|
|
+ <el-button size="mini"
|
|
|
+ @click="recallApplyVisible = false">取 消</el-button>
|
|
|
+ <el-button size="mini"
|
|
|
+ type="primary"
|
|
|
+ @click="recallApplyConfirm" :loading="loading">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
<!--<choose-auditor ref="chooseAuditor"-->
|
|
|
<!--@close="setAuditer"-->
|
|
|
<!--@hideChooseAuditer="chooseAuditorVisible=false"-->
|
|
|
@@ -625,6 +662,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ recallApplyVisible: false, // 撤回申请弹出框
|
|
|
+ recallApplyBtn: false,
|
|
|
+ needPayAmount: 0,
|
|
|
showcy: false,
|
|
|
loading: false,
|
|
|
WorkerTotal: 0,
|
|
|
@@ -884,6 +924,7 @@ export default {
|
|
|
if (this.$route.query.certid) {
|
|
|
this.certId = this.$route.query.certid + ''
|
|
|
}
|
|
|
+ this.getAccessApplyIsNeedPay()
|
|
|
if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
this.formData.Id = this.serviceId
|
|
|
} else {
|
|
|
@@ -1692,6 +1733,7 @@ export default {
|
|
|
this.formData.Id = res.data.item.split('_')[0]
|
|
|
this.certId = res.data.item.split('_')[1]
|
|
|
this.initDatas()
|
|
|
+ this.getAccessApplyIsNeedPay()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1713,6 +1755,7 @@ export default {
|
|
|
// 更新子表
|
|
|
// this.updateNumberEntity()
|
|
|
_this.initDatas()
|
|
|
+ this.getAccessApplyIsNeedPay()
|
|
|
_this.goodsloading = false
|
|
|
} else {
|
|
|
_this.goodsloading = false
|
|
|
@@ -1738,6 +1781,7 @@ export default {
|
|
|
this.formData.Id = res.data.item.split('_')[0]
|
|
|
this.certId = res.data.item.split('_')[1]
|
|
|
this.initDatas()
|
|
|
+ this.getAccessApplyIsNeedPay()
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
@@ -1765,6 +1809,7 @@ export default {
|
|
|
// 更新子表
|
|
|
// this.updateNumberEntity()
|
|
|
_this.initDatas()
|
|
|
+ this.getAccessApplyIsNeedPay()
|
|
|
_this.goodsloading = false
|
|
|
_this.$message({
|
|
|
type: 'success',
|
|
|
@@ -1985,7 +2030,55 @@ export default {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ // 交费环节发现错误 撤回
|
|
|
+ recallApplyClick () {
|
|
|
+ this.recallApplyVisible = true
|
|
|
+ },
|
|
|
+ // 确认撤回按钮
|
|
|
+ recallApplyConfirm () {
|
|
|
+ if (!this.auditform.AuditRemark) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请输入撤回原因!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (this.auditform.AuditRemark.trim().length < 2) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '撤回原因不能少于2个字!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.recallApplyVisible = false
|
|
|
+ this.recallApplyBtn = true
|
|
|
+ let params = {
|
|
|
+ result: '0',
|
|
|
+ AuditRemark: this.auditform.AuditRemark
|
|
|
+ }
|
|
|
+ apiCert.recallApply(this.certId, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.initDatas()
|
|
|
+ this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '申请撤回成功!'
|
|
|
+ })
|
|
|
+ this.recallApplyBtn = false
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '申请撤回失败!'
|
|
|
+ })
|
|
|
+ this.recallApplyBtn = false
|
|
|
+ }
|
|
|
+ this.recallApplyVisible = false
|
|
|
+ this.loading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ this.recallApplyBtn = false
|
|
|
+ })
|
|
|
+ },
|
|
|
setAuditer (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
@@ -2187,7 +2280,17 @@ export default {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ // 判断当前申请是否需要交费及交费金额
|
|
|
+ getAccessApplyIsNeedPay () {
|
|
|
+ let params = {
|
|
|
+ certId: this.certId
|
|
|
+ }
|
|
|
+ apiCert.getAccessApplyIsNeedPay(params, this.$axios).then(res => {
|
|
|
+ if (res.status === 200) {
|
|
|
+ this.needPayAmount = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|