| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | |
| | | * @Date: 2025-08-24 22:38:05 |
| | | * @LastEditors: yangys |
| | | * @LastEditTime: 2025-08-24 08:32:12 |
| | | * @FilePath: /mdmweb/src/api/flowmgr/exceptiontask.js |
| | | */ |
| | | import request from '@/axios'; |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/blade-mdm/statreport/cureprogram/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | }, |
| | | }) |
| | | }; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * @Date: 2025-08-24 22:38:05 |
| | | * @LastEditors: yangys |
| | | * @LastEditTime: 2025-08-24 08:32:12 |
| | | * @FilePath: /mdmweb/src/api/flowmgr/exceptiontask.js |
| | | */ |
| | | import request from '@/axios'; |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/blade-mdm/statreport/newprogramming/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | }, |
| | | }) |
| | | }; |
| | | |
| | | export const getDeptData = () => { |
| | | return request({ |
| | | url: '/blade-mdm/statreport/newprogramming/deptsData', |
| | | method: 'get' |
| | | }) |
| | | }; |
| | |
| | | <basic-container> |
| | | <!--'cureProgramTask', åºåç¼å¶ä¸è½æ·»å æä»¶--> |
| | | <div class="tool" v-show="['programmingTask', 'replaceProgrammingTask','appendProgrammingTask'].includes(row.taskDefinitionKey)"> |
| | | <el-button type="primary" plain @click="addApp">æ·»å æä»¶ |
| | | |
| | | <!--æ åºåçæ
嵿æ¾ç¤ºè¯¥å¼å
³--> |
| | | <el-switch v-if="row.variables.hasCuredProgram!=='Y'" v-model="programOnMachine" active-text="ç°åºç¼å¶" inactive-text="å·¥èºåç¼å¶" /> |
| | | |
| | | <el-button type="primary" :disabled="programOnMachine" plain @click="addApp">æ·»å æä»¶ |
| | | </el-button> |
| | | </div> |
| | | <el-text type="danger" v-if="row.variables.curedLocked === 'Y'">åºåç¨åºå·²éå®ï¼è¯·è°¨æ
使ç¨ãéå®åå ï¼{{ remark }}</el-text> |
| | |
| | | <el-text type="primary" v-if="row.processDefinitionKey === 'program-unlock'"><br/>è§£éåå ï¼</el-text> |
| | | <el-text type="warning">{{row.variables.unlockReason}}</el-text> |
| | | <el-text type="danger" v-if="row.variables.hasCuredProgram==='Y' && row.variables.isProcessEditionSame=='N' && row.variables.cureProgramUseable==undefined">å·²åºåç¨åºå·¥åºç次ä¸ä¸è´ï¼æ´¾å·¥ç次:{{row.variables.processEdition}},å·²åºåçæ¬¡ï¼{{row.variables.curedProcessEdition}}</el-text> |
| | | <el-text type="danger" v-if="row.variables.programOnMachine=='Y'">ç°åºç¼å¶</el-text> |
| | | <el-table :data="tableData" border @row-click="showContent" :row-style="{height:'20px'}" :cell-style="{padding:'0px'}" max-height="240" highlight-current-row> |
| | | <!-- <el-table-column prop="machineCode" label="å å·¥æºåº"> |
| | | </el-table-column> --> |
| | |
| | | codeDiffFileName1: 'åä¼ çæ¬', |
| | | codeDiffFileName2: 'ä¸åçæ¬', |
| | | showContentId: '', |
| | | programOnMachine:false,//æ¯å¦ç°åºç¼å¶ |
| | | attForm: { |
| | | att: '', |
| | | fileType: 'program' |
| | |
| | | <el-drawer title="审æ¹" append-to-body v-model="approveBox" size="100%" v-if="approveBox"> |
| | | <div class="approve-box"> |
| | | <div class="left"> |
| | | <TodolistLeft :row="row" @selection-change="selectionChange" /> |
| | | <TodolistLeft ref="todolistLeft" :row="row" @selection-change="selectionChange" /> |
| | | </div> |
| | | <div class="right"> |
| | | <TodolistRightTop :row="row" /> |
| | |
| | | { label: '驳å', value: 'N' }, |
| | | ], |
| | | rules: [{ required: true, message: 'è¯·éæ©å®¡æ¹ç»æ', trigger: 'blur' }], |
| | | },/* |
| | | { |
| | | label: 'åéç»', |
| | | prop: 'assignee', |
| | | type: 'select', |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | | }, |
| | | display: true, |
| | | filterable: true, |
| | | span: 24, |
| | | disabled: false, |
| | | dicData: [ |
| | | |
| | | ], |
| | | |
| | | },*/ |
| | | }, |
| | | { |
| | | label: 'åéç»', |
| | | prop: 'assignee', |
| | |
| | | span: 24, |
| | | prop: 'comment', |
| | | type: 'textarea', |
| | | // rules: [{ required: true, message: '请è¾å
¥å®¡æ¹æè§', trigger: 'blur' }], |
| | | rules: [ |
| | | { |
| | | validator: (rule, value, callback) => { |
| | |
| | | //console.log('handleAction', row, index); |
| | | }, |
| | | handleSubmit(form, done) { |
| | | if(this.row.taskDefinitionKey === 'programmingTask') { |
| | | // if(this.applist.length !== 1) { |
| | | // done(); |
| | | // return this.$message.success('è¯·éæ©1个ç¨åº'); |
| | | // } |
| | | |
| | | |
| | | //this.$alert(this.$refs.todolistLeft.programOnMachine) |
| | | //done(); |
| | | //return; |
| | | let programOnMachine = 'N' |
| | | if(this.row.taskDefinitionKey==='programmingTask'){ |
| | | programOnMachine = this.$refs.todolistLeft.programOnMachine?'Y':'N'; |
| | | } |
| | | approve({ |
| | | ...this.formApprove, |
| | | taskId: this.row.taskId, |
| | | processInstanceId: this.row.processInstanceId, |
| | | // programIds: this.row.taskDefinitionKey === 'programmingTask' ? this.applist.map(v => v.id).join(',') : '', |
| | | programOnMachine: programOnMachine |
| | | }).then(res => { |
| | | if(res.data.code !== 200) { |
| | | this.$message.error(res.data.msg); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | |
| | | * @Date: 2025-06-18 09:17:09 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2025-08-17 08:46:49 |
| | | * @FilePath: /mdmweb/src/views/flowmgr/processQuery2.vue |
| | | --> |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :search="query" :data="data" :rowKey="processInstanceId" v-model:page="page" ref="crud" |
| | | @search-change="searchChange" @search-reset="searchReset" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" |
| | | @selection-change="selectionChange"> |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getList } from '@/api/statreport/curedprogram.js'; |
| | | import { getDeptData} from '@/api/statreport/newprogramming.js'; |
| | | import { exportBlobPost } from '@/api/common'; |
| | | import NProgress from 'nprogress'; |
| | | import { downloadFile } from '@/utils/util'; |
| | | import 'nprogress/nprogress.css'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | viewRow: {}, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | //form: {endMonth:'2025-08'}, |
| | | query: {endMonth: this.$dayjs().format('YYYY-MM-DD')}, |
| | | loading: true, |
| | | data: [], |
| | | option: { |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | viewBtn: false, |
| | | columnBtn: false, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 7, |
| | | searchEnter:true, |
| | | dialogWidth: '70%', |
| | | // tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: false, |
| | | //menuWidth: 100, |
| | | menu: false, |
| | | labelWidth: 90, |
| | | //menuSpan: 6, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | |
| | | { |
| | | label: "æä»½", |
| | | prop: "endMonth", |
| | | search: true, |
| | | type: "month", |
| | | hide:true, |
| | | valueFormat: 'YYYY-MM-DD' |
| | | }, |
| | | { |
| | | label: "é¨é¨", |
| | | prop: "deptIds", |
| | | search: true, |
| | | type: "select", |
| | | multiple:true, |
| | | hide:true, |
| | | disabled:true, |
| | | dicData:[{label:'a',value:1}] |
| | | }, |
| | | |
| | | { |
| | | label: 'é¶ç»ä»¶å·', |
| | | prop: 'drawingNo', |
| | | width: 160 |
| | | }, |
| | | { |
| | | label: 'å·¥åºå·', |
| | | prop: 'processNo', |
| | | width: 80 |
| | | }, |
| | | { |
| | | label: 'å·¥åºç次', |
| | | prop: 'processEdition', |
| | | width: 83 |
| | | }, |
| | | |
| | | { |
| | | label: '产ååå·', |
| | | prop: 'productModel', |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: 'æºåº', |
| | | prop: 'machineCode', |
| | | width: 200 |
| | | }, |
| | | { |
| | | label: 'ç¼å¶', |
| | | prop: 'actProgrammerName', |
| | | }, |
| | | { |
| | | label: 'æ ¡å¯¹', |
| | | prop: 'actCheckerName', |
| | | }, |
| | | { |
| | | label: 'å®¡æ ¸', |
| | | prop: 'actSeniorName', |
| | | }, |
| | | { |
| | | label: 'å®¡æ ¸æ¶é´', |
| | | prop: 'endTime', |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | selectedList: [], |
| | | dialogVisible: false, |
| | | |
| | | } |
| | | }, |
| | | mounted() { |
| | | getDeptData().then(res => { |
| | | this.option.column[1].dicData = res.data.data; |
| | | }, () => { |
| | | this.data = []; |
| | | }).catch(err => { |
| | | this.data = []; |
| | | }); |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | selectionChange(list) { |
| | | console.log('selectionChange', list); |
| | | this.selectedList = list; |
| | | }, |
| | | |
| | | searchChange(params, done) { |
| | | let data = {} |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | params.createTimeBegin = params?.createTime?.[0] || ''; |
| | | params.createTimeEnd = params?.createTime?.[1] || ''; |
| | | console.log(params); |
| | | data = { |
| | | endMonth: params.endMonth, |
| | | createTimeBegin: params.createTimeBegin || undefined, |
| | | createTimeEnd: params.createTimeEnd || undefined, |
| | | deptIds: params.deptIds, |
| | | myProcessName: params.myProcessName || undefined |
| | | } |
| | | this.query = data |
| | | this.onLoad(this.page, data); |
| | | done(); |
| | | }, |
| | | searchReset() { |
| | | let data = {} |
| | | this.query = data; |
| | | this.page.currentPage = 1; |
| | | data = { |
| | | endMonth: params.endMonth, |
| | | createTimeBegin: params.createTimeBegin, |
| | | createTimeEnd: params.createTimeEnd, |
| | | keyword: params.keyword || '', |
| | | myProcessName: params.myProcessName || '' |
| | | } |
| | | this.onLoad(this.page, data); |
| | | done(); |
| | | }, |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | // this.onLoad(); |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize; |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | /** * 页é¢å è½½æ¶è·åæ°æ® |
| | | */ |
| | | onLoad(page, params = {}) { |
| | | console.log('onLoad', page, params); |
| | | const data = { |
| | | ...this.query, |
| | | deptIds: params.deptIds, |
| | | createTimeBegin: params.createTimeBegin, |
| | | createTimeEnd: params.createTimeEnd, |
| | | }; |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, Object.assign(data, params)).then(res => { |
| | | const data = res.data.data |
| | | this.page.total = data.total; |
| | | this.data = data.records.map(v=> { |
| | | return { |
| | | ...v, |
| | | } |
| | | }); |
| | | this.loading = false; |
| | | }, () => { |
| | | this.data = []; |
| | | this.loading = false; |
| | | }).catch(err => { |
| | | this.data = []; |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .margin0 { |
| | | margin: 0 |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | |
| | | * @Date: 2025-06-18 09:17:09 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2025-08-17 08:46:49 |
| | | * @FilePath: /mdmweb/src/views/flowmgr/processQuery2.vue |
| | | --> |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :search="query" :data="data" v-model:page="page" ref="crud" |
| | | @search-change="searchChange" @search-reset="searchReset" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" |
| | | @selection-change="selectionChange"> |
| | | <!--v-model:search="search" |
| | | <template #search="{ size }"> |
| | | <el-tag>æ é¢</el-tag> |
| | | <el-input placeholder="èªå®ä¹è¾å
¥æ¡" |
| | | :size="size" |
| | | style="width: 200px" |
| | | v-model:value="search.slot"></el-input> |
| | | </template> --> |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getList ,getDeptData} from '@/api/statreport/newprogramming.js'; |
| | | |
| | | import { exportBlobPost } from '@/api/common'; |
| | | import NProgress from 'nprogress'; |
| | | import { downloadFile } from '@/utils/util'; |
| | | import 'nprogress/nprogress.css'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | //search:{}, èªå®ä¹éç¨ |
| | | //tableData: [], |
| | | viewRow: {}, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | //form: {endMonth:'2025-08'}, |
| | | query: {endMonth: this.$dayjs().format('YYYY-MM-DD')}, |
| | | loading: true, |
| | | data: [], |
| | | option: { |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | viewBtn: false, |
| | | columnBtn: false, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 7, |
| | | searchEnter:true, |
| | | dialogWidth: '70%', |
| | | // tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: false, |
| | | //menuWidth: 100, |
| | | menu: false, |
| | | labelWidth: 90, |
| | | //menuSpan: 6, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | |
| | | { |
| | | label: "æä»½", |
| | | prop: "endMonth", |
| | | search: true, |
| | | type: "month", |
| | | hide:true, |
| | | valueFormat: 'YYYY-MM-DD' |
| | | }, |
| | | { |
| | | label: "é¨é¨", |
| | | prop: "deptIds", |
| | | search: true, |
| | | type: "select", |
| | | multiple:true, |
| | | hide:true, |
| | | disabled:true, |
| | | dicData:[{label:'a',value:1}] |
| | | }, |
| | | { |
| | | label: 'é¶ç»ä»¶å·', |
| | | prop: 'drawingNo', |
| | | width: 160 |
| | | }, |
| | | { |
| | | label: 'å·¥åºå·', |
| | | prop: 'processNo', |
| | | width: 80 |
| | | }, |
| | | { |
| | | label: 'å·¥åºç次', |
| | | prop: 'processEdition', |
| | | width: 83 |
| | | }, |
| | | |
| | | { |
| | | label: '产ååå·', |
| | | prop: 'productModel', |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: 'æºåº', |
| | | prop: 'machineCode', |
| | | width: 200 |
| | | }, |
| | | { |
| | | label: 'ç¼å¶', |
| | | prop: 'actProgrammerName', |
| | | }, |
| | | { |
| | | label: 'æ ¡å¯¹', |
| | | prop: 'actCheckerName', |
| | | }, |
| | | { |
| | | label: 'å®¡æ ¸', |
| | | prop: 'actSeniorName', |
| | | }, |
| | | { |
| | | label: 'å®¡æ ¸æ¶é´', |
| | | prop: 'endTime', |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | selectedList: [], |
| | | dialogVisible: false, |
| | | |
| | | } |
| | | }, |
| | | mounted() { |
| | | //this.option.column[0].disabled = true; |
| | | //this.option.column[0].value = '2025-08-31'; |
| | | |
| | | getDeptData().then(res => { |
| | | this.option.column[1].dicData = res.data.data; |
| | | }, () => { |
| | | this.data = []; |
| | | }).catch(err => { |
| | | this.data = []; |
| | | }); |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | selectionChange(list) { |
| | | console.log('selectionChange', list); |
| | | this.selectedList = list; |
| | | }, |
| | | |
| | | searchChange(params, done) { |
| | | let data = {} |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | console.log('searchChange', params); |
| | | params.createTimeBegin = params?.createTime?.[0] || ''; |
| | | params.createTimeEnd = params?.createTime?.[1] || ''; |
| | | console.log(params); |
| | | data = { |
| | | endMonth: params.endMonth, |
| | | createTimeBegin: params.createTimeBegin || undefined, |
| | | createTimeEnd: params.createTimeEnd || undefined, |
| | | deptIds: params.deptIds, |
| | | myProcessName: params.myProcessName || undefined |
| | | } |
| | | this.query = data |
| | | this.onLoad(this.page, data); |
| | | done(); |
| | | }, |
| | | searchReset() { |
| | | let data = {} |
| | | this.query = data; |
| | | this.page.currentPage = 1; |
| | | data = { |
| | | endMonth: params.endMonth, |
| | | createTimeBegin: params.createTimeBegin, |
| | | createTimeEnd: params.createTimeEnd, |
| | | keyword: params.keyword || '', |
| | | myProcessName: params.myProcessName || '' |
| | | } |
| | | this.onLoad(this.page, data); |
| | | done(); |
| | | }, |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | // this.onLoad(); |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize; |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | /** * 页é¢å è½½æ¶è·åæ°æ® |
| | | */ |
| | | onLoad(page, params = {}) { |
| | | console.log('onLoad', page, params); |
| | | const data = { |
| | | ...this.query, |
| | | deptIds: params.deptIds, |
| | | createTimeBegin: params.createTimeBegin, |
| | | createTimeEnd: params.createTimeEnd, |
| | | }; |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, Object.assign(data, params)).then(res => { |
| | | const data = res.data.data |
| | | this.page.total = data.total; |
| | | this.data = data.records.map(v=> { |
| | | return { |
| | | ...v, |
| | | } |
| | | }); |
| | | this.loading = false; |
| | | }, () => { |
| | | this.data = []; |
| | | this.loading = false; |
| | | }).catch(err => { |
| | | this.data = []; |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .margin0 { |
| | | margin: 0 |
| | | } |
| | | </style> |