| | |
| | | const printVisible= ref(false) |
| | | const orderInfo = useOrderInfoStore() |
| | | |
| | | |
| | | let printNumberFc = company.printNumber; |
| | | const userStore = useUserInfoStore() |
| | | const userId = userStore.user.userId |
| | | |
| | |
| | | const options = [ |
| | | { |
| | | value: '0', |
| | | label: '未分架', |
| | | label: t('processCard.noFlowCard'), |
| | | }, |
| | | { |
| | | value: '1', |
| | | label: '已分架', |
| | | label: t('processCard.okFlowCard'), |
| | | }, |
| | | ] |
| | | |
| | |
| | | |
| | | //第一次加载数据 |
| | | |
| | | request.post(`/processCard/selectPrintFlowCard/${startTime}/${endTime}/${orderId}/${project}/${userId}/${state}`, filterData.value).then((res) => { |
| | | request.post(`/processCard/selectPrintFlowCard/${orderInfo.workOrderDate}/${orderId}/${project}/${userId}/${state}`, filterData.value).then((res) => { |
| | | |
| | | if (res.code == 200) { |
| | | produceList = produceList.value.concat(deepClone(res.data.data)) |
| | | gridOptions.toolbarConfig.buttons[2].visible=false |
| | | /*gridOptions.toolbarConfig.buttons[2].visible=false |
| | | let roleId=res.data.user |
| | | if (roleId=='1' || roleId=='17'){ |
| | | gridOptions.toolbarConfig.buttons[2].visible=true |
| | | } |
| | | |
| | | }*/ |
| | | orderInfo.workOrderDate = res.data.selectDate |
| | | xGrid.value.reloadData(produceList) |
| | | gridOptions.loading = false |
| | | } else { |
| | |
| | | //点击查询 |
| | | const getWorkOrder = () => { |
| | | |
| | | let startTime = orderInfo.workOrderDate[0] |
| | | let endTime = orderInfo.workOrderDate[1] |
| | | |
| | | let orderId=form.orderId |
| | | let project=form.project |
| | | |
| | |
| | | } |
| | | let state = optionVal.value |
| | | |
| | | request.post(`/processCard/selectPrintFlowCard/${startTime}/${endTime}/${orderId}/${project}/${userId}/${state}`, filterData.value).then((res) => { |
| | | request.post(`/processCard/selectPrintFlowCard/${orderInfo.workOrderDate}/${orderId}/${project}/${userId}/${state}`, filterData.value).then((res) => { |
| | | if (res.code == 200) { |
| | | |
| | | orderInfo.workOrderDate = res.data.selectDate |
| | | xGrid.value.loadData(res.data.data) |
| | | gridOptions.loading = false |
| | | } else { |
| | |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | }, |
| | | {field: 'batch', title: t('order.batch'), filters: [{data: ''}], slots: {filter: 'num1_filter'}, width: 110,filterMethod: filterChanged}, |
| | | { |
| | | field: 'quantity', |
| | | title: t('order.quantity'), |
| | |
| | | return |
| | | } |
| | | if (optionVal.value != '1'){ |
| | | ElMessage.warning('请选择已分架订单打印') |
| | | ElMessage.warning(t('processCard.addFlowCardMsg1')) |
| | | return |
| | | } |
| | | let orderIdList = "" |
| | |
| | | } |
| | | } |
| | | let array = orderIdList.split('|'); |
| | | router.push({path: '/main/processCard/PrintFlowCard', query: {printList: JSON.stringify(selectRecords),checkedValue:checkedValue.value.value}}) |
| | | if (selectRecords.length==1){ |
| | | printNumberFc = true |
| | | } |
| | | router.push({path: '/main/processCard/PrintFlowCard', query: {printList: JSON.stringify(selectRecords),checkedValue:checkedValue.value.value,printNumberFc:printNumberFc}}) |
| | | return; |
| | | |
| | | } |
| | |
| | | return |
| | | } |
| | | if (optionVal.value != '1'){ |
| | | ElMessage.warning('请选择已分架订单打印') |
| | | ElMessage.warning(t('processCard.addFlowCardMsg1')) |
| | | return |
| | | } |
| | | let orderIdList = "" |
| | |
| | | return |
| | | } |
| | | if (optionVal.value != '1'){ |
| | | ElMessage.warning('请选择已分架订单打印') |
| | | ElMessage.warning(t('processCard.addFlowCardMsg1')) |
| | | return |
| | | } |
| | | let orderIdList = "" |
| | |
| | | return |
| | | } |
| | | if (optionVal.value != '0'){ |
| | | ElMessage.warning('请选择未分架订单打印') |
| | | ElMessage.warning(t('processCard.addFlowCardMsg2')) |
| | | return |
| | | } |
| | | let orderIdList = "" |