jiangping
2024-12-27 5506edbe54883b31db3cc8e4a1d9d0795a18a3c9
company/src/components/business/OperaApplyChangeCheckWindow.vue
@@ -101,7 +101,7 @@
                <div class="form_item">
                    <div class="form_item_label"><span>*</span>上传批单:</div>
                    <div class="form_item_val">
                      <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" />
                      <UploadFile :limit="99" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @remove="removePIDAN" @uploadSuccess="baoxianFileUploaded" />
                    </div>
                </div>
            </div>
@@ -122,7 +122,7 @@
                <div class="form_item">
                    <div class="form_item_label"><span>*</span>上传批单:</div>
                    <div class="form_item_val">
                      <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" />
                      <UploadFile :limit="99" :uploadData="{ folder: 'apply',fileType:'.pdf' }" @remove="removeEditPiDan" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" />
                    </div>
                </div>
                <div class="form_item">
@@ -185,8 +185,8 @@
        applyStartTime: null,
        delValidTime: null,
        validCode: null,
        pidanFile: null,
        editPidanFile: null,
        pidanFile: [],
        editPidanFile: [],
        fileList1: [],
        fileList2: [],
        selectRadio: 0
@@ -217,8 +217,8 @@
        delValidTime: null,
        applyStartTime: null,
        validCode: null,
        pidanFile: null,
        editPidanFile: null,
        pidanFile: [],
        editPidanFile: [],
        fileList1: [],
        fileList2: [],
        selectRadio: 0
@@ -313,10 +313,24 @@
      }
    },
    baoxianFileUploaded (data) {
      this.form.pidanFile = data
      this.form.pidanFile.push(data)
    },
    removePIDAN(e) {
      this.form.pidanFile.forEach((item, index) => {
        if (e === item.imgaddr) {
          this.form.pidanFile.splice(index, 1)
        }
      })
    },
    editBaoxianFileUploaded (data) {
      this.form.editPidanFile = data
      this.form.editPidanFile.push(data)
    },
    removeEditPiDan(e) {
        this.form.editPidanFile.forEach((item, index) => {
            if (e === item.imgaddr) {
                this.form.editPidanFile.splice(index, 1)
            }
        })
    },
    backDo () {
      this.$dialog.messageConfirm('确认进行该操作吗?')
@@ -353,7 +367,7 @@
            applyStartTime: (this.model.delOnlyReplace != 1 ? this.form.applyStartTime : this.form.delValidTime),
            delValidTime: this.form.delValidTime,
            validCode: this.form.validCode,
            pidanFile: this.form.pidanFile
            pidanFileList: this.form.pidanFile
          })
            .then(response => {
              this.visible = false
@@ -367,7 +381,7 @@
      this.$dialog.messageConfirm('确认进行该操作吗?')
        .then(() => {
          this.isWorking = true
          editChangePidan({ id: this.model.id, checkInfo: this.form.editCheckInfo, validCode: this.form.editValidCode, pidanFile: this.form.editPidanFile })
          editChangePidan({ id: this.model.id, checkInfo: this.form.editCheckInfo, validCode: this.form.editValidCode, pidanFileList: this.form.editPidanFile })
            .then(response => {
              this.visible = false
              this.$emit('success')