| | |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- 按创建时间范围检索 --> |
| | | <!-- 按创建时间范围检索 --> |
| | | <a-col |
| | | :xl="6" |
| | | :lg="7" |
| | | :md="8" |
| | | :sm="24"> |
| | | :sm="24" |
| | | > |
| | | <a-form-item label="创建时间"> |
| | | <a-range-picker |
| | | v-model="ranges" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col |
| | | :xl="6" |
| | |
| | | > |
| | | <a |
| | | @click="handleEdit(record)" |
| | | v-if="record.status==='created'||record.status==='rejected'" |
| | | v-show="record.status==='created'||record.status==='rejected'" |
| | | v-has="'MaintenancePlan:add&edit&submit'" |
| | | >编辑</a> |
| | | <a-divider |
| | | type="vertical" |
| | | v-if="record.status==='created'||record.status==='rejected'" |
| | | v-show="record.status==='created'||record.status==='rejected'" |
| | | /> |
| | | <a-popconfirm |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-if="record.status==='created'||record.status==='rejected'" |
| | | v-show="record.status==='created'||record.status==='rejected'" |
| | | v-has="'MaintenancePlan:add&edit&submit'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | type="vertical" |
| | | v-if="record.status==='created'||record.status==='rejected'" |
| | | v-show="record.status==='created'||record.status==='rejected'" |
| | | v-has="'MaintenancePlan:add&edit&submit'" |
| | | /> |
| | | <a-popconfirm |
| | | title="提交后不可撤回,确定提交吗?" |
| | | @confirm="() => handleSubmit(record)" |
| | | v-if="record.status==='created'||record.status==='rejected'" |
| | | v-show="record.status==='created'||record.status==='rejected'" |
| | | v-has="'MaintenancePlan:add&edit&submit'" |
| | | > |
| | | <a>提交</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | type="vertical" |
| | | v-if="record.status==='created'||record.status==='rejected'" |
| | | v-show="record.status==='created'||record.status==='rejected'" |
| | | v-has="'MaintenancePlan:add&edit&submit'" |
| | | /> |
| | | <a-popconfirm |
| | | title="通过后不可撤销,确定通过吗?" |
| | | @confirm="() => handleAudit(record)" |
| | | v-if="record.status==='submitted'" |
| | | v-show="record.status==='submitted'" |
| | | v-has="'MaintenancePlan:audit&reject'" |
| | | > |
| | | <a>通过</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | type="vertical" |
| | | v-if="record.status==='submitted'" |
| | | v-show="record.status==='submitted'" |
| | | v-has="'MaintenancePlan:audit&reject'" |
| | | /> |
| | | <a-popconfirm |
| | | title="确定驳回吗?" |
| | | @confirm="() => handleReject(record)" |
| | | v-if="record.status==='submitted'" |
| | | v-show="record.status==='submitted'" |
| | | v-has="'MaintenancePlan:audit&reject'" |
| | | > |
| | | <a>驳回</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | type="vertical" |
| | | v-if="record.status==='submitted'" |
| | | v-show="record.status==='submitted'" |
| | | v-has="'MaintenancePlan:audit&reject'" |
| | | /> |
| | | <a-popconfirm |
| | | title="下发后不可撤销,确定下发吗?" |
| | | @confirm="() => handleDistrbute(record)" |
| | | v-if="record.status==='passed'" |
| | | v-show="record.status==='passed'" |
| | | v-has="'MaintenancePlan:distribute'" |
| | | > |
| | | <a>下发</a> |
| | | </a-popconfirm> |
| | | <span |
| | | v-if="record.status==='distributed'" |
| | | v-show="record.status==='distributed'" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >已生成工单</span> |
| | | </span> |
| | |
| | | data() { |
| | | return { |
| | | description: '保养计划管理页面', |
| | | ranges:[], |
| | | ranges: [], |
| | | // 表头 |
| | | columns: [ |
| | | { |