更新
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="撤销审核" placement="top">
|
||||
<div style="display: inline-block">
|
||||
<el-button type="text" size="mini" @click="editSubmit(scope.row)">撤销</el-button>
|
||||
<el-button :disabled="scope.row.审批情况流水号 === '3'" type="text" size="mini" @click="editSubmit(scope.row)">撤销</el-button>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
@@ -129,7 +129,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { initBuyer, searchTable1, searchTable2, editsubmit } from '@/api/ManufacturingCenter/ContractApprovalQuery'
|
||||
import { initBuyer, searchTable1, searchTable2, editsubmit } from '@/api/ManufacturingCenter/ContractApprovalQuery1'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -207,10 +207,10 @@ export default {
|
||||
})
|
||||
},
|
||||
editSubmit(row) {
|
||||
if (row.审批情况流水号 !== '3') {
|
||||
this.$message.error('该合同已审批,无法撤回!')
|
||||
if (row.采购合同请款明细流水号 !== '') {
|
||||
this.$message.error('该合同已请款,无法撤回!')
|
||||
} else {
|
||||
this.$confirm('确定撤回?', '提示', {
|
||||
this.$confirm('确定撤回你的审批意见吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
@@ -218,6 +218,7 @@ export default {
|
||||
editsubmit(row.采购合同流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('撤销成功')
|
||||
this.searchTable1()
|
||||
} else {
|
||||
this.$message.error('操作失败')
|
||||
}
|
||||
@@ -229,7 +230,6 @@ export default {
|
||||
})
|
||||
})
|
||||
}
|
||||
this.searchTable1()
|
||||
},
|
||||
handleSizeChange1(val) {
|
||||
this.pageCurrent1 = 1
|
||||
|
||||
Reference in New Issue
Block a user