gaoluyang
8 小时以前 29be8639dc16b5d82bddc6099b1fa5cdca75f77a
src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue
@@ -20,10 +20,7 @@
      </div>
      <div>
        <el-button size="small" type="primary" @click="openAdd">新增</el-button>
        <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx'
                   :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload'
                   :on-success="handleSuccessUp" style="display:inline-block;margin: 0 8px;">
          <el-button type="primary" size="small">导入</el-button></el-upload>
        <el-button type="primary" size="small" style="margin: 0 8px" @click="$refs.importDialog.open()">导入</el-button>
        <el-button size="small" type="primary" @click="handleDown" :loading="outLoading">导出</el-button>
      </div>
    </div>
@@ -124,11 +121,22 @@
        <el-button type="primary" @click="handleAdd" :loading="addLoading">确 定</el-button>
      </span></template>
    </el-dialog>
    <import-dialog
      ref="importDialog"
      title="导入文件发放回收记录"
      :action="action"
      accept=".doc,.docx"
      template-url="/import-templates/文件发放回收记录导入模板.docx"
      template-name="文件发放回收记录导入模板.docx"
      :tips="['请勿删除表头或增删列,数据从第 3 行开始填写', '接收人、签收人填写系统用户姓名', '接收日期、签收日期格式:YYYY-MM-DD']"
      @success="refreshTable"
    />
  </div>
</template>
<script>
import limsTable from "@/components/Table/lims-table.vue";
import ImportDialog from '@/components/ImportDialog/index.vue'
import {
  getYearAndMonthAndDays
} from '@/utils/date'
@@ -150,7 +158,8 @@
export default {
  name: 'DistributionCollectionRecord',
  components: {
    limsTable
    limsTable,
    ImportDialog
  },
  data() {
    return {