| | |
| | | |
| | | //项目名称汇总 |
| | | let projectSummary= ref(1) |
| | | //终止状态 |
| | | let terminationVal = ref(1) |
| | | //工序 |
| | | const value = ref() |
| | | |
| | |
| | | if (optionVal == '') { |
| | | optionVal = null |
| | | } |
| | | let terminationVals = terminationVal.value |
| | | if (terminationVals == '') { |
| | | terminationVals = null |
| | | } |
| | | //第一次加载数据 |
| | | request.post(`/report/workInProgressCombinationProcess/1/${total.pageSize}/${selectProcesses}/${inputVal}/${inputProject}/${optionVal}`, filterData.value).then((res) => { |
| | | |
| | |
| | | if (optionVal == '') { |
| | | optionVal = null |
| | | } |
| | | request.post(`/report/workInProgressCombination/${pageNum.value}/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}`, filterData.value).then((res) => { |
| | | let terminationVals = terminationVal.value |
| | | if (terminationVals == '') { |
| | | terminationVals = null |
| | | } |
| | | request.post(`/report/workInProgressCombination/${pageNum.value}/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}/${terminationVals}`, filterData.value).then((res) => { |
| | | if (res.code == 200) { |
| | | total.value = res.data.total |
| | | produceList = deepClone(res.data.data) |
| | |
| | | if (optionVal == '') { |
| | | optionVal = null |
| | | } |
| | | request.post(`/report/workInProgressCombination/${pageNum.value}/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}`, filterData.value).then((res) => { |
| | | let terminationVals = terminationVal.value |
| | | if (terminationVals == '') { |
| | | terminationVals = null |
| | | } |
| | | request.post(`/report/workInProgressCombination/${pageNum.value}/${total.pageSize}/${inputVal}/${inputProject}/${selectProcesses}/${optionVal}/${terminationVals}`, filterData.value).then((res) => { |
| | | |
| | | if (res.code == 200) { |
| | | // total.dataTotal = res.data.total.total * 1 |
| | |
| | | projectSummary.value = checked ? 0 : 1 |
| | | } |
| | | |
| | | function onlandingTerminationChange(checked) { |
| | | terminationVal.value = checked ? 0 : 1 |
| | | } |
| | | |
| | | function exportExcel(url, fileName,date) { |
| | | |
| | | let processes = value.value |
| | |
| | | let inputProject = form.project |
| | | if (inputProject == '') { |
| | | inputProject = null |
| | | } |
| | | let terminationVals = terminationVal.value |
| | | if (terminationVals == '') { |
| | | terminationVals = null |
| | | } |
| | | if(date===null){ |
| | | ElMessage.warning(t('report.pleaseSelectADateFirst')) |
| | |
| | | date: date, |
| | | processes: processes, |
| | | orderId: inputVal, |
| | | project: inputProject |
| | | project: inputProject, |
| | | terminationVals:terminationVals |
| | | }) |
| | | request.post(url,dataMp.value,{responseType :'blob'}).then(res => { |
| | | const blob = new Blob([res]) |
| | |
| | | > |
| | | {{ t('order.project') }} |
| | | </el-checkbox> |
| | | <el-checkbox |
| | | :model-value="terminationVal === 0" |
| | | @change="onlandingTerminationChange" |
| | | > |
| | | {{ t('processCard.termination') }} |
| | | </el-checkbox> |
| | | |
| | | <el-button type="primary" @click="getWorkOrder">{{$t('basicData.search')}}</el-button> |
| | | </div> |