gaoluyang
2026-04-27 b52c08544fd4ab1e8ff0f09efaac160608fd90ce
src/views/productionManagement/productionOrder/index.vue
@@ -175,17 +175,6 @@
                                 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>
@@ -417,13 +406,13 @@
  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);
@@ -523,13 +512,13 @@
  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;
@@ -581,10 +570,6 @@
      proxy.$modal.msgWarning("请填写纸箱需要量");
      return;
    }
    if (isEmptyField(bindForm.plasticBagQty)) {
      proxy.$modal.msgWarning("请填写塑料袋数量");
      return;
    }
    bindRouteSaving.value = true;
    try {
      await bindingRoute({
@@ -592,13 +577,13 @@
        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,
          },
        ],
      });