曹睿
11 小时以前 14d71170912935b50f4e4e3f605c5305f2757fc3
src/views/salesManagement/invoiceLedger/index.vue
@@ -97,19 +97,28 @@
        <el-table-column
          label="发票"
          prop="invoiceFileName"
          width="120"
          align="center"
          show-overflow-tooltip
        >
          <template #default="scope">
            <span v-if="scope.row.invoiceFileName">{{
              scope.row.invoiceFileName
            }}</span>
            <el-button
              v-if="scope.row.invoiceFileName"
              text
              bg
              type="primary"
              @click="handleFile(scope.row.commonFiles)"
            >
              查看附件
            </el-button>
            <el-button
              v-else
              link
              type="primary"
              @click="handleDownload(scope.row)"
              >上传</el-button
            >
              上传
            </el-button>
          </template>
        </el-table-column>
        <el-table-column fixed="right" label="操作" width="150" align="center">
@@ -557,6 +566,12 @@
  }
};
const handleFile = (commonFiles) => {
  commonFiles.forEach((e) => {
    proxy.$download.name(e.url);
  });
};
const clearRange = () => {
  searchForm.invoiceDate = [];
  searchForm.invoiceDateStart = undefined;