|
@@ -753,6 +753,37 @@ export default {
|
|
|
this.basicForm.code = ''
|
|
|
this.basicForm.createBy = ''
|
|
|
this.basicForm.source = '4'
|
|
|
+ this.basicForm.puDemandItemList.forEach(item => {
|
|
|
+ item.status = ''
|
|
|
+ item.buyerName = ''
|
|
|
+ item.buyer = ''
|
|
|
+ item.reservedProportion = ''
|
|
|
+ item.reservedPeriod = ''
|
|
|
+ item.reservedQty = ''
|
|
|
+ item.averageQtyMonth = ''
|
|
|
+ item.demandPeriod = ''
|
|
|
+ item.forecastClassify = ''
|
|
|
+ item.onemonthAvgVolume = ''
|
|
|
+ item.threemonthAvgVolume = ''
|
|
|
+ item.superiorAllotQty = ''
|
|
|
+ item.resDemandQty = ''
|
|
|
+ item.executeQty = ''
|
|
|
+ item.deliveryWarehouseName = ''
|
|
|
+ item.deliveryWarehouse = ''
|
|
|
+ item.deliveryAllocationName = ''
|
|
|
+ item.deliveryAllocation = ''
|
|
|
+ item.lastWarehouseName = ''
|
|
|
+ item.lastAllocationName = ''
|
|
|
+ item.availableQty = ''
|
|
|
+ item.lastStockOrgName = ''
|
|
|
+ item.centralWarehouseQty = ''
|
|
|
+ item.allotCode = ''
|
|
|
+ item.deliveryAddress = ''
|
|
|
+ item.deliveryAddressName = ''
|
|
|
+ item.contacts = ''
|
|
|
+ item.contactsPhone = ''
|
|
|
+ item.address = ''
|
|
|
+ })
|
|
|
},
|
|
|
handleData() {
|
|
|
console.log('222')
|
|
@@ -1117,16 +1148,26 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 粘贴来的数据
|
|
|
- pasteMe(e, socpe) {
|
|
|
+ pasteMe(e, scope) {
|
|
|
e.preventDefault() //阻止默认粘贴事件
|
|
|
let source = e.clipboardData.getData("Text");
|
|
|
- console.log('scope', socpe.column.property)
|
|
|
+ console.log('scope', scope.column.property)
|
|
|
console.log('eee:', source)
|
|
|
// 首先对源头进行解析
|
|
|
let rows = source.split("\r\n"); // 拆成一个数组
|
|
|
rows.pop()
|
|
|
console.log('复制的数组',rows);
|
|
|
console.log('列表的数组',this.basicForm.puDemandItemList)
|
|
|
+ rows.forEach(item => {
|
|
|
+ console.log('items',item)
|
|
|
+ this.basicForm.puDemandItemList.push(this.basicForm.puDemandItemList[scope.$index])
|
|
|
+ })
|
|
|
+ console.log('列表', this.basicForm.puDemandItemList)
|
|
|
+ // this.basicForm.puDemandItemList.forEach(e => {
|
|
|
+ // rows.forEach(d => {
|
|
|
+ // e.materialCode = d
|
|
|
+ // })
|
|
|
+ // })
|
|
|
},
|
|
|
// 明细行选择物料编码带出数据
|
|
|
chooseMaterial(index) {
|