diff --git a/src/views/distribution/checkInventoryTask/createTask.vue b/src/views/distribution/checkInventoryTask/createTask.vue index af5508d2..6c2e3c59 100644 --- a/src/views/distribution/checkInventoryTask/createTask.vue +++ b/src/views/distribution/checkInventoryTask/createTask.vue @@ -1512,6 +1512,11 @@ const InputSo = val => { size: TcpageSize.value, //条数 [val.prop]: val.values, }; + if (DiskStatus.value) { + dataS.questStatus = 1; +}else{ + dataS.questStatus = 0; +} console.log(dataS, '要提交的数据'); $_getDetailInfo(dataS).then(res => { Tctotal.value = res.data.data.total; @@ -1789,14 +1794,18 @@ const Discard = val => { // 未盘点数据请求 const NotCountedFn = (row, Inso, type = 0) => { TcPdloading.value = true; - $_getDetailInfo({ - questStatus: type, - questNum: row.questNum, - questId: row.id, - current: TccurrentPage.value, //页码 - size: TcpageSize.value, //条数 + let dataInfo={ ...Inso, - }).then(res => { + } + dataInfo.questStatus=type + dataInfo.questNum=row.questNum + dataInfo.questId=row.id + dataInfo.current=TccurrentPage.value //页码 + dataInfo.size=TcpageSize.value//条数 + if(!DiskStatus.value){ + dataInfo.questStatus=0 + }//表示当前在未盘点列表) + $_getDetailInfo(dataInfo).then(res => { TcPdloading.value = false; console.log(res, '未盘点明细返回值'); res.data.data.records.forEach(item => { @@ -1815,6 +1824,7 @@ const DetailsNotCounted = row => { InventoryDetails.value.forEach(item => { item.values = null; }); + UncountedDetails.value = row; InventoryState.value = true; //修改弹窗标题(未盘点数据), TcFrom.value = {}; //重置搜索 @@ -2269,7 +2279,6 @@ const InformationEditing = () => { const TcChenge = (event, val) => { // 开始时间 startTime // 结束时间 EndTime - event[0] console.log(event, val); TcPdloading.value = true; console.log(row.value, '必须参数'); @@ -2286,14 +2295,13 @@ const TcChenge = (event, val) => { data.startTime=event[0] data.EndTime=event[1] delete data.inventoryDate -if ( DiskStatus.value) { +console.log(DiskStatus.value,'DiskStatus.value'); +if (DiskStatus.value) { data.questStatus = 1; }else{ data.questStatus = 0; } - - - $_getDetailInfo(data).then(res => { +$_getDetailInfo(data).then(res => { Tctotal.value = res.data.data.total; res.data.data.records.forEach(item => { item.Checkbox = true;