gaoluyang
2 天以前 5d51aeded717c667a22096174168e4e5e59bde39
src/pages/sales/invoicingRegistration/index.vue
@@ -30,9 +30,6 @@
                     </view>
                     <text class="item-id">{{ item.salesContractNo }}</text>
                  </view>
                  <!--                     <view class="item-tag">-->
                  <!--                        <text class="tag-text">{{ item.recorder }}</text>-->
                  <!--                     </view>-->
               </view>
               <up-divider></up-divider>
               
@@ -71,16 +68,16 @@
               <view class="action-buttons">
                  <van-button
                     type="primary"
                     size="small"
                     size="small"
                     @click="handleAddInvoice(item)"
                     class="action-btn"
                     :disabled="item.entryPerson != userStore.id || item.noInvoiceAmountTotal == 0"
                     :disabled="item.noInvoiceAmountTotal == 0"
                  >
                     新增开票
                  </van-button>
                  <van-button
                     type="default"
                     size="small"
                  <van-button
                     type="default"
                     size="small"
                     @click="handleViewDetail(item)"
                     class="action-btn"
                  >
@@ -93,11 +90,6 @@
      <view v-else class="no-data">
         <text>暂无销售台账数据</text>
      </view>
      <!-- 浮动操作按钮 -->
      <!-- <view class="fab-button" @click="handleInfo('add')">
         <up-icon name="plus" size="24" color="#ffffff"></up-icon>
      </view> -->
   </view>
</template>
@@ -114,11 +106,6 @@
// 销售台账数据
const ledgerList = ref([]);
const total = ref(0);
// 合同选择器相关
const contractList = ref([]);
const contractLoading = ref(false);
const contractFinished = ref(false);
// 返回上一页
const goBack = () => {
@@ -141,15 +128,6 @@
// 处理新增开票
const handleAddInvoice = (item) => {
   try {
      // 检查权限:只有录入人才能新增开票
      if (item.entryPerson != userStore.id) {
         uni.showToast({
            title: '只有录入人才能新增开票',
            icon: 'none'
         });
         return;
      }
      // 存储选中的合同信息
      uni.setStorageSync('editData', JSON.stringify(item));