Przeglądaj źródła

售后问题平台BUG修改

youchen 11 miesięcy temu
rodzic
commit
614c29decf

+ 6 - 0
src/api/business/as/problemInfo.js

@@ -117,3 +117,9 @@ export function fileImport(data) {
   })
 }
 
+export function getAllProcessorDataList() {
+  return request({
+    url: '/mk/as/assignAuthority/getAllAssignAuthority',
+    method: 'get',
+  })
+}

+ 15 - 13
src/views/business/as/problemInfo/detail.vue

@@ -6,7 +6,7 @@
             <el-col :span="6" v-if="flag">工单详情(待解决)</el-col>
             <el-col :span="6" v-if="flag == false" > 工单详情</el-col>
             <el-col :span="2" >
-              <el-button type="text" @click="handleSolve"> 解决</el-button>
+              <el-button type="primary" @click="handleSolve"> 解决</el-button>
 <!--              <el-button type="text" @click="handleWorkOrder"> 转单</el-button>-->
             </el-col>
           </el-row>
@@ -24,15 +24,15 @@
             </el-descriptions-item>
             <el-descriptions-item label="创建时间">{{ this.data.createTime }}</el-descriptions-item>
           </el-descriptions>
-          <el-descriptions :column="2">
+          <el-descriptions :column="3">
             <el-descriptions-item label="提问人">{{ this.data.questioner }}</el-descriptions-item>
             <el-descriptions-item label="科室信息">{{this.data.roomInformation}}</el-descriptions-item>
-            <el-descriptions-item label="问题类别">{{this.data.problemType}}
-            </el-descriptions-item>
-            <el-descriptions-item label="处理负责人">{{this.data.processorName}}
-            </el-descriptions-item>
           </el-descriptions>
-          <el-descriptions :column="1">
+          <el-descriptions :column="3">
+            <el-descriptions-item label="问题类别">{{this.data.problemType}}</el-descriptions-item>
+            <el-descriptions-item label="处理负责人">{{this.data.processorName}}</el-descriptions-item>
+          </el-descriptions>
+          <el-descriptions :column="3">
             <el-descriptions-item label="问题描述">
               <el-input
                 type="textarea"
@@ -43,7 +43,7 @@
               </el-input>
             </el-descriptions-item>
           </el-descriptions>
-          <el-descriptions :column="1">
+          <el-descriptions :column="3">
             <el-descriptions-item label="问题图片">
               <div class="block" v-for="(item,index) in this.data.problemPicture">
                 <el-image
@@ -81,9 +81,8 @@
               </div>
             </el-descriptions-item>
           </el-descriptions>
-
         </el-col>
-        <el-col :span="4" v-if="flag==false" style="height: 1000px">
+        <el-col :span="4" v-if="flag==false" style="height: 600px">
           <el-timeline :reverse="reverse">
             <el-timeline-item
               v-for="(activity, index) in this.data.processFlow"
@@ -94,7 +93,9 @@
           </el-timeline>
         </el-col>
       </el-row>
-
+      <el-row type="flex" justify="end">
+        <el-button type="primary" @click="returnPage">返回</el-button>
+      </el-row>
       <el-dialog
         title="确认该问题已解决?"
         :visible.sync="dialogSolve"
@@ -177,8 +178,6 @@
         <el-button @click="cancel">取 消</el-button>
         <el-button type="primary" @click="submitFormWorkOrder">确 定</el-button>
       </el-dialog>
-
-
     </div>
 </template>
 
