瀏覽代碼

修改问题

tangning 2 年之前
父節點
當前提交
1c57ce82bd
共有 3 個文件被更改,包括 31 次插入27 次删除
  1. 1 1
      src/api/spares/model.ts
  2. 29 25
      src/views/work/detail.vue
  3. 1 1
      src/views/work/query.vue

+ 1 - 1
src/api/spares/model.ts

@@ -193,7 +193,7 @@ export interface detailResult {
   repairRegisterVo:any;
   orderReceivingVo:any;
   repairPay:any;
-  RepairComment:any;
+  repairComment:any;
   priceList:any[];
   lastRepairId:any;
 } 

+ 29 - 25
src/views/work/detail.vue

@@ -175,17 +175,17 @@
               <div class="link" @click="dowmFile(1)"> {{repairId}}维修工单.xlsx</div>  
             </DescriptionsItem>
           </Descriptions>
-          <Descriptions title="客户评价" :column="3" v-if="detailData.RepairComment">
+          <Descriptions title="客户评价" :column="3" v-if="detailData.repairComment">
             <DescriptionsItem label="评价内容">
-              {{ detailData.RepairComment.comment }}
+              <div class="htmlText" :title="detailData.repairComment.comment">{{ detailData.repairComment.comment }}</div>
             </DescriptionsItem>
             <DescriptionsItem label="评分">
-              {{ detailData.RepairComment.starRank }}
+              {{ detailData.repairComment.starRank }}
             </DescriptionsItem>
           </Descriptions>
           <Descriptions title="备注" :column="3">
             <DescriptionsItem label="备注内容">
-              {{ detailData.repairerVo?.remark }}
+              <div class="htmlText" :title="detailData.repairerVo?.remark">{{ detailData.repairerVo?.remark }}</div>
             </DescriptionsItem>
           </Descriptions>
         </div>
@@ -332,7 +332,7 @@ export default defineComponent({
       repairRegisterVo: {},
       orderReceivingVo: {},
       repairPay: {},
-      RepairComment: {},
+      repairComment: {},
       priceList: [],
       lastRepairId: '',
     });
@@ -369,29 +369,33 @@ export default defineComponent({
       const stepRes = await process({ repairId: repairId.value });
       let butTypeList = {
         0: ['接单'],
-        1: ['检测登记'],
-        2: ['报价'],
-        3: ['修改报价'],
-        4: ['付款登记'],
-        5: ['备件出库'],
-        6: ['添加备件', '完成维修'],
-        7: ['备件回收'],
-        8: ['测试登记'],
-        9: ['付款登记'],
-        10: ['发货登记'],
+        10: ['检测登记'],
+        20: ['报价'],
+        30: ['修改报价'],
+        40: ['付款登记'],
+        50: ['备件出库'],
+        60: ['添加备件', '完成维修'],
+
+        70: ['测试登记'],
+        80: ['付款登记'],
+        90: ['备件回收'],
+        // 70: ['备件回收'],
+        // 80: ['测试登记'],
+        // 90: ['付款登记'],
+        100: ['发货登记'],
       };
       let butTypeShow = {
         0: ['work_orderTakers'],
-        1: ['maintenance_testing'],
-        2: ['work_quotedPrice'],
-        3: ['work_setPrice'],
-        4: ['work_payments'],
-        5: ['repairspares_out'],
-        6: ['maintenance_add', 'maintenance_finish'],
-        7: ['repairspares_in'],
-        8: ['repair_test'],
-        9: ['work_payments'],
-        10: ['work_dispatched'],
+        10: ['maintenance_testing'],
+        20: ['work_quotedPrice'],
+        30: ['work_setPrice'],
+        40: ['work_payments'],
+        50: ['repairspares_out'],
+        60: ['maintenance_add', 'maintenance_finish'],
+        90: ['repairspares_in'],
+        70: ['repair_test'],
+        80: ['work_payments'],
+        100: ['work_dispatched'],
       }
       stepList.value = stepRes;
       let res = await detail({ repairId: repairId.value });

+ 1 - 1
src/views/work/query.vue

@@ -13,7 +13,7 @@
         <a-tab-pane :key="70" :tab="t('routes.spares.tableType.70')" />
         <a-tab-pane :key="80" :tab="t('routes.spares.tableType.80')" />
         <a-tab-pane :key="90" :tab="t('routes.spares.tableType.90')" />
-        <a-tab-pane :key="100" :tab="t('routes.spares.tableType.10')" />
+        <a-tab-pane :key="100" :tab="t('routes.spares.tableType.100')" />
       </a-tabs></template
     >
     <div class="desc-wrap-BasicTable">