调整进货申请列表
This commit is contained in:
@@ -77,9 +77,7 @@
|
||||
<th>特权开通日期</th>
|
||||
<th>推荐人</th>
|
||||
<th>手机号</th>
|
||||
<th>领导人</th>
|
||||
<th>开通日期</th>
|
||||
<th>系统到期日期</th>
|
||||
<th>组长</th>
|
||||
<th class="col-actions">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -100,8 +98,6 @@
|
||||
<td>{{ row.colleagueName || '-' }}</td>
|
||||
<td>{{ row.colleaguePhone || '-' }}</td>
|
||||
<td>{{ row.teamLeader || '-' }}</td>
|
||||
<td>{{ formatOpenDate(row.applyDate) }}</td>
|
||||
<td>{{ formatApplicantSystemExpireDate(row) }}</td>
|
||||
<td class="col-actions">
|
||||
<el-button type="text" @click="handleEdit(row)">编辑</el-button>
|
||||
<el-button type="text" style="color:#F56C6C;" @click="handleDelete(row)">删除</el-button>
|
||||
@@ -269,7 +265,7 @@
|
||||
</td>
|
||||
<td>{{ row.applyPhone || '-' }}</td>
|
||||
<td>{{ formatTryDate(row.tryDate) }}</td>
|
||||
<td>{{ formatOpenDate(row.applyDate) }}</td>
|
||||
<td>{{ formatApplyOpenDate(row.applyDate) }}</td>
|
||||
<td>{{ formatApplicantSystemExpireDate(row) }}</td>
|
||||
<td>{{ formatLatestTradePayTime(row) }}</td>
|
||||
<td>{{ formatLatestTradeTotalMoney(row) }}</td>
|
||||
@@ -632,7 +628,7 @@
|
||||
<th>特权开通日期</th>
|
||||
<th>推荐人</th>
|
||||
<th>手机号</th>
|
||||
<th>领导人</th>
|
||||
<th>组长</th>
|
||||
<th>开通日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -653,7 +649,7 @@
|
||||
<td>{{ row.colleagueName || '-' }}</td>
|
||||
<td>{{ row.colleaguePhone || '-' }}</td>
|
||||
<td>{{ row.teamLeader || '-' }}</td>
|
||||
<td>{{ formatOpenDate(row.applyDate) }}</td>
|
||||
<td>{{ formatApplyOpenDate(row.applyDate) }}</td>
|
||||
</tr>
|
||||
</template>
|
||||
</tbody>
|
||||
@@ -884,6 +880,23 @@ export default {
|
||||
const day = String(date.getDate()).padStart(2, '0')
|
||||
return `${year}-${month}-${day}`
|
||||
},
|
||||
addOneWeekday(dateValue) {
|
||||
const normalized = this.normalizeApplyDateValue(dateValue)
|
||||
if (!normalized) return ''
|
||||
const date = new Date(`${normalized}T12:00:00`)
|
||||
if (Number.isNaN(date.getTime())) return normalized
|
||||
date.setDate(date.getDate() + 1)
|
||||
const dayOfWeek = date.getDay()
|
||||
if (dayOfWeek === 6) {
|
||||
date.setDate(date.getDate() + 2)
|
||||
} else if (dayOfWeek === 0) {
|
||||
date.setDate(date.getDate() + 1)
|
||||
}
|
||||
const year = date.getFullYear()
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||
const day = String(date.getDate()).padStart(2, '0')
|
||||
return `${year}-${month}-${day}`
|
||||
},
|
||||
formatShortMd(dateValue, padMonthDay = true) {
|
||||
const normalized = this.normalizeApplyDateValue(dateValue)
|
||||
if (!normalized) return ''
|
||||
@@ -940,6 +953,11 @@ export default {
|
||||
if (Number.isNaN(month) || Number.isNaN(day)) return normalized
|
||||
return `${year}/${month}/${day}`
|
||||
},
|
||||
formatApplyOpenDate(applyDate) {
|
||||
const shifted = this.addOneWeekday(applyDate)
|
||||
if (!shifted) return '-'
|
||||
return this.formatOpenDate(shifted)
|
||||
},
|
||||
fetchList() {
|
||||
this.loading = true
|
||||
getLbPurchaseApplyList(this.buildListParams())
|
||||
|
||||
Reference in New Issue
Block a user