|
@@ -79,7 +79,7 @@
|
|
|
<td><a-input style="width: 150px" v-model="item.no" /></td>
|
|
|
<td><a-input style="width: 150px" v-model="item.requirement" /></td>
|
|
|
<td><a-input style="width: 150px" v-model="item.remark" /></td>
|
|
|
- <td>{{ item.validity }}</td>
|
|
|
+ <td>{{ validity(item.lastDate,item.checkPeriod) }}</td>
|
|
|
<td>
|
|
|
<a-button type="link" @click="uploadImg(item,i)">上传图片</a-button>
|
|
|
<a-button type="link" @click="uploadFile(item,i)">上传文件</a-button>
|
|
@@ -189,9 +189,15 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ validity (lastDate, checkPeriod) {
|
|
|
+ if (lastDate === '') return ''
|
|
|
+ lastDate = this.BaseTool.Date.formatter(lastDate, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN).split('-')
|
|
|
+ lastDate[1] = (parseInt(lastDate[1]) + parseInt(checkPeriod)) % 12
|
|
|
+ lastDate[0] = +lastDate[0] + Math.floor((parseInt(lastDate[1]) + parseInt(checkPeriod)) / 12)
|
|
|
+ return lastDate.join('-')
|
|
|
+ },
|
|
|
base (record) {
|
|
|
this.visible = true
|
|
|
-
|
|
|
this.model = record
|
|
|
this.ListForm = record.map(item => {
|
|
|
const data = {
|