禁用
This commit is contained in:
@@ -349,7 +349,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" size="small" @click="submitApproval('form2')">确定</el-button>
|
||||
<el-button :disabled="Open_disable" type="primary" size="small" @click="submitApproval('form2')">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@@ -363,6 +363,7 @@ import QRCode from 'qrcode'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
Open_disable: false,
|
||||
RMB: '',
|
||||
TotalAmount: '',
|
||||
check1: 0,
|
||||
@@ -486,9 +487,10 @@ export default {
|
||||
this.form2.审批是否通过 = 1
|
||||
this.form2.未通过原因 = ''
|
||||
this.disabled = true
|
||||
this.dialogVisible3 = true
|
||||
this.ProcurementContractNum = row.采购合同流水号
|
||||
this.QGNUM = row.请购单流水号
|
||||
this.Open_disable = false
|
||||
this.dialogVisible3 = true
|
||||
},
|
||||
selectChange() {
|
||||
if (this.form2.审批是否通过 === 2) {
|
||||
@@ -500,6 +502,7 @@ export default {
|
||||
submitApproval(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
this.Open_disable = true
|
||||
submitApproval(this.ProcurementContractNum, this.form2.审批是否通过, this.form2.未通过原因, this.QGNUM).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('审批成功')
|
||||
|
||||
Reference in New Issue
Block a user