@@ -207,6 +206,9 @@ export default {
     }
   },
   methods:{
+    returnPage(){
+      this.$router.go(-1)
+    },
     //预览图片功能
     handlePictureCardPreview(file) {
       this.dialogVisiblePicture = true

+ 80 - 23
src/views/business/as/problemInfo/index.vue

@@ -74,7 +74,7 @@
             </el-select>
           </el-form-item>
           <el-form-item label="处理负责人">
-            <el-select v-model="queryParams.processor" filterable placeholder="请选择" clearable>
+            <el-select v-model="queryParams.processor" filterable placeholder="请选择" clearable @visible-change="changeBtn2">
               <el-option
                 v-for="item in processorOptions"
                 :key="item.userName"
@@ -340,7 +340,7 @@
           </el-col>
             <el-col :span="6">
               <el-form-item label="处理负责人" prop="processor">
-                <el-select v-model="form.processor" placeholder="请选择" clearable>
+                <el-select v-model="form.processor" placeholder="请选择" clearable @change="changeBtn1">
                   <el-option
                     v-for="item in processorOptions"
                     :key="item.userName"
@@ -490,13 +490,13 @@ import {
   remove,
   updateStage,
   pushWorkOrder,
-  downloadExcel,
   getRoomInformation,
   getQuestionerList,
   updateStageProblem,
   getProcessorOptions,
   addProblem,
   getProjectSourceOptions,
+  getAllProcessorDataList,
   fileImport
 } from "@/api/business/as/problemInfo"
 import {getToken} from "@/utils/auth";
@@ -508,25 +508,34 @@ export default {
   created() {
     this.getTableHeight()
     this.handleClick()
-    getProjectSourceOptions().then(res =>{
-      if(res.code == 200){
-        this.projectSourceOptions=res.data
-      }
-    }),
-    getRoomInformation().then(res => {
-      if(res.code == 200){
-        if(res.data!=null&&res.data.length()>0){
-          this.roomInformationList=res.data
-        }
-      }
-    })
-    getQuestionerList().then(res => {
-      if(res.code == 200){
-        this.questionerList=res.data
-      }
-    })
+    this.getProjectSourceDataList()
+    this.getRoomInformationDataList()
+    this.getQuestionerDataList()
   },
   methods: {
+    changeBtn2(param){
+      console.log(param)
+      if(param==true){
+        console.log(this.processorOptions)
+        if(this.processorOptions.length==0){
+          getAllProcessorDataList().then(res =>{
+            if(res.code == 200){
+              this.processorOptions=res.data
+            }
+          })
+        }
+      }else {
+        this.processorOptions=[]
+      }
+
+    },
+    changeBtn1(param){
+      this.processorOptions.forEach((item) =>{
+        if(param==item.userName){
+          this.form.processorWay=item.phoneNumber
+        }
+      })
+    },
     //计算table高度(动态设置table高度)
     getTableHeight() {
       let tableH = 275; //距离页面下方的高度
@@ -683,9 +692,14 @@ export default {
         this.queryParams.problemStateSolve=''
         this.queryParams.problemStateConvert=''
       }
-      if(this.dateRange.length >0){
-        this.queryParams.creatStart=this.dateRange[0]
-        this.queryParams.creatEnd=this.dateRange[1]
+      if(this.dateRange){
+        if(this.dateRange.length >0){
+          this.queryParams.creatStart=this.dateRange[0]
+          this.queryParams.creatEnd=this.dateRange[1]
+        }
+      }else {
+        this.queryParams.creatStart=''
+        this.queryParams.creatEnd=''
       }
       if(this.activeName){
         if(this.activeName=='1'){
@@ -796,6 +810,7 @@ export default {
       this.dialogVisible = false
       this.dialogSolve = false
       this.dialogWorkOrder = false
+      this.pictureList=[]
     },
     submitFormWorkOrder(){
       pushWorkOrder(this.form).then(res =>{
@@ -814,6 +829,29 @@ export default {
       this.dialogWorkOrder=false
 
     },
+    getProjectSourceDataList(){
+      getProjectSourceOptions().then(res =>{
+        if(res.code == 200){
+          this.projectSourceOptions=res.data
+        }
+      })
+    },
+    getRoomInformationDataList(){
+      getRoomInformation().then(res => {
+        if(res.code == 200){
+          if(res.data!=null){
+            this.roomInformationList=res.data
+          }
+        }
+      })
+    },
+    getQuestionerDataList(){
+      getQuestionerList().then(res => {
+        if(res.code == 200){
+          this.questionerList=res.data
+        }
+      })
+    },
     submitForm(){
       this.$refs["form"].validate(async valid => {
         if (valid) {
@@ -843,7 +881,11 @@ export default {
               if(res.code == 200){
                 this.$modal.msgSuccess("新增成功");
                 this.dialogVisible = false
+                this.cancel()
                 this.handleClick()
+                this.getProjectSourceDataList()
+                this.getRoomInformationDataList()
+                this.getQuestionerDataList()
               }
             })
           } else {
@@ -883,6 +925,9 @@ export default {
                 this.dialogVisible = false
                 this.cancel()
                 this.handleClick()
+                this.getProjectSourceDataList()
+                this.getRoomInformationDataList()
+                this.getQuestionerDataList()
               }
             })
           }
@@ -990,6 +1035,12 @@ export default {
         ],
         questionerWay: [
           { required: true, message: '请输入提问人联系方式', trigger: 'blur' },
+          {
+            min: 11, max: 11,
+            pattern: /^1[3-9]\d{9}$/,
+            message: "手机号格式错误",
+            trigger: "blur",
+          },
         ],
         problemType: [
           { required: true, message: '请选择问题类型', trigger: 'change' }
@@ -1002,6 +1053,12 @@ export default {
         ],
         processorWay: [
           { required: true, message: '请输入负责处理人联系方式', trigger: 'blur' },
+          {
+            min: 11, max: 11,
+            pattern: /^1[3-9]\d{9}$/,
+            message: "手机号格式错误",
+            trigger: "blur",
+          },
         ]
       },
       rules1: {

+ 3 - 0
src/views/business/bid/index/biding.vue

@@ -260,6 +260,9 @@ export default {
     this.getTableHeight()
     this.btnQuery()
   },
+  beforeDestroy() {
+    this.saveQueryParams=this.queryParams
+  },
   methods: {
     //计算table高度(动态设置table高度)
     getTableHeight() {

+ 2 - 17
src/views/business/bid/rulesDetail/detail.vue

@@ -31,6 +31,8 @@
               :key="item.userName"
               :label="item.nickName"
               :value="item.userName">
+              <span style="float: left">{{ item.nickName }}</span>
+              <span style="float: right; color: #8492a6; font-size: 13px">{{ item.userName }}</span>
             </el-option>
             </el-select>
           </el-form-item>
@@ -76,7 +78,6 @@
         </el-col>
       </el-row>
       <el-row :gutter="24">
-
 <!--        <el-col :span="8">-->
 <!--          <el-form-item label="获取标书截止日期">-->
 <!--            <el-date-picker-->
@@ -309,22 +310,6 @@ export default {
           label: '电子反拍'
         }
       ],
-      infoTypeSegmentOptions:[{
-        value: '选项1',
-        label: '黄金糕'
-      }, {
-        value: '选项2',
-        label: '双皮奶'
-      }, {
-        value: '选项3',
-        label: '蚵仔煎'
-      }, {
-        value: '选项4',
-        label: '龙须面'
-      }, {
-        value: '选项5',
-        label: '北京烤鸭'
-      }],
       areaObj:'',
       form: {
         id:undefined,

+ 13 - 12
src/views/business/bid/subscriptionRules/index.vue

@@ -31,7 +31,7 @@
   </el-form>
     <el-table
       :data="dataList.dataTable"
-      style="padding-top: 10px"
+      style="margin-top: 10px"
       :header-cell-style="{'text-align':'center'}"
       :height="tableHeight"
     >
@@ -69,25 +69,26 @@
         </template>
       </el-table-column>
       <el-table-column  label="操作" width="100" align="center">
-
         <template slot-scope="scope">
           <el-button type="text" @click="handleEdit(scope.row.id)">编辑</el-button>
           <el-button type="text"  @click="handleOpen(scope.row)">
           {{scope.row.stateFalg == '0' ?"停用":"启用"}}
           </el-button>
         </template>
-
       </el-table-column>
     </el-table>
-    <el-pagination
-      @size-change="handleSizeChange"
-      @current-change="handleCurrentChange"
-      :current-page=queryParams.pageNum
-      :page-size=queryParams.pageSize
-      layout="total, sizes, prev, pager, next, jumper"
-      :total=dataList.total
-    >
-    </el-pagination>
+    <el-row>
+      <el-pagination
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+        :current-page=queryParams.pageNum
+        :page-size=queryParams.pageSize
+        layout="total, sizes, prev, pager, next, jumper"
+        :total=dataList.total
+      >
+      </el-pagination>
+    </el-row>
+
   </div>
 </template>
 <script>