累计类检查批量重置修改

dev-scheduling
jinna 3 months ago
parent 2eedd42934
commit 8ac7698dfd
  1. 9
      src/api/processManagement/planClass.js
  2. 56
      src/views/processManagement/bathRefine/accumulateClass.vue

@ -59,4 +59,13 @@ export const factoryApproval = row => {
method: 'post', method: 'post',
data:row data:row
}); });
};
// 累计类检查 批量充值
export const batchReset = row => {
return request({
url: '/blade-desk/dsBatchPreservePlan/batchReset',
method: 'post',
params:row
});
}; };

@ -48,7 +48,7 @@
<script> <script>
import addAccumulateClass from './components/addAccumulateClassDialog.vue'; import addAccumulateClass from './components/addAccumulateClassDialog.vue';
import maintainDialog from './components/maintainDialog.vue'; import maintainDialog from './components/maintainDialog.vue';
import { getList, add, remove, update } from '@/api/processManagement/planClass.js'; import { getList, add, remove, update,batchReset } from '@/api/processManagement/planClass.js';
export default { export default {
components: { components: {
@ -175,6 +175,27 @@ export default {
headerAlign: 'center', headerAlign: 'center',
align: 'left', align: 'left',
width: 120, width: 120,
editDisplay:false,
},
{
label: '设备名称',
prop: 'device',
hide:true,
search: false,
sortable: true,
overHidden: true,
headerAlign: 'center',
align: 'left',
width: 120,
dicUrl: `/blade-desk/equipment/page?used=1&workstationId={{wcId}}&size=99999`,
props: {
label: 'deviceName',
value: 'id',
res: 'data.records',
},
change: (val) =>{
this.equipmentChange(val.item,'equipmentId')
},
}, },
{ {
label: '规则类型', label: '规则类型',
@ -375,6 +396,11 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
equipmentChange(val,type){
if(val&&type=='equipmentId'){
this.form.deviceName = val.deviceName
}
},
// //
closeDialog() { closeDialog() {
this.showMaintain = false; this.showMaintain = false;
@ -396,11 +422,29 @@ export default {
this.$message.error('请先选择数据'); this.$message.error('请先选择数据');
return; return;
} }
this.maintainData = this.selectionList; // batchReset
this.title = ' 批量维护'; this.$confirm('确定将选择数据批量重置?', {
// this.showMaintain = true; confirmButtonText: '确定',
this.showDialog = true; cancelButtonText: '取消',
this.moldAddMore = false; type: 'warning',
})
.then(() => {
let ids=this.selectionList.map(item=>item.id)
return batchReset({ids:ids.join(',')});
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
// this.maintainData = this.selectionList;
// this.title = ' ';
// // this.showMaintain = true;
// this.showDialog = true;
// this.moldAddMore = false;
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length == 0) { if (this.selectionList.length == 0) {

Loading…
Cancel
Save