Merge branch 'radio-frequency-cable' of http://114.132.189.42:9002/r/lims-ruoyi-before into radio-frequency-cable
| | |
| | | }); |
| | | } |
| | | |
| | | //è·å对象é¶ä»¶å·éä»¶å表 |
| | | export function partFileList(query) { |
| | | return request({ |
| | | url: '/workShop/partFileList', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // å 餿件 |
| | | export function delFile(query) { |
| | | return request({ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog title="æ¥çéä»¶" :visible.sync="fileDialogVisible" width="800px" top="5vh" fullscreen append-to-body |
| | | @close="handleClose"> |
| | | <filePreview v-if="lookDialogVisible" :fileUrl="currentInfo.fileMinioUrl" :currentFile="currentInfo" |
| | | style="max-height: 90vh;overflow-y: auto;" /> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import partFileList from "@/api/structural/workshop.js" |
| | | import filePreview from "@/components/Preview/filePreview.vue"; |
| | | export default { |
| | | components: { |
| | | limsTable, |
| | | filePreview, |
| | | }, |
| | | props: { |
| | | visible: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | partNo: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | computed: {}, |
| | | data() { |
| | | return { |
| | | columnFile: [ |
| | | { |
| | | dataType: 'tag', |
| | | label: 'ç±»å', |
| | | prop: 'type', |
| | | formatData: (params) => { |
| | | if (params == 1) { |
| | | return 'å¾ç' |
| | | } else if (params == 2) { |
| | | return 'æä»¶' |
| | | } else { |
| | | return '' |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 1) { |
| | | return 'success' |
| | | } else if (params == 2) { |
| | | return 'warning' |
| | | } else { |
| | | return '' |
| | | } |
| | | } |
| | | }, |
| | | { label: 'éä»¶åç§°', prop: 'fileName' }, |
| | | { label: 'ä¸ä¼ 人', prop: 'name' }, |
| | | { label: 'ä¸ä¼ æ¶é´', prop: 'createTime' }, |
| | | { |
| | | dataType: 'action', |
| | | fixed: 'right', |
| | | label: 'æä½', |
| | | width: '170px', |
| | | operation: [ |
| | | { |
| | | name: 'ä¸è½½', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.handleDown(row); |
| | | } |
| | | }, |
| | | { |
| | | name: 'é¢è§', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | console.log('é¢è§æä»¶ä¿¡æ¯:', row) |
| | | this.currentInfo = row |
| | | this.lookDialogVisible = true |
| | | } |
| | | }, |
| | | ] |
| | | } |
| | | ], |
| | | tableDataFile: [], |
| | | tableLoadingFile: false, |
| | | lookDialogVisible: false, |
| | | currentInfo: {}, |
| | | fileDialogVisible: false, |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getFileList() |
| | | }, |
| | | methods: { |
| | | // æ¥è¯¢éä»¶æ¥çå表åè° |
| | | getFileList() { |
| | | this.tableLoadingFile = true |
| | | partFileList({ partNo: this.partNo }).then(res => { |
| | | this.tableLoadingFile = false |
| | | if (res.code === 200) { |
| | | this.tableDataFile = res.data |
| | | console.log('æä»¶åè¡¨æ°æ®:', this.tableDataFile) |
| | | } |
| | | }).catch(err => { |
| | | this.tableLoadingFile = false |
| | | }) |
| | | }, |
| | | |
| | | // ä¸è½½éä»¶çæä»¶ |
| | | handleDown(row) { |
| | | this.$download.saveAs(row.fileUrl, row.fileName); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped></style> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="éä»¶æ¥ç:" style="margin-bottom: 6px;margin-top: 6px"> |
| | | <el-button type="text" @click="handleFileDialog"> |
| | | <i class="el-icon-document"></i> |
| | | éä»¶æ¥ç |
| | | </el-button> |
| | | <el-dialog :visible.sync="fileDialogVisible" title="éä»¶æ¥ç" width="80%"> |
| | | <fileList :currentNo="partNo" v-if="fileDialogVisible" /> |
| | | </el-dialog> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div style="margin-bottom: 6px;margin-top: 6px"> |
| | |
| | | selectStandardProductList, |
| | | selectStandardTreeListByPartNo |
| | | } from "@/api/business/rawMaterialOrder"; |
| | | import fileList from "./commom/fileList.vue" |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | |
| | | export default { |
| | | name: "CustomsInspection", |
| | | dicts: ['check_type', 'urgency_level'], |
| | | components: {}, |
| | | components: { limsTable,fileList }, |
| | | props: { |
| | | }, |
| | | data() { |
| | | return { |
| | | customsInspection: {}, |
| | | fileDialogVisible: false, |
| | | orderType: '', |
| | | active: 0, |
| | | currentId: 0, |
| | |
| | | // this.getInfo() // è·åæ°æ® |
| | | // }, |
| | | methods: { |
| | | handleFileDialog() { |
| | | this.fileDialogVisible = true |
| | | this.currentNo = addObj.partNo || customsInspection.partNo; |
| | | }, |
| | | save1() { |
| | | if (this.bsm1DiaList.length > 0) { |
| | | this.bsm1DiaList.forEach(item => { |