| | |
| | | @click="handleSW" |
| | | :disabled=SWbuttonDistable |
| | | type="primary" |
| | | v-has="'dailyMaintenanceOrder:SW'" |
| | | v-has="'daily3MaintenanceOrder:SW'" |
| | | >开工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReport" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyMaintenanceOrder:report'" |
| | | v-has="'daily3MaintenanceOrder:report'" |
| | | >报工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReset" |
| | | :disabled="revocationDistable" |
| | | type="primary" |
| | | v-has="'dailyMaintenanceOrder:reset'" |
| | | v-has="'daily3MaintenanceOrder:reset'" |
| | | >撤销</a-button> |
| | | </a-row> |
| | | </div> |
| | |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | <span |
| | | v-if=" col.dataIndex == 'photo' && !text" |
| | | v-show=" col.dataIndex == 'photo' && !text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >无图片</span> |
| | | <img |
| | | v-if="col.dataIndex == 'photo' && text" |
| | | v-show="col.dataIndex == 'photo' && text" |
| | | :src="getImgView(text)" |
| | | :preview="record.maintenanceStandardDetailId" |
| | | height="25px" |
| | |
| | | |
| | | <a-input |
| | | :value="text" |
| | | v-if="col.dataIndex == 'maintenanceOrderDetailUda1'" |
| | | v-show="col.dataIndex == 'maintenanceOrderDetailUda1'" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="record.disabled" |
| | | /> |
| | | </div> |
| | | </template> |
| | |
| | | dataIndex: 'location', |
| | | }, |
| | | // class: "notshow" |
| | | { |
| | | title: '示意图', |
| | | align: 'center', |
| | | dataIndex: 'photo', |
| | | scopedSlots: { customRender: 'photo' }, |
| | | }, |
| | | // { |
| | | // title: '示意图', |
| | | // align: 'center', |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // }, |
| | | // class: "notshow" |
| | | { |
| | | title: '保养项目', |
| | |
| | | onOk() { |
| | | requestPut(that.url.editStatus, { id: that.model.id, status: '4' }).then((res) => { |
| | | if (res.success) { |
| | | that.loadData1(1) |
| | | that.model.status = '4' |
| | | that.$message.success("工单开工成功!") |
| | | that.buttonDistable = false |
| | |
| | | that.buttonDistable = false |
| | | that.revocationDistable = true |
| | | that.SWbuttonDistable = true |
| | | that.loadData1(1) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |