Merge remote-tracking branch 'origin/master'
| | |
| | | @change="handleTableChange" |
| | | :scroll="{y:456}" :size="size" rowKey="docId"> |
| | | |
| | | <!-- å符串è¶
é¿æªåçç¥å·æ¾ç¤º--> |
| | | <span slot="docName" slot-scope="text"> |
| | | <j-ellipsis :value="text"/> |
| | | </span> |
| | | </a-table> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | |
| | | dataIndex: 'docName', |
| | | key: 'docName', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'docName' }, |
| | | width: 300, |
| | | sorter: true |
| | | }, |
| | |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getGuideCardBatchList(){ |
| | | console.log('currentDocumentInfo', this.guideCardBatchInfo) |
| | | let params |
| | | searchQuery() { |
| | | this.queryParam.docId = this.guideCardBatchInfo.docId; |
| | | this.loadData(1); |
| | | }, |
| | | /** |
| | | * è·åå 工确认表å表 |
| | | */ |
| | | getGuideCardBatchList() { |
| | | let params= {}; |
| | | params.docId=this.guideCardBatchInfo.docId; |
| | | params.serialNumber=this.queryParam.serialNumber; |
| | | params.fixtureInformation=this.guideCardBatchInfo.fixtureInformation; |
| | |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | searchReset() { |
| | | // ä¿çå¿
è¦åæ®µçæµ
æ·è´æ¹å¼ |
| | | this.queryParam = { |
| | | docId: this.guideCardBatchInfo.docId |
| | | }; |
| | | this.loadData(1); |
| | | }, |
| | | loadData(pageNum) { |
| | | if (this.ipagination) { |
| | | this.ipagination.current = pageNum; |
| | | } |
| | | this.getGuideCardBatchList(); |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'serialNumber',text:'æµæ°´å·',dictCode:''}) |
| | |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button @click="handleOpenReceiveFaultModal" type="primary" icon="plus">é¢å</a-button> |
| | | <a-button @click="handleOpenReceiveFaultModal" type="primary" icon="plus" v-if="isShowAuth('eam:repair:collect')">é¢å</a-button> |
| | | <!--<a-button type="primary" icon="download" @click="handleExportXls('维修工å')">导åº</a-button>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: 'å·¥åç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'repairCode', |
| | | width: 200, |
| | | width: 120, |
| | | fixed: 'left' |
| | | }, |
| | | // { |
| | | // title: 'æ¥ä¿®ç¼å·', |
| | | // align: 'center', |
| | | // dataIndex: 'reportId', |
| | | // width: 200, |
| | | // fixed: 'left' |
| | | // }, |
| | | { |
| | | title: '设å¤ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId_dictText', |
| | | dataIndex: 'equipmentCode', |
| | | width: 120, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | width: 200, |
| | | fixed: 'left' |
| | | }, |
| | |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" v-if="isShowAuth('eam:reportRepair:add')">æ°å¢</a-button> |
| | | <!--<a-button type="primary" icon="download" @click="handleExportXls('æ
éæ¥ä¿®')">导åº</a-button>--> |
| | | <!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"--> |
| | | <!--@change="handleImportExcel">--> |
| | |
| | | <!--</a-upload>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | | <a-menu-item key="1" @click="batchDel" v-if="isShowAuth('eam:reportRepair:abolish')"> |
| | | <a-icon type="delete"/> |
| | | ä½åº |
| | | </a-menu-item> |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record" v-if="record.reportStatus=='WAIT_REPAIR'"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a @click="handleEdit(record)" v-if="isShowAuth('eam:reportRepair:edit')">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:edit')"/> |
| | | |
| | | <a @click="handleAssign(record)">ææ´¾</a> |
| | | <a @click="handleAssign(record)" v-if="isShowAuth('eam:reportRepair:assign')">ææ´¾</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:assign')"/> |
| | | |
| | | <a-popconfirm title="ç¡®å®ä½åºå?" @confirm="() => handleDelete(record.id)"> |
| | | <a-popconfirm title="ç¡®å®ä½åºå?" @confirm="() => handleDelete(record.id)" v-if="isShowAuth('eam:reportRepair:abolish')"> |
| | | <a>ä½åº</a> |
| | | </a-popconfirm> |
| | | </span> |
| | |
| | | { |
| | | title: '设å¤ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId_dictText', |
| | | dataIndex: 'equipmentCode', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | width: 200 |
| | | }, |
| | | { |
| | |
| | | { |
| | | title: 'æµç¨åç±»', |
| | | align: 'center', |
| | | dataIndex: 'category_dictText' |
| | | dataIndex: 'category_dictText', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: 'æµç¨åç§°', |
| | |
| | | <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">--> |
| | | <!-- <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-col> |
| | | </a-row> |
| | | |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">æ¯å¦éè¦é¢ç¨å¤ä»¶</a-divider> |
| | | |
| | | <a-tabs v-model="activeTabKey"> |
| | | <a-tab-pane key="1" tab="é¢ç¨å¤ä»¶"> |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="æ¯å¦éè¦é¢ç¨å¤ä»¶" prop="isUseSpare"> |
| | | <a-radio-group v-model="tableRowRecord.isUseSpare" |
| | | :disabled="isDisableUseSpare"> |
| | | <a-radio :value="1">æ¯</a-radio> |
| | | <a-radio :value="0">å¦</a-radio> |
| | | </a-radio-group> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-tab-pane key="1" tab="ç»´ä¿®å¤ç"> |
| | | |
| | | <template v-if="tableRowRecord.isUseSpare===0"> |
| | | <div v-if="repairConfirm"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">维修确认</a-divider> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="repairConfirm" label="æ¯å¦å
é¨å¯ç»´ä¿®"> |
| | | <j-dict-select-tag type='radio' v-model='tableRowRecord.repairConfirm' dictCode='yn' |
| | | placeholder="è¯·éæ©" :disabled="disableSubmit || tableRowRecord.repairStatus !== 'WAIT_INTERNAL_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="repairConfirmComment" label="维修确认æè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="tableRowRecord.repairConfirmComment" |
| | | :readOnly="disableSubmit || tableRowRecord.repairStatus !== 'WAIT_INTERNAL_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | <div v-if="underInternalRepair && tableRowRecord.repairConfirm === '1'"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">ç»´ä¿®ç»æ</a-divider> |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="æ
éåå " prop="faultReason"> |
| | | <a-input :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_REPAIR'" |
| | | <a-form-model-item label="æ
éåå " prop="faultReason" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-input :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_INTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.faultReason" rows="4" |
| | | placeholder="请è¾å
¥æ
éåå "/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®ç»ææè¿°" prop="repairDescription"> |
| | | <a-textarea :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_REPAIR'" |
| | | <a-form-model-item label="ç»´ä¿®ç»ææè¿°" prop="repairDescription" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_INTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.repairDescription" |
| | | placeholder="请è¾å
¥ç»´ä¿®ç»ææè¿°"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®å¾ç"> |
| | | <a-form-model-item label="ç»´ä¿®å¾ç" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <lx-upload :returnUrl="false" :isMultiple="true" file-type="image" :number="3" |
| | | :disabled="disableSubmit||tableRowRecord.repairStatus!=='UNDER_REPAIR'" |
| | | :disabled="disableSubmit||tableRowRecord.repairStatus!=='UNDER_INTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.imageFiles"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </template> |
| | | </a-row> |
| | | </a-row> |
| | | </div> |
| | | <div v-if="leaderConfirm && tableRowRecord.repairConfirm === '0'"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">é¢å¯¼ç¡®è®¤</a-divider> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leaderConfirm" label="æ¯å¦åæå¤é¨ç»´ä¿®"> |
| | | <j-dict-select-tag type='radio' v-model='tableRowRecord.leaderConfirm' dictCode='approved_rejected' |
| | | placeholder="è¯·éæ©" :disabled="disableSubmit || tableRowRecord.repairStatus!=='WAIT_LEADER_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leaderConfirmComment" label="确认æè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="tableRowRecord.leaderConfirmComment" |
| | | :readOnly="disableSubmit || tableRowRecord.repairStatus!=='WAIT_LEADER_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | <div v-if="underInternalRepair && tableRowRecord.leaderConfirm === '2'"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">ç»´ä¿®ç»æ</a-divider> |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="æ
éåå " prop="faultReason" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-input :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_INTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.faultReason" rows="4" |
| | | placeholder="请è¾å
¥æ
éåå "/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®ç»ææè¿°" prop="repairDescription" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_INTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.repairDescription" |
| | | placeholder="请è¾å
¥ç»´ä¿®ç»ææè¿°"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®å¾ç" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <lx-upload :returnUrl="false" :isMultiple="true" file-type="image" :number="3" |
| | | :disabled="disableSubmit||tableRowRecord.repairStatus!=='UNDER_INTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.imageFiles"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | <div v-if="externalConfirm && tableRowRecord.leaderConfirm === '1'"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">æºå¨å确认</a-divider> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="externalConfirm" label="æºå¨åæ¯å¦å¯ç»´ä¿®"> |
| | | <j-dict-select-tag type='radio' v-model='tableRowRecord.externalConfirm' dictCode='yn' |
| | | placeholder="è¯·éæ©" :disabled="disableSubmit||tableRowRecord.repairStatus!=='WAIT_EXTERNAL_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="externalConfirmComment" label="确认æè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="tableRowRecord.externalConfirmComment" |
| | | :readOnly="disableSubmit || tableRowRecord.repairStatus!=='WAIT_EXTERNAL_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | <div v-if="underExternalRepair && tableRowRecord.externalConfirm === '1'"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">æºå¨åç»´ä¿®ç»æ</a-divider> |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="æ
éåå " prop="faultReason" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-input :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_EXTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.faultReason" rows="4" |
| | | placeholder="请è¾å
¥æ
éåå "/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®ç»ææè¿°" prop="repairDescription" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_EXTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.repairDescription" |
| | | placeholder="请è¾å
¥ç»´ä¿®ç»ææè¿°"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®å¾ç" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <lx-upload :returnUrl="false" :isMultiple="true" file-type="image" :number="3" |
| | | :disabled="disableSubmit||tableRowRecord.repairStatus!=='UNDER_EXTERNAL_REPAIR'" |
| | | v-model="tableRowRecord.imageFiles"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | <div v-if="underOutsideRepair && tableRowRecord.externalConfirm === '0'"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">å§å¤ç»´ä¿®ç»æ</a-divider> |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="æ
éåå " prop="faultReason" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-input :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_OUTSIDE_REPAIR'" |
| | | v-model="tableRowRecord.faultReason" rows="4" |
| | | placeholder="请è¾å
¥æ
éåå "/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®ç»ææè¿°" prop="repairDescription" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :readOnly="disableSubmit||tableRowRecord.repairStatus!=='UNDER_OUTSIDE_REPAIR'" |
| | | v-model="tableRowRecord.repairDescription" |
| | | placeholder="请è¾å
¥ç»´ä¿®ç»ææè¿°"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®å¾ç" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <lx-upload :returnUrl="false" :isMultiple="true" file-type="image" :number="3" |
| | | :disabled="disableSubmit||tableRowRecord.repairStatus!=='UNDER_OUTSIDE_REPAIR'" |
| | | v-model="tableRowRecord.imageFiles"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | <div v-if="operatorConfirm"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">æä½å·¥ç¡®è®¤</a-divider> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item :labelCol="labelColLong" :wrapperCol="wrapperColLong" prop="confirmComment" label="确认æè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="tableRowRecord.confirmComment" |
| | | :readOnly="disableSubmit || tableRowRecord.repairStatus!=='WAIT_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | </a-tab-pane> |
| | | |
| | | <template v-if="selectShenpiData.procInstId"> |
| | |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane key='3' tab='æµç¨å¾'> |
| | | <img :src="imageSrc" alt="Fetched Image"/>--> |
| | | <img :src="imageSrc" alt="Fetched Image"/> |
| | | </a-tab-pane> |
| | | </template> |
| | | </a-tabs> |
| | | |
| | | <template v-if="tableRowRecord.isUseSpare===1&&isDisableUseSpare"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">管çåé¢ç¨å¤ä»¶ |
| | | </a-divider> |
| | | |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item prop="sparePartDescription" label="å¤ä»¶æè¿°"> |
| | | <a-textarea placeholder="请è¾å
¥å¤ä»¶æè¿°" :readOnly="disableSubmit||tableRowRecord.repairStatus!=='WAIT_SPARES'" |
| | | v-model="tableRowRecord.sparePartDescription"></a-textarea> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | |
| | | <template v-if="Boolean(tableRowRecord.sparePartDescription)&&isDisplayRepairResult"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;">ç»´ä¿®ç»æä¸æ¥</a-divider> |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="æ
éåå " prop="faultReason"> |
| | | <a-input :readOnly="disableSubmit||isDisableSubmitRepairResult" v-model="tableRowRecord.faultReason" |
| | | rows="4" placeholder="请è¾å
¥æ
éåå "/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®ç»ææè¿°" prop="repairDescription"> |
| | | <a-textarea :readOnly="disableSubmit||isDisableSubmitRepairResult" |
| | | v-model="tableRowRecord.repairDescription" |
| | | placeholder="请è¾å
¥ç»´ä¿®ç»ææè¿°"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="twoColSpan*2"> |
| | | <a-form-model-item label="ç»´ä¿®å¾ç"> |
| | | <lx-upload :disabled="disableSubmit||isDisableSubmitRepairResult" :returnUrl="false" :isMultiple="true" |
| | | file-type="image" :number="3" |
| | | v-model="tableRowRecord.imageFiles"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | |
| | | |
| | | <script> |
| | | import '@assets/less/TableExpand.less' |
| | | import { getAction, deleteAction, postAction, downFile, httpAction } from '@api/manage' |
| | | import LxSearchEquipmentSelect from '../../../eam/equipment/modules/LxSearchEquipmentSelect' |
| | | import { getAction, downFile, httpAction } from '@api/manage' |
| | | import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect' |
| | | |
| | | export default { |
| | | name: 'RepairOrderApprovalModal', |
| | |
| | | sm: { span: 20 } |
| | | }, |
| | | validatorRules: { |
| | | isUseSpare: [ |
| | | { required: true, message: 'è¯·éæ©æ¯å¦éè¦é¢ç¨å¤ä»¶' } |
| | | repairConfirm: [ |
| | | { required: true, message: 'è¯·éæ©æ¯å¦å
é¨å¯ç»´ä¿®ï¼' } |
| | | ], |
| | | sparePartDescription: [ |
| | | { required: true, message: '请è¾å
¥å¤ä»¶æè¿°' } |
| | | repairConfirmComment: [ |
| | | { required: true, message: '请è¾å
¥ç»´ä¿®ç¡®è®¤æè§' } |
| | | ], |
| | | leaderConfirm: [ |
| | | { required: true, message: 'è¯·éæ©æ¯å¦åæå¤é¨ç»´ä¿®ï¼' } |
| | | ], |
| | | leaderConfirmComment: [ |
| | | { required: true, message: '请è¾å
¥é¢å¯¼ç¡®è®¤æè§' } |
| | | ], |
| | | externalConfirm: [ |
| | | { required: true, message: 'è¯·éæ©æºå¨åæ¯å¦å¯ç»´ä¿®ï¼' } |
| | | ], |
| | | externalConfirmComment: [ |
| | | { required: true, message: '请è¾å
¥æºå¨å确认æè§' } |
| | | ], |
| | | confirmComment: [ |
| | | { required: true, message: '请è¾å
¥æä½å·¥ç¡®è®¤æè§' } |
| | | ], |
| | | faultReason: [ |
| | | { required: true, message: '请è¾å
¥æ
éåå ' } |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | isDisableUseSpare() { |
| | | return this.disableSubmit || this.tableRowRecord.repairStatus !== 'UNDER_REPAIR' || Boolean(this.tableRowRecord.sparePartDescription) |
| | | repairConfirm() { |
| | | return ['WAIT_INTERNAL_CONFIRM', 'UNDER_INTERNAL_REPAIR', 'WAIT_LEADER_CONFIRM', 'WAIT_EXTERNAL_CONFIRM', 'UNDER_EXTERNAL_REPAIR', 'UNDER_OUTSIDE_REPAIR', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | }, |
| | | isDisplayRepairResult() { |
| | | return ['UNDER_REPAIR', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | underInternalRepair() { |
| | | return ['UNDER_INTERNAL_REPAIR', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | }, |
| | | isDisableSubmitRepairResult() { |
| | | leaderConfirm() { |
| | | return ['UNDER_INTERNAL_REPAIR', 'WAIT_LEADER_CONFIRM', 'WAIT_EXTERNAL_CONFIRM', 'UNDER_EXTERNAL_REPAIR', 'UNDER_OUTSIDE_REPAIR', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | }, |
| | | externalConfirm() { |
| | | return ['WAIT_EXTERNAL_CONFIRM', 'UNDER_EXTERNAL_REPAIR', 'UNDER_OUTSIDE_REPAIR', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | }, |
| | | underExternalRepair() { |
| | | return ['UNDER_EXTERNAL_REPAIR', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | }, |
| | | underOutsideRepair() { |
| | | return ['UNDER_OUTSIDE_REPAIR', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | }, |
| | | operatorConfirm() { |
| | | return ['WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.repairStatus) |
| | | } |
| | | }, |
| | |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = that.spinning = true |
| | | const { isUseSpare, faultReason, repairDescription, sparePartDescription, imageFiles, equipmentId } = that.tableRowRecord |
| | | const { confirmComment, externalConfirm, externalConfirmComment, repairConfirm, repairConfirmComment, leaderConfirm, leaderConfirmComment, faultReason, repairDescription, imageFiles, equipmentId } = that.tableRowRecord |
| | | const { dataId, id, procInstId, taskDefKey, variables } = that.selectShenpiData |
| | | |
| | | const flowTaskVo = {} |
| | | flowTaskVo.isUseSpare = isUseSpare |
| | | flowTaskVo.repairConfirm = repairConfirm |
| | | flowTaskVo.repairConfirmComment = repairConfirmComment |
| | | flowTaskVo.leaderConfirm = leaderConfirm |
| | | flowTaskVo.leaderConfirmComment = leaderConfirmComment |
| | | flowTaskVo.externalConfirm = externalConfirm |
| | | flowTaskVo.externalConfirmComment = externalConfirmComment |
| | | flowTaskVo.confirmComment = confirmComment |
| | | |
| | | flowTaskVo.faultReason = faultReason |
| | | flowTaskVo.repairDescription = repairDescription |
| | | flowTaskVo.sparePartDescription = sparePartDescription |
| | | flowTaskVo.imageFilesResult = imageFiles |
| | | flowTaskVo.equipmentId = equipmentId |
| | | flowTaskVo.id = dataId |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-row |
| | | type="flex" |
| | | :gutter="16" |
| | | > |
| | | <a-col |
| | | :md="5" |
| | | :sm="24" |
| | | > |
| | | <tool-ledger-list-left /> |
| | | </a-col> |
| | | <a-col |
| | | :md="24-5" |
| | | :sm="24" |
| | | > |
| | | <tool-ledger-list-right /> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | |
| | | <script> |
| | | import ToolLedgerListLeft from './modules/toolLedger/ToolLedgerListLeft' |
| | | import ToolLedgerListRight from './modules/toolLedger/ToolLedgerListRight' |
| | | export default { |
| | | name: 'ToolLedgerList', |
| | | components: { ToolLedgerListLeft, ToolLedgerListRight }, |
| | | data() { |
| | | return { |
| | | description: 'å·¥å
·å°è´¦ä¿¡æ¯', |
| | | currentOrgCode: '' |
| | | } |
| | | }, |
| | | methods: {} |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row style="width: 100%"> |
| | | <a-col :span="24 / 2"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="åºä½å·" prop="locationCodeId"> |
| | | <a-select |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.locationCodeId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | <a-button type="primary" :style="{ marginBottom: '8px' }" @click="selectReturnList()" v-show="returnShow && !disableSubmit">éæ©ååºå·¥å
·</a-button> |
| | |
| | | message: 'è¯·éæ©ç³è¯·å
¥åºæ¥æ!', |
| | | }, |
| | | ], |
| | | locationCodeId:[ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©åºä½å·!', |
| | | }, |
| | | ] |
| | | }, |
| | | url: { |
| | | addInStorage: '/tms/inboundOrder/addInStorage', |
| | |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | ], |
| | | classifyId:'' |
| | | classifyId:'', |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | modalFormOk() { |
| | |
| | | toolModel: data[i].toolModel, |
| | | applicationType: data[i].applicationTypeName, |
| | | onlyCode:data[i].onlyCode, |
| | | inStorageQuantity:data[i].storageQuantity || data[i].quantity, |
| | | inStorageQuantity:data[i].storageQuantity || data[i].quantity || 1, |
| | | quantity:data[i].quantity, |
| | | accuracyClass:data[i].accuracyClass |
| | | }) |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24 / 2"> |
| | | <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="åºä½å·"> |
| | | <a-select |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-decorator="[ 'locationCodeId', validatorRules.locationCodeId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :span="24 / 2"> |
| | | <a-form-item label="ç³è¯·åå " :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请è¾å
¥ç³è¯·åå " :disabled="disableSubmit" v-decorator="['applicationReason', validatorRules.applicationReason]" /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row style="width: 100%"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="ç³è¯·åå " :labelCol="{ span: 3 }" :wrapperCol="{ span: 21 }" > |
| | | <a-input placeholder="请è¾å
¥ç³è¯·åå " :disabled="disableSubmit" v-decorator="['applicationReason', validatorRules.applicationReason]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | ], |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() {}, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | modalFormOk() { |
| | | }, |
| | |
| | | applicationType: data[i].applicationTypeName, |
| | | onlyCode:data[i].onlyCode, |
| | | quantity:data[i].quantity, |
| | | inStorageQuantity:data[i].storageQuantity || data[i].quantity, |
| | | inStorageQuantity:data[i].storageQuantity || data[i].quantity || 1, |
| | | accuracyClass:data[i].accuracyClass |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | class="card-area" |
| | | > |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | </a-table> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { requestPut } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'InStoreDetailList', |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | url: { |
| | | list: '/tms/inStoreDetail/list', |
| | | }, |
| | | queryParam: {}, |
| | | nodeType: 0, |
| | | dataSource: [], |
| | | disableMixinCreated:true, |
| | | columns: [ |
| | | { |
| | | title: 'å·¥å
·ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'toolCode', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'onlyCode', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·åç§°', |
| | | dataIndex: 'chineseName', |
| | | align: 'center', |
| | | key: 'toolName' |
| | | }, |
| | | { |
| | | title: 'åå·/å¾å·', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'å
¥åºåç¼å·', |
| | | dataIndex: 'inboundNum', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'å
¥åºç±»å', |
| | | dataIndex: 'inStorehouseTypeName', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'å
¥åºæ¹å¼', |
| | | dataIndex: 'operateType', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'ç»æäºº', |
| | | dataIndex: 'handler', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åºä½å·', |
| | | dataIndex: 'locationCode', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'å
¥åºæ°é', |
| | | dataIndex: 'inNumber', |
| | | align: 'center', |
| | | }, |
| | | ], |
| | | para:{}, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('getToolLedgerData', (data) => { |
| | | this.queryParam.toolCode = data.toolCode; |
| | | this.searchQuery(); |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | class="card-area" |
| | | > |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | </a-table> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { requestPut } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'OutStoreDetailList', |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | url: { |
| | | list: '/tms/outStoreDetail/outStoreDetailList', |
| | | }, |
| | | queryParam: {}, |
| | | nodeType: 0, |
| | | dataSource: [], |
| | | disableMixinCreated:true, |
| | | columns: [ |
| | | { |
| | | title: 'å·¥å
·ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'toolCode', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'onlyCode', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·åç§°', |
| | | dataIndex: 'chineseName', |
| | | align: 'center', |
| | | key: 'toolName' |
| | | }, |
| | | { |
| | | title: 'åå·/å¾å·', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åºåºåç¼å·', |
| | | dataIndex: 'outNum', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åºåºç±»å', |
| | | dataIndex: 'outStorehouseTypeName', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åºåºæ¹å¼', |
| | | dataIndex: 'operateType', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'ç»æäºº', |
| | | dataIndex: 'handler', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åºåºæ¶é´', |
| | | dataIndex: 'outboundTime', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åºåºæ°é', |
| | | dataIndex: 'outNumber', |
| | | align: 'center', |
| | | } |
| | | ], |
| | | para:{}, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('getToolLedgerData', (data) => { |
| | | this.queryParam.toolCode = data.toolCode; |
| | | this.searchQuery(); |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | class="card-area" |
| | | > |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | </a-table> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { requestPut } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'ToolLedgerDetailList', |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | url: { |
| | | list: '/tms/toolsStocktakingBound/toolsStocktakingList', |
| | | }, |
| | | queryParam: {}, |
| | | nodeType: 0, |
| | | dataSource: [], |
| | | disableMixinCreated:true, |
| | | columns: [ |
| | | { |
| | | title: 'å·¥å
·ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'toolCode', |
| | | width: '10%', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'onlyCode', |
| | | width: '10%', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·åç§°', |
| | | dataIndex: 'chineseName', |
| | | align: 'center', |
| | | key: 'toolName' |
| | | }, |
| | | { |
| | | title: 'åå·/å¾å·', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'çç¹åå·', |
| | | dataIndex: 'orderCode', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'çç¹åç§°', |
| | | dataIndex: 'stocktakingName', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'çç¹ç±»å', |
| | | dataIndex: 'stocktakingType', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'ç»æäºº', |
| | | dataIndex: 'handler', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'çåºæ¶é´', |
| | | dataIndex: 'stocktakingDate', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'çççäº', |
| | | dataIndex: 'surplusDeficit', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'è´¦é¢æ°é', |
| | | dataIndex: 'bookQuantity', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'å¯ç¨æ°é', |
| | | dataIndex: 'availableQuantity', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'å®çæ°é', |
| | | dataIndex: 'practicalQuantity', |
| | | align: 'center', |
| | | } |
| | | ], |
| | | para:{}, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('getToolLedgerData', (data) => { |
| | | this.queryParam.toolCode = data.toolCode; |
| | | this.searchQuery(); |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | class="card-area" |
| | | > |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | </a-table> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { requestPut } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'ToolLedgerDetailList', |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | url: { |
| | | list: '/tms/toolLedgerDetail/queryToolLedgerDetailList', |
| | | }, |
| | | queryParam: {}, |
| | | nodeType: 0, |
| | | dataSource: [], |
| | | disableMixinCreated:true, |
| | | columns: [ |
| | | { |
| | | title: 'å·¥å
·ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'toolCode', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'onlyCode', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·åç§°', |
| | | dataIndex: 'chineseName', |
| | | align: 'center', |
| | | key: 'toolName' |
| | | }, |
| | | { |
| | | title: 'åå·/å¾å·', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | |
| | | { |
| | | title: 'å·¥å
·åç±»', |
| | | dataIndex: 'applicationType', |
| | | align: 'center', |
| | | } |
| | | ], |
| | | para:{}, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('getToolLedgerData', (data) => { |
| | | this.queryParam.toolCode = data.toolCode; |
| | | this.searchQuery(); |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :loading="cardLoading" |
| | | :bordered="false" |
| | | title="å·¥å
·ä¿¡æ¯" |
| | | style="height: 100%;" |
| | | > |
| | | <a-spin :spinning="loading"> |
| | | <a-alert |
| | | type="info" |
| | | :showIcon="true" |
| | | style="margin-right: 54px;" |
| | | > |
| | | <div slot="message"> |
| | | å½åï¼<span v-if="this.currSelected.title">{{ getCurrSelectedTitle() }}</span> |
| | | <a |
| | | v-if="this.currSelected.title" |
| | | style="margin-left: 10px" |
| | | @click="onClearSelected" |
| | | >åæ¶</a> |
| | | </div> |
| | | </a-alert> |
| | | <!-- <div class="drawer-bootom-button"> |
| | | <a-dropdown |
| | | :trigger="['click']" |
| | | placement="bottomCenter" |
| | | > |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item |
| | | key="1" |
| | | @click="expandAll" |
| | | >å±å¼ææ</a-menu-item> |
| | | <a-menu-item |
| | | key="2" |
| | | @click="closeAll" |
| | | >åå¹¶ææ</a-menu-item> |
| | | <a-menu-item |
| | | key="3" |
| | | @click="refreshTree" |
| | | >å·æ°</a-menu-item> |
| | | </a-menu> |
| | | <a-button> |
| | | <a-icon type="bars" /> |
| | | </a-button> |
| | | </a-dropdown> |
| | | </div> --> |
| | | |
| | | <a-input-search |
| | | @search="handleSearch" |
| | | style="width:100%;margin-top: 10px" |
| | | placeholder="æ£ç´¢å·¥å
·åç±»" |
| | | allowClear |
| | | v-model="searchInput" |
| | | @change="handleChange" |
| | | /> |
| | | |
| | | <!-- showLine --> |
| | | <a-tree |
| | | :checkStrictly="checkStrictly" |
| | | |
| | | :selectedKeys="selectedKeys" |
| | | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" |
| | | :treeData="treeDataSource" |
| | | |
| | | :defaultExpandAll="true" |
| | | @select="onSelect" |
| | | @expand="onExpand" |
| | | > |
| | | <template |
| | | slot="title" |
| | | slot-scope="{title, type, rfield1}" |
| | | > |
| | | <Tooltip |
| | | placement="top" |
| | | title="å·¥å
·åç±»" |
| | | > |
| | | <i |
| | | v-if="type == 0" |
| | | class="action-jeecg actioncompany2" |
| | | style="font-size: 18px;" |
| | | /> |
| | | </Tooltip> |
| | | |
| | | <span v-if="title.indexOf(searchValue) > -1"> |
| | | {{ title.substr(0, title.indexOf(searchValue)) }} |
| | | <span class="replaceSearch">{{ searchValue }}</span> |
| | | {{ title.substr(title.indexOf(searchValue) + searchValue.length) }} |
| | | </span> |
| | | <span v-else>{{ title }}</span> |
| | | |
| | | </template> |
| | | </a-tree> |
| | | </a-spin> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | export default { |
| | | name: 'ToolLedgerListLeft', |
| | | components: { |
| | | Tooltip, |
| | | }, |
| | | props: ['value'], |
| | | data() { |
| | | return { |
| | | searchInput: '', |
| | | cardLoading: false, |
| | | loading: false, |
| | | treeDataSource: [], |
| | | selectedKeys: [], |
| | | expandedKeys: [], |
| | | url: { |
| | | factoryTreeList: '/tms/toolsClassify/loadTree', |
| | | }, |
| | | searchValue: '', |
| | | dataList: [], |
| | | autoExpandParent: true, |
| | | checkStrictly: true, |
| | | allTreeKeys: [], |
| | | currSelected: {}, |
| | | hiding: false, |
| | | } |
| | | }, |
| | | created() { |
| | | this.queryTreeData(); |
| | | this.closeAll(); |
| | | }, |
| | | methods: { |
| | | getCurrSelectedTitle() { |
| | | return !this.currSelected.title ? '' : this.currSelected.title; |
| | | }, |
| | | onClearSelected() { |
| | | this.hiding = true; |
| | | this.currSelected = {}; |
| | | this.selectedKeys = []; |
| | | }, |
| | | onSelect(selectedKeys, e) { |
| | | this.hiding = false; |
| | | let record = e.node.dataRef; |
| | | this.currSelected = Object.assign({}, record); |
| | | this.selectedKeys = [record.key]; |
| | | }, |
| | | onExpand(expandedKeys) { |
| | | this.expandedKeys = expandedKeys; |
| | | this.autoExpandParent = false; |
| | | }, |
| | | queryTreeData() { |
| | | this.loading = true; |
| | | this.cardLoading = true; |
| | | getAction(this.url.factoryTreeList).then((res) => { |
| | | if (res.success) { |
| | | this.dataList = []; |
| | | this.allTreeKeys = []; |
| | | this.treeDataSource = res.result; |
| | | this.generateList(res.result); |
| | | } else { |
| | | this.$message.warn(res.message); |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false; |
| | | this.cardLoading = false; |
| | | }) |
| | | }, |
| | | |
| | | handleChange() { |
| | | let search = this.searchInput; |
| | | let expandedKeys = this.dataList |
| | | .map(item => { |
| | | if (item.title.indexOf(search) > -1) { |
| | | return this.getParentKey(item.key, this.treeDataSource); |
| | | } |
| | | return null; |
| | | }) |
| | | .filter((item, i, self) => item && self.indexOf(item) === i); |
| | | Object.assign(this, { |
| | | expandedKeys, |
| | | searchValue: search, |
| | | autoExpandParent: true, |
| | | }); |
| | | }, |
| | | handleSearch(value) { |
| | | let search = value; |
| | | let expandedKeys = this.dataList |
| | | .map(item => { |
| | | if (item.title.indexOf(search) > -1) { |
| | | return this.getParentKey(item.key, this.treeDataSource); |
| | | } |
| | | return null; |
| | | }) |
| | | .filter((item, i, self) => item && self.indexOf(item) === i); |
| | | Object.assign(this, { |
| | | expandedKeys, |
| | | searchValue: search, |
| | | autoExpandParent: true, |
| | | }); |
| | | }, |
| | | getParentKey(key, tree) { |
| | | let parentKey; |
| | | for (let i = 0; i < tree.length; i++) { |
| | | const node = tree[i]; |
| | | if (node.children) { |
| | | if (node.children.some(item => item.key === key)) { |
| | | parentKey = node.key; |
| | | } else if ( |
| | | this.getParentKey(key, node.children)) { |
| | | parentKey = this.getParentKey(key, node.children); |
| | | } |
| | | } |
| | | } |
| | | return parentKey; |
| | | }, |
| | | |
| | | generateList(data) { |
| | | for (let i = 0; i < data.length; i++) { |
| | | const node = data[i]; |
| | | const key = node.key; |
| | | const title = node.title; |
| | | this.dataList.push({ key, title: title }); |
| | | this.allTreeKeys.push(key); |
| | | if (node.children) { |
| | | this.generateList(node.children); |
| | | } |
| | | } |
| | | }, |
| | | expandAll() { |
| | | this.expandedKeys = this.allTreeKeys; |
| | | }, |
| | | closeAll() { |
| | | this.expandedKeys = []; |
| | | }, |
| | | refreshTree() { |
| | | this.queryTreeData(); |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('queryTreeData', this.queryTreeData); |
| | | }, |
| | | //çå¬ |
| | | watch: { |
| | | currSelected(val) {//çå¬currSelected ååï¼å°åååçæ°å¼ä¼ éç» getCurrSelected äºä»¶ |
| | | this.$bus.$emit('getCurrSelected', val) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .replaceSearch { |
| | | color: #40a9ff; |
| | | font-weight: bold; |
| | | background-color: rgb(204, 204, 204); |
| | | } |
| | | /*éèæ çé»è®¤icon*/ |
| | | .ant-tree-switcher-noop { |
| | | display: none !important; |
| | | } |
| | | /*éèæ çé»è®¤ç«çº¿*/ |
| | | .ant-tree.ant-tree-show-line li:not(:last-child):before { |
| | | border-left: 0px; |
| | | } |
| | | |
| | | .ant-card-body .table-operator { |
| | | margin: 15px; |
| | | } |
| | | |
| | | .anty-form-btn { |
| | | width: 100%; |
| | | text-align: center; |
| | | } |
| | | |
| | | .anty-form-btn button { |
| | | margin: 0 5px; |
| | | } |
| | | |
| | | .anty-node-layout .ant-layout-header { |
| | | padding-right: 0; |
| | | } |
| | | |
| | | .header { |
| | | padding: 0 8px; |
| | | } |
| | | |
| | | .header button { |
| | | margin: 0 3px; |
| | | } |
| | | |
| | | .ant-modal-cust-warp { |
| | | height: 100%; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-body { |
| | | height: calc(100% - 110px) !important; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-content { |
| | | height: 90% !important; |
| | | overflow-y: hidden; |
| | | } |
| | | |
| | | #app .desktop { |
| | | height: auto !important; |
| | | } |
| | | |
| | | /** Buttonæé®é´è· */ |
| | | .ant-btn { |
| | | margin-left: 3px; |
| | | } |
| | | .ant-alert { |
| | | padding: 5px 15px 5px 37px; |
| | | } |
| | | .drawer-bootom-button { |
| | | position: absolute; |
| | | top: 1px; |
| | | /* padding: 10px 16px; */ |
| | | text-align: left; |
| | | right: 0; |
| | | background: #fff; |
| | | border-radius: 0 0 2px 2px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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 |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="å·¥å
·ç¼å·" |
| | | :labelCol="{span: 5}" |
| | | :wrapperCol="{span: 18, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥å·¥å
·ç¼å·æ£ç´¢" |
| | | v-model="queryParam.toolCode" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="åå·/å¾å·" |
| | | :labelCol="{span: 5}" |
| | | :wrapperCol="{span: 18, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥åå·/å¾å·æ£ç´¢" |
| | | v-model="queryParam.toolModel" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="6" :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 --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}" |
| | | class="j-table-force-nowrap" |
| | | :customRow="customRow" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" 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> |
| | | </a-table> |
| | | </div> |
| | | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane key="1"> |
| | | <span slot="tab"> |
| | | <a-badge>åæ° </a-badge> |
| | | </span> |
| | | <para-hole-tools-list ref="paraHoleToolsList"></para-hole-tools-list> |
| | | <para-threading-tool-list ref="paraThreadingToolList"></para-threading-tool-list> |
| | | <para-mill-tool-list ref="paraMillToolList"></para-mill-tool-list> |
| | | <para-turning-tools-list ref="paraTurningToolsList"></para-turning-tools-list> |
| | | <para-blade-list ref="paraBladeList"></para-blade-list> |
| | | <para-common-tool-list ref="paraCommonToolList"></para-common-tool-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="2" |
| | | forceRender |
| | | > |
| | | <span slot="tab"> |
| | | <a-badge>管çåæ° </a-badge> |
| | | </span> |
| | | <tools-config-property-list ref="toolsConfigPropertyList"></tools-config-property-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="3" |
| | | forceRender |
| | | > |
| | | <span slot="tab"> |
| | | <a-badge>æå· </a-badge> |
| | | </span> |
| | | <tool-ledger-detail-list ref="toolLedgerDetailList"></tool-ledger-detail-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="4" |
| | | forceRender |
| | | > |
| | | <span slot="tab"> |
| | | <a-badge>å
¥åºä¿¡æ¯ </a-badge> |
| | | </span> |
| | | <in-store-detail-list ref="inStoreDetailList"></in-store-detail-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="5" |
| | | forceRender |
| | | > |
| | | <span slot="tab"> |
| | | <a-badge>åºåºä¿¡æ¯ </a-badge> |
| | | </span> |
| | | <out-store-detail-list ref="outStoreDetailList"></out-store-detail-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="6" |
| | | forceRender |
| | | > |
| | | <span slot="tab"> |
| | | <a-badge>åç£¨ä¿¡æ¯ </a-badge> |
| | | </span> |
| | | <tool-sharpen-list ref="toolSharpenList"></tool-sharpen-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="7" |
| | | forceRender |
| | | > |
| | | <span slot="tab"> |
| | | <a-badge>æ¥æä¿¡æ¯ </a-badge> |
| | | </span> |
| | | <tool-loss-list ref="toolLossList"></tool-loss-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="8" |
| | | forceRender |
| | | > |
| | | <span slot="tab"> |
| | | <a-badge>çç¹ä¿¡æ¯ </a-badge> |
| | | </span> |
| | | <stocktaking-list ref="stocktakingList"></stocktaking-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import { getAction, postAction, deleteAction, requestPut } from '@api/manage' |
| | | import ParaHoleToolsList from '../baseTools/ParaHoleToolsList' |
| | | import ToolsConfigPropertyList from '../baseTools/ToolsConfigPropertyList' |
| | | import ParaMillToolList from '../baseTools/ParaMillToolList' |
| | | import ParaThreadingToolList from '../baseTools/ParaThreadingToolList' |
| | | import ParaTurningToolsList from '../baseTools/ParaTurningToolsList' |
| | | import ParaCommonToolList from '../baseTools/ParaCommonToolList' |
| | | import ParaBladeList from '../baseTools/ParaBladeList' |
| | | import ToolLedgerDetailList from './ToolLedgerDetailList' |
| | | import ToolLossList from './ToolLossList' |
| | | import ToolSharpenList from './ToolSharpenList' |
| | | import StocktakingList from './StocktakingList' |
| | | import InStoreDetailList from './InStoreDetailList' |
| | | import OutStoreDetailList from './OutStoreDetailList' |
| | | |
| | | export default { |
| | | name: 'ToolLedgerListRight', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | Tooltip, |
| | | ParaHoleToolsList, |
| | | ToolsConfigPropertyList, |
| | | ParaMillToolList, |
| | | ParaThreadingToolList, |
| | | ParaTurningToolsList, |
| | | ParaCommonToolList, |
| | | ParaBladeList, |
| | | ToolLedgerDetailList, |
| | | ToolLossList, |
| | | ToolSharpenList, |
| | | StocktakingList, |
| | | InStoreDetailList, |
| | | OutStoreDetailList |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'å·¥å
·å°è´¦ä¿¡æ¯ç®¡ç页é¢', |
| | | /* å页忰 */ |
| | | ipagination:{ |
| | | current: 1, |
| | | pageSize: 10, |
| | | pageSizeOptions: ['10', '20', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'å·¥å
·ç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'toolCode' |
| | | }, |
| | | { |
| | | title:'åºå·', |
| | | align:"center", |
| | | dataIndex: 'signCode' |
| | | }, |
| | | { |
| | | title:'䏿åç§°', |
| | | align:"center", |
| | | dataIndex: 'chineseName' |
| | | }, |
| | | // { |
| | | // title:'夿åç§°', |
| | | // align:"center", |
| | | // dataIndex: 'foreignLanguageName' |
| | | // }, |
| | | // { |
| | | // title:'æ æ³¨çº§å«', |
| | | // align:"center", |
| | | // dataIndex: 'standardLevel' |
| | | // }, |
| | | // { |
| | | // title:'æ åå·', |
| | | // align:"center", |
| | | // dataIndex: 'standardCode' |
| | | // }, |
| | | { |
| | | title:'åå·/å¾å·', |
| | | align:"center", |
| | | dataIndex: 'toolModel' |
| | | }, |
| | | { |
| | | title:'å·¥å
፱Ȍ', |
| | | align:"center", |
| | | dataIndex: 'applicationType' |
| | | }, |
| | | { |
| | | title:'管çç级', |
| | | align:"center", |
| | | dataIndex: 'accuracyClass' |
| | | }, |
| | | { |
| | | title:'åå¨ä½ç½®', |
| | | align:"center", |
| | | dataIndex: 'storageLocation' |
| | | }, |
| | | { |
| | | title:'åºä½å·', |
| | | align:"center", |
| | | dataIndex: 'positionCode' |
| | | }, |
| | | { |
| | | title:'æä½åºå', |
| | | align:"center", |
| | | dataIndex: 'lowerInventory' |
| | | }, |
| | | { |
| | | title:'æé«åºå', |
| | | align:"center", |
| | | dataIndex: 'highestInventory' |
| | | }, |
| | | { |
| | | title:'æ»åºå', |
| | | align:"center", |
| | | dataIndex: 'totalCount' |
| | | }, |
| | | { |
| | | title:'å¯ç¨åºå', |
| | | align:"center", |
| | | dataIndex: 'availableCount' |
| | | }, |
| | | { |
| | | title:'æ¥æ', |
| | | align:"center", |
| | | dataIndex: 'lossCount' |
| | | }, |
| | | { |
| | | title:'å¨å', |
| | | align:"center", |
| | | dataIndex: 'lendCount' |
| | | }, |
| | | { |
| | | title:'å¨ç£¨', |
| | | align:"center", |
| | | dataIndex: 'sharpeningCount' |
| | | }, |
| | | { |
| | | title:'卿£', |
| | | align:"center", |
| | | dataIndex: 'detectionCount' |
| | | }, |
| | | { |
| | | title:'å¨ä¿®', |
| | | align:"center", |
| | | dataIndex: 'repairCount' |
| | | } |
| | | // { |
| | | // title:'夿³¨', |
| | | // align:"center", |
| | | // dataIndex: 'remark' |
| | | // } |
| | | // { |
| | | // title:'å建人', |
| | | // align:"center", |
| | | // dataIndex: 'createBy' |
| | | // }, |
| | | // { |
| | | // title:'å建æ¶é´', |
| | | // align:"center", |
| | | // dataIndex: 'createTime', |
| | | // customRender:function (text) { |
| | | // return !text?"":(text.length>10?text.substr(0,10):text) |
| | | // } |
| | | // } |
| | | ], |
| | | url: { |
| | | list: "/tms/baseTools/list", |
| | | paraHolesToolsList:"/tms/baseTools/paraHolesToolsList", |
| | | paraCommonToolList:"/tms/baseTools/paraCommonToolList", |
| | | paraThreadingToolList:"/tms/baseTools/paraThreadingToolList", |
| | | paraMillToolList:"/tms/baseTools/paraMillToolList", |
| | | paraTurningToolsList:"/tms/baseTools/paraTurningToolsList", |
| | | paraBladeList:"/tms/baseTools/paraBladeList", |
| | | delete: "/tms/baseTools/delete", |
| | | deleteBatch: "/tms/baseTools/deleteBatch", |
| | | edit: '/tms/baseTools/edit', |
| | | exportXlsUrl: "/tms/baseTools/exportXls", |
| | | importExcelUrl: "tms/baseTools/importExcel", |
| | | queryParaByToolCode:"/tms/baseTools/queryByToolCode", |
| | | queryByToolCode:"/tms/toolsConfigProperty/queryByToolCode", |
| | | toolLedgerList:"/tms/toolLedger/toolLedgerList", |
| | | toolLedgerDetailList:"/tms/toolLedgerDetail/list" |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | nodeSelected: {}, // å½åéä¸çèç¹æ°æ® |
| | | paraTypeFlag:'', |
| | | disableMixinCreated:true |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('getCurrSelected', (data) => { |
| | | //getCurrSelected äºä»¶ æ¥æ¶ç»ä»¶ä¼ éçåæ° |
| | | this.nodeType = (data.type == undefined ? 0 : data.type); |
| | | this.paraTypeFlag = (data.entity == undefined ? 0 : data.entity.paraTypeFlag) |
| | | this.nodeSelected = data; |
| | | this.loadData() |
| | | this.clearPara() |
| | | }) |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | |
| | | modalFormOk() { |
| | | this.loadData(); // å·æ°è¡¨æ ¼æ°æ® |
| | | this.$bus.$emit('queryTreeData') //å·æ°å·¦ä¾§æ |
| | | }, |
| | | |
| | | onSelectChange(selectedRowKeys,selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows |
| | | //éè¿idæ¥è¯¢ç®¡çåæ°ååæ°æ°æ® |
| | | getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.paraTypeFlag}).then((res) => { |
| | | if (res.success) { |
| | | if(this.paraTypeFlag === "1"){ |
| | | this.$refs.paraCommonToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "2"){ |
| | | this.$refs.paraHoleToolsList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "3"){ |
| | | this.$refs.paraThreadingToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "4"){ |
| | | this.$refs.paraMillToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "5"){ |
| | | this.$refs.paraTurningToolsList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "6"){ |
| | | this.$refs.paraBladeList.getPara(res.result); |
| | | } |
| | | } else { |
| | | this.$message.warning(res.message); |
| | | } |
| | | }) |
| | | getAction(this.url.queryByToolCode, { toolCode: this.selectedRowKeys[0]}).then((res) => { |
| | | if (res.success) { |
| | | this.$refs.toolsConfigPropertyList.getPara(res.result); |
| | | } else { |
| | | this.$message.warning(res.message); |
| | | } |
| | | }) |
| | | this.$bus.$emit('getToolLedgerData', this.selectionRows[0]) |
| | | }, |
| | | //ç¦ç¨ç¶ææ ·å¼ |
| | | tableRowClass(record, index) { |
| | | if (record.status != "1") { |
| | | return "frozenRowClass"; |
| | | } |
| | | return ""; |
| | | }, |
| | | loadData() { |
| | | let params = this.getQueryParams(); |
| | | if (this.nodeSelected && this.nodeSelected.key !== '-1') { |
| | | // å è½½éä¸èç¹çåç±» |
| | | params.classifyId = this.nodeSelected.key; |
| | | this.loading = true; |
| | | let httpUrl = this.url.toolLedgerList |
| | | getAction(httpUrl, params) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records; // æ´æ°è¡¨æ ¼æ°æ® |
| | | this.ipagination.total = res.result.total |
| | | } else { |
| | | this.$message.warning("è¯·éæ©å¶åèç¹è¿è¡æ¥è¯¢"); |
| | | this.ipagination.total = 0 |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.loading = false; |
| | | }); |
| | | } else { |
| | | this.$message.warning("è¯·éæ©å¶åèç¹è¿è¡æ¥è¯¢"); |
| | | } |
| | | }, |
| | | onClearSelected() { |
| | | this.selectedKeys = []; |
| | | this.nodeSelected = {}; // æ¸
空éä¸çèç¹ |
| | | this.dataSource = []; // æ¸
ç©ºè¡¨æ ¼æ°æ® |
| | | }, |
| | | //éç½® |
| | | searchReset() { |
| | | this.queryParam = {} |
| | | this.loadData(1); |
| | | this.clearPara() |
| | | }, |
| | | //æ¸
空éä¸ååæ° |
| | | clearPara(){ |
| | | this.selectedRowKeys = [] |
| | | this.$refs.paraCommonToolList.visable = false |
| | | this.$refs.paraHoleToolsList.visable = false |
| | | this.$refs.paraThreadingToolList.visable = false |
| | | this.$refs.paraMillToolList.visable = false |
| | | this.$refs.paraTurningToolsList.visable = false |
| | | this.$refs.paraBladeList.visable = false |
| | | this.$refs.toolsConfigPropertyList.visable = false |
| | | }, |
| | | customRow(record) { |
| | | return { |
| | | on: { |
| | | click: () => { |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | .enable { |
| | | color: green; |
| | | } |
| | | .disable { |
| | | color: red; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | class="card-area" |
| | | > |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | </a-table> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { requestPut } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'ToolLossList', |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | url: { |
| | | list: '/tms/toolsLossBound/toolLossDetailList', |
| | | }, |
| | | queryParam: {}, |
| | | nodeType: 0, |
| | | dataSource: [], |
| | | disableMixinCreated:true, |
| | | columns: [ |
| | | { |
| | | title: 'å·¥å
·ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'toolCode', |
| | | width: '10%', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'onlyCode', |
| | | width: '10%', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·åç§°', |
| | | dataIndex: 'chineseName', |
| | | align: 'center', |
| | | key: 'toolName' |
| | | }, |
| | | { |
| | | title: 'åå·/å¾å·', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'æ¥æåå·', |
| | | dataIndex: 'orderCode', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'ç»æäºº', |
| | | dataIndex: 'handler', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'æ¥æåå ', |
| | | dataIndex: 'lossReason', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'æ¥ææ¶é´', |
| | | dataIndex: 'lossTime', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'æ¥ææ°é', |
| | | dataIndex: 'lossNumber', |
| | | align: 'center', |
| | | } |
| | | ], |
| | | para:{}, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('getToolLedgerData', (data) => { |
| | | this.queryParam.toolCode = data.toolCode; |
| | | this.searchQuery(); |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | class="card-area" |
| | | > |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | > |
| | | </a-table> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { requestPut } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'ToolSharpenList', |
| | | mixins: [JeecgListMixin], |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | url: { |
| | | list: '/tms/toolSharpening/toolSharpeningList', |
| | | }, |
| | | queryParam: {}, |
| | | nodeType: 0, |
| | | dataSource: [], |
| | | disableMixinCreated:true, |
| | | columns: [ |
| | | { |
| | | title: 'å·¥å
·ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'toolCode', |
| | | width: '10%', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'onlyCode', |
| | | width: '10%', |
| | | }, |
| | | { |
| | | title: 'å·¥å
·åç§°', |
| | | dataIndex: 'chineseName', |
| | | align: 'center', |
| | | key: 'toolName' |
| | | }, |
| | | { |
| | | title: 'åå·/å¾å·', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '责任人', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'å磨æ¶é´', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åç£¨ç»æå建议', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: 'åç£¨ç¶æ', |
| | | dataIndex: 'toolModel', |
| | | align: 'center', |
| | | }, |
| | | ], |
| | | para:{}, |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('getToolLedgerData', (data) => { |
| | | this.queryParam.toolCode = data.toolCode; |
| | | this.searchQuery(); |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | this.expandedKeys = this.allTreeKeys; |
| | | }, |
| | | closeAll() { |
| | | this.expandedKeys = this.allSiteIds; |
| | | this.expandedKeys = []; |
| | | }, |
| | | refreshTree() { |
| | | this.queryTreeData(); |