| | |
| | | import {defineStore} from "pinia"; |
| | | import {ref} from "vue"; |
| | | |
| | | export default defineStore('orderInfo', { |
| | | |
| | | state: () => ({ |
| | | orderId:null, |
| | | reviewList:[] |
| | | reviewList:[], |
| | | selectDate:ref(["",""]), |
| | | selectDeliveryDate:ref(["",""]), |
| | | selectOrderListDate:ref(["",""]), |
| | | reportFormDate:ref(["",""]), |
| | | workOrderDate:ref(["",""]), |
| | | reportingWorkDate:ref(["",""]), |
| | | qualityInspectionDate:ref(["",""]), |
| | | brokenDate:ref(["",""]), |
| | | yieldDate:ref(["",""]), |
| | | searchOrderListFilter:ref([]),//订单首页筛选] |
| | | searchOrderFilter:{ |
| | | list:ref([]), |
| | | data:{} |
| | | |
| | | }, |
| | | //流程卡筛选缓存 |
| | | selectProcessCardFilter:{ |
| | | list:ref([]), |
| | | data:{ |
| | | order: { |
| | | project: '' |
| | | }, |
| | | orderDetail: { |
| | | productId: '', |
| | | productName: '', |
| | | computeGrossArea: '', |
| | | processingNote: '', |
| | | } |
| | | } |
| | | |
| | | }, |
| | | //报工查询筛选缓存 |
| | | selectReportingWorksFilter:{ |
| | | list:ref([]), |
| | | data:{ |
| | | order: { |
| | | project: '', |
| | | batch:'' |
| | | }, |
| | | orderGlassDetail: { |
| | | completedArea:'', |
| | | wornArea:'' |
| | | } |
| | | } |
| | | |
| | | }, |
| | | searchDeliverFilter:{ |
| | | list:ref([]), |
| | | data:{} |
| | | |
| | | }, |
| | | projectNo:ref(), |
| | | optimizeData:{ |
| | | optimalResults:'', |
| | | originalFilm:'' |
| | | }, |
| | | |
| | | |
| | | |
| | | }), |
| | | actions: { |
| | | |
| | |
| | | clearOrderInfo(){ |
| | | this.orderId = null |
| | | this.reviewList = [] |
| | | }, |
| | | clearSelectDate(){ |
| | | this.selectDate=["",""] |
| | | this.selectDeliveryDate=["",""] |
| | | this.selectOrderListDate=["",""] |
| | | this.reportFormDate=["",""] |
| | | this.workOrderDate=["",""] |
| | | this.reportingWorkDate=["",""] |
| | | this.qualityInspectionDate=["",""] |
| | | this.brokenDate=["",""] |
| | | this.yieldDate=["",""] |
| | | this.searchOrderFilter={ |
| | | list:[], |
| | | data:{} |
| | | } |
| | | this.selectReportingWorksFilter={ |
| | | list:ref([]), |
| | | data:{ |
| | | order: { |
| | | project: '', |
| | | batch:'' |
| | | }, |
| | | orderGlassDetail: { |
| | | completedArea:'', |
| | | wornArea:'' |
| | | } |
| | | } |
| | | |
| | | } |
| | | this.selectProcessCardFilter={ |
| | | list:[], |
| | | data:{ |
| | | order: { |
| | | project: '' |
| | | }, |
| | | orderDetail: { |
| | | productId: '', |
| | | productName: '', |
| | | computeGrossArea: '', |
| | | processingNote: '', |
| | | } |
| | | } |
| | | } |
| | | this.searchDeliverFilter={ |
| | | list:[], |
| | | data:{} |
| | | } |
| | | this.projectNo=null |
| | | this.optimizeData={ |
| | | optimalResults:null, |
| | | originalFilm:null |
| | | } |
| | | } |
| | | }, |
| | | persist: true |