spring
2026-05-20 7465eb431e134576b4c9c43103c9fc6f918d1696
src/views/salesManagement/salesLedger/index.vue
@@ -104,18 +104,21 @@
               </template>
            </el-table-column>
            <el-table-column align="center" label="序号" type="index" width="60" />
            <el-table-column label="销售合同号" prop="salesContractNo" width="180" show-overflow-tooltip />
            <el-table-column label="客户名称" prop="customerName" width="300" show-overflow-tooltip />
            <el-table-column label="业务员" prop="salesman" width="100" show-overflow-tooltip />
            <el-table-column label="型号" prop="model" width="100" show-overflow-tooltip />
            <el-table-column label="电压" prop="voltage" width="100" show-overflow-tooltip />
            <el-table-column label="qty" prop="qty" width="100" show-overflow-tooltip />
            <el-table-column label="项目名称" prop="projectName" width="180" show-overflow-tooltip />
            <el-table-column label="付款方式" prop="paymentMethod" show-overflow-tooltip />
            <el-table-column label="合同金额(元)" prop="contractAmount" width="220" show-overflow-tooltip
               :formatter="formattedNumber" />
        <el-table-column label="合同金额(元)" prop="contractAmount" width="220" show-overflow-tooltip
                         :formatter="formattedNumber" />
        <el-table-column label="付款方式" prop="paymentMethod" show-overflow-tooltip />
            <el-table-column label="录入人" prop="entryPersonName" width="100" show-overflow-tooltip />
            <el-table-column label="录入日期" prop="entryDate" width="120" show-overflow-tooltip />
            <el-table-column label="签订日期" prop="executionDate" width="120" show-overflow-tooltip />
            <el-table-column label="交付日期" prop="deliveryDate" width="120" show-overflow-tooltip />
            <el-table-column label="备注" prop="remarks" width="200" show-overflow-tooltip />
        <el-table-column label="业务员" prop="salesman" width="100" show-overflow-tooltip />
        <el-table-column label="备注" prop="remarks" width="200" show-overflow-tooltip />
        <el-table-column label="销售合同号" prop="salesContractNo" width="180" show-overflow-tooltip />
            <el-table-column fixed="right" label="操作" min-width="100" align="center">
               <template #default="scope">
                  <el-button link type="primary" size="small" @click="openForm('edit', scope.row)"
@@ -218,7 +221,7 @@
               </el-col>
               <el-col :span="12">
                  <el-form-item label="是否生产:" prop="produce">
                     <el-radio-group v-model="form.produce">
                     <el-radio-group v-model="form.produce" :disabled="operationType !== 'add'">
                        <el-radio :label="true">是</el-radio>
                        <el-radio :label="false">否</el-radio>
                     </el-radio-group>
@@ -917,8 +920,12 @@
// 获取产品大类tree数据
const getProductOptions = () => {
   // 返回 Promise,便于在编辑产品时等待加载完成
   return productTreeList().then((res) => {
      productOptions.value = convertIdToValue(res);
   return productTreeList({productName: '成品'}).then((res) => {
      const tree = convertIdToValue(res);
      const finishedNode = tree.find(
         (item) => item?.label === '成品' || item?.productName === '成品'
      );
      productOptions.value = finishedNode?.children || tree;
      return productOptions.value;
   });
};
@@ -1484,9 +1491,7 @@
    type: "warning",
  })
      .then(() => {
        console.log(selectedRows.value.map((item) => item.id))
        proxy.download("/sales/ledger/exportShippingNote", {ids: selectedRows.value.map((item) => item.id).join(",")}, "送货单.zip");
        selectedRows.value = [];
        proxy.download("/sales/ledger/exportShippingNote", {ids: selectedRows.value.map((item) => item.id).join(",")}, "送货单.xlsx");
      })
      .catch(() => {
        proxy.$modal.msg("已取消");
@@ -2347,4 +2352,4 @@
      page-break-after: avoid;
   }
}
</style>
</style>