Przeglądaj źródła

报销新增隐藏,附件上传添加提示

huangguoce 1 tydzień temu
rodzic
commit
e0220faeed

+ 2 - 0
src/views/ccpm/reimbursement/info/NewReimbursementForm.vue

@@ -468,6 +468,7 @@ export default {
           }
           // this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, this.inputForm.invoiceReimbursementFiles, 'reimbursement', 300, '数电发票信息', null, null, null, '江苏兴光项目管理有限公司')
           this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'reimbursement')
+          this.$refs.uploadComponent.isReimbursement = true
           if (this.commonJS.isNotEmpty(this.inputForm.purchaseId)) {
             // this.startPur(this.inputForm.purchaseId)
           }
@@ -504,6 +505,7 @@ export default {
         if (method !== 'edit' && method !== 'view') {
           //   this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, [], 'reimbursement')
           this.$refs.uploadComponent.newUpload(method, [], 'reimbursement')
+          this.$refs.uploadComponent.isReimbursement = true
           this.loading = false
         }
         userService.isZj().then((data) => {

+ 6 - 1
src/views/common/UpLoadComponent.vue

@@ -15,6 +15,10 @@
       </template>
       <AttachmentLib v-if="auth !== 'view'" :directory="directory" @onDownToOss="handleOnDownToOss">
       </AttachmentLib>
+      <span style="color: red;font-size: 16px;font-weight: 600;" v-if="isReimbursement == true">
+        (此附件上传不是数电发票上传。数电发票请在报销单后操作栏处上传)
+      </span>
+
 
     </el-upload>
 
@@ -99,7 +103,8 @@ export default {
       createBy: '',
       showDivider: true,
       loading: false,
-      dataListLength: ''
+      dataListLength: '',
+      isReimbursement: false // 是否是报销附件上传
     }
   },
   watch: {

+ 14 - 7
src/views/common/reimbursement/ReimbursementComponent.vue

@@ -1653,7 +1653,8 @@ export default {
         removeEvent(row, rowIndex, type) {
             this.handleTableInfo(this.inputForm.sourceType)
             //删除第一条数据
-            if (rowIndex === 0 && this.tableData.length > 1) {
+            //恢复:rowIndex === 0 && this.tableData.length > 1
+            if (false) {
                 ElMessageBox.confirm(
                     `是否确认删除第1张报销单?(所有报销单数据也将同步删除)`,
                     '提示',
@@ -2197,7 +2198,8 @@ export default {
                 this.$forceUpdate()
             }
 
-            if (this.indexRow === 0) {
+            //恢复:this.indexRow === 0
+            if (false) {
                 const currentName = this.inputForm.detailInfos[this.indexRow].typeName
                 const newName = rows.name
 
@@ -2245,7 +2247,8 @@ export default {
                 this.$forceUpdate()
             }
 
-            if (this.indexRow === 0) {
+            //恢复:this.indexRow === 0
+            if (false) {
                 const currentName = this.inputForm.detailInfoReports[this.indexRow].typeName
                 const newName = rows.name
 
@@ -2294,7 +2297,8 @@ export default {
                 this.$forceUpdate()
             }
 
-            if (this.indexRow === 0) {
+            //恢复:this.indexRow === 0
+            if (false) {
                 const currentName = this.inputForm.detailInfos[this.indexRow].typeName
                 const newName = rows.name
 
@@ -2355,7 +2359,8 @@ export default {
                 this.$forceUpdate()
             }
 
-            if (this.indexRow === 0) {
+            //恢复:this.indexRow === 0
+            if (false) {
                 const currentName = this.inputForm.detailInfoReports[this.indexRow].typeName
                 const newName = rows.name
 
@@ -2404,7 +2409,8 @@ export default {
                 this.$forceUpdate()
             }
 
-            if (this.indexRow === 0) {
+            //恢复:this.indexRow === 0
+            if (false) {
                 const currentName = this.inputForm.detailInfoOthers[this.indexRow].typeName
                 const newName = rows.name
 
@@ -2459,7 +2465,8 @@ export default {
                 this.$forceUpdate()
             }
 
-            if (this.indexRow === 0) {
+            //恢复:this.indexRow === 0
+            if (false) {
                 const currentName = this.inputForm.detailInfoProject[this.indexRow].typeName
                 const newName = rows.name
 

+ 2 - 0
src/views/consultancy/reimbursement/info/NewReimbursementForm.vue

@@ -435,6 +435,7 @@ export default {
           }
           // this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, this.inputForm.invoiceReimbursementFiles, 'reimbursement', 300, '数电发票信息', null, null, null, '南京兴光培训咨询有限公司')
           this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'reimbursement')
+          this.$refs.uploadComponent.isReimbursement = true
           if (this.commonJS.isNotEmpty(this.inputForm.purchaseId)) {
             // this.startPur(this.inputForm.purchaseId)
           }
@@ -471,6 +472,7 @@ export default {
         if (method !== 'edit' && method !== 'view') {
           //   this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, [], 'reimbursement')
           this.$refs.uploadComponent.newUpload(method, [], 'reimbursement')
+          this.$refs.uploadComponent.isReimbursement = true
           this.loading = false
         }
         userService.isZj().then((data) => {

+ 2 - 0
src/views/cw/reimbursementApproval/info/NewReimbursementForm.vue

@@ -1153,6 +1153,7 @@ export default {
 					}
 					// this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, this.inputForm.invoiceReimbursementFiles, 'reimbursement', 300, '数电发票信息', null, null, null, '江苏兴光会计师事务所有限责任公司')
 					this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'reimbursement')
+					this.$refs.uploadComponent.isReimbursement = true
 					if (this.commonJS.isNotEmpty(this.inputForm.purchaseId)) {
 						this.startPur(this.inputForm.purchaseId)
 					}
@@ -1191,6 +1192,7 @@ export default {
 
 
 					this.$refs.uploadComponent.newUpload(method, [], 'reimbursement')
+					this.$refs.uploadComponent.isReimbursement = true
 				}
 				userService.isKjsz().then((data) => {
 					this.isKjsz = data

+ 2 - 1
src/views/cw/reportManagement/ReportManagementList.vue

@@ -601,7 +601,7 @@ export default {
 			const $toolbar = this.$refs.toolbarRef;
 			$table.connect($toolbar);
 		})
-		this.refreshList()
+		// this.refreshList()
 	},
 	activated() {
 		this.refreshList()
@@ -679,6 +679,7 @@ export default {
 				this.loading = false
 			})
 			this.checkIsAdmin()
+			return
 			processService.getByName('会计-报告复核').then((data) => {
 				if (!this.commonJS.isEmpty(data.id)) {
 					this.processDefinitionAuditId = data.id

+ 2 - 0
src/views/reimbursement/info/NewReimbursementForm.vue

@@ -1050,6 +1050,7 @@ export default {
 					}
 					// this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, this.inputForm.invoiceReimbursementFiles, 'reimbursement_ping_gu', 300, '数电发票信息', null, null, null, '江苏兴光资产评估有限公司')
 					this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'reimbursement_ping_gu')
+					this.$refs.uploadComponent.isReimbursement = true
 					if (this.commonJS.isNotEmpty(this.inputForm.purchaseId)) {
 						// this.startPur(this.inputForm.purchaseId)
 					}
@@ -1092,6 +1093,7 @@ export default {
 				if (method !== 'edit' && method !== 'view') {
 					// this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, [], 'reimbursement_ping_gu')
 					this.$refs.uploadComponent.newUpload(method, [], 'reimbursement_ping_gu')
+					this.$refs.uploadComponent.isReimbursement = true
 				}
 				userService.isZj().then((data) => {
 					this.isZj = data

+ 2 - 0
src/views/zs/reimbursement/info/NewReimbursementForm.vue

@@ -540,6 +540,7 @@ export default {
           }
           // this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, this.inputForm.invoiceReimbursementFiles, 'reimbursement', 300, '数电发票信息', null, null, null, '中审众环会计师事务所(特殊普通合伙)江苏分所')
           this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'reimbursement')
+          this.$refs.uploadComponent.isReimbursement = true
           if (this.commonJS.isNotEmpty(this.inputForm.purchaseId)) {
             // this.startPur(this.inputForm.purchaseId)
           }
@@ -574,6 +575,7 @@ export default {
         if (method !== 'edit' && method !== 'view') {
           //   this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, [], 'reimbursement')
           this.$refs.uploadComponent.newUpload(method, [], 'reimbursement')
+          this.$refs.uploadComponent.isReimbursement = true
           this.loading = false
         }
         userService.isZj().then((data) => {