new file: src/api/equipment/mould.js
modified: src/views/equipment/mould/index.vue
new file: src/views/equipment/mould/mould-from.vue
modified: src/views/quality/Packaging_ledger/index.vue
modified: vue.config.js
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios' |
| | | |
| | | export function page(query) { |
| | | return request({ |
| | | url:'/mes/mould/page', |
| | | method:'get', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | :options="options" |
| | | ref="processconfiguration" |
| | | > |
| | | <template #toolbar> |
| | | <el-button type="primary" |
| | | @click="">æ°å¢</el-button> |
| | | <!-- <el-dropdown style="margin-left: 20px;" @command="handleCommand"> |
| | | <el-button > |
| | | ç¶æåæ´<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :key="index" |
| | | :command="item.label" |
| | | v-for="(item,index) in taskTypeArr" |
| | | >{{ item.label }}</el-dropdown-item |
| | | > |
| | | </el-dropdown-menu> |
| | | </el-dropdown> --> |
| | | </template> |
| | | <template #toolbar></template> |
| | | </ttable> |
| | | </basic-container> |
| | | <table-form |
| | | v-if="true" |
| | | ></table-form> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import { fetchList, } from '@/api/quality/finishedDelivery' |
| | | |
| | | import { page, } from '@/api/equipment/mould' |
| | | import TableForm from './mould-from.vue' |
| | | export default { |
| | | data(){ |
| | | return { |
| | | ajaxFun: fetchList, |
| | | ajaxFun: page, |
| | | prelang: 'operation', |
| | | dataListLoading: false, |
| | | addOrUpdateVisible: false, |
| | | options: { |
| | | height: 300, // é»è®¤é«åº¦-为äºè¡¨å¤´åºå® |
| | | stripe: true, // æ¯å¦ä¸ºæé©¬çº¹ table |
| | |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | |
| | | searchInfoType: 'text', |
| | | }, |
| | | ], |
| | | toolbar: [], |
| | | toolbar: [{ |
| | | text: 'æ°å¢', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | }], |
| | | operator: [{ |
| | | text: 'å é¤', |
| | | type: 'text', |
| | |
| | | // ...mapGetters(['permissions']) |
| | | // }, |
| | | components: { |
| | | ttable |
| | | ttable, |
| | | TableForm |
| | | }, |
| | | medthods: { |
| | | formatDateTime(row, column, cellValue) { |
| | | return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : '' |
| | | }, |
| | | methods: { |
| | | addOrUpdateHandle() { |
| | | this.addOrUpdateVisible = true |
| | | console.log(this.addOrUpdateVisible,"--=--"); |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog |
| | | :title="!dataForm.id ? 'æ°å¢' : 'ä¿®æ¹'" |
| | | :close-on-click-modal="false" |
| | | :visible.sync="visible" |
| | | > |
| | | <el-form |
| | | :model="dataForm" |
| | | :rules="dataRule" |
| | | ref="dataForm" |
| | | label-width="80px" |
| | | class="l-mes" |
| | | > |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="ç¼å·" prop="number"> |
| | | <el-input v-model="dataForm.number" placeholder="ç¼å·"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="åç§°" prop="name"> |
| | | <el-input v-model="dataForm.name" placeholder="åç§°"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å·¥å" prop="factoryId"> |
| | | <el-select |
| | | v-model="dataForm.factoryId" |
| | | filterable |
| | | placeholder="è¯·éæ©" |
| | | style="width:100%" |
| | | > |
| | | <el-option |
| | | v-for="(item, index) in this.factoryOptions" |
| | | :label="item.factoryName" |
| | | :value="item.id" |
| | | :key="index" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æå±è½¦é´" prop="workshop"> |
| | | <el-select |
| | | v-model="dataForm.workshop" |
| | | filterable |
| | | placeholder="è¯·éæ©" |
| | | style="width:100%" |
| | | > |
| | | <el-option |
| | | v-for="item in workshopList" |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="ä½ç½®" prop="position"> |
| | | <el-input v-model="dataForm.position" placeholder="ä½ç½®"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="é®ç®±" prop="email"> |
| | | <el-input v-model="dataForm.email" placeholder="é®ç®±"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="ä¾åºå" prop="supplier"> |
| | | <el-input |
| | | v-model="dataForm.supplier" |
| | | placeholder="ä¾åºå" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å¶é å" prop="manufacturer"> |
| | | <el-input |
| | | v-model="dataForm.manufacturer" |
| | | placeholder="å¶é å" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="åå·è§æ ¼" prop="typeSpecification"> |
| | | <el-input |
| | | v-model="dataForm.typeSpecification" |
| | | placeholder="åå·è§æ ¼" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å¶é æ¥æ" prop="manufactureDate"> |
| | | <el-date-picker |
| | | style="width: 100%" |
| | | v-model="dataForm.manufactureDate" |
| | | type="date" |
| | | placeholder="éæ©æ¥æ" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å®è£
æ¥æ" prop="installDate"> |
| | | <el-date-picker |
| | | style="width: 100%" |
| | | v-model="dataForm.installDate" |
| | | type="date" |
| | | placeholder="éæ©æ¥æ" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="ç¶æ" prop="state"> |
| | | <el-select |
| | | v-model="dataForm.state" |
| | | placeholder="ç¶æ" |
| | | filterable |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="item in equipmentState" |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.label" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="è®¾å¤æè¿°" prop="desc"> |
| | | <el-input |
| | | v-model="dataForm.description" |
| | | placeholder="è®¾å¤æè¿°" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visible = false">åæ¶</el-button> |
| | | <el-button |
| | | type="primary" |
| | | :disabled="isSubmit" |
| | | v-thinclick="`dataFormSubmit`" |
| | | >ç¡®å®</el-button |
| | | > |
| | | </span> |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import { getObj, addObj, putObj } from '@/api/equipment/equipment' |
| | | import { loadFactoryList } from '@/api/basic/factory' |
| | | import { remote } from '../../../api/admin/dict' |
| | | export default { |
| | | data() { |
| | | return { |
| | | // options: regionData, |
| | | visible: false, |
| | | dataForm: { |
| | | id: 0, |
| | | number: '', |
| | | name: '', |
| | | factoryId: '', |
| | | workshop: '', |
| | | position: '', |
| | | email: '', |
| | | supplier: '', |
| | | manufacturer: '', |
| | | typeSpecification: '', |
| | | manufactureDate: '', |
| | | installDate: '', |
| | | state: '', |
| | | description: '', |
| | | value1: '' |
| | | }, |
| | | dataRule: { |
| | | number: [{ required: true, message: 'ç¼å·ä¸è½ä¸ºç©º', trigger: 'blur' }], |
| | | name: [{ required: true, message: 'åç§°ä¸è½ä¸ºç©º', trigger: 'blur' }] |
| | | }, |
| | | factoryOptions: [], |
| | | equipmentState: [], |
| | | isSubmit: false, |
| | | workshopList: [] |
| | | } |
| | | }, |
| | | methods: { |
| | | }, |
| | | |
| | | created() { |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | <div style="width:100%;height: 400px;overflow-y: auto;"> |
| | | <div id="qrCard" class="dia_body"> |
| | | <el-card class="box-card" v-for="(item, i) in qrData" :key="i" style="margin-bottom: 10px;"> |
| | | <el-row> |
| | | <div style="padding: 5px;"> |
| | | <table border="2px" class="x1111116"> |
| | | <tr class="x1111113"> |
| | | <td class="x1111114" colspan=6> |
| | | <div style="height: 75px;display: flex;margin-top: 2px;"> |
| | | <div style="margin-top: 5px;"> |
| | | <img width="150" height="48" src="../../../../public/img/image001.jpg" alt="IMG_256"> |
| | | </div> |
| | | <div style="margin-left: 45px;margin-top: 15px ;"> |
| | | <span lang="EN-US" class="x1111111">ä¸å¤©æµ·æ´ç§ææéå
¬å¸</span> |
| | | </div> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr class="x1111117"> |
| | | <td class="x1111114"> |
| | | <span style="font-family: å®ä½;text-align: center;">åº å·:</span> |
| | | </td> |
| | | <td class="x1111114" colspan=4 >{{ i + 1 }} </td> |
| | | <td class="x1111114" rowspan=3 > |
| | | <div style="padding: 1px;"> |
| | | <vueQr :text=str+item.packageBoxId :size="110" :margin="1"></vueQr> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr class="x1111117"> |
| | | <td class="x1111114"> |
| | | <span style="font-family: å®ä½;text-align: center;">å
è£
ç¼å·ï¼</span> |
| | | </td> |
| | | <td class="x1111114" colspan=4>{{ item.packageNo }}</td> |
| | | </tr> |
| | | <tr class="x1111117"> |
| | | <td class="x1111114"> |
| | | <span style="font-family: å®ä½;text-align: center;">å å å·ï¼</span> |
| | | </td> |
| | | <td class="x1111114" colspan=4>{{ item.contractNo }}</td> |
| | | |
| | | </tr> |
| | | <tr class="x1111113"> |
| | | <td class="x1111114" colspan=6> |
| | | <div style="height: 75px;" > |
| | | <p><span lang="EN-US" class="x1111112">å°åï¼æ±èçåéç»æµææ¯å¼ååºå¸¸å
´è·¯96å·</span></p> |
| | | <p><span lang="EN-US" class="x1111112">çµè¯/ä¼ çï¼0513â89191125</span></p> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <!-- <el-row> |
| | | <el-col :span="10" :offset="3">åºå·ï¼</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ i + 1 }}</el-col> |
| | | </el-row> |
| | |
| | | <vueQr :text=str+item.packageBoxId :size="110" :margin="1"></vueQr> |
| | | </el-col> |
| | | </el-row> |
| | | <div style="background-color: blueviolet;height: 80px;"> |
| | | 1111 |
| | | </div> --> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | } |
| | | </script> |
| | | <style> |
| | | .x1111111{ |
| | | color: black; |
| | | font-size: 18pt; |
| | | font-family: é»ä½; |
| | | justify-content: center; |
| | | text-align: center; |
| | | } |
| | | .x1111113{ |
| | | border: 1px solid black; |
| | | height: 40px; |
| | | } |
| | | .x1111117{ |
| | | border: 1px solid black; |
| | | height: 40px; |
| | | } |
| | | .x1111116{ |
| | | border: 1px solid black; |
| | | height: 220px; |
| | | width: 450px; |
| | | } |
| | | .x1111114{ |
| | | border: 1px solid black; |
| | | width: 80px; |
| | | } |
| | | .x1111115{ |
| | | border: 1px solid black; |
| | | } |
| | | .x1111112{ |
| | | color: black; |
| | | font-size: 12pt; |
| | | font-family: å®ä½; |
| | | } |
| | | </style> |
| | |
| | | */ |
| | | |
| | | |
| | | // const url = 'http://192.168.2.7:9999' |
| | | const url = 'http://192.168.2.7:9999' |
| | | // const url = 'https://ztms-mes.chinaztt.cn/' |
| | | |
| | | const url = 'http://localhost:9999' |
| | | // const url = 'http://localhost:9999' |
| | | |
| | | |
| | | const localUrl = 'http://localhost:8089' |