liding
2026-05-20 feaeb3e3ac6d9e7606fce5e3ae80de3cca9c846f
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)"
@@ -918,7 +921,11 @@
const getProductOptions = () => {
   // 返回 Promise,便于在编辑产品时等待加载完成
   return productTreeList({productName: '成品'}).then((res) => {
      productOptions.value = convertIdToValue(res);
      const tree = convertIdToValue(res);
      const finishedNode = tree.find(
         (item) => item?.label === '成品' || item?.productName === '成品'
      );
      productOptions.value = finishedNode?.children || tree;
      return productOptions.value;
   });
};
@@ -2345,4 +2352,4 @@
      page-break-after: avoid;
   }
}
</style>
</style>