gaoluyang
3 天以前 e449a5408265e4bd1f6c66f5be28a42efac444ee
src/pages/sales/salesAccount/index.vue
@@ -90,7 +90,7 @@
                        @click.stop="openOut(item)">
                发货状态
              </u-button>
              <!-- <u-button class="detail-button"
              <u-button class="detail-button"
                        size="small"
                        type="primary"
                        @click.stop="handleInfo('edit', item)">
@@ -98,18 +98,9 @@
              </u-button>
              <u-button class="detail-button"
                        size="small"
                        type="primary"
                        plain
                        @click.stop="openOut(item)">
                发货状态
              </u-button> -->
              <!-- <u-button class="detail-button"
                        size="small"
                        type="error"
                        plain
                        @click.stop="handleDelete(item)">
                删除
              </u-button> -->
                        @click.stop="openDetail(item)">
                详情
              </u-button>
            </view>
          </view>
        </view>
@@ -120,12 +111,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>
@@ -203,6 +194,14 @@
    });
  };
  // 只读详情:view.vue 会按 id 重新拉一遍完整台账,列表行只作占位
  const openDetail = item => {
    uni.setStorageSync("editData", JSON.stringify(item));
    uni.navigateTo({
      url: "/pages/sales/salesAccount/view",
    });
  };
  // 删除单条销售台账
  const handleDelete = async row => {
    if (!row || !row.id) return;