| | |
| | | style="width: 100%" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="塑料袋数量" |
| | | min-width="120" |
| | | align="center"> |
| | | <template #default> |
| | | <el-input-number v-model="bindForm.plasticBagQty" |
| | | :min="0" |
| | | :precision="2" |
| | | controls-position="right" |
| | | style="width: 100%" /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | const bindRouteTableData = computed(() => currentBindOrderRow.value ? [currentBindOrderRow.value] : []); |
| | | const bindForm = reactive({ |
| | | orderId: null, |
| | | productModelId: null, |
| | | routeId: null, |
| | | productCategoryId: null, |
| | | productCategory: "", |
| | | materialModel: "", |
| | | basePaperQty: null, |
| | | cartonQty: null, |
| | | plasticBagQty: null, |
| | | }); |
| | | const materialDialogVisible = ref(false); |
| | | const currentMaterialOrder = ref(null); |
| | |
| | | const openBindRouteDialog = async row => { |
| | | currentBindOrderRow.value = row; |
| | | bindForm.orderId = row.id; |
| | | bindForm.productModelId = row.productModelId || null; |
| | | bindForm.routeId = null; |
| | | bindForm.productCategoryId = row.productCategoryId || null; |
| | | bindForm.productCategory = row.productCategory || ""; |
| | | bindForm.materialModel = row.materialModel || ""; |
| | | bindForm.basePaperQty = null; |
| | | bindForm.cartonQty = null; |
| | | bindForm.plasticBagQty = null; |
| | | bindProductOptions.value = []; |
| | | bindMaterialModelOptions.value = []; |
| | | bindRouteDialogVisible.value = true; |
| | |
| | | proxy.$modal.msgWarning("请填写纸箱需要量"); |
| | | return; |
| | | } |
| | | if (isEmptyField(bindForm.plasticBagQty)) { |
| | | proxy.$modal.msgWarning("请填写塑料袋数量"); |
| | | return; |
| | | } |
| | | bindRouteSaving.value = true; |
| | | try { |
| | | await bindingRoute({ |
| | |
| | | routeId: bindForm.routeId, |
| | | materialList: [ |
| | | { |
| | | productModelId: bindForm.productModelId, |
| | | productCategoryId: bindForm.productCategoryId, |
| | | productCategory: bindForm.productCategory, |
| | | materialName: bindForm.productCategory, |
| | | materialModel: bindForm.materialModel, |
| | | basePaperQty: bindForm.basePaperQty, |
| | | cartonQty: bindForm.cartonQty, |
| | | plasticBagQty: bindForm.plasticBagQty, |
| | | }, |
| | | ], |
| | | }); |