| | |
| | | allow-clear |
| | | placeholder="请选择工单状态" |
| | | :triggerChange="true" |
| | | dictCode="repair_order_status" |
| | | dictCode="maintenance_order_status" |
| | | v-model="queryParam.status" |
| | | /> |
| | | </a-form-item> |
| | |
| | | <a-popconfirm |
| | | title="确定下发工单吗?" |
| | | @confirm="() => handleOrderIssue(record)" |
| | | v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" |
| | | > |
| | | <a v-if="record.status == '1'">下发</a> |
| | | </a-popconfirm> |
| | |
| | | <a-popconfirm |
| | | title="确定撤回工单吗?" |
| | | @confirm="() => handleOrderReset(record)" |
| | | v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" |
| | | > |
| | | <a v-if="record.status == '2'">撤回</a> |
| | | </a-popconfirm> |
| | |
| | | <a-popconfirm |
| | | title="确定恢复工单吗?" |
| | | @confirm="() => handleOrderRecover(record)" |
| | | v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" |
| | | > |
| | | <a v-if="record.status == '7'">恢复</a> |
| | | </a-popconfirm> |
| | |
| | | <a-popconfirm |
| | | title="确定作废工单吗?" |
| | | @confirm="() => handleOrderCancel(record)" |
| | | v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" |
| | | > |
| | | <a v-if="record.status == '2'">作废</a> |
| | | </a-popconfirm> |
| | |
| | | <a-popconfirm |
| | | title="确定领取工单吗?" |
| | | @confirm="() => handleOrderGet(record)" |
| | | v-has="'predictiveWorkOrder:get&do'" |
| | | > |
| | | <a v-if="record.status == '2' && record.assignMode == '1'">领取</a> |
| | | </a-popconfirm> |
| | | <a |
| | | v-if="record.status == '2' && record.assignMode == '2' " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" |
| | | >派工</a> |
| | | <a |
| | | v-if="record.status == '2'&& record.assignMode == '3' && record.inspectionUserName != null " |
| | | v-if="record.status == '2'&& record.assignMode == '3'&&record.maintenanceUserName!=null" |
| | | @click="handleAssignOrder(record)" |
| | | >改派</a> |
| | | <a |
| | | v-if="record.status == '3'" |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" |
| | | >改派</a> |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | |
| | | <a |
| | | v-if="record.status === '3' || record.status === '4' " |
| | | @click="handleOrderExe(record)" |
| | | v-has="'predictiveWorkOrder:get&do'" |
| | | >执行</a> |
| | | <a-divider |
| | | v-if="record.status === '3' || record.status === '4' " |
| | |
| | | <a |
| | | v-if="record.status === '1'" |
| | | @click="handleEdit(record)" |
| | | v-has="'predictiveWorkOrder:edit&delete'" |
| | | >编辑</a> |
| | | <a-divider |
| | | v-if="record.status === '1'" |
| | |
| | | <a-popconfirm |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'predictiveWorkOrder:edit&delete'" |
| | | > |
| | | <a v-if="record.status === '1'">删除</a> |
| | | </a-popconfirm> |
| | |
| | | @click='handleAdd' |
| | | type='primary' |
| | | icon='plus' |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | >新增 |
| | | </a-button> |
| | | <a-button |
| | |
| | | <a |
| | | v-if="record.status == '2'" |
| | | @click="handleRevise(record)" |
| | | v-has="'predictiveWorkplan:update&take'" |
| | | >升版</a> |
| | | <a |
| | | v-if="record.status == '1'" |
| | | @click="handleTakeEffect(record)" |
| | | v-has="'predictiveWorkplan:update&take'" |
| | | >生效</a> |
| | | <a-divider type="vertical"/> |
| | | <a |
| | | v-if="record.status == '1'" |
| | | @click="handleEdit(record)" |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | >编辑</a> |
| | | <a-divider type="vertical"/> |
| | | <a-popconfirm |
| | | v-if="record.status == '1'" |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | v-has="'specialtyMaintenanceOrder:assign'" |
| | | >派工</a> |
| | | <a |
| | | v-if="record.status == '2'&& record.assignMode == '3' && record.inspectionUserName != null " |
| | | v-if="record.status == '2'&& record.assignMode == '3' && record.maintenanceUserName != null " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'specialtyMaintenanceOrder:assign'" |
| | | >改派</a> |
| | |
| | | type="primary" |
| | | icon="plus" |
| | | v-if="maintenanceStandardId !='' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | >新增 |
| | | </a-button> |
| | | <div> |
| | |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-if="maintenanceStandardId !='' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | type="primary" |
| | | icon="plus" |
| | | v-if="maintenanceStandardId !='' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | >新增</a-button> |
| | | <div> |
| | | |
| | |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-if="maintenanceStandardId !='' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | @change="handleTableChange" |
| | | :loading="loading" |
| | | > |
| | | |
| | | <template |
| | |
| | | <actual-material-select ref="actualMaterialSelect"> |
| | | <!-- @sendMaterialRecord="sendMaterialRecord" --> |
| | | </actual-material-select> |
| | | <j-select-spare-part-modal ref='JSelectSparePartModal'></j-select-spare-part-modal> |
| | | <j-select-spare-part-modal ref='JSelectSparePartModal' @selection2Rows="getSelectRows"></j-select-spare-part-modal> |
| | | </a-card> |
| | | </template> |
| | | <script> |
| | |
| | | lock: "/eam/maintenanceOrderActualMaterial/lock", |
| | | unLock: "/eam/maintenanceOrderActualMaterial/unLock" |
| | | }, |
| | | changeIndex: 0 |
| | | changeIndex: 0, |
| | | loading:false, |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$message.error('使用数量不能大于可用数量!'); |
| | | return false; |
| | | } |
| | | this.confirmLoading = true; |
| | | this.loading = true; |
| | | postAction(this.url.lock, record).then(res => { |
| | | if (res.success) { |
| | | this.$message.success("库存锁定成功!") |
| | |
| | | this.$message.error(res.message) |
| | | } |
| | | }).finally(res => { |
| | | that.confirmLoading = false |
| | | that.loading = false |
| | | that.loadData(); |
| | | }) |
| | | |
| | | }, |
| | | handleUnLock(record) { |
| | | let that = this; |
| | | this.confirmLoading = true; |
| | | this.loading = true; |
| | | postAction(this.url.unLock, record).then(res => { |
| | | if (res.success) { |
| | | this.$message.success("库存解锁成功!") |
| | |
| | | this.$message.error(res.message) |
| | | } |
| | | }).finally(res => { |
| | | that.confirmLoading = false |
| | | that.loading = false |
| | | that.loadData(); |
| | | }) |
| | | }, |
| | |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | }, |
| | | |
| | | mounted() { |
| | | let newActualMaterials = []; |
| | | this.$bus.$on('selection2Rows', (data) => { |
| | | getSelectRows(data){ |
| | | let newActualMaterials = []; |
| | | for (let i = 0; i < data.length; i++) { |
| | | newActualMaterials.push({ |
| | | // id: this.getUuiD(16), |
| | |
| | | isLock: 'no' |
| | | }) |
| | | } |
| | | debugger |
| | | let that = this |
| | | // newActualMaterials = this.dataSource |
| | | postAction(this.url.addInit, newActualMaterials).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | |
| | | } |
| | | }).finally(res => { |
| | | newActualMaterials = [] |
| | | that.loadData(1); |
| | | that.loadData(); |
| | | |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | }, |
| | | |
| | | } |
| | |
| | | this.$message.warn("请选择备件"); |
| | | return false; |
| | | } |
| | | this.$bus.$emit('selection2Rows', this.selectionRows) |
| | | this.$emit('selection2Rows', this.selectionRows) |
| | | this.close() |
| | | }, |
| | | onSelectChange(selectionRows) { |
| | |
| | | > |
| | | |
| | | <template slot='toolbarPrefix'> |
| | | <a-button type='primary' @click='equipmentSparesSelect' :disabled="formDisabled">选择备件 |
| | | <a-button type='primary' @click='equipmentSparesSelect' :disabled="formDisabled" icon="plus">选择备件 |
| | | </a-button> |
| | | </template> |
| | | </j-vxe-table> |
| | |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | @change="handleTableChange" |
| | | :loading="loading" |
| | | > |
| | | |
| | | <template |
| | |
| | | lock: "/eam/maintenanceOrderActualMaterial/lock", |
| | | unLock: "/eam/maintenanceOrderActualMaterial/unLock" |
| | | }, |
| | | changeIndex: 0 |
| | | changeIndex: 0, |
| | | loading:false |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$message.error('使用数量不能大于可用数量!'); |
| | | return false; |
| | | } |
| | | this.confirmLoading = true; |
| | | this.loading = true; |
| | | postAction(this.url.lock, record).then(res => { |
| | | if (res.success) { |
| | | this.$message.success("库存锁定成功!") |
| | |
| | | this.$message.error(res.message) |
| | | } |
| | | }).finally(res => { |
| | | that.confirmLoading = false |
| | | that.loading = false |
| | | that.loadData(); |
| | | }) |
| | | |
| | | }, |
| | | handleUnLock(record) { |
| | | let that = this; |
| | | this.confirmLoading = true; |
| | | this.loading = true; |
| | | postAction(this.url.unLock, record).then(res => { |
| | | if (res.success) { |
| | | this.$message.success("库存解锁成功!") |
| | |
| | | this.$message.error(res.message) |
| | | } |
| | | }).finally(res => { |
| | | that.confirmLoading = false |
| | | that.loading = false |
| | | that.loadData(); |
| | | }) |
| | | }, |
| | |
| | | type="primary" |
| | | icon="plus" |
| | | v-if="planId != '' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | >新增 |
| | | </a-button> |
| | | <div> |
| | |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-if="planId != '' && isDel" |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | type="primary" |
| | | icon="plus" |
| | | v-if="planId != '' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | >新增 |
| | | </a-button> |
| | | <div> |
| | |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-if="planId != '' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | type="primary" |
| | | icon="plus" |
| | | v-if="planId != '' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | >新增 |
| | | </a-button> |
| | | <div> |
| | |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-if="planId != '' && isAdd " |
| | | v-has="'predictiveWorkPlan:add&edit&delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | @change="handleTableChange" |
| | | :loading="loading" |
| | | > |
| | | |
| | | <template |
| | |
| | | </a-row> |
| | | <!-- :disabled="false" --> |
| | | </div> |
| | | <actual-material-select ref="actualMaterialSelect"> |
| | | <actual-material-select ref="actualMaterialSelect" > |
| | | <!-- @sendMaterialRecord="sendMaterialRecord" --> |
| | | </actual-material-select> |
| | | <j-select-spare-part-modal ref='JSelectSparePartModal'></j-select-spare-part-modal> |
| | | <j-select-spare-part-modal ref='JSelectSparePartModal' @getSelectRows="getSelectRows"></j-select-spare-part-modal> |
| | | </a-card> |
| | | </template> |
| | | <script> |
| | |
| | | lock: "/eam/maintenanceOrderActualMaterial/lock", |
| | | unLock: "/eam/maintenanceOrderActualMaterial/unLock" |
| | | }, |
| | | changeIndex: 0 |
| | | changeIndex: 0, |
| | | loading:false, |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$message.error('使用数量不能大于可用数量!'); |
| | | return false; |
| | | } |
| | | this.confirmLoading = true; |
| | | this.loading = true; |
| | | postAction(this.url.lock, record).then(res => { |
| | | if (res.success) { |
| | | this.$message.success("库存锁定成功!") |
| | |
| | | this.$message.error(res.message) |
| | | } |
| | | }).finally(res => { |
| | | that.confirmLoading = false |
| | | that.loading = false |
| | | that.loadData(); |
| | | }) |
| | | |
| | | }, |
| | | handleUnLock(record) { |
| | | let that = this; |
| | | this.confirmLoading = true; |
| | | this.loading = true; |
| | | postAction(this.url.unLock, record).then(res => { |
| | | if (res.success) { |
| | | this.$message.success("库存解锁成功!") |
| | |
| | | this.$message.error(res.message) |
| | | } |
| | | }).finally(res => { |
| | | that.confirmLoading = false |
| | | that.loading = false |
| | | that.loadData(); |
| | | }) |
| | | }, |
| | |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | }, |
| | | mounted() { |
| | | let newActualMaterials = []; |
| | | this.$bus.$on('selectionRows', (data) => { |
| | | getSelectRows(data){ |
| | | let newActualMaterials = []; |
| | | for (let i = 0; i < data.length; i++) { |
| | | newActualMaterials.push({ |
| | | // id: this.getUuiD(16), |
| | |
| | | that.loadData(); |
| | | |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | }, |
| | | mounted() { |
| | | }, |
| | | |
| | | } |
| | |
| | | this.$message.warn("请选择备件"); |
| | | return false; |
| | | } |
| | | this.$bus.$emit('selectionRows', this.selectionRows) |
| | | |
| | | this.$emit('getSelectRows', this.selectionRows) |
| | | this.close() |
| | | }, |
| | | onSelectChange(selectionRows) { |