xiongchao il y a 3 ans
Parent
commit
c8c1685c41

+ 7 - 2
src/views/repair/application-form/RepairForm.vue

@@ -157,7 +157,7 @@ export default {
           width: '200px',
           dataIndex: 'applyTime'
         },
-        /*{
+        /* {
           title: '紧急等级',
           checked: true,
           width: '200px',
@@ -173,7 +173,7 @@ export default {
           customRender: (text, record, index) => {
             return this.BaseTool.Object.getField(this.needStopMap, text)
           }
-        },*/
+        }, */
         {
           title: '报修状态',
           checked: true,
@@ -237,6 +237,11 @@ export default {
     this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_STATUS)
     this.needStopMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YES_NO)
 
+    // 获取浏览器的请求参数:报修单编号:no
+    const no = this.$route.query.no
+    if (no != null) {
+      this.queryParam.no = no
+    }
     this.tableOption()
   },
   methods: {

+ 1 - 1
src/views/repair/application-form/modules/BaseForm.vue

@@ -200,7 +200,7 @@
           >
             <a-textarea
               :rows="4"
-              v-decorator="['content']"/>
+              v-decorator="['content', {rules: [{required: true, message: '故障描述不能为空'}]}]"/>
           </a-form-item>
         </row-item>
       </row-list>

+ 2 - 1
src/views/repair/application-form/modules/FinishForm.vue

@@ -29,7 +29,7 @@
             </a-select>
           </a-form-item>
         </row-item>
-<!--        <row-item>
+        <!--        <row-item>
           <a-form-item
             label="紧急等级"
             :labelCol="BaseTool.Constant.labelCol"
@@ -231,6 +231,7 @@ export default {
         // 日期处理
         values.repairFileList = this.repairFileList
         finish(values).then(() => {
+          this.$message.info('维修完成,请完成后续原因分析,完成后提交审核;')
           this.handleCancel(values)
         }).catch(() => {
           this.confirmLoading = false