|
@@ -65,6 +65,9 @@
|
|
|
<el-button size="small" type="primary" style="margin-right: 8px"
|
|
|
:disabled="detailData.seeDisabled || showLock" :loading="saveLoading" @click="editCustomer">保 存
|
|
|
</el-button>
|
|
|
+ <el-button v-if="lockBtn" size="small" type="success" style="margin-right: 8px" @click="applyUnlock">
|
|
|
+ 申请解锁
|
|
|
+ </el-button>
|
|
|
<el-dropdown style="line-height: 0">
|
|
|
<el-button type="warning" :loading="saveLoading" :disabled="!form.id" size="small">
|
|
|
审 批<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -374,6 +377,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ lockBtn: false,
|
|
|
verifySymbolStatus: 0,
|
|
|
showLock: false,
|
|
|
ediData: [], // edi 列表数据
|
|
@@ -891,6 +895,17 @@ export default {
|
|
|
this.postSelectByUserfun()
|
|
|
},
|
|
|
methods: {
|
|
|
+ applyUnlock() {
|
|
|
+ this.$confirm('是否申请解锁?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.submitLock({ srcId: this.form.id, businessType: 'HYCK' }).then(res => [
|
|
|
+ this.$message.success('操作成功!')
|
|
|
+ ])
|
|
|
+ })
|
|
|
+ },
|
|
|
inLock() {
|
|
|
this.showLock = true;
|
|
|
const data = {
|
|
@@ -2529,10 +2544,11 @@ export default {
|
|
|
const res = await billsDetail(id)
|
|
|
// this.form = res.data.data;
|
|
|
this.$set(this, 'form', res.data.data)
|
|
|
- if (this.overdueJudgment(res.data.data.locked==0?res.data.data.etd:res.data.data.lockedDate)) {
|
|
|
+ if (this.overdueJudgment(res.data.data.locked == 0 ? res.data.data.etd : res.data.data.lockedDate)) {
|
|
|
this.detailData.seeDisabled = true
|
|
|
- this.$message.error("已锁账,请联系部门经理解锁");
|
|
|
- this.submitLock({ srcId: res.data.data.id, businessType: 'HYCK' })
|
|
|
+ this.$message.error("已锁账,请申请解锁");
|
|
|
+ this.lockBtn = true
|
|
|
+ // this.submitLock({ srcId: res.data.data.id, businessType: 'HYCK' })
|
|
|
} else {
|
|
|
this.inLock()
|
|
|
}
|