|
@@ -261,7 +261,8 @@
|
|
|
if (newVal.product && newVal.product.length !== 0) {
|
|
if (newVal.product && newVal.product.length !== 0) {
|
|
|
const product = newVal.product;
|
|
const product = newVal.product;
|
|
|
// 报工详情不与报工信息联动,直接使用后台接口返回的数据
|
|
// 报工详情不与报工信息联动,直接使用后台接口返回的数据
|
|
|
- if(newVal.workReportInfo && Object.keys(newVal.workReportInfo).length) return;
|
|
|
|
|
|
|
+ console.log('更新product', newVal.workReportInfo);
|
|
|
|
|
+ if(newVal.workReportInfo && newVal.workReportInfo.id) return;
|
|
|
const finalList = product.some((it) => it.confirm == 1)
|
|
const finalList = product.some((it) => it.confirm == 1)
|
|
|
? product.filter((it) => it.confirm == 1)
|
|
? product.filter((it) => it.confirm == 1)
|
|
|
: product;
|
|
: product;
|