ZengTao
5 天以前 b8a043314eb644f45e3e110c75c29b19218c2ae8
UI-Project/src/views/hollow/hollowequipmenttwo.vue
@@ -99,7 +99,7 @@
        {{ $t('reportmanage.inquire') }}</el-button>
    </div>
    <div style="margin-left: 87%;">{{ $t('hellow.pairsnumbertotal') }}{{ pairTotal }}</div>
    <el-table ref="table" style="margin-top: 20px; height: 700px;" :data="tableDatab"
    <el-table ref="table" style="margin-top: 20px; height: 650px;" :data="tableDatab"
      :row-class-name="tableRowClassName" :header-cell-style="{ background: '#F2F3F5', color: '#1D2129' }"
      row-key="projectNumber">
      <!-- <el-table-column type="expand"> -->
@@ -318,6 +318,12 @@
                :value="item.formulaName" />
            </el-select>
          </el-form-item>
          <el-form-item :label="$t('hellow.coatingtypes')" style="width: 25vw;">
            <el-select v-model="selectedFilmRemove" filterable clearable :placeholder="$t('basicData.selectcoatingtypes')"
              style="width: 270px">
              <el-option v-for="item in filmRemoveList" :key="item" :label="item" :value="item" />
            </el-select>
          </el-form-item>
        </el-form>
      </el-form>
    </div>
@@ -348,6 +354,12 @@
              style="width: 270px" @change="handleFormulaChange">
              <el-option v-for="item in titleformulaName" :key="item.id" :label="item.formulaName"
                :value="item.formulaName" />
            </el-select>
          </el-form-item>
           <el-form-item :label="$t('hellow.coatingtypes')" style="width: 25vw;">
            <el-select v-model="selectedFilmRemove" filterable clearable :placeholder="$t('basicData.selectcoatingtypes')"
              style="width: 270px">
              <el-option v-for="item in filmRemoveList" :key="item" :label="item" :value="item" />
            </el-select>
          </el-form-item>
        </el-form>
@@ -525,6 +537,8 @@
const isSubmitting = ref(false)
const isLoading = ref(true)
const activeTab = ref('')
const filmRemoveList = ref([])
const selectedFilmRemove = ref('')
const tabList = ref([])
const internalInstance = getCurrentInstance()
const tableDataa = ref([])
@@ -749,6 +763,13 @@
  window.localStorage.setItem('flowCardId', row.flowCardId)
  dialogFormVisiblec.value = true;
  isSubmitting.value = false
  if (row.flowCardGlassInfoDTOList && row.flowCardGlassInfoDTOList.length) {
    const films = row.flowCardGlassInfoDTOList.map(item => item.filmsId).filter(Boolean)
    // 去重
    filmRemoveList.value = [...new Set(films)]
  } else {
    filmRemoveList.value = []
  }
  fetchmulan()
};
// 强制出片
@@ -756,6 +777,13 @@
  window.localStorage.setItem('flowCardId', row.flowCardId)
  dialogFormVisibled.value = true;
  fetchmulan()
  if (row.flowCardGlassInfoDTOList && row.flowCardGlassInfoDTOList.length) {
    const films = row.flowCardGlassInfoDTOList.map(item => item.filmsId).filter(Boolean)
    // 去重
    filmRemoveList.value = [...new Set(films)]
  } else {
    filmRemoveList.value = []
  }
};
// 创建任务
const fetchFlowCardId = async () => {
@@ -1093,14 +1121,16 @@
  }
  isSubmitting.value = true
  try {
    var url = "/hollowGlass/hollowGlassOutRelationInfo/receiveTask?cell=" + 931 + "&flowCardId=" + flowCardId + "&totalPairQuantity=" + totalPairQuantity.value + "&formulaId=" + id;
    const url = `/hollowGlass/hollowGlassOutRelationInfo/receiveTask?cell=${931}&flowCardId=${flowCardId}&totalPairQuantity=${totalPairQuantity.value}&formulaId=${id}&filmRemove=${selectedFilmRemove.value}`
    const response = await request.post(url)
    if (response.code == 200) {
      ElMessage.success(response.message);
      dialogFormVisiblec.value = false;
      cell.value = '';
      formulaName.value = '';
      totalPairQuantity.value = '';
      cell.value = ''
      selectedFormulaName.value = ''
      totalPairQuantity.value = ''
      selectedFilmRemove.value = ''
      isSubmitting.value = true
    } else {
      ElMessage.error(response.message);
@@ -1158,7 +1188,7 @@
    return
  }
  try {
    var url = "/hollowGlass/hollowGlassOutRelationInfo/forceOutGlass?cell=" + 931 + "&flowCardId=" + flowCardId + "&totalPairQuantity=" + totalPairQuantitya.value + "&formulaId=" + id;
    var url = "/hollowGlass/hollowGlassOutRelationInfo/forceOutGlass?cell=" + 931 + "&flowCardId=" + flowCardId + "&totalPairQuantity=" + totalPairQuantitya.value + "&formulaId=" + id + "&filmRemove=" + selectedFilmRemove.value;
    const response = await request.post(url)
    if (response.code == 200) {
      ElMessage.success(response.message);