Ver código fonte

feat:修改待回复7=>2时间判定

AlieLee 3 anos atrás
pai
commit
dba896d87b

+ 1 - 1
src/views/demandmanage/Detail.vue

@@ -85,7 +85,7 @@
         </div>
         <!-- 编辑者 回复 -->
         <div class="replyCon"  v-if="handle.type=='回复'||handle.type=='继续回复'">
-          <div class="replyInfo"><b class="replyInfo1">需求回复</b> <b class="replyInfo2" v-if="handle.type=='继续回复'">上次回复时间:<b :class="{'replyInfo3':detail.dot =='#F54E45'}" v-text="toTime(detail.estimateTime,true)"></b></b></div>
+          <div class="replyInfo"><b class="replyInfo1">需求回复</b> <b class="replyInfo2" v-if="handle.type=='继续回复'">预计回复时间:<b :class="{'replyInfo3':detail.dot =='#F54E45'}" v-text="toTime(detail.estimateTime,true)"></b></b></div>
           <div>
              <radio-group :group-data.sync="stateGroup" type="single" @change="stateChange"/>
           </div>

+ 4 - 4
src/views/demandmanage/Draft.vue

@@ -115,10 +115,10 @@ export default {
       productCond: [1, 2, 3], // 产线条件
       stateCond: [], // 状态条件
       orders: [
-        {
-          column: 'modifiedTime',
-          asc: false
-        }
+        // {
+        //   column: 'modifiedTime',
+        //   asc: false
+        // }
       ],
       line: { 1: '业务', 2: '研发', 3: '实施' },
       state: { 1: '待回复', 2: '已接受', 3: '已拒绝', 4: '待完善', 5: '论证中' },

+ 5 - 5
src/views/demandmanage/editor.vue

@@ -100,10 +100,10 @@ export default {
       productCond: [1, 2, 3], // 产线条件
       stateCond: [1, 5], // 状态条件
       orders: [
-        {
-          column: 'modifiedTime',
-          asc: false
-        }
+        // {
+        //   column: 'modifiedTime',
+        //   asc: false
+        // }
       ],
       line: { 1: '业务', 2: '研发', 3: '实施' },
       state: { 1: '待回复', 2: '已接受', 3: '已拒绝', 4: '待完善', 5: '论证中' },
@@ -238,7 +238,7 @@ export default {
       // 需求状态 - 0:待提交 1:待回复 2:已接受 3:已拒绝 4:待完善 5:论证中
       let color = ''
       const flag = estimateTime && this.$moment(estimateTime, 'YYYYMMDDHHmmss').valueOf() < this.$moment().valueOf()
-      const flag2 = submitTime && this.$moment().diff(this.$moment(submitTime, 'YYYYMMDDHHmmss'), 'day') >= 7
+      const flag2 = submitTime && this.$moment().diff(this.$moment(submitTime, 'YYYYMMDDHHmmss'), 'day') >= 2
       switch (billState) {
         case 1:
           color = flag2 ? '#F54E45' : '#0091FF'

+ 5 - 5
src/views/demandmanage/user.vue

@@ -129,10 +129,10 @@ export default {
       productCond: [1, 2, 3], // 产线条件
       stateCond: [1, 2, 3, 4, 5], // 状态条件
       orders: [
-        {
-          column: 'modifiedTime',
-          asc: false
-        }
+        // {
+        //   column: 'modifiedTime',
+        //   asc: false
+        // }
       ],
       draft: {
         data: [],
@@ -329,7 +329,7 @@ export default {
       // 需求状态 - 0:待提交 1:待回复 2:已接受 3:已拒绝 4:待完善 5:论证中
       let color = ''
       const flag = estimateTime && this.$moment(estimateTime, 'YYYYMMDDHHmmss').valueOf() < this.$moment().valueOf()
-      const flag2 = submitTime && this.$moment().diff(this.$moment(submitTime, 'YYYYMMDDHHmmss'), 'day') >= 7
+      const flag2 = submitTime && this.$moment().diff(this.$moment(submitTime, 'YYYYMMDDHHmmss'), 'day') >= 2
       switch (billState) {
         case 1:
           color = flag2 ? '#F54E45' : '#0091FF'