|
@@ -537,8 +537,14 @@ export default {
|
|
|
// clothesFactory: data.garmentFactory,
|
|
|
exportInvoiceNo: data.exportInvoiceNo,
|
|
|
bookNum: data.depositaryReceiptNo,
|
|
|
+ syPreAssembledPackingListId:data.syPreAssembledPackingListId,
|
|
|
+ elementsId:data.elementsId,
|
|
|
+ business_Type_Value:data.business_Type_Value,
|
|
|
+ salesman:data.salesman,
|
|
|
+ salesDepartment:data.salesDepartment,
|
|
|
+ ompoId:data.ompoId
|
|
|
}
|
|
|
- this.setHeadCalField(data.syPackingListTailoringItemList)
|
|
|
+ this.setHeadCalField(data.syPackingListTailoringItemList)
|
|
|
this.dynamicColumns(data.sizeTables)
|
|
|
this.clothesAddData = data.syPackingListTailoringItemList
|
|
|
this.clothesAddData.map(item =>{
|
|
@@ -750,6 +756,12 @@ export default {
|
|
|
newObj.totalPrice = this.clothesAdd.totalPrice
|
|
|
newObj.total = this.clothesAdd.total
|
|
|
newObj.syPackingListTailoringItemList = this.clothesAddData
|
|
|
+ newObj.syPreAssembledPackingListId=this.clothesAdd.syPreAssembledPackingListId,
|
|
|
+ newObj.elementsId=this.clothesAdd.elementsId,
|
|
|
+ newObj.business_Type_Value=this.clothesAdd.business_Type_Value,
|
|
|
+ newObj.salesman=this.clothesAdd.salesman,
|
|
|
+ newObj.salesDepartment=this.clothesAdd.salesDepartment,
|
|
|
+ newObj.ompoId=this.clothesAdd.ompoId
|
|
|
var sort = 0;
|
|
|
for (var i=0; i<newObj.syPackingListTailoringItemList.length;i++){
|
|
|
var tableRow = newObj.syPackingListTailoringItemList[i];
|
|
@@ -809,6 +821,7 @@ export default {
|
|
|
}
|
|
|
tableRow.sort = ++sort;
|
|
|
}
|
|
|
+ debugger
|
|
|
if(this.editDecide === 'edit'){
|
|
|
editSpltList(newObj).then(res => {
|
|
|
if (res.success) {
|
|
@@ -824,6 +837,7 @@ export default {
|
|
|
}else {
|
|
|
addSpltList(newObj).then(res => {
|
|
|
if (res.success) {
|
|
|
+ debugger
|
|
|
this.$message.success('新增成功')
|
|
|
this.close()
|
|
|
//清空信息
|