吴羡
7 天以前 89fd9ab312c0aef9fcab89fbbaee4add5baa7c57
src/views/business/productOrder/index.vue
@@ -15,10 +15,10 @@
          <el-input v-model="entity.sampleModel" clearable placeholder="请输入" size="small"
            @keyup.enter="refreshTable()"></el-input>
        </el-form-item>
        <el-form-item label="下单时间" prop="createTime" v-if="more">
          <el-date-picker v-model="entity.createTime" clearable format="YYYY-MM-DD" placeholder="选择日期" size="small"
        <el-form-item label="送样时间" prop="sampleDate" v-if="more">
          <el-date-picker v-model="entity.sampleDate" clearable format="YYYY-MM-DD" placeholder="选择日期" size="small"
                          @change="refreshTable"
            style="width:100%" type="date" value-format="YYYY-MM-DD HH:mm:ss">
            style="width:100%" type="date" value-format="YYYY-MM-DD">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="委托人" prop="prepareUser" v-if="more">
@@ -298,6 +298,7 @@
      entity: {
        orderType: '',
        state: '',
        sampleDate: null,
      },
      upIndex: 0,
      tableData: [],
@@ -332,7 +333,7 @@
        { label: '备注', prop: 'remark' },
        { label: '检验进度%', prop: 'insProgress' },
        { label: '约定时间', prop: 'appointed' },
        { label: '下单时间', prop: 'createTime' },
        { label: '送样时间', prop: 'sampleDate', minWidth: 110 },
        { label: '下发时间', prop: 'sendTime' },
        { label: '退回理由', prop: 'tell' },
        { label: '拒收原因', prop: 'sampleRejectRemark' },
@@ -471,6 +472,7 @@
      verifyDialogVisible: false,
      quashDialogVisible: false,
      filesDialogVisible: false, // 附件查看弹框
      attachmentOrderId: null,
      tableDataFile: [],
      tableLoadingFile: false,
      columnFile: [
@@ -652,6 +654,7 @@
    },
    refresh() {
      this.resetForm('entity')
      this.entity.sampleDate = null
      this.refreshTable()
    },
    pagination(page) {
@@ -842,12 +845,15 @@
    },
    // 附件查看
    handleFileLook(row) {
      this.attachmentOrderId = row.id
      this.pageFile.current = 1
      this.tableDataFile = []
      this.filesDialogVisible = true
      this.getFileList(row)
      this.getFileList()
    },
    getFileList(row) {
    getFileList() {
      this.tableLoadingFile = true
      getFileList({ insOrderId: row.id }).then(res => {
      getFileList({ insOrderId: this.attachmentOrderId, current: this.pageFile.current, size: this.pageFile.size }).then(res => {
        this.tableLoadingFile = false
        if (res.code === 200) {
          this.tableDataFile = res.data.records
@@ -858,6 +864,7 @@
      })
    },
    paginationFile(page) {
      this.pageFile.current = page.page
      this.pageFile.size = page.limit
      this.getFileList()
    },
@@ -866,7 +873,7 @@
      downFile({
        id: row.id,
      }).then(res => {
        this.$download.saveAs(res.data.fileUrl, row.fileName);
        return this.$download.attachment(res.data, row.fileName);
      }).catch(error => {
      })