发货记录增加数量+“库存预警”字段移至库存管理+点击销售合同号自动跳转到销售台账
已修改4个文件
54 ■■■■■ 文件已修改
src/views/inventoryManagement/receiptManagement/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/projectProfit/index.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/deliveryLedger/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesLedger/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/inventoryManagement/receiptManagement/index.vue
@@ -36,6 +36,7 @@
        <el-table-column label="规格型号" prop="specificationModel" width="200" show-overflow-tooltip />
        <el-table-column label="单位" prop="unit" width="70" show-overflow-tooltip />
        <el-table-column label="入库数量" prop="inboundNum" width="90" show-overflow-tooltip />
        <el-table-column label="库存预警" prop="warnNum" width="90" show-overflow-tooltip />
        <el-table-column label="含税单价" prop="taxInclusiveUnitPrice" width="100" show-overflow-tooltip />
        <el-table-column label="含税总价" prop="taxInclusiveTotalPrice" width="100" show-overflow-tooltip />
        <el-table-column label="税率(%)" prop="taxRate" width="80" show-overflow-tooltip />
@@ -97,6 +98,11 @@
          <el-table-column label="本次入库数量" prop="quantityStock" width="150">
            <template #default="scope">
              <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.quantityStock" />
            </template>
          </el-table-column>
          <el-table-column label="库存预警" prop="warnNum" width="150">
            <template #default="scope">
              <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.warnNum" />
            </template>
          </el-table-column>
          <el-table-column label="税率(%)" prop="taxRate" width="120" />
@@ -313,6 +319,7 @@
    productList.value = productRes.data.map(item => ({
      ...item,
      quantityStock: 0,
      warnNum: 0,
      originalQuantityStock: Number(item.quantityStock ?? item.inboundQuantity ?? 0),
    }))
  } catch (error) {
@@ -434,6 +441,7 @@
        nickName: userStore.nickName,
        details: selectedRows.value.map(product => ({
          id: product.id,
          warnNum: product.warnNum,
          // id: product.salesLedgerProductId,
          inboundQuantity: Number(product.quantityStock)
        })),
src/views/reportAnalysis/projectProfit/index.vue
@@ -22,7 +22,12 @@
          total: pagination.total,
        }"
        @pagination="changePage"
      ></PIMTable>
      >
      <template #customerContractNo="{ row }">
         <el-button type="primary" text @click="showDetail(row)">{{ row.customerContractNo }}
                    </el-button>
        </template>
      </PIMTable>
    </div>
  </div>
</template>
@@ -32,7 +37,10 @@
import { getPurchaseList } from "@/api/procurementManagement/projectProfit";
import { onMounted, getCurrentInstance } from "vue";
import { ElMessageBox } from "element-plus";
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
  const route = useRoute();
const { proxy } = getCurrentInstance();
defineOptions({
@@ -58,6 +66,8 @@
      label: "销售合同号",
      align: "center",
      prop: "customerContractNo",
      dataType: "slot",
      slot: "customerContractNo",
    },
    {
      label: "客户名称",
@@ -97,6 +107,17 @@
  ]
);
const showDetail = (row) => {
 router.push({
      path: "/salesManagement/salesLedger",
      query: {
        customerContractNo: row.customerContractNo
      },
    });
};
const changePage = ({ page }) => {
  pagination.currentPage = page;
  onCurrentChange(page);
src/views/salesManagement/deliveryLedger/index.vue
@@ -33,6 +33,7 @@
        <el-table-column label="客户名称" prop="customerName" show-overflow-tooltip />
        <el-table-column label="发货时间" prop="shippingDate" show-overflow-tooltip />
        <el-table-column label="发货车牌号" prop="shippingCarNumber" show-overflow-tooltip />
        <el-table-column label="发货数量" prop="quantity" show-overflow-tooltip />
        <el-table-column fixed="right" label="操作" width="150" align="center">
          <template #default="scope">
            <el-button link type="primary" size="small" @click="openForm('edit', scope.row)">编辑</el-button>
@@ -78,6 +79,13 @@
          <el-col :span="24">
            <el-form-item label="发货车牌号:" prop="shippingCarNumber">
              <el-input v-model="form.shippingCarNumber" placeholder="请输入" clearable />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="30">
          <el-col :span="24">
            <el-form-item label="发货数量:" prop="quantity">
               <el-input v-model="form.quantity" placeholder="请输入" clearable :disabled="operationType === 'edit'" />
            </el-form-item>
          </el-col>
        </el-row>
@@ -129,6 +137,7 @@
    customerName: "",
    shippingDate: "",
    shippingCarNumber: "",
    quantity: "",
  },
  rules: {
    salesContractNo: [{ required: true, message: "请选择销售订单", trigger: "change" }],
@@ -190,6 +199,7 @@
      customerName: row.customerName ?? "",
      shippingDate: row.shippingDate || getCurrentDate(),
      shippingCarNumber: row.shippingCarNumber ?? "",
      quantity: row.quantity ?? "",
    };
  } else {
    form.value = {
@@ -198,6 +208,7 @@
      customerName: "",
      shippingDate: getCurrentDate(),
      shippingCarNumber: "",
      quantity: "",
    };
  }
  
src/views/salesManagement/salesLedger/index.vue
@@ -836,6 +836,7 @@
  import useFormData from "@/hooks/useFormData.js";
  import dayjs from "dayjs";
  import { getStockInPage } from "@/api/inventoryManagement/stockIn.js";
  import { useRouter, useRoute } from "vue-router";
  const userStore = useUserStore();
  const { proxy } = getCurrentInstance();
@@ -857,6 +858,8 @@
  const approverNodes = ref([{ id: 1, userId: null }]);
  let nextApproverId = 2;
const router = useRouter();
  const route = useRoute();
  // 用户信息表单弹框数据
  const operationType = ref("");
  const dialogFormVisible = ref(false);
@@ -2025,7 +2028,16 @@
  };
  onMounted(() => {
    console.log(route.query,"route.query");
    if(route.query.customerContractNo){
      searchForm.salesContractNo = route.query.customerContractNo
    getList();
    }else{
    getList();
    }
  });
</script>