master
Gitea 1 year ago
parent 93251ae8a6
commit f61e1f51a0
  1. 48
      ant-design-vue-jeecg/src/views/zyplanprocess/ZyPlanProcessList.vue
  2. 9
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyPlanProcessController.java
  3. 9
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/entity/ZyPlanProcess.java

@ -55,6 +55,12 @@
<template slot="htmlSlot" slot-scope="text"> <template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div> <div v-html="text"></div>
</template> </template>
<template slot="gw" slot-scope="text, record">
<a @click="gw(record.stationId)">{{text}}</a>
</template>
<template slot="gd" slot-scope="text, record">
<a @click="gd(record.productNo)">{{text}}</a>
</template>
<template slot="nodata" slot-scope="text, record"> <template slot="nodata" slot-scope="text, record">
<span v-if="!text" style="font-size: 14px;font-style: italic;"></span> <span v-if="!text" style="font-size: 14px;font-style: italic;"></span>
<span v-else style="font-size: 14px;font-style: italic;">{{record.proProcessName}}</span> <span v-else style="font-size: 14px;font-style: italic;">{{record.proProcessName}}</span>
@ -103,6 +109,8 @@
</div> </div>
<zy-plan-process-modal ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal> <zy-plan-process-modal ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal>
<station-modal1 ref="modalFormgw"></station-modal1>
<work-order-modal ref="modalFormgd"></work-order-modal>
</a-card> </a-card>
</template> </template>
@ -113,12 +121,17 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ZyPlanProcessModal from './modules/ZyPlanProcessModal' import ZyPlanProcessModal from './modules/ZyPlanProcessModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import StationModal1 from "../team/modules/StationModal1";
import WorkOrderModal from "../workorder/modules/WorkOrderModal";
import {deleteAction, getAction} from "@api/manage";
export default { export default {
name: 'ZyPlanProcessList', name: 'ZyPlanProcessList',
mixins:[JeecgListMixin, mixinDevice], mixins:[JeecgListMixin, mixinDevice],
components: { components: {
ZyPlanProcessModal ZyPlanProcessModal,
StationModal1,
WorkOrderModal
}, },
data () { data () {
return { return {
@ -135,6 +148,17 @@
return parseInt(index)+1; return parseInt(index)+1;
} }
}, },
{
title:'工单编号',
align:"center",
dataIndex: 'productNo',
scopedSlots: {customRender: 'gd'}
},
{
title:'产品名称',
align:"center",
dataIndex: 'productCode_dictText'
},
{ {
title:'工序名称', title:'工序名称',
align:"center", align:"center",
@ -143,7 +167,8 @@
{ {
title:'工位名称', title:'工位名称',
align:"center", align:"center",
dataIndex: 'stationName' dataIndex: 'stationName',
scopedSlots: {customRender: 'gw'}
}, },
{ {
title:'工位序号', title:'工位序号',
@ -223,6 +248,25 @@
}, },
}, },
methods: { methods: {
gw(stationId){
getAction("/team/station/queryById", {id: stationId}).then((res) => {
if (res.success) {
this.$refs.modalFormgw.edit(res.result);
this.$refs.modalFormgw.title="详情";
} else {
}
})
},
gd(orderCode){
getAction("/workOrder/workOrder/queryByOrderCode", {orderCode: orderCode}).then((res) => {
if (res.success) {
this.$refs.modalFormgd.edit(res.result);
this.$refs.modalFormgd.title="详情";
this.$refs.modalFormgd.disableSubmit = true;
} else {
}
})
},
initDictConfig(){ initDictConfig(){
}, },
} }

@ -19,8 +19,10 @@ import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.productplan.entity.ZyPlanProcess; import org.jeecg.modules.productplan.entity.ZyPlanProcess;
import org.jeecg.modules.productplan.entity.ZyProductPlan;
import org.jeecg.modules.productplan.entity.vo.ProcessDataVo; import org.jeecg.modules.productplan.entity.vo.ProcessDataVo;
import org.jeecg.modules.productplan.service.IZyPlanProcessService; import org.jeecg.modules.productplan.service.IZyPlanProcessService;
import org.jeecg.modules.productplan.service.IZyProductPlanService;
import org.jeecg.modules.system.entity.SysUser; import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.service.ISysUserService; import org.jeecg.modules.system.service.ISysUserService;
import org.jeecg.modules.team.entity.Station; import org.jeecg.modules.team.entity.Station;
@ -59,6 +61,8 @@ public class ZyPlanProcessController extends JeecgController<ZyPlanProcess, IZyP
private IStationMachineService iStationMachineService; private IStationMachineService iStationMachineService;
@Autowired @Autowired
private IStationToolService iStationToolService; private IStationToolService iStationToolService;
@Autowired
private IZyProductPlanService zyProductPlanService;
private static Map<String,String> useridstationid = new HashMap<String,String>(){{ private static Map<String,String> useridstationid = new HashMap<String,String>(){{
put("GW01","1600683844590194690"); put("GW01","1600683844590194690");
@ -379,6 +383,11 @@ public class ZyPlanProcessController extends JeecgController<ZyPlanProcess, IZyP
queryWrapper.eq("station_id",stationid); queryWrapper.eq("station_id",stationid);
Page<ZyPlanProcess> page = new Page<ZyPlanProcess>(pageNo, pageSize); Page<ZyPlanProcess> page = new Page<ZyPlanProcess>(pageNo, pageSize);
IPage<ZyPlanProcess> pageList = zyPlanProcessService.page(page, queryWrapper); IPage<ZyPlanProcess> pageList = zyPlanProcessService.page(page, queryWrapper);
for(int i = 0 ; i < pageList.getRecords().size() ; i++){
ZyProductPlan zyProductPlan = zyProductPlanService.getById(pageList.getRecords().get(i).getPlanId());
pageList.getRecords().get(i).setProductCode(zyProductPlan.getProductNo());
pageList.getRecords().get(i).setProductNo(zyProductPlan.getProductCode());
}
return Result.OK(pageList); return Result.OK(pageList);
} }

@ -96,6 +96,15 @@ public class ZyPlanProcess implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private List<GroupxMemeberVo> userIdList; private List<GroupxMemeberVo> userIdList;
@TableField(exist = false)
private String productNo;
@TableField(exist = false)
@Dict(dictTable = "zy_product", dicText = "product_name", dicCode = "product_code")
private String productCode;
/** /**
* 设备id列表 * 设备id列表
*/ */

Loading…
Cancel
Save