备料
This commit is contained in:
@@ -223,7 +223,7 @@
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button size="small" @click="dialogVisible1 = false">取消</el-button>
|
||||
<el-button size="small" type="primary" @click="submitAdd1('form1')">确定</el-button>
|
||||
<el-button :disabled="addTable1_disable" size="small" type="primary" @click="submitAdd1('form1')">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<span>合计:<el-input v-positive="'float'" v-model="SUM" size="mini" type="number" style="width: 80px; margin: 10px 10px 0 10px" @change="Keeptwodecimalplaces"/>元</span>
|
||||
<el-button type="primary" size="small" icon="el-icon-download" style="float:right;margin: 10px 10px 0 10px" @click="addMateriel">货票关联</el-button>
|
||||
<el-button :disabled="aboutArrival_disable" type="primary" size="small" icon="el-icon-download" style="float:right;margin: 10px 10px 0 10px" @click="addMateriel">货票关联</el-button>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
@@ -290,6 +290,8 @@ export default {
|
||||
name: '', // 发票交接单
|
||||
data() {
|
||||
return {
|
||||
addTable1_disable: false,
|
||||
aboutArrival_disable: false,
|
||||
dateRange: '',
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
@@ -476,13 +478,13 @@ export default {
|
||||
this.$refs['form1'].resetFields()
|
||||
}
|
||||
this.tableData4 = []
|
||||
this.dialogVisible1 = true
|
||||
console.log(this.supplierNames)
|
||||
this.form1.supplierNameValue = ''
|
||||
this.form1.Number = ''
|
||||
this.form1.invoiceTime = ''
|
||||
this.form1.money = ''
|
||||
this.form1.remark = ''
|
||||
this.addTable1_disable = false
|
||||
this.dialogVisible1 = true
|
||||
},
|
||||
submitAdd1(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
@@ -490,6 +492,7 @@ export default {
|
||||
if (this.arrest.length === 0) {
|
||||
this.$message.warning('请勾选需要关联的到货单')
|
||||
} else {
|
||||
this.addTable1_disable = true
|
||||
this.到货单流水号组 = []
|
||||
this.arrest.map(v => {
|
||||
this.到货单流水号组.push(v.到货单流水号)
|
||||
@@ -500,6 +503,7 @@ export default {
|
||||
this.dialogVisible1 = false
|
||||
this.searchTable1()
|
||||
} else {
|
||||
this.addTable1_disable = false
|
||||
this.$message.error('增加失败')
|
||||
}
|
||||
})
|
||||
@@ -565,8 +569,9 @@ export default {
|
||||
aboutArrival(row) {
|
||||
this.Name = row.供应商
|
||||
this.发票流水号 = row.发票流水号
|
||||
this.dialogVisible = true
|
||||
this.searchTable4()
|
||||
this.aboutArrival_disable = false
|
||||
this.dialogVisible = true
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.SUM = 0
|
||||
@@ -581,6 +586,7 @@ export default {
|
||||
if (this.arrest.length === 0) {
|
||||
this.$message.warning('请勾选需要关联的到货单')
|
||||
} else {
|
||||
this.aboutArrival_disable = true
|
||||
this.到货单流水号组 = []
|
||||
this.arrest.map(v => {
|
||||
this.到货单流水号组.push(v.到货单流水号)
|
||||
@@ -592,7 +598,10 @@ export default {
|
||||
searchInvoiceDetail(this.发票流水号).then(response => {
|
||||
this.gridData = response.data
|
||||
})
|
||||
} else { this.$message.error('关联失败') }
|
||||
} else {
|
||||
this.aboutArrival_disable = false
|
||||
this.$message.error('关联失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user