gongchunyi
2026-04-03 5806b1437dcfed54c361b0de55e7346fd042b32a
src/views/salesManagement/salesLedger/index.vue
@@ -174,8 +174,10 @@
          :formatter="formattedNumber" />
        <el-table-column label="发货状态" width="140" align="center">
         <template #default="scope">
            <el-tag v-if="Number(scope.row.deliveryStatus) === 1" type="success">已发货</el-tag>
            <el-tag v-else type="info">未发货</el-tag>
            <el-tag v-if="Number(scope.row.deliveryStatus) === 1" type="success">未发货</el-tag>
            <el-tag v-if="Number(scope.row.deliveryStatus) === 2" type="success">审批中</el-tag>
            <el-tag v-if="Number(scope.row.deliveryStatus) === 3" type="success">审批不通过</el-tag>
            <el-tag v-if="Number(scope.row.deliveryStatus) === 4" type="success">已发货</el-tag>
         </template>
        </el-table-column>
        <el-table-column label="录入人" prop="entryPersonName" width="100" show-overflow-tooltip />
@@ -2524,9 +2526,9 @@
const canShip = (row) => {
   // 产品状态必须是充足(approveStatus === 1)
   // if (row.approveStatus !== 1) {
   //    return false;
   // }
   if (row.approveStatus !== 1) {
      return false;
   }
   
   // 如果后端返回了台账级发货状态(deliveryStatus)
   // 1=已发货,则禁止再次发货