|
@@ -593,6 +593,13 @@ export default {
|
|
|
// 触发表单验证
|
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
|
+ var newObj = {} // 新增对象
|
|
|
+ newObj.documentNo = this.editShipDet.documentNo
|
|
|
+ newObj.documentDate = this.editShipDet.documentDate.dateFormat
|
|
|
+ newObj.customer = this.editShipDet.customer
|
|
|
+ newObj.orderType = this.editShipDet.orderType
|
|
|
+ newObj.memo = this.editShipDet.memo // U8系统适用
|
|
|
+ newObj.syShippingDetailsItemList = this.syShippingDetailsItemList // 子表信息赋值
|
|
|
// 必须选择子表 --- 参照订单数据
|
|
|
if (this.editShipDet.syShippingDetailsItemList.length == 0) {
|
|
|
this.$message.error('请选择参照订单数据')
|
|
@@ -678,9 +685,13 @@ export default {
|
|
|
},
|
|
|
// 操作 删除
|
|
|
handleDelete(index) {
|
|
|
+ console.log(this.syShippingDetailsItemList)
|
|
|
console.log('index', index)
|
|
|
console.log('删除该项订单数据', index)
|
|
|
- return this.syShippingDetailsItemList.splice(index, 1)
|
|
|
+ this.syShippingDetailsItemList = this.syShippingDetailsItemList.filter(item =>{
|
|
|
+ return item.id !== index
|
|
|
+ })
|
|
|
+ console.log(this.syShippingDetailsItemList)
|
|
|
},
|
|
|
// 操作 复制
|
|
|
copy(record) {
|