|
|
@ -6,7 +6,7 @@ |
|
|
<el-form-item label=" " style="width: 100%"> |
|
|
<el-form-item label=" " style="width: 100%"> |
|
|
<el-button type="primary" @click="refresh()" >刷新数据</el-button> |
|
|
<el-button type="primary" @click="refresh()" >刷新数据</el-button> |
|
|
<el-button type="primary" @click="saveData()" v-if="(!ifDisableFlag && isAuth('103002:bmSave') && spForm.sp.includes(searchData.username) && baseForm.status === 'spz') || baseForm.status === 'cg' || superAdmin">保存数据</el-button> |
|
|
<el-button type="primary" @click="saveData()" v-if="(!ifDisableFlag && isAuth('103002:bmSave') && spForm.sp.includes(searchData.username) && baseForm.status === 'spz') || baseForm.status === 'cg' || superAdmin">保存数据</el-button> |
|
|
<el-button v-if="baseForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="baseForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="agreeSubmit" :loading="submitLoading">同意</el-button> |
|
|
<el-button v-if="baseForm.status === 'spz' && ((baseForm.isReject === 'Y' && !ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
<el-button v-if="baseForm.status === 'spz' && ((baseForm.isReject === 'Y' && !ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -216,6 +216,7 @@ |
|
|
<el-form label-position="top" style="margin-top: 60px; margin-left: 0px;text-align:center"> |
|
|
<el-form label-position="top" style="margin-top: 60px; margin-left: 0px;text-align:center"> |
|
|
<!-- <el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button>--> |
|
|
<!-- <el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button>--> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<!-- 提交 --> |
|
|
<!-- 提交 --> |
|
|
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="submitModalFlag" width="500px"> |
|
|
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="submitModalFlag" width="500px"> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
@ -224,7 +225,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:30px;margin-top: 50px;text-align:center"> |
|
|
<el-footer style="height:30px;margin-top: 50px;text-align:center"> |
|
|
<el-button type="primary" @click="rejectSubmit">确定</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" :loading="submitLoading" @click="rejectSubmit">确定</el-button> |
|
|
<el-button type="primary" @click="submitModalFlag = false">取消</el-button> |
|
|
<el-button type="primary" @click="submitModalFlag = false">取消</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
@ -311,7 +312,6 @@ |
|
|
}, |
|
|
}, |
|
|
rejectOpinion: '', |
|
|
rejectOpinion: '', |
|
|
submitModalFlag: false, |
|
|
submitModalFlag: false, |
|
|
|
|
|
|
|
|
ossColumns:[ |
|
|
ossColumns:[ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -386,6 +386,7 @@ |
|
|
columnWidth: 140 |
|
|
columnWidth: 140 |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
submitLoading: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
@ -550,11 +551,13 @@ |
|
|
this.submitData(tempData) |
|
|
this.submitData(tempData) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 打开提交模态框 |
|
|
// 打开提交模态框 |
|
|
submitDataModal () { |
|
|
submitDataModal () { |
|
|
this.rejectOpinion = '' |
|
|
this.rejectOpinion = '' |
|
|
this.submitModalFlag = true |
|
|
this.submitModalFlag = true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 驳回提交 |
|
|
// 驳回提交 |
|
|
rejectSubmit () { |
|
|
rejectSubmit () { |
|
|
this.$confirm(`是否确认驳回?`, '提示', { |
|
|
this.$confirm(`是否确认驳回?`, '提示', { |
|
|
@ -573,6 +576,7 @@ |
|
|
this.submitData(tempData) |
|
|
this.submitData(tempData) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
openNewPage(url){ |
|
|
openNewPage(url){ |
|
|
// window.open(this.$store.state.user.bmPicUrl +url); |
|
|
// window.open(this.$store.state.user.bmPicUrl +url); |
|
|
let urlIn=url.replaceAll('\\','/') |
|
|
let urlIn=url.replaceAll('\\','/') |
|
|
@ -595,9 +599,10 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submitData (tempData) { |
|
|
submitData (tempData) { |
|
|
|
|
|
this.submitLoading = true |
|
|
updateBMcustomerInfo(this.dataForm).then(({data}) => { |
|
|
updateBMcustomerInfo(this.dataForm).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
submitChange(tempData).then(({data}) => { |
|
|
submitChange(tempData).then(({data}) => { |
|
|
@ -605,18 +610,24 @@ |
|
|
// this.searchTable() |
|
|
// this.searchTable() |
|
|
window.location.reload(); |
|
|
window.location.reload(); |
|
|
this.submitModalFlag = false |
|
|
this.submitModalFlag = false |
|
|
|
|
|
this.submitLoading = false |
|
|
this.$message({message: '操作成功', type: 'success'}) |
|
|
this.$message({message: '操作成功', type: 'success'}) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.submitLoading = false |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText: '确定' |
|
|
confirmButtonText: '确定' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
this.submitLoading = false |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.submitLoading = false |
|
|
this.$message.error(data.msg) |
|
|
this.$message.error(data.msg) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
this.submitLoading = false |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
|