|
@@ -197,7 +197,7 @@
|
|
|
v-model="row.price"
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d\d\d\d\d).*$/, "$1.$2")'
|
|
|
@input="priceChange(row)"
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
@@ -210,7 +210,7 @@
|
|
|
v-model="row.actualQuantity"
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d\d\d\d\d).*$/, "$1.$2")'
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.actualQuantity | roundNumbers}}</span>
|
|
|
</template>
|
|
@@ -220,7 +220,7 @@
|
|
|
v-model="row.contractAmount"
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d\d\d\d\d).*$/, "$1.$2")'
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.contractAmount }}</span>
|
|
|
</template>
|
|
@@ -530,6 +530,7 @@ export default {
|
|
|
this.skip = true
|
|
|
this.buttonLoading = true;
|
|
|
detailListData(this.detailData.params.id).then(res =>{
|
|
|
+ console.log(this.detailData.params,res)
|
|
|
const orderNoList = []; //合同号数据
|
|
|
this.detailData.params.orderItemIds.forEach((e,i) =>{
|
|
|
const item = res.data.data.itemsVOList[e];
|
|
@@ -551,7 +552,7 @@ export default {
|
|
|
// IQ : _.divide(item.invoiceWeight, item.orderQuantity)
|
|
|
// }
|
|
|
delete item.id
|
|
|
- item.cntrLiang = 2
|
|
|
+ item.cntrLiang = item.cntrNum
|
|
|
//如果箱量大于1 则根据箱量生成几条收货单明细 并均分发票重量
|
|
|
if(item.cntrLiang > 1){
|
|
|
let receiptInvoiceWeight = item.invoiceWeight/item.cntrLiang;
|
|
@@ -560,8 +561,10 @@ export default {
|
|
|
this.$refs.crudContact.rowCellAdd(item);
|
|
|
}
|
|
|
}else{
|
|
|
+ console.log(item)
|
|
|
this.$refs.crudContact.rowCellAdd(item);
|
|
|
}
|
|
|
+
|
|
|
this.$refs.crudContact.rowCell(item,this.contactsData.length - 1)
|
|
|
})
|
|
|
this.$set(this.form,'orderNo', Array.from(new Set(orderNoList)).join(",")) // 数组去重逗号隔开 那合同总
|