zhangwencui
2026-04-25 4d6af5811ff6f2aca592e2ba5dbce369a16ca4d1
生产计划跳转销售台账
已修改2个文件
47 ■■■■■ 文件已修改
src/views/productionPlan/productionPlan/index.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesLedger/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionPlan/productionPlan/index.vue
@@ -88,6 +88,13 @@
        <template #qtyRequired="{ row }">
          {{ row.qtyRequired || '-' }}<span style="color:rgba(12, 46, 40, 0.76)"> {{ row.unit || '方' }}</span>
        </template>
        <template #salesContractNo="{ row }">
          <el-button type="primary"
                     text
                     link
                     @click="showDetail(row)">{{ row.salesContractNo }}
          </el-button>
        </template>
      </PIMTable>
    </div>
    <!-- 合并下发弹窗 -->
@@ -292,6 +299,7 @@
        return params == "销售" ? "销售" : "内部";
      },
    },
    {
      label: "产品名称",
      prop: "productName",
@@ -364,6 +372,23 @@
      width: "160px",
      className: "date-cell",
      formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : ""),
    },
    {
      label: "销售合同号",
      prop: "salesContractNo",
      width: "200px",
      dataType: "slot",
      slot: "salesContractNo",
    },
    {
      label: "客户名称",
      prop: "customerName",
      width: "150px",
    },
    {
      label: "项目名称",
      prop: "projectName",
      width: "150px",
    },
    {
      label: "备注",
@@ -720,6 +745,14 @@
    // 打开弹窗
    isShowNewModal.value = true;
  };
  const showDetail = row => {
    router.push({
      path: "/salesManagement/salesLedger",
      query: {
        salesContractNo: row.salesContractNo,
      },
    });
  };
  // 处理合并下发提交
  const handleMergeSubmit = () => {
src/views/salesManagement/salesLedger/index.vue
@@ -944,8 +944,10 @@
  import useFormData from "@/hooks/useFormData.js";
  import dayjs from "dayjs";
  import { getCurrentDate } from "@/utils/index.js";
  import { useRouter, useRoute } from "vue-router";
  import { listCustomerPrivatePool } from "@/api/basicData/customerFile.js";
  const router = useRouter();
  const route = useRoute();
  const userStore = useUserStore();
  const { proxy } = getCurrentInstance();
  const tableData = ref([]);
@@ -2058,7 +2060,8 @@
                                                  <div class="info-row">
                                                    <span class="label">单号:</span>
                                                    <span class="value">${
                                                      item.salesContractNo || ""
                                                                item.salesContractNo ||
                                                                ""
                                                    }</span>
                                                  </div>
                                                </div>
@@ -2078,7 +2081,8 @@
                                                    <tbody>
                                                      ${
                                                        item.products &&
                                                        item.products.length > 0
                                                                  item.products
                                                                    .length > 0
                                                          ? item.products
                                                              .map(
                                                                product => `
@@ -2092,7 +2096,8 @@
                                                              ""
                                                            }</td>
                                                            <td>${
                                                              product.unit || ""
                                                                        product.unit ||
                                                                        ""
                                                            }</td>
                                                            <td>${
                                                              product.taxInclusiveUnitPrice ||
@@ -2584,6 +2589,7 @@
    currentFactoryName.value = res.user.currentFactoryName;
  };
  onMounted(() => {
    searchForm.salesContractNo = route.query.salesContractNo;
    getList();
    userListNoPage().then(res => {
      userList.value = res.data;