| | |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "报废数量", |
| | | prop: "scrapQty", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "补产数量", |
| | | prop: "replenishQty", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "加放数", |
| | | prop: "addQty", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "机台", |
| | | prop: "deviceName", |
| | | minWidth: 100, |
| | |
| | | style="width: 200px;" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="审核状态:"> |
| | | <el-select v-model="searchForm.auditStatus" placeholder="请选择" style="width: 200px;" @change="handleQuery"> |
| | | <el-option v-for="item in auditStatusOptions" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="审核状态:">--> |
| | | <!-- <el-select v-model="searchForm.auditStatus" placeholder="请选择" style="width: 200px;" @change="handleQuery">--> |
| | | <!-- <el-option v-for="item in auditStatusOptions" :key="item.value" :label="item.label" :value="item.value">--> |
| | | <!-- </el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item> |
| | | <el-button type="primary" |
| | | @click="handleQuery">搜索</el-button> |
| | |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "加放数", |
| | | prop: "addQty", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | | width: 120, |
| | |
| | | step="1" |
| | | placeholder="请输入本次生产数量" |
| | | style="width: 100%" |
| | | :class="{ 'over-limit': reportForm.quantity > reportForm.planQuantity }" |
| | | @input="handleQuantityInput" |
| | | /> |
| | | </el-form-item> |
| | |
| | | step="1" |
| | | placeholder="请输入报废数量" |
| | | @input="handleScrapQtyInput" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :span="12"> |
| | | <el-form-item label="加放数" prop="addQty"> |
| | | <el-input |
| | | v-model.number="reportForm.addQty" |
| | | type="number" |
| | | min="0" |
| | | step="1" |
| | | placeholder="请输入加放数" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | planQuantity: 0, |
| | | quantity: null, |
| | | scrapQty: null, |
| | | addQty: 0, |
| | | startTime: "", |
| | | endTime: "", |
| | | userName: "", |
| | |
| | | } |
| | | const num = Number(value); |
| | | if (isNaN(num)) { |
| | | return; |
| | | } |
| | | // 如果超过待生产数量 |
| | | if (num > reportForm.planQuantity) { |
| | | proxy.$modal.msgWarning("本次生产数量不能大于待生产数量"); |
| | | reportForm.quantity = reportForm.planQuantity; |
| | | return; |
| | | } |
| | | // 如果小于1,清除 |
| | |
| | | reportForm.replenishQty = 0; |
| | | reportForm.teamList = []; |
| | | reportForm.scrapQty = 0; |
| | | reportForm.addQty = 0; |
| | | reportForm.userIds = row.userIds || []; |
| | | |
| | | const ids = (row.userIds || "") |
| | |
| | | return; |
| | | } |
| | | |
| | | if (quantity > reportForm.planQuantity) { |
| | | ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", { |
| | | confirmButtonText: "确定", |
| | | }); |
| | | return; |
| | | } |
| | | // if (quantity > reportForm.planQuantity) { |
| | | // ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", { |
| | | // confirmButtonText: "确定", |
| | | // }); |
| | | // return; |
| | | // } |
| | | |
| | | const submitData = { |
| | | ...reportForm, |
| | |
| | | white-space: normal !important; |
| | | word-break: break-all; |
| | | } |
| | | |
| | | .over-limit .el-input__inner { |
| | | color: #f56c6c !important; |
| | | } |
| | | </style> |