| | |
| | | } |
| | | |
| | | /**éèæ ·å¼-modalç¡®å®æé® */ |
| | | .jee-hidden{display: none} |
| | | .jee-hidden{display: none} |
| | | |
| | | .btxx > .ant-form-item > .ant-form-item-label label { |
| | | position: relative; |
| | | } |
| | | .btxx > .ant-form-item > .ant-form-item-label label::before{ |
| | | position: absolute; |
| | | content: "*"; |
| | | left: -8px; |
| | | color: #f5222d; |
| | | } |
| | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="å 工设å¤ç¼å·" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-select v-model="model.processingEquipmentCode" placeholder="è¯·éæ©å 工设å¤ç¼å·"> |
| | | <a-select-option v-for="item in allDeviceList" :key="item.deviceId"> |
| | | {{item.deviceId}} |
| | | </a-select-option> |
| | | </a-select> |
| | | <j-dict-select-tag v-model="model.processingEquipmentCode" placeholder="è¯·éæ©å 工设å¤ç¼å·" dictCode="mdc_equipment,equipment_id,equipment_id"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <a-descriptions-item label="å·¥æ¥ç±»å">{{currentLevelDetails.stepType}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤åå·">{{currentLevelDetails.processingEquipmentModel}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç±»å">{{currentLevelDetails.processingEquipmentOs}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç¼å·">{{currentLevelDetails.deviceNo}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç¼å·">{{currentLevelDetails.deviceNo_dictText}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
ç¼å·">{{currentLevelDetails.assembleStep}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
åç§° " :span="2">{{currentLevelDetails.assembleName}}</a-descriptions-item> |
| | | <a-descriptions-item label="å建人">{{currentLevelDetails.createName}}</a-descriptions-item> |
| | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="å 工设å¤ç¼å·" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-select v-model="model.deviceNo" placeholder="è¯·éæ©å 工设å¤ç¼å·"> |
| | | <a-select-option v-for="item in allDeviceList" :key="item.deviceId"> |
| | | {{item.deviceId}} |
| | | </a-select-option> |
| | | </a-select> |
| | | <j-dict-select-tag v-model="model.deviceNo" placeholder="è¯·éæ©å 工设å¤ç¼å·" dictCode="mdc_equipment,equipment_id,equipment_id"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: 工使µ-æçå·²å List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-02-27 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æµç¨åç§°"> |
| | | <a-input placeholder="请è¾å
¥æµç¨åç§°" v-model="queryParam.deviceNo"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æµç¨åç±»"> |
| | | <j-dict-select-tag v-model="queryParam.departId" placeholder="è¯·éæ©æµç¨åç±»" dictCode="sys_department,depart_name,depart_id"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="10" :lg="11" :md="12" :sm="24"> |
| | | <a-form-item label="æä½æ¶é´"> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©å¼å§æ¶é´" class="query-group-cust" v-model="queryParam.startTime"></j-date> |
| | | <span class="query-group-split-cust"></span> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©ç»ææ¶é´" class="query-group-cust" v-model="queryParam.endTime"></j-date> |
| | | </a-form-item> |
| | | </a-col> |
| | | </template> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | <a @click="handleToggleSearch" style="margin-left: 8px">{{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }}<a-icon :type="toggleSearchStatus ? 'up' : 'down'" /></a> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handelDetial(record,text)">详æ
</a> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <FlowNcZpi ref="modalFormApproval" :selectShenpiData="selectShenpiData"></FlowNcZpi> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag.vue' |
| | | import FlowNcZpi from '@views/flowable/workflow/FlowNcZpi.vue' |
| | | |
| | | export default { |
| | | name: 'NcDeviceCharactersList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | FlowNcZpi, |
| | | JDictSelectTag, |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '设å¤ç¹æ®å符管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:200, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'æµç¨åç§°', |
| | | align: "center", |
| | | dataIndex: 'procDefName', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: 'æµç¨ä¸å¡ç®è¦æè¿°', |
| | | align: "center", |
| | | dataIndex: 'description', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'æµç¨å起人åç§°', |
| | | align: "center", |
| | | dataIndex: 'startUserName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'ä»»å¡åç§°', |
| | | align: "center", |
| | | dataIndex: 'taskName', |
| | | width:250 |
| | | }, |
| | | { |
| | | title: 'æä½æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'createTime', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/nc/assign/flow/finishedList", |
| | | }, |
| | | dictOptions:{}, |
| | | selectShenpiData: {}, |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | handelDetial(item, index) { |
| | | console.log('ç¹å»äºè¯¦æ
') |
| | | console.log('item----->', item) |
| | | console.log('index----->', index) |
| | | let approcesstype = this.splitAprocessType(item.description) |
| | | console.log('approcesstype--->', approcesstype) |
| | | switch (approcesstype) { |
| | | case 'ææ´¾NCææ¡£å°è®¾å¤æµç¨': |
| | | this.handDrDetial(item) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥å®¡æ¹') |
| | | } |
| | | }, |
| | | splitAprocessType(title) { |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | | return result |
| | | }, |
| | | handDrDetial(item) { |
| | | this.selectShenpiData = item |
| | | this.$refs.modalFormApproval.clearTableSource() |
| | | this.$refs.modalFormApproval.getAllApproveData(item) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: 工使µ-æ»å°è´¦ List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-02-27 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="设å¤ç¼å·"> |
| | | <a-input placeholder="请è¾å
¥è®¾å¤ç¼å·" v-model="queryParam.deviceNo"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç¹æ®å符"> |
| | | <a-input placeholder="请è¾å
¥ç¹æ®å符" v-model="queryParam.characters"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="é¨é¨åç»"> |
| | | <j-dict-select-tag v-model="queryParam.departId" placeholder="è¯·éæ©é¨é¨åç»" dictCode="sys_department,depart_name,depart_id"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æ°æ§ç³»ç»"> |
| | | <a-input placeholder="请è¾å
¥æ°æ§ç³»ç»" v-model="queryParam.controlSystem"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="10" :lg="11" :md="12" :sm="24"> |
| | | <a-form-item label="æä½æ¶é´"> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©å¼å§æ¶é´" class="query-group-cust" v-model="queryParam.startTime"></j-date> |
| | | <span class="query-group-split-cust"></span> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©ç»ææ¶é´" class="query-group-cust" v-model="queryParam.endTime"></j-date> |
| | | </a-form-item> |
| | | </a-col> |
| | | </template> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | <a @click="handleToggleSearch" style="margin-left: 8px">{{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }}<a-icon :type="toggleSearchStatus ? 'up' : 'down'" /></a> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ |
| | | <a-icon type="down" /> |
| | | </a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | |
| | | |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag.vue' |
| | | |
| | | export default { |
| | | name: 'NcDeviceCharactersList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | JDictSelectTag, |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '设å¤ç¹æ®å符管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:200, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'æµç¨åç§°', |
| | | align:"center", |
| | | dataIndex: 'flowName' |
| | | }, |
| | | { |
| | | title:'æµç¨ä¸å¡ç®è¦æè¿°', |
| | | align:"center", |
| | | dataIndex: 'title' |
| | | }, |
| | | { |
| | | title:'ç³è¯·äºº', |
| | | align:"center", |
| | | dataIndex: 'proposer_dictText' |
| | | }, |
| | | { |
| | | title:'æµç¨ç¶æè¯´æ', |
| | | align:"center", |
| | | dataIndex: 'actStatus' |
| | | }, |
| | | { |
| | | title:'å½åçä»»å¡Id', |
| | | align:"center", |
| | | dataIndex: 'taskId' |
| | | }, |
| | | { |
| | | title:'å½åçèç¹', |
| | | align:"center", |
| | | dataIndex: 'taskName' |
| | | }, |
| | | { |
| | | title:'æµç¨å¼å§æ¶é´', |
| | | align:"center", |
| | | dataIndex: 'startTime' |
| | | }, |
| | | { |
| | | title:'æµç¨ç»ææ¶é´', |
| | | align:"center", |
| | | dataIndex: 'endTime' |
| | | }, |
| | | { |
| | | title:'ä»»å¡äºº', |
| | | align:"center", |
| | | dataIndex: 'todoUsers_dictText' |
| | | }, |
| | | { |
| | | title:'å¤çè¿ç人', |
| | | align:"center", |
| | | dataIndex: 'doneUsers_dictText' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: "nc/assign/flow/list", |
| | | }, |
| | | dictOptions:{}, |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | > |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'FlowManage', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | |
| | | }, |
| | | data () { |
| | | return { |
| | | toolsVisable:true, |
| | | description: 'æµç¨ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'æµç¨å®ä¹key', |
| | | align:"center", |
| | | dataIndex: 'processDefinitionKey' |
| | | }, |
| | | { |
| | | title:'æµç¨å®ä¹id', |
| | | align:"center", |
| | | dataIndex: 'processDefinitionId' |
| | | }, |
| | | { |
| | | title:'æµç¨ä¸å¡ç®è¦æè¿°', |
| | | align:"center", |
| | | dataIndex: 'title' |
| | | }, |
| | | { |
| | | title:'ä¸å¡è¡¨id', |
| | | align:"center", |
| | | dataIndex: 'dataId' |
| | | }, |
| | | { |
| | | title:'ç³è¯·äºº', |
| | | align:"center", |
| | | dataIndex: 'proposer' |
| | | }, |
| | | { |
| | | title:'æµç¨ç¶æè¯´æ', |
| | | align:"center", |
| | | dataIndex: 'actStatus' |
| | | }, |
| | | { |
| | | title:'å½åçä»»å¡Id', |
| | | align:"center", |
| | | dataIndex: 'taskId' |
| | | }, |
| | | { |
| | | title:'å½åçèç¹', |
| | | align:"center", |
| | | dataIndex: 'taskName' |
| | | }, |
| | | { |
| | | title:'å½åçèç¹Id', |
| | | align:"center", |
| | | dataIndex: 'taskNameId' |
| | | }, |
| | | { |
| | | title:'ä»»å¡äºº', |
| | | align:"center", |
| | | dataIndex: 'todoUsers' |
| | | }, |
| | | { |
| | | title:'å¤çè¿ç人', |
| | | align:"center", |
| | | dataIndex: 'doneUsers' |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/nc/assign/flow/list", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | workflowSource:[] |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | }, |
| | | methods: { |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'processDefinitionKey',text:'æµç¨å®ä¹key',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processDefinitionId',text:'æµç¨å®ä¹id',dictCode:''}) |
| | | fieldList.push({type:'string',value:'title',text:'æµç¨ä¸å¡ç®è¦æè¿°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'dataId',text:'ä¸å¡è¡¨id',dictCode:''}) |
| | | fieldList.push({type:'string',value:'proposer',text:'ç³è¯·äºº',dictCode:''}) |
| | | fieldList.push({type:'string',value:'actStatus',text:'æµç¨ç¶æè¯´æ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'taskId',text:'å½åçä»»å¡Id',dictCode:''}) |
| | | fieldList.push({type:'string',value:'taskName',text:'å½åçèç¹',dictCode:'unit_all'}) |
| | | fieldList.push({type:'string',value:'taskNameId',text:'å½åçèç¹Id',dictCode:''}) |
| | | fieldList.push({type:'string',value:'todoUsers',text:'ä»»å¡äºº',dictCode:''}) |
| | | fieldList.push({type:'string',value:'doneUsers',text:'å¤çè¿ç人',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card> |
| | | <a-list |
| | | class="demo-loadmore-list" |
| | | :loading="loading" |
| | | item-layout="horizontal" |
| | | :data-source="carddata" |
| | | > |
| | | |
| | | <a-list-item slot="renderItem" slot-scope="item, index"> |
| | | <a slot="actions" @click="handelDetial(item,index)">æ¥ç详æ
</a> |
| | | <a-list-item-meta :description='item.createTime'> |
| | | <a slot="title">{{ item.title }}</a> |
| | | <a-avatar |
| | | slot="avatar" |
| | | src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" |
| | | /> |
| | | </a-list-item-meta> |
| | | <div><b>{{ item.name }}</b></div> |
| | | </a-list-item> |
| | | </a-list> |
| | | |
| | | |
| | | <FlowNcZpi ref="modalFormApproval" :selectShenpiData="selectShenpiData"></FlowNcZpi> |
| | | </a-card> |
| | | </template> |
| | | <style> |
| | | .demo-loadmore-list { |
| | | min-height: 350px; |
| | | } |
| | | </style> |
| | | |
| | | <script> |
| | | import { getAction, deleteAction, postAction } from '@/api/manage' |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import store from '@/store' |
| | | import FlowNcZpi from './FlowNcZpi.vue' |
| | | |
| | | |
| | | export default { |
| | | name: 'FlowMyTaskToDo', |
| | | mixins: [mixinDevice], |
| | | components: { |
| | | FlowNcZpi |
| | | }, |
| | | data() { |
| | | return { |
| | | jsonArr: {}, |
| | | infos: [], |
| | | selectShenpiData: {}, |
| | | carddata: [], |
| | | toTaskSelfData: [], |
| | | toolsVisable: true, |
| | | description: '审æ¹å¾
å页é¢', |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 10, |
| | | pageSizeOptions: ['10', '20', '30'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + '-' + range[1] + ' å
±' + total + 'æ¡' |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | loading: false, |
| | | // 表头 |
| | | selectedRowKeys: [], |
| | | url: { |
| | | toTaskBySelfList: '/nc/assign/flow/toTaskBySelf', |
| | | complete: '/plmebomtechnicalordercreatebomapproval/plmEbomTechnicalorderCreatebomapproval/completeByDateId', |
| | | reject: '/plmebomtechnicalordercreatebomapproval/plmEbomTechnicalorderCreatebomapproval/rejectTask', |
| | | pdfSign: '/plmebomtechnicalordercreatebomapproval/plmEbomTechnicalorderCreatebomapproval/pdfSign', |
| | | queryApproveJiJiaByDataId: '/plmmbomprocedurespecification/plmMbomProcedurespecification/queryApproveJiJiaByDataId', |
| | | queryApproveLsByDataId: '/plmbomlsgy/plmMbomLsgy/queryApproveLsByDataId', |
| | | queryApproveFxByDataId: '/plmmbomfxgy/plmMbomFxgy/queryApproveFxByDataId', |
| | | queryByNumber: '/plmebompartmaster/plmEbomPartmaster/queryByNumber', |
| | | getCaxaUrlJJ: '/plmmbomjijiagyapproval/plmMbomJijiagyApproval/getCaxaUrlJeecg', |
| | | getCaxaUrlLS: '/plmbomlsgy/plmMbomLsgy/getCaxaUrlJeecg', |
| | | getCaxaUrlFx: '/plmmbomfxgy/plmMbomFxgy/getCaxaUrlJeecg', |
| | | queryApproveJiJiaById: '/plmmbomjijiagyapproval/plmMbomJijiagyApproval/queryApproveJiJiaById', |
| | | signCxpFile: '/plmmbomjijiagyapproval/plmMbomJijiagyApproval/signCxpFile', |
| | | queryApproveLsById: '/plmmbomapprovallsgy/plmMbomApprovalLsgy/queryApproveDataById', |
| | | queryApproveFxById: '/plmmbomapprovalfxgy/plmMbomApprovalFxgy/queryApproveDataById', |
| | | queryJjDataByJjggAprovalId: '/plmmbomprocedurespecification/plmMbomProcedurespecification/queryJjDataByJjggAprovalId', |
| | | queryJjggByApprovalId: '/plmmbomjjgg/plmMbomJjgg/queryJjggByApprovalId', |
| | | getCaxaUrlJjgg:'/plmmbomjjgg/plmMbomJjgg/getCaxaUrlJeecg', |
| | | queryJjggApprovalByDataId:'/plmmbomjjggapproval/plmMbomJjggApproval/queryById' |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [], |
| | | workflowSource: [] |
| | | } |
| | | }, |
| | | created() { |
| | | this.toTaskBySelf() |
| | | this.getSuperFieldList() |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | toTaskBySelf() { |
| | | let usercode = store.getters.userInfo.username |
| | | let param = { |
| | | 'currentUserId': usercode |
| | | } |
| | | console.log('usercode--->', usercode) |
| | | |
| | | getAction(this.url.toTaskBySelfList, param).then((res => { |
| | | if (res.success) { |
| | | console.log('res---->', res) |
| | | console.log('resresult---->', res.result) |
| | | this.carddata = res.result |
| | | } |
| | | })) |
| | | console.log('this.toTaskSelfData---->', this.toTaskSelfData) |
| | | }, |
| | | handelDetial(item, index) { |
| | | console.log('ç¹å»äºè¯¦æ
') |
| | | console.log('item----->', item) |
| | | console.log('index----->', index) |
| | | let approcesstype = this.splitAprocessType(item.title) |
| | | console.log('approcesstype--->', approcesstype) |
| | | switch (approcesstype) { |
| | | case 'ææ´¾NCææ¡£å°è®¾å¤æµç¨': |
| | | this.handDrDetial(item) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥å®¡æ¹') |
| | | } |
| | | }, |
| | | handDrDetial(item) { |
| | | this.selectShenpiData = item |
| | | this.$refs.modalFormApproval.clearTableSource() |
| | | this.$refs.modalFormApproval.getAllApproveData(item) |
| | | }, |
| | | handCheckApprove(record,approcesstype){ |
| | | if(approcesstype === 'ææ´¾NCææ¡£å°è®¾å¤æµç¨'){ |
| | | |
| | | }else if(approcesstype === 'æºå å®¡æ¹æµç¨'){ |
| | | |
| | | }else if(approcesstype === '临æ¶å·¥èºå®¡æ¹æµç¨'){ |
| | | |
| | | }else if(approcesstype === 'è¿ä¿®å·¥èºå®¡æ¹æµç¨'){ |
| | | |
| | | }else if(approcesstype === 'æºå æ´æ¹åå®¡æ¹æµç¨'){ |
| | | |
| | | } |
| | | }, |
| | | handleCommonAgree(record) { |
| | | console.log('record------>', record) |
| | | let flowTaskVo = {} |
| | | flowTaskVo.dataId = record.dataId |
| | | flowTaskVo.taskId = record.id |
| | | flowTaskVo.userId = record.assignee |
| | | flowTaskVo.instanceId = record.procInstId |
| | | flowTaskVo.targetKey = record.taskDefKey |
| | | flowTaskVo.values = record.variables |
| | | flowTaskVo.assignee = record.assignee |
| | | postAction(this.url.complete, flowTaskVo).then((res => { |
| | | if (res.success) { |
| | | this.$message.success(res.result) |
| | | } else { |
| | | this.$message.warning(res.result) |
| | | } |
| | | })) |
| | | }, |
| | | handleZhuanJiao(record) { |
| | | let approcesstype = this.splitAprocessType(record.title) |
| | | this.handleCommonZhuanJiao(record) |
| | | }, |
| | | handleCommonZhuanJiao(record) { |
| | | this.$refs.Flowzhuanjiao.openThis() |
| | | this.$refs.Flowzhuanjiao.approveData = record |
| | | }, |
| | | handleJjggpdfSign(record){ |
| | | let parm = { |
| | | 'id': record.dataId |
| | | } |
| | | console.log("parm===>",parm) |
| | | getAction(this.url.queryJjggApprovalByDataId,parm).then(res=>{ |
| | | console.log("resres--->",res.result) |
| | | let infos = {} |
| | | let signInfos = [] |
| | | let signInfo = { |
| | | 'proc_bz': res.result.organization, |
| | | 'proc_bz_date': res.result.writeTime, |
| | | // 'proc_jd': res.result.proofread, |
| | | // 'proc_jd_date': res.result.proofreadTime, |
| | | 'proc_sh': res.result.examine, |
| | | 'proc_sh_date': res.result.examineTime, |
| | | 'proc_pz': res.result.ratify, |
| | | 'proc_pz_date': res.result.approveTime |
| | | } |
| | | signInfos.push(signInfo) |
| | | let type = { |
| | | 'type': 'jjggd' |
| | | } |
| | | infos.signInfos = signInfos |
| | | infos.type = type |
| | | let parm2 = { |
| | | 'dataId': record.dataId |
| | | } |
| | | getAction(this.url.queryJjggByApprovalId,parm2).then(res2=>{ |
| | | let parm3 = { |
| | | 'signInfos': JSON.stringify(signInfos), |
| | | 'type': 'jjggd', |
| | | 'cxpFile': res2.result.filecxp, |
| | | 'number': res2.result.number |
| | | } |
| | | console.log('parm3---->', parm3) |
| | | console.log('parm3---->', res2.result) |
| | | getAction(this.url.signCxpFile, parm3).then(res3 => { |
| | | console.log('res3---->', res3) |
| | | this.$message.success('ç¾å宿') |
| | | }) |
| | | }) |
| | | }) |
| | | }, |
| | | handeditFxCapp(item) { |
| | | console.log('item----->', item) |
| | | let parm1 = { |
| | | 'dataId': item.dataId |
| | | } |
| | | getAction(this.url.queryApproveFxByDataId, parm1).then(res => { |
| | | if (res.success) { |
| | | let fileNo = this.splitAprocessNumber(item.title) |
| | | this.jsonArr.userName = item.assignee |
| | | this.jsonArr.partNumber = res.result.partnumber |
| | | this.jsonArr.partName = res.result.partname |
| | | this.jsonArr.drawingVision = res.result.editiondrawing |
| | | this.jsonArr.fileNo = fileNo |
| | | this.jsonArr.id = res.result.id |
| | | let parm2 = { |
| | | 'number': res.result.partnumber |
| | | } |
| | | this.jsonArr.number = res.result.number |
| | | this.jsonArr.cxpFilePath = res.result.attract |
| | | // this.jsonArr.cxpFilePath = '/pdmCapp/èªææºå å·¥èºè§ç¨.cxp' |
| | | getAction(this.url.queryByNumber, parm2).then(res2 => { |
| | | this.jsonArr.partType = res2.result.partType |
| | | this.infos.push(this.jsonArr) |
| | | let infosJsonNew = JSON.stringify(this.infos) |
| | | console.log('infosJson--->', infosJsonNew) |
| | | let parm3 = {} |
| | | parm3.infosJson = infosJsonNew |
| | | console.log('infosJsonNew---->', infosJsonNew) |
| | | getAction(this.url.getCaxaUrlFx, parm3).then(res => { |
| | | console.log('æ§è¡äºåé') |
| | | if (res.status == 'SUCCESS') { |
| | | console.log('resUrl------>', res) |
| | | let beforeUrl = res.msg |
| | | let afterBefore = this.jiexieUrl(beforeUrl) |
| | | console.log('afterBefore---->', afterBefore) |
| | | window.open(afterBefore, '_blank') |
| | | } |
| | | }).finally( |
| | | this.jsonArr = {}, |
| | | this.infos = [] |
| | | ) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | jiexieUrl(beforeUrl) { |
| | | let afterBefore = beforeUrl.replaceAll('%3A', ':').replaceAll('%2F', '/').replaceAll('%23', '#').replaceAll('%7C', '|').replaceAll('%5C', '\\\\') |
| | | return afterBefore |
| | | }, |
| | | getSuperFieldList() { |
| | | let fieldList = [] |
| | | fieldList.push({ type: 'string', value: 'id', text: 'ä»»å¡ID', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'rev', text: 'çæ¬å·', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'executionId', text: 'æ§è¡å®ä¾ID', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'procInstId', text: 'æµç¨å®ä¾ID', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'procDefId', text: 'æµç¨å®ä¹ID', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'name', text: 'ä»»å¡åç§°', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'taskDefKey', text: 'ä»»å¡å®ä¹Key', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'assignee', text: 'åç人', dictCode: 'unit_all' }) |
| | | fieldList.push({ type: 'string', value: 'priority', text: 'ä¼å
级', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'createTime', text: 'ä»»å¡å建æ¶é´', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'suspensionState', text: 'æåç¶æ', dictCode: '' }) |
| | | this.superFieldList = fieldList |
| | | }, |
| | | splitAprocessType(title) { |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | | return result |
| | | }, |
| | | splitAprocessNumber(title) { |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçå符è¿è¡åå² |
| | | let result = parts[1] |
| | | return result |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | :footer="null" |
| | | @cancel="handCancel" |
| | | > |
| | | <a-card :bordered="false"> |
| | | <div> |
| | | <b>{{ selectShenpiData.title }}</b> |
| | | <br> |
| | | <br> |
| | | <a-tag color="blue"> |
| | | å¤ç人 {{ selectShenpiData.assignee }} |
| | | </a-tag> |
| | | <a-tag color="blue"> |
| | | å建æ¶é´ {{ selectShenpiData.createTime }} |
| | | </a-tag> |
| | | <br> |
| | | <br> |
| | | <button @click="fetchAndShowBmp" class="btn-custom">æå¼æµç¨å¾</button> |
| | | <div v-if="imageSrc"> |
| | | <img :src="imageSrc" alt="Fetched Image" /> |
| | | </div> |
| | | <hr class="shallow-hr"> |
| | | </div> |
| | | <div> |
| | | <b>ææ´¾è¯¦æ
</b> |
| | | <br> |
| | | <a-form :form='form'> |
| | | <a-spin :spinning="spinning"> |
| | | <a-tabs default-active-key='1' @change='callback'> |
| | | <a-tab-pane key='1' tab='åºæ¬ä¿¡æ¯'> |
| | | <a-form-model ref='form' :model='tableRowRecord' :rules='validatorRules'> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='产ååç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='productName'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.productName'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='é¨ä»¶åç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='componentId'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.componentName'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='é¶ä»¶åç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='partsName'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.partsName'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='å·¥åºåç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='processName'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.processName'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='å·¥æ¥åç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='stepName'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.stepName'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='设å¤åç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='deviceName'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.deviceName'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='ææ¡£åç§°' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='docName'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.docName'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label='ææ¡£çæ¬' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='version'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.version'></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-tab-pane> |
| | | <a-tab-pane key='2' tab='æµç¨èç¹'> |
| | | <a-card> |
| | | <a-timeline style="padding:0 1% 0 12%" > |
| | | <a-timeline-item color='white' v-for="(item,index1) in hitaskDataSource" :key="index1"> |
| | | <div class="bottom"> |
| | | <p>å¼å§æ¶é´ï¼{{item.startTime}}</p> |
| | | <p>ç»ææ¶é´ï¼{{item.endTime}}</p> |
| | | <p>å¤ç人ï¼{{item.assignee}}</p> |
| | | <p>åçç±»åï¼{{item.bllx_dictText}}</p> |
| | | <p>å¤çæè§ï¼{{item.cause}}</p> |
| | | <div class="left_qiu"><span>{{item.name}}</span></div> |
| | | </div> |
| | | </a-timeline-item> |
| | | </a-timeline> |
| | | </a-card> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-spin> |
| | | </a-form> |
| | | </div> |
| | | <div> |
| | | <hr class="shallow-hr"> |
| | | <br> |
| | | <b>审æ¹è¯¦æ
</b> |
| | | <br> |
| | | <a-form-model ref="form" :model="approveData" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-col ::span='span'> |
| | | <a-form-model-item label="ç³è¯·äºº" :labelCol="labelCol" :wrapperCol="wrapperCol" prop='applyUser'> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.applyUser'></a-input> |
| | | </a-form-model-item > |
| | | </a-col> |
| | | <a-col ::span='span'> |
| | | <a-form-model-item label="ç³è¯·åå " :labelCol="labelCol" :wrapperCol="wrapperCol" prop="applyReason"> |
| | | <a-textarea :disabled='coldisabled' v-model="tableRowRecord.applyReason" rows="4" /> |
| | | </a-form-model-item > |
| | | </a-col> |
| | | <a-col ::span='span'> |
| | | <a-form-model-item label="ç³è¯·æ¶é´" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="applyTime"> |
| | | <a-input :disabled='coldisabled' v-model='tableRowRecord.applyTime'></a-input> |
| | | </a-form-model-item > |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item label="å¯çº§ä¸º" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-dict-select-tag type='list' v-model='assignFileStream.secretLevel' dictCode='dnc_secret_level' placeholder="è¯·éæ©å¯çº§" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24" class="btxx"> |
| | | <a-form-item label="审æ¹ç¶æ" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-dict-select-tag type='list' v-model='assignFileStream.status' dictCode='dnc_assign_stream_status' placeholder="è¯·éæ©å®¡æ¹ç¶æ" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24" class="btxx"> |
| | | <a-form-model-item label="å®¡æ¹æè§" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-textarea v-model="assignFileStream.approveContent" rows="4" placeholder="请è¾å
¥å®¡æ¹æè§"/> |
| | | </a-form-model-item > |
| | | </a-col> |
| | | </a-row> |
| | | <div class="table-operator" style="text-align: right;"> |
| | | <a-button @click="handleQueXiaoTask" type="primary" icon="close">åæ¶</a-button> |
| | | <a-button @click="submitForm">æ 交</a-button> |
| | | </div> |
| | | </a-form-model> |
| | | </div> |
| | | </a-card> |
| | | |
| | | |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { getAction, deleteAction, postAction, downFile, httpAction } from '@/api/manage' |
| | | export default { |
| | | name: 'FlowShenPi', |
| | | mixins: [mixinDevice], |
| | | props: { |
| | | selectShenpiData: { |
| | | type: Object, |
| | | required: true |
| | | } |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | form: this.$form.createForm(this), |
| | | span: 12, |
| | | span1: 8, |
| | | coldisabled: true, |
| | | spinning: false, |
| | | tableRowRecord: {}, |
| | | assignFileStream:{}, |
| | | tableDataSource: [], |
| | | usageDataSource: [], |
| | | hitaskDataSource:[], |
| | | bomForm: {}, |
| | | approveContent:"", |
| | | imageSrc: null, |
| | | drawerVisible: true, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 30 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | validatorRules: { |
| | | version: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ææ¡£çæ¬!'}, |
| | | ] |
| | | }, |
| | | applyUser: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ç³è¯·äºº!'}, |
| | | ] |
| | | }, |
| | | approveContent: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥å®¡æ¹æè§!'}, |
| | | ] |
| | | }, |
| | | docName: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ææ¡£åç§°!'}, |
| | | ] |
| | | }, |
| | | status: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©å®¡æ¹ç¶æ!'}, |
| | | ] |
| | | }, |
| | | }, |
| | | approveData: {}, |
| | | flowData: {}, |
| | | title: '审æ¹é¡µé¢', |
| | | width: 1000, |
| | | visible: false, |
| | | // 表头 |
| | | url: { |
| | | queryBomDataById: '/nc/activit/selectVoById', |
| | | diagramView: '/nc/assign/flow/diagramView', |
| | | queryHisTaskList:'/nc/assign/flow/queryHisTaskList', |
| | | approve:"/nc/activit/assign/file/approve", |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [], |
| | | workflowSource: [] |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | callback() { |
| | | }, |
| | | handCancel() { |
| | | this.visible = false |
| | | }, |
| | | clearTableSource() { |
| | | this.tableDataSource = [] |
| | | this.usageDataSource = [] |
| | | }, |
| | | fetchAndShowBmp() { |
| | | console.log('flowData----->', this.flowData) |
| | | try { |
| | | let parm = { |
| | | taskId: this.flowData.id |
| | | } |
| | | downFile(this.url.diagramView,parm,'get').then((res=>{ |
| | | console.log('Pica------>',res) |
| | | const urlObject = window.URL.createObjectURL(new Blob([res])) |
| | | this.imageSrc = urlObject |
| | | })) |
| | | } catch (error) { |
| | | console.error('Error fetching image blob:', error) |
| | | alert('æ æ³å è½½å¾çï¼è¯·ç¨ååè¯ã') |
| | | } |
| | | }, |
| | | handleQueXiaoTask(){ |
| | | this.visible = false |
| | | this.routeReload() |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | if (!that.assignFileStream.status==null || that.assignFileStream.status===undefined){ |
| | | this.$message.warning('è¯·éæ©å®¡æ¹ç¶æï¼') |
| | | return false; |
| | | } |
| | | if (!that.assignFileStream.approveContent==null || that.assignFileStream.approveContent===undefined) { |
| | | this.$message.warning('请è¾å
¥å®¡æ¹æè§ï¼') |
| | | return false; |
| | | } |
| | | // 触å表åéªè¯ |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let url=this.url.approve |
| | | let method = 'post'; |
| | | let flowTaskVo = {} |
| | | flowTaskVo.status=that.assignFileStream.status; |
| | | flowTaskVo.approveContent =that.assignFileStream.approveContent; |
| | | flowTaskVo.comment =that.assignFileStream.approveContent; |
| | | flowTaskVo.secretLevel = that.assignFileStream.secretLevel; |
| | | flowTaskVo.dataId = this.selectShenpiData.dataId |
| | | flowTaskVo.taskId = this.selectShenpiData.id |
| | | flowTaskVo.userId = this.selectShenpiData.assignee |
| | | flowTaskVo.instanceId = this.selectShenpiData.procInstId |
| | | flowTaskVo.targetKey = this.selectShenpiData.taskDefKey |
| | | flowTaskVo.values = this.selectShenpiData.variables |
| | | flowTaskVo.assignee = this.selectShenpiData.assignee |
| | | flowTaskVo.secretLevel = that.assignFileStream.secretLevel; |
| | | console.log("表åæäº¤æ°æ®",flowTaskVo) |
| | | httpAction(url,flowTaskVo,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | getAllApproveData(item) { |
| | | console.log('selectShenpiData----->', this.selectShenpiData) |
| | | this.flowData = item |
| | | let param = { |
| | | 'id': item.dataId |
| | | } |
| | | let parmhis={ |
| | | 'drapprovedataId': item.dataId |
| | | } |
| | | getAction(this.url.queryHisTaskList,parmhis).then(res=>{ |
| | | this.hitaskDataSource=res.result |
| | | getAction(this.url.queryBomDataById, param).then((res => { |
| | | if (res.success) { |
| | | this.tableRowRecord = res.result |
| | | console.log('this.tableRowRecord----->', this.tableRowRecord) |
| | | } |
| | | })) |
| | | }).finally( |
| | | this.visible = true, |
| | | console.log('this.approveData---->', this.approveData) |
| | | ) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .shallow-hr { |
| | | border: 0; |
| | | height: 1px; /* åç线çé«åº¦ */ |
| | | background-color: rgba(0, 0, 0, 0.1); /* ä½¿ç¨ RGBA é¢è²ï¼å¹¶è®¾ç½®è¾ä½çéæåº¦ */ |
| | | margin: 20px 0; /* åç线ä¸ä¸çå¤è¾¹è· */ |
| | | } |
| | | .btn-custom { |
| | | background-color: #4CAF50; /* 绿è²èæ¯ */ |
| | | color: white; /* ç½è²æå */ |
| | | border: none; /* æ è¾¹æ¡ */ |
| | | padding: 5px 15px; /* å
è¾¹è· */ |
| | | text-align: center; /* æåå±
ä¸ */ |
| | | text-decoration: none; /* æ ä¸å线 */ |
| | | display: inline-block; /* è¡å
åå
ç´ */ |
| | | font-size: 12px; /* åä½å¤§å° */ |
| | | margin: 4px 2px; /* å¤è¾¹è· */ |
| | | cursor: pointer; /* é¼ æ æ¬åæ¶æ¾ç¤ºæå */ |
| | | border-radius: 4px; /* åè§è¾¹æ¡ */ |
| | | } |
| | | |
| | | .bold-large-label { |
| | | font-weight: bold; |
| | | font-size: 20px; /* æä½ éè¦çä»»ä½å¤§å° */ |
| | | } |
| | | .left_qiu{ |
| | | position: absolute; |
| | | left: -74px; |
| | | top: 0; |
| | | width:54px; |
| | | border-radius: 50%; |
| | | height:54px; |
| | | font-size: 13px; |
| | | margin: auto; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | align-items: center; |
| | | justify-content: center; |
| | | background: #0099ff; |
| | | transform: translate(0, 0); |
| | | } |
| | | /deep/ .ant-timeline-item-tail{ |
| | | left: -29px !important; |
| | | } |
| | | .left_qiu span{ |
| | | width: 3em; |
| | | display: block; |
| | | color: #fff; |
| | | text-align: center; |
| | | } |
| | | .img{ |
| | | width: 75%; |
| | | } |
| | | |
| | | .wrap{ |
| | | clear: both; |
| | | width: 100%; |
| | | display: flex; |
| | | height: 50px; |
| | | border: 1px solid #ccc; |
| | | /* background-color: aqua; */ |
| | | } |
| | | .box{ |
| | | width:21%; |
| | | height:50px; |
| | | border-right: 1px solid #ccc; |
| | | line-height: 50px; |
| | | /* background: red; */ |
| | | text-align:center; |
| | | margin: auto; |
| | | } |
| | | |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: 工使µ-æçå¾
å List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-02-27 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æµç¨åç§°"> |
| | | <a-input placeholder="请è¾å
¥æµç¨åç§°" v-model="queryParam.flowName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç®è¦æè¿°"> |
| | | <a-input placeholder="请è¾å
¥ç®è¦æè¿°" v-model="queryParam.title"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="10" :lg="11" :md="12" :sm="24"> |
| | | <a-form-item label="å½åæä½æ¶é´"> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©å¼å§æ¶é´" class="query-group-cust" v-model="queryParam.startTime"></j-date> |
| | | <span class="query-group-split-cust"></span> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©ç»ææ¶é´" class="query-group-cust" v-model="queryParam.endTime"></j-date> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handelDetial(record,text)">æ¥ç详æ
</a> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <FlowNcZpi ref="modalFormApproval" :selectShenpiData="selectShenpiData"></FlowNcZpi> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag.vue' |
| | | import store from '@/store' |
| | | import { getAction } from '@api/manage' |
| | | import FlowNcZpi from '@views/flowable/workflow/FlowNcZpi.vue' |
| | | |
| | | export default { |
| | | name: 'NcDeviceCharactersList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | FlowNcZpi, |
| | | JDictSelectTag, |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '工使µ-æçå¾
å', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:200, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'æµç¨åç§°', |
| | | align: "center", |
| | | dataIndex: 'flowName', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: 'æµç¨ä¸å¡ç®è¦æè¿°', |
| | | align: "center", |
| | | dataIndex: 'title', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'ä¸ä¸æ¥å¤ç人', |
| | | align: "center", |
| | | dataIndex: 'variables.INITIATOR', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'ä¸ä¸æ¥èç¹', |
| | | align: "center", |
| | | dataIndex: 'actStatus', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'å½åèç¹', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'å½åèç¹å¼å§æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'createTime', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/nc/assign/flow/toTaskBySelf', |
| | | }, |
| | | dictOptions:{}, |
| | | selectShenpiData: {}, |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | handelDetial(item, index) { |
| | | console.log('ç¹å»äºè¯¦æ
') |
| | | console.log('item----->', item) |
| | | console.log('index----->', index) |
| | | let approcesstype = this.splitAprocessType(item.title) |
| | | console.log('approcesstype--->', approcesstype) |
| | | switch (approcesstype) { |
| | | case 'ææ´¾NCææ¡£å°è®¾å¤æµç¨': |
| | | this.handDrDetial(item) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥å®¡æ¹') |
| | | } |
| | | }, |
| | | splitAprocessType(title) { |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | | return result |
| | | }, |
| | | handDrDetial(item) { |
| | | this.selectShenpiData = item |
| | | this.$refs.modalFormApproval.clearTableSource() |
| | | this.$refs.modalFormApproval.getAllApproveData(item) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | > |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
| | | |
| | | export default { |
| | | name: 'FlowManage', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | |
| | | }, |
| | | data () { |
| | | return { |
| | | toolsVisable:true, |
| | | description: 'ä»»å¡å表页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'ä»»å¡ID', |
| | | align:"center", |
| | | dataIndex: 'id' |
| | | }, |
| | | { |
| | | title:'çæ¬å·', |
| | | align:"center", |
| | | dataIndex: 'rev' |
| | | }, |
| | | { |
| | | title:'æ§è¡å®ä¾ID', |
| | | align:"center", |
| | | dataIndex: 'executionId' |
| | | }, |
| | | { |
| | | title:'æµç¨å®ä¾ID', |
| | | align:"center", |
| | | dataIndex: 'procInstId' |
| | | }, |
| | | { |
| | | title:'æµç¨å®ä¹ID', |
| | | align:"center", |
| | | dataIndex: 'procDefId' |
| | | }, |
| | | { |
| | | title:'ä»»å¡åç§°', |
| | | align:"center", |
| | | dataIndex: 'name' |
| | | }, |
| | | { |
| | | title:'ä»»å¡å®ä¹Key', |
| | | align:"center", |
| | | dataIndex: 'taskDefKey' |
| | | }, |
| | | { |
| | | title:'åç人', |
| | | align:"center", |
| | | dataIndex: 'assignee' |
| | | }, |
| | | { |
| | | title:'ä¼å
级', |
| | | align:"center", |
| | | dataIndex: 'priority' |
| | | }, |
| | | { |
| | | title:'ä»»å¡å建æ¶é´', |
| | | align:"center", |
| | | dataIndex: 'createTime' |
| | | }, |
| | | { |
| | | title:'æåç¶æ', |
| | | align:"center", |
| | | dataIndex: 'suspensionState' |
| | | }, |
| | | |
| | | ], |
| | | url: { |
| | | list: "/nc/assign/flow/workTasklist", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | workflowSource:[] |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | }, |
| | | methods: { |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'id',text:'ä»»å¡ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'rev',text:'çæ¬å·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'executionId',text:'æ§è¡å®ä¾ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'procInstId',text:'æµç¨å®ä¾ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'procDefId',text:'æµç¨å®ä¹ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'name',text:'ä»»å¡åç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'taskDefKey',text:'ä»»å¡å®ä¹Key',dictCode:''}) |
| | | fieldList.push({type:'string',value:'assignee',text:'åç人',dictCode:'unit_all'}) |
| | | fieldList.push({type:'string',value:'priority',text:'ä¼å
级',dictCode:''}) |
| | | fieldList.push({type:'string',value:'createTime',text:'ä»»å¡å建æ¶é´',dictCode:''}) |
| | | fieldList.push({type:'string',value:'suspensionState',text:'æåç¶æ',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |