张诺
昨天 c6b0f9372c610473a2e8e85e11178d371733a410
src/pages/sales/salesAccount/index.vue
@@ -60,7 +60,7 @@
            </view>
            <view class="detail-row">
              <text class="detail-label">合同金额(元)</text>
              <text class="detail-value highlight">{{ item.contractAmount }}</text>
              <text class="detail-value highlight">{{ formatNumber(item.contractAmount) }}</text>
            </view>
            <view class="detail-row">
              <text class="detail-label">签订日期</text>
@@ -82,6 +82,13 @@
              <u-button class="detail-button"
                        size="small"
                        type="primary"
                        plain
                        @click.stop="openOut(item)">
                发货状态
              </u-button>
              <!-- <u-button class="detail-button"
                        size="small"
                        type="primary"
                        @click.stop="handleInfo('edit', item)">
                编辑
              </u-button>
@@ -91,14 +98,14 @@
                        plain
                        @click.stop="openOut(item)">
                发货状态
              </u-button>
              <u-button class="detail-button"
              </u-button> -->
              <!-- <u-button class="detail-button"
                        size="small"
                        type="error"
                        plain
                        @click.stop="handleDelete(item)">
                删除
              </u-button>
              </u-button> -->
            </view>
          </view>
        </view>
@@ -109,12 +116,12 @@
      <text>暂无销售台账数据</text>
    </view>
    <!-- 浮动操作按钮 -->
    <view class="fab-button"
    <!-- <view class="fab-button"
          @click="handleInfo('add')">
      <up-icon name="plus"
               size="24"
               color="#ffffff"></up-icon>
    </view>
    </view> -->
  </view>
</template>
@@ -145,6 +152,11 @@
  // 销售台账数据
  const ledgerList = ref([]);
  // 格式化数字
  const formatNumber = value => {
    return parseFloat(value || 0).toFixed(3);
  };
  // 判断是否存在已发货/发货完成的产品
  const hasShippedProducts = products => {
    if (!products || products.length === 0) return false;