chenlu
2025-11-05 fcc1781bd060ef3710d3934728fb36ef74525fca
north-glass-erp/northglass-erp/src/views/pp/report/WorkInProgressCombination.vue
@@ -23,6 +23,8 @@
//项目名称汇总
let projectSummary= ref(1)
//终止状态
let terminationVal = ref(1)
//工序
const value = ref()
@@ -105,6 +107,10 @@
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) => {
@@ -138,7 +144,11 @@
  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)
@@ -170,7 +180,11 @@
  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
@@ -296,6 +310,10 @@
  projectSummary.value = checked ? 0 : 1
}
function onlandingTerminationChange(checked) {
  terminationVal.value = checked ? 0 : 1
}
function exportExcel(url, fileName,date) {
  let processes = value.value
@@ -306,6 +324,10 @@
  let inputProject = form.project
  if (inputProject == '') {
    inputProject = null
  }
  let terminationVals = terminationVal.value
  if (terminationVals == '') {
    terminationVals = null
  }
  if(date===null){
    ElMessage.warning(t('report.pleaseSelectADateFirst'))
@@ -329,7 +351,8 @@
    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])
@@ -381,6 +404,12 @@
      >
        {{ t('order.project') }}
      </el-checkbox>
      <el-checkbox
          :model-value="terminationVal === 0"
          @change="onlandingTerminationChange"
      >
        {{ t('processCard.termination') }}
      </el-checkbox>
      &nbsp;
        <el-button type="primary" @click="getWorkOrder">{{$t('basicData.search')}}</el-button>
    </div>