| | |
| | | const selectedRow = ref(null); // 存储选中的行数据 |
| | | const temperingtotal = ref(0); |
| | | const glasstotal = ref(0); |
| | | const fulltotals = ref(0); |
| | | const temperingengineerId=ref(''); |
| | | // 当前页码和每页显示的条数 |
| | | const currentPage = ref(1); |
| | |
| | | ElMessage.success(response.message); |
| | | tableDatagh.value = response.data |
| | | temperingtotal.value = response.data.length |
| | | let totalCount = 0; |
| | | let totalCount = 0; |
| | | let fullCount = 0; |
| | | response.data.forEach(item => { |
| | | totalCount += item.count2 || 0; |
| | | totalCount += item.count1 || 0; |
| | | if(item.count2-item.count1-item.count4==0){ |
| | | fullCount+=1; |
| | | } |
| | | }); |
| | | glasstotal.value = totalCount; |
| | | fulltotals.value = fullCount; |
| | | |
| | | } else { |
| | | ElMessage.error(response.message); |
| | | } |
| | |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <div id="dt" style="font-size: 15px;"> |
| | | <el-form-item :label="$t('满炉数量')" style="width: 14vw"> |
| | | {{ fulltotals }} |
| | | </el-form-item> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <div id="dt" style="font-size: 15px;"> |
| | | <el-form-item :label="$t('当前指定工程')" style="width: 14vw"> |
| | | {{ temperingengineerId }} |
| | | </el-form-item> |
| | |
| | | <el-table-column prop="count2" align="center" :label="$t('总数量')" min-width="150" /> |
| | | <el-table-column prop="count1" align="center" :label="$t('笼子内数量')" min-width="150" /> |
| | | <el-table-column prop="count3" align="center" :label="$t('缺少数量')" min-width="150" /> |
| | | <el-table-column prop="count4" align="center" :label="$t('破损/拿走数量')" min-width="150" /> |
| | | <el-table-column fixed="right" :label="$t('searchOrder.operate')" align="center" width="250"> |
| | | <template #default="scope"> |
| | | <el-button size="mini" type="text" plain @click="brokee(scope.row)">{{ $t('searchOrder.specifytempering') }}</el-button> |