whj 1 рік тому
батько
коміт
f21e6fdeda

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

@@ -60,11 +60,11 @@ export default {
   methods: {
     base (record) {
       this.visible = true
+      console.log(record)
       this.model = record
       // 如果是空标识添加
       const { form: { setFieldsValue } } = this
       // 日期处理
-      record.applyTime = this.BaseTool.Moment(record.applyTime, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN)
       this.$nextTick(() => {
         setFieldsValue(Object.assign(pick(record, [
           'id',

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

@@ -135,7 +135,7 @@
           </a-table>
         </div>
         <div class="main gutter-color" v-show="current == 3">
-          <a-tabs default-active-key="1" @change="callback">
+          <a-tabs default-active-key="1" >
             <a-tab-pane key="1" tab="维修记录">
               <a-table
                 :data-source="dataRecord"
@@ -298,7 +298,7 @@
         <a-popconfirm v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status " title="是否要接单?" @confirm="receiveRepair">
           <a-button style="margin-left: 8px" type="default">接单</a-button>
         </a-popconfirm>
-        <a-button v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status " style="margin-left: 8px" type="default" @click="$refs.backForm.base( )">退回</a-button>
+        <a-button v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status " style="margin-left: 8px" type="default" @click="$refs.backForm.base(model)">退回</a-button>
         <a-button
           v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.RECEIVED === model.status ||
             DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.HANG_UP === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status ||