|
|
|
@ -2061,23 +2061,24 @@ const submit = () => {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!wrapLoading.value) { |
|
|
|
|
dataInfo.value = dataTmp.value; |
|
|
|
|
dataInfo.value = [...dataInfo.value, ...dataTmp.value]; |
|
|
|
|
|
|
|
|
|
console.log(dataInfo.value, '要展示的值'); |
|
|
|
|
console.log('触发1'); |
|
|
|
|
} else { |
|
|
|
|
// 编辑的时候需要带上这个参数存放订单下面的包件信息 |
|
|
|
|
let packageListInfo = []; |
|
|
|
|
console.log('触发2'); |
|
|
|
|
dataInfo.value[dataId.value].packageListInfo = dataTmp.value; //把存在的值给当前订单下面 |
|
|
|
|
// dataInfo.value[dataId.value].packageListInfo = wrapData.value; |
|
|
|
|
if (!dataInfo.value[dataId.value].packageListInfo) { |
|
|
|
|
dataInfo.value[dataId.value].packageListInfo = []; |
|
|
|
|
} |
|
|
|
|
dataInfo.value[dataId.value].packageListInfo = [...dataInfo.value[dataId.value].packageListInfo, ...dataTmp.value]; |
|
|
|
|
wrapTemp.value[dataId.value] = dataTmp.value; |
|
|
|
|
console.log('wrapTemp.value[dataId.value] :>> ', wrapTemp.value[dataId.value]); |
|
|
|
|
console.log(wrapTemp.value, '包件订单被缓存'); |
|
|
|
|
console.log(dataInfo.value[dataId.value].packageListInfo, '被添加到当前订单下面'); |
|
|
|
|
console.log(dataInfo.value, '所有订单信息'); |
|
|
|
|
console.log(Packageow.value,'Packageow.value'); |
|
|
|
|
Packageow.value.reservationNum =dataTmp.value.length |
|
|
|
|
console.log(Packageow.value, 'Packageow.value'); |
|
|
|
|
Packageow.value.reservationNum = dataTmp.value.length; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if (!dataTmp.value.length && wrapLoading.value) { |
|
|
|
@ -2105,17 +2106,19 @@ const submit = () => {
|
|
|
|
|
if (wrapLoading.value) { |
|
|
|
|
console.log(dataInfo.value, '订单'); |
|
|
|
|
console.log(dataId.value, '当前下标'); |
|
|
|
|
console.log(dataInfo.value[dataId.value], '当前下班的订单'); |
|
|
|
|
console.log(dataInfo.value[dataId.value], '当前下标的订单'); |
|
|
|
|
console.log(dataTmp.value, '勾选的数据'); |
|
|
|
|
dataInfo.value[dataId.value].packageListInfo = dataTmp.value; //把存在的值给当前订单下面。。修改过 |
|
|
|
|
if (!dataInfo.value[dataId.value].packageListInfo) { |
|
|
|
|
dataInfo.value[dataId.value].packageListInfo = []; |
|
|
|
|
} |
|
|
|
|
dataInfo.value[dataId.value].packageListInfo = [...dataInfo.value[dataId.value].packageListInfo, ...dataTmp.value]; |
|
|
|
|
console.log(wrapTemp.value, '包件订单被缓存222'); |
|
|
|
|
console.log(dataInfo.value, '处理好的订单'); |
|
|
|
|
console.log(Packageow.value,'Packageow.value'); |
|
|
|
|
Packageow.value.reservationNum =dataTmp.value.length |
|
|
|
|
console.log(Packageow.value, 'Packageow.value'); |
|
|
|
|
Packageow.value.reservationNum = dataTmp.value.length; |
|
|
|
|
// 包件弹窗 |
|
|
|
|
} else { |
|
|
|
|
dataInfo.value = dataTmp.value; |
|
|
|
|
|
|
|
|
|
dataInfo.value = [...dataInfo.value, ...dataTmp.value]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('提交后的参数', dataInfo.value); |
|
|
|
|