This commit is contained in:
liushuai
2020-04-07 19:13:40 +08:00
parent a0474aaf33
commit 193dd7ece6
22 changed files with 865 additions and 330 deletions

View File

@@ -812,12 +812,13 @@ export default {
totalPrice: 0, // 合同总额
tableData4: [], // 合同模板
stipulateArrivalTime: '', // 规定到货时间
离线合同状态: '',
离线合同状态: true,
numbers: [],
numbers1: [],
paramRow: '', // 参数row
disable: true, // 其他的禁用
tabName: '标准件',
tongguo: '',
total22: 0,
pageCurrent22: 1,
pageSize22: 20
@@ -1067,7 +1068,8 @@ export default {
this.supplierName0 ? this.check4 = 1 : this.check4 = 0
this.loading3 = true
this.tableData3 = []
searchOfflineContract(this.pageCurrent2, this.pageSize2, this.check3, this.offlineContract, this.check4, this.supplierName0).then(response => {
console.log(this.id, 'id')
searchOfflineContract(this.pageCurrent2, this.pageSize2, this.check3, this.offlineContract, this.check4, this.supplierName0, this.id).then(response => {
console.log(response.data.rows, 99)
this.tableData2 = response.data.rows
this.total2 = response.data.total
@@ -1283,6 +1285,7 @@ export default {
!v.单价 ? v.单价 = v.参考价格 : v.单价
this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
})
console.log(this.tableData3, 'tableData31')
this.loading4 = false
console.log(response.data.length, 1231231233)
})
@@ -1439,8 +1442,17 @@ export default {
// })
},
doneOfflineContact() { // 生成离线合同
this.tongguo = true
console.log(this.tableData3, 'tableData3')
for (let i = 0; i < this.tableData3.length; i++) {
if (this.tableData3[i].数量 === '0' || this.tableData3[i].数量 === null || this.tableData3[i].数量 === '' || this.tableData3[i].单价 === '0' || this.tableData3[i].单价 === null || this.tableData3[i].单价 === '') {
this.tongguo = false
}
}
if (this.tableData3.length === 0) {
this.$message.error('无法生成空合同,请先选入物料!')
} else if (this.tongguo === false) {
this.$message.error('请完善单价或数量信息!')
} else {
let judge = true
this.tableData3.map(v => {