From 663dbe4ddca1fa409e6acbc1f77d924c161b0c39 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 09 六月 2025 17:04:50 +0800
Subject: [PATCH] 提交一把订单
---
company/src/components/business/OperaApplyChangeCheckWindow.vue | 76 ++++++++++++++++++++++++++++++++------
1 files changed, 64 insertions(+), 12 deletions(-)
diff --git a/company/src/components/business/OperaApplyChangeCheckWindow.vue b/company/src/components/business/OperaApplyChangeCheckWindow.vue
index dcc3c41..b14447b 100644
--- a/company/src/components/business/OperaApplyChangeCheckWindow.vue
+++ b/company/src/components/business/OperaApplyChangeCheckWindow.vue
@@ -6,7 +6,7 @@
:confirm-working="isWorking"
@confirm="confirm"
>
- <!-- 閫�鍥炴姇淇� -->
+ <!-- 閫�鍥炵敵璇� -->
<div v-if="visible1==true" class="form">
<div class="form_item">
<div class="form_item_label"><span>*</span>濉啓閫�鍥炶鏄庯細</div>
@@ -17,6 +17,7 @@
</div>
<!-- 涓婁紶鎵瑰崟 -->
<div v-if="visible3==true" class="form">
+ <template v-if="model.delOnlyReplace != 1">
<div class="form_item">
<div class="form_item_label">鏈熸湜鎵瑰鐢熸晥鏃ユ湡锛�</div>
<div class="form_item_val">{{ model.applyStartTime }}</div>
@@ -33,7 +34,7 @@
</div>
</div>
<div class="form_item" v-if="form.selectRadio === 1">
- <div class="form_item_label"><span>*</span>鎵瑰鐢熸晥鏃ユ湡锛�</div>
+ <div class="form_item_label" ><span>*</span>鎵瑰鐢熸晥鏃ユ湡锛�</div>
<div class="form_item_val">
<el-date-picker
v-model="form.applyStartTime"
@@ -60,6 +61,37 @@
<div class="form_item_label">鎵瑰噺鐢熸晥鏃ユ湡锛�</div>
<div class="form_item_val">{{ form.delValidTime }}</div>
</div>
+ </template>
+ <template v-if="model.delOnlyReplace == 1">
+ <div class="form_item">
+ <div class="form_item_label">鏈熸湜鎵规敼鐢熸晥鏃ユ湡锛�</div>
+ <div class="form_item_val">{{ model.delValidTime }}</div>
+ </div>
+ <div class="form_item">
+ <div class="form_item_label">鎵瑰崟鐢熸晥璧锋湡鏄惁涓�鑷达細</div>
+ <div class="form_item_val">
+ <el-radio-group v-model="form.selectRadio" @change="selectChange">
+ <el-radio :label="0" >涓庢壒鍗曚竴鑷�</el-radio>
+ <el-radio :label="1" >涓庢壒鍗曚笉涓�鑷�</el-radio>
+ </el-radio-group>
+ </div>
+ </div>
+ <div class="form_item" v-if="form.selectRadio === 1">
+ <div class="form_item_label"><span>*</span>鎵规敼鐢熸晥鏃ユ湡锛�</div>
+ <div class="form_item_val">
+ <el-date-picker
+ v-model="form.delValidTime"
+ type="date"
+ value-format="yyyy-MM-dd HH:mm:ss"
+ placeholder="閫夋嫨鏃ユ湡">
+ </el-date-picker>
+ </div>
+ </div>
+ <div class="form_item">
+ <div class="form_item_label">鎵规敼鐢熸晥鏃ユ湡锛�</div>
+ <div class="form_item_val">{{ form.delValidTime }}</div>
+ </div>
+ </template>
<div class="form_item">
<div class="form_item_label"><span>*</span>鎵瑰崟鍙凤細</div>
<div class="form_item_val" >
@@ -69,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>
@@ -90,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">
@@ -153,8 +185,8 @@
applyStartTime: null,
delValidTime: null,
validCode: null,
- pidanFile: null,
- editPidanFile: null,
+ pidanFile: [],
+ editPidanFile: [],
fileList1: [],
fileList2: [],
selectRadio: 0
@@ -185,8 +217,8 @@
delValidTime: null,
applyStartTime: null,
validCode: null,
- pidanFile: null,
- editPidanFile: null,
+ pidanFile: [],
+ editPidanFile: [],
fileList1: [],
fileList2: [],
selectRadio: 0
@@ -281,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('纭杩涜璇ユ搷浣滃悧锛�')
@@ -316,7 +362,13 @@
this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�')
.then(() => {
this.isWorking = true
- uploadChangePidan({ id: this.model.id, applyStartTime: this.form.applyStartTime, delValidTime: this.form.delValidTime, validCode: this.form.validCode, pidanFile: this.form.pidanFile })
+ uploadChangePidan({
+ id: this.model.id,
+ applyStartTime: (this.model.delOnlyReplace != 1 ? this.form.applyStartTime : this.form.delValidTime),
+ delValidTime: this.form.delValidTime,
+ validCode: this.form.validCode,
+ pidanFileList: this.form.pidanFile
+ })
.then(response => {
this.visible = false
this.$emit('success')
@@ -329,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')
--
Gitblit v1.9.3