whj 11 months ago
parent
commit
9bcf2bef77
1 changed files with 12 additions and 3 deletions
  1. 12 3
      src/views/sb/info/modules/BaseFormMeasure.vue

+ 12 - 3
src/views/sb/info/modules/BaseFormMeasure.vue

@@ -27,7 +27,7 @@
               <!-- <th width="150px">设备位置</th> -->
               <!-- <th width="150px">设备位置</th> -->
               <!-- <th width="350px">选择父设备</th> -->
               <!-- <th width="350px">选择父设备</th> -->
               <th width="150px">设备位号</th>
               <th width="150px">设备位号</th>
-              <th width="150px">检定周期</th>
+              <!-- <th width="150px">检定周期</th> -->
               <th width="150px">检定日期</th>
               <th width="150px">检定日期</th>
               <th width="150px">下次检定日期</th>
               <th width="150px">下次检定日期</th>
               <th width="150px">检定单号</th>
               <th width="150px">检定单号</th>
@@ -88,7 +88,7 @@
                   <a-button v-if="item.isChild === 1" type="primary" @click="handleSbNoSelect(item.sbParentId,i)">选择</a-button>
                   <a-button v-if="item.isChild === 1" type="primary" @click="handleSbNoSelect(item.sbParentId,i)">选择</a-button>
                 </div> -->
                 </div> -->
               </td>
               </td>
-              <td><a-input v-model="item.checkPeriod" suffix="月" /></td>
+              <!-- <td><a-input v-model="item.checkPeriod" suffix="月" /></td> -->
               <td>
               <td>
                 <a-date-picker
                 <a-date-picker
                   placeholder="日期"
                   placeholder="日期"
@@ -97,7 +97,14 @@
                   v-model="item.lastDate" />
                   v-model="item.lastDate" />
                 <a-button type="primary" @click="handlePace(item.lastDate,'lastDate')">同步</a-button>
                 <a-button type="primary" @click="handlePace(item.lastDate,'lastDate')">同步</a-button>
               </td>
               </td>
-              <td>{{ validity(item.lastDate,item.checkPeriod) }}</td>
+              <!-- <td>{{ validity(item.lastDate,item.checkPeriod) }}</td> -->
+              <td>  <a-date-picker
+                      placeholder="日期"
+                      style="width: 150px"
+                      :format="BaseTool.Date.PICKER_NORM_DATE_PATTERN"
+                      v-model="item.youXiaoDate" />
+                <a-button type="primary" @click="handlePace(item.youXiaoDate,'youXiaoDate')">同步</a-button></td>
+
               <td><a-input style="width: 150px" v-model="item.no" /><a-button type="primary" @click="handlePace(item.no,'no')">同步</a-button></td>
               <td><a-input style="width: 150px" v-model="item.no" /><a-button type="primary" @click="handlePace(item.no,'no')">同步</a-button></td>
               <td><a-input style="width: 150px" v-model="item.requirement" /><a-button type="primary" @click="handlePace(item.requirement,'requirement')">同步</a-button></td>
               <td><a-input style="width: 150px" v-model="item.requirement" /><a-button type="primary" @click="handlePace(item.requirement,'requirement')">同步</a-button></td>
               <td><a-input style="width: 150px" v-model="item.remark" /></td>
               <td><a-input style="width: 150px" v-model="item.remark" /></td>
@@ -238,6 +245,7 @@ export default {
           no: '',
           no: '',
           lastDate: '',
           lastDate: '',
           sbStatus: false,
           sbStatus: false,
+          youXiaoDate: '',
           sbPositionNo: item.positionNo,
           sbPositionNo: item.positionNo,
           requirement: '',
           requirement: '',
           remark: '',
           remark: '',
@@ -394,6 +402,7 @@ export default {
             sbPositionName: item.positionName,
             sbPositionName: item.positionName,
             no: '',
             no: '',
             lastDate: '',
             lastDate: '',
+            youXiaoDate: '',
             sbStatus: false,
             sbStatus: false,
             sbPositionNo: item.positionNo,
             sbPositionNo: item.positionNo,
             requirement: '',
             requirement: '',