|
|
@ -858,8 +858,9 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.dataForm.salesorder_item0List.forEach((item, index) => {
|
|
|
|
this.dataForm.salesorder_item0List.forEach((item, index) => {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if (row.vehicleId == item.vehicleId) {
|
|
|
|
if (row.vehicleId == item.vehicleId) {
|
|
|
|
item.unitPrice = this.jnpf.floatDiv(item.price,item.settlement).toFixed(2) //子表单价
|
|
|
|
item.unitPrice = this.jnpf.floatDiv(item.price,item.settlement).toFixed(6) //子表单价
|
|
|
|
// item.price = this.jnpf.floatMul(item.settlement, item.unitPrice).toFixed(2)//子表金额
|
|
|
|
// item.price = this.jnpf.floatMul(item.settlement, item.unitPrice).toFixed(2)//子表金额
|
|
|
|
item.noPrice = this.jnpf.floatDiv(item.price, this.jnpf.floatAdd(1, this.jnpf.floatDiv(rate, 100))).toFixed(2)//子表不含税金额
|
|
|
|
item.noPrice = this.jnpf.floatDiv(item.price, this.jnpf.floatAdd(1, this.jnpf.floatDiv(rate, 100))).toFixed(2)//子表不含税金额
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1056,6 +1057,7 @@
|
|
|
|
this.$store.commit('generator/UPDATE_RELATION_DATA', {})
|
|
|
|
this.$store.commit('generator/UPDATE_RELATION_DATA', {})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
init2(list) {
|
|
|
|
init2(list) {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
this.visible = true
|
|
|
|
this.visible = true
|
|
|
|
this.dataForm.salesorder_item0List = list
|
|
|
|
this.dataForm.salesorder_item0List = list
|
|
|
|
this.dataForm.documentNo = list[0].documentNo
|
|
|
|
this.dataForm.documentNo = list[0].documentNo
|
|
|
@ -1072,16 +1074,12 @@
|
|
|
|
var advance = 0
|
|
|
|
var advance = 0
|
|
|
|
var notPrice = 0
|
|
|
|
var notPrice = 0
|
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
|
if(list[i].salesPrice != null){
|
|
|
|
this.dataForm.salesorder_item0List[i].unitPrice = list[i].salesPrice;
|
|
|
|
this.dataForm.salesorder_item0List[i].unitPrice = list[i].unitPrice;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.dataForm.salesorder_item0List[i].unitPrice = list[i].salesPrice;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.dataForm.salesorder_item0List[i].poundlistId = list[i].id
|
|
|
|
this.dataForm.salesorder_item0List[i].poundlistId = list[i].id
|
|
|
|
if(list[i].price != null){
|
|
|
|
if(list[i].price != null){
|
|
|
|
this.dataForm.salesorder_item0List[i].price = list[i].price.toFixed(2)
|
|
|
|
this.dataForm.salesorder_item0List[i].price = list[i].price.toFixed(2)
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
this.dataForm.salesorder_item0List[i].price = this.jnpf.floatMul(list[i].unitPrice, list[i].settlement).toFixed(2)
|
|
|
|
this.dataForm.salesorder_item0List[i].price = this.jnpf.floatMul(list[i].salesPrice, list[i].settlement).toFixed(2)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.rateOptions.find((item) => {
|
|
|
|
this.rateOptions.find((item) => {
|
|
|
|
if (this.dataForm.salesorder_item0List[i].rate == item.id) {
|
|
|
|
if (this.dataForm.salesorder_item0List[i].rate == item.id) {
|
|
|
@ -1090,7 +1088,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (list[i].advance == 1) {
|
|
|
|
if (list[i].advance == 1) {
|
|
|
|
advance = this.jnpf.floatAdd(advance, this.jnpf.floatMul(list[i].unitPrice, list[i].settlement)).toFixed(2)
|
|
|
|
advance = this.jnpf.floatAdd(advance, this.jnpf.floatMul(list[i].salesPrice, list[i].settlement)).toFixed(2)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
num = this.jnpf.floatAdd(num, list[i].settlement)
|
|
|
|
num = this.jnpf.floatAdd(num, list[i].settlement)
|
|
|
|
amount = this.jnpf.floatAdd(amount, list[i].price)
|
|
|
|
amount = this.jnpf.floatAdd(amount, list[i].price)
|
|
|
|