Browse Source

增加批次号字段

班组增加过滤条件
离线登记修改查询条件
master_hella_20240701
TengXF 7 months ago
parent
commit
cbab1934ab
  1. 1
      src/api/mes/orderDay/index.ts
  2. 20
      src/views/mes/orderDay/components/schedule.vue
  3. 4
      src/views/mes/productOffline/productOffline.data.ts

1
src/api/mes/orderDay/index.ts

@ -18,6 +18,7 @@ export interface OrderDayVO {
startTime: Date startTime: Date
endTime: Date endTime: Date
taskMode: string taskMode: string
batchCode:string
} }
// 查询生产日计划列表 // 查询生产日计划列表

20
src/views/mes/orderDay/components/schedule.vue

@ -260,7 +260,14 @@ const workstationData=ref([])
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const dialogTitle = ref('') // const dialogTitle = ref('') //
const graphJson =ref() const graphJson =ref()
const currentNode = ref({}) const currentNode = ref({
attrs:{
title:{
text:''
}
},
id:''
})
/*班组数据*/ /*班组数据*/
const teamData = ref([]) const teamData = ref([])
/*班组弹窗搜索条件*/ /*班组弹窗搜索条件*/
@ -283,6 +290,8 @@ const closeTeamUser = () =>{
const workerData=ref([]) const workerData=ref([])
/*查询班组接口参数*/ /*查询班组接口参数*/
const teamParams = ref({ const teamParams = ref({
workshopCode:'',
productionLineCode:'',
teamGroup: '', teamGroup: '',
name: '', name: '',
pageNo:1, pageNo:1,
@ -304,6 +313,8 @@ const searchTeamList = () => {
} }
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (type: string, row?: any, titleName?: any) => { const open = async (type: string, row?: any, titleName?: any) => {
currentNode.value.attrs.title.text=''
currentNode.value.id=''
// //
workerData.value = [] workerData.value = []
equipmentData.value = [] equipmentData.value = []
@ -464,8 +475,9 @@ const doPublishPlan= ()=>{
planDate: detailData.value.planDate, planDate: detailData.value.planDate,
startTime: detailData.value.planDate, startTime: detailData.value.planDate,
endTime: detailData.value.endTime, endTime: detailData.value.endTime,
taskMode: detailData.value.taskMode taskMode: detailData.value.taskMode,
} batchCode:detailData.value.batchCode,
}
let res = OrderDayApi.publishPlan(data) let res = OrderDayApi.publishPlan(data)
console.log("---doPublishPlan-- 458--",res) console.log("---doPublishPlan-- 458--",res)
@ -567,6 +579,8 @@ const opensearchTableUser = async (
teamParams.value.teamGroup = '' teamParams.value.teamGroup = ''
teamParams.value.name = '' teamParams.value.name = ''
teamParams.value.pageNo = 1 teamParams.value.pageNo = 1
teamParams.value.workshopCode = detailData.value.workroomCode
teamParams.value.productionLineCode = detailData.value.lineCode
var teamList = await getTeamList(teamParams.value) var teamList = await getTeamList(teamParams.value)
teamData.value = teamList.list teamData.value = teamList.list
totalTeam.value = teamList.total totalTeam.value = teamList.total

4
src/views/mes/productOffline/productOffline.data.ts

@ -48,8 +48,8 @@ export const ProductOffline = useCrudSchemas(reactive<CrudSchema[]>([
searchAllSchemas: workscheduling.allSchemas, // 查询弹窗所需类 searchAllSchemas: workscheduling.allSchemas, // 查询弹窗所需类
searchPage: ProductOfflineApi.getworkSchedulingPage, // 查询弹窗所需分页方法 searchPage: ProductOfflineApi.getworkSchedulingPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'flagDo', key: 'status',
value: '3', value: '1',
action: '==', action: '==',
isSearch: true, isSearch: true,
isMainValue: false isMainValue: false

Loading…
Cancel
Save