Quellcode durchsuchen

必填扣分原因

zzs vor 3 Monaten
Ursprung
Commit
8680b87d85
1 geänderte Dateien mit 18 neuen und 7 gelöschten Zeilen
  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,