소스 검색

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

AlieLee 3 년 전
부모
커밋
dba896d87b
4개의 변경된 파일15개의 추가작업 그리고 15개의 파일을 삭제
  1. 1 1
      src/views/demandmanage/Detail.vue
  2. 4 4
      src/views/demandmanage/Draft.vue
  3. 5 5
      src/views/demandmanage/editor.vue
  4. 5 5
      src/views/demandmanage/user.vue

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

@@ -85,7 +85,7 @@
         </div>
         </div>
         <!-- 编辑者 回复 -->
         <!-- 编辑者 回复 -->
         <div class="replyCon"  v-if="handle.type=='回复'||handle.type=='继续回复'">
         <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>
           <div>
              <radio-group :group-data.sync="stateGroup" type="single" @change="stateChange"/>
              <radio-group :group-data.sync="stateGroup" type="single" @change="stateChange"/>
           </div>
           </div>

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

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

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

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

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

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