禁用
This commit is contained in:
@@ -161,7 +161,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="100">
|
<el-table-column label="操作" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="danger" size="mini" icon="el-icon-delete" @click="deleteTable2(scope.row)">删除</el-button>
|
<el-button :disabled="disabled" type="danger" size="mini" icon="el-icon-delete" @click="deleteTable2(scope.row)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -304,7 +304,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="本次到票数量" align="center" width="100">
|
<el-table-column label="本次到票数量" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input-number v-model="scope.row.本次到票数量" :min="0" :max="scope.row.已到货数量" size="mini" controls-position="right" style="width: 100%;"/>
|
<el-input-number v-model="scope.row.本次到票数量" :min="0" :max="(scope.row.已到货数量||scope.row.到货数量)-scope.row.到票数量" size="mini" controls-position="right" style="width: 100%;"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -326,6 +326,7 @@ export default {
|
|||||||
name: '', // 发票结算申请
|
name: '', // 发票结算申请
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
disabled: false,
|
||||||
contractType: '采购合同',
|
contractType: '采购合同',
|
||||||
invoiceNum: '',
|
invoiceNum: '',
|
||||||
total1: 0,
|
total1: 0,
|
||||||
@@ -547,6 +548,7 @@ export default {
|
|||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.searchTable1()
|
this.searchTable1()
|
||||||
|
this.tableData2 = []
|
||||||
} else { this.$message.error('提交失败') }
|
} else { this.$message.error('提交失败') }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -562,6 +564,7 @@ export default {
|
|||||||
this.invoiceNumber = row.发票号
|
this.invoiceNumber = row.发票号
|
||||||
this.supplierName = row.供应商名称
|
this.supplierName = row.供应商名称
|
||||||
this.supplierValue = row.供应商流水号
|
this.supplierValue = row.供应商流水号
|
||||||
|
Number(row.是否提交申请) === 1 ? this.disabled = true : this.disabled = false
|
||||||
searchTable2(row.发票结算申请单流水号).then(response => {
|
searchTable2(row.发票结算申请单流水号).then(response => {
|
||||||
this.tableData2 = response.data
|
this.tableData2 = response.data
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user