Browse Source

必填扣分原因

zzs 3 months ago
parent
commit
8680b87d85
1 changed files with 18 additions and 7 deletions
  1. 18 7
      ruoyi-ui/src/views/expert/tender/components/excelContent.vue

+ 18 - 7
ruoyi-ui/src/views/expert/tender/components/excelContent.vue

@@ -272,27 +272,38 @@ export default {
     },
 
     handleSave () {
-      const bidExpertExamines = this.zigeList.map(item => {
+
+      for (let item of this.jishuList) {
+        if (item.value != item.score) {
+          if (!item.reason) {
+            this.$message.error(`【${item.content}】请填写扣分原因`)
+            return
+          }
+        }
+      }
+      const bidExpertTeches = this.jishuList.map(item => {
         return {
           id: item.oid,
           sid: this.tender.sid,
-          eid: item.id,
+          tid: item.id,
           hid: this.hid,
           hName: this.hName,
-          isOk: item.isOk,
+          score: item.score,
+          reason: item.reason,
         }
       })
-      const bidExpertTeches = this.jishuList.map(item => {
+
+      const bidExpertExamines = this.zigeList.map(item => {
         return {
           id: item.oid,
           sid: this.tender.sid,
-          tid: item.id,
+          eid: item.id,
           hid: this.hid,
           hName: this.hName,
-          score: item.score,
-          reason: item.reason,
+          isOk: item.isOk,
         }
       })
+
       const bidExpertResponds = this.xiangyingList.map(item => {
         return {
           id: item.oid,