Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before
| | |
| | | |
| | | export function fetchScheduleById(id) { |
| | | return request({ |
| | | url: '/mes//productionSchedul/'+id, |
| | | url: '/mes/productionSchedul/'+id, |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | export function fillTime(data) { |
| | | return request({ |
| | | url: '/mes/productionSchedul/fillTime', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios' |
| | | |
| | | export function fetchList(query) { |
| | | return request({ |
| | | url: '/mes/packageInspect/page', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function fetchListById(id) { |
| | | return request({ |
| | | url: '/mes/packageInspect/'+id, |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | export function deleteById(id) { |
| | | return request({ |
| | | url: '/mes/packageInspect/'+id, |
| | | method: 'delete', |
| | | }) |
| | | } |
| | | |
| | | export function updatePackageInsProduct(data) { |
| | | return request({ |
| | | url: '/mes/packageInsProduct/updatePackageInsProduct', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | export function updatePackageInspectById(data) { |
| | | return request({ |
| | | url: '/mes/packageInspect/updatePackageInspectById', |
| | | method: 'post', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/quality/packageinspect', |
| | | component: Layout, |
| | | children: [ |
| | | { |
| | | path: 'packageInspect-form', |
| | | name: 'packageInspectForm', |
| | | component: () => |
| | | import(/* webpackChunkName: "views" */ '@/views/quality/packageinspect/packageInspect-form'), |
| | | meta: { |
| | | keepAlive: false, |
| | | isTab: false, |
| | | isAuth: false |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/quality/rawMaterial', |
| | | component: Layout, |
| | | children: [ |
| | |
| | | <el-dialog :visible.sync="dialogAddVisible" :close-on-click-modal="false" title="æ°å¢é
ç½®"> |
| | | <el-form :model="prodForm" :rules="rules" ref="addDialog"> |
| | | <el-form-item prop="staffName" label="ç¨æ·åç§°:" label-width="90px"> |
| | | <el-select style="width:100%" v-model="prodForm.staffName"> |
| | | <el-select style="width:100%" v-model="prodForm.staffName" filterable placeholder="è¯·éæ©"> |
| | | <el-option v-for="(item,index) in staffNamesOptions" :key="index" :value="item.id" :label="item.staffName"/> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | } |
| | | } |
| | | </style> |
| | | |
| | |
| | | > |
| | | </el-transfer> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="产åºå¾
æ£åºä½" name="inspection"> |
| | | <!-- <el-tab-pane label="产åºå¾
æ£åºä½" name="inspection"> |
| | | <el-transfer |
| | | filterable |
| | | v-model="inspectionLocationIds" |
| | |
| | | @change="handleChangeInspectionLocation" |
| | | > |
| | | </el-transfer> |
| | | </el-tab-pane> |
| | | </el-tab-pane> --> |
| | | <!-- <el-tab-pane label="产åºä¸åæ ¼åºä½" name="disqualified"> |
| | | <el-transfer |
| | | filterable |
| | |
| | | > |
| | | </el-transfer> |
| | | </el-tab-pane> --> |
| | | <el-tab-pane label="æ£éªå¾
å¤çåºä½" name="pending"> |
| | | <!-- <el-tab-pane label="æ£éªå¾
å¤çåºä½" name="pending"> |
| | | <el-transfer |
| | | filterable |
| | | v-model="pendingLocationIds" |
| | |
| | | @change="handleChangePendingLocation" |
| | | > |
| | | </el-transfer> |
| | | </el-tab-pane> |
| | | </el-tab-pane> --> |
| | | <el-tab-pane label="æåå¾
æ£åºä½" name="product"> |
| | | <el-transfer |
| | | filterable |
| | |
| | | <el-input |
| | | v-model="dataForm.partNo" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id==null" |
| | | @click="openPartDialog()" |
| | | |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | }, |
| | | // é¶ä»¶éæ© |
| | | openPartDialog() { |
| | | if ( |
| | | this.dataForm.coState === '01partUnCheck' || |
| | | this.dataForm.coState === '02technologyUnCheck' |
| | | ) { |
| | | this.showPart = true |
| | | } else { |
| | | this.$message.warning( |
| | | '订ååªæå¨ãé¶ä»¶å¾
éãããå·¥èºæä»¶å¾
éãç¶æä¸ï¼æè½è¿è¡é¶ä»¶ä¿®æ¹' |
| | | ) |
| | | } |
| | | }, |
| | | selectPart(part) { |
| | | console.log(part); |
| | | if (part) { |
| | | this.dataForm.partNo = part.partNo |
| | | this.$refs.dataForm.validateField('partNo', (valid) => {}) |
| | | } |
| | | }, |
| | | // é¶ä»¶éæ© |
| | | // openPartDialog() { |
| | | // if ( |
| | | // this.dataForm.coState === '01partUnCheck' || |
| | | // this.dataForm.coState === '02technologyUnCheck' |
| | | // ) { |
| | | // this.showPart = true |
| | | // } else { |
| | | // this.$message.warning( |
| | | // '订ååªæå¨ãé¶ä»¶å¾
éãããå·¥èºæä»¶å¾
éãç¶æä¸ï¼æè½è¿è¡é¶ä»¶ä¿®æ¹' |
| | | // ) |
| | | // } |
| | | // }, |
| | | // selectPart(part) { |
| | | // if (part) { |
| | | // this.dataForm.partNo = part.partNo |
| | | // this.$refs.dataForm.validateField('partNo', (valid) => {}) |
| | | // } |
| | | // }, |
| | | // å
¨å± |
| | | fullscreen() { |
| | | this.isFullScreen = !this.isFullScreen |
| | |
| | | </div> |
| | | <div class="btn-group header-right" v-if="editable"> |
| | | <el-button :disabled="isSubmit" v-thinclick="`dataFormSubmit`" |
| | | >ä¿å</el-button |
| | | type="primary">ä¿å</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="夿³¨" prop="remark"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-col |
| | | :span="8" |
| | | :span="2" |
| | | v-if="permissions.plan_manufacturingorder_bom_sure" |
| | | > |
| | | <el-form-item label="BOM确认"> |
| | | <el-form-item label="BOM确认" label-width="110px"> |
| | | <el-switch v-model="dataForm.bomConfirmStatus"> </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="8" |
| | | :span="2" |
| | | v-if="permissions.plan_manufacturingorder_process_sure" |
| | | > |
| | | <el-form-item label="å·¥èºç¡®è®¤"> |
| | | <el-form-item label="å·¥èºç¡®è®¤" label-width="110px"> |
| | | <el-switch v-model="dataForm.processConfirmStatus"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="8" |
| | | :span="2" |
| | | v-if="permissions.plan_manufacturingorder_test_sure" |
| | | > |
| | | <el-form-item label="æ£æµæ å确认"> |
| | | <el-form-item label="æ£æµæ å确认" label-width="140px"> |
| | | <el-switch v-model="dataForm.standardConfirmStatus"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-col :span="2"> |
| | | <el-form-item |
| | | label="IFS车é´è®¢åæ¥æ¶æ¶æ¥åå·¥åº" |
| | | prop="isReportOperation" |
| | | label-width="200px" |
| | | label-width="250px" |
| | | > |
| | | <el-switch v-model="dataForm.isReportOperation" disabled> |
| | | </el-switch> |
| | |
| | | |
| | | <el-tab-pane label="产åç»æ" id="ta1" key="ta1" name="ta1"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | | <el-form-item label="宿´BOM"> |
| | | <el-col :span="2" style="text-align: center"> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="el-icon-circle-plus-outline" |
| | | style="color:#f56c6c;" |
| | | :disabled="!dataForm.id" |
| | | @click="addStruct()" |
| | | >æ·»å å
ç´ |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :offset="11" :span="11"> |
| | | <!-- <el-form-item label="宿´BOM"> |
| | | <el-select |
| | | @change="bomSelectChanged" |
| | | disabled |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :offset="11" :span="2" style="text-align: center"> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="el-icon-circle-plus-outline" |
| | | style="color:#f56c6c;" |
| | | :disabled="!dataForm.id" |
| | | @click="addStruct()" |
| | | >æ·»å å
ç´ |
| | | </el-button> |
| | | </el-form-item> --> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | |
| | | style="width: 100%" |
| | | height="400px" |
| | | > |
| | | <el-table-column type="selection" width="40" fixed="left" /> |
| | | <!-- <el-table-column type="selection" width="40" fixed="left" /> --> |
| | | <el-table-column |
| | | type="index" |
| | | width="50" |
| | |
| | | /> |
| | | <el-table-column |
| | | prop="partName" |
| | | width="" |
| | | width="200" |
| | | header-align="center" |
| | | align="left" |
| | | label="é¶ä»¶" |
| | |
| | | }, |
| | | // æå¼bomèç¹ |
| | | addStruct() { |
| | | if (this.structSelection.length <= 0) { |
| | | this.$message.error('è¯·éæ©éè¦æ·»å å
ç´ çèç¹') |
| | | } else { |
| | | if (this.structSelection.length === 1) { |
| | | this.selectedStruct = this.structSelection[0] |
| | | this.moId = this.dataForm.id |
| | | this.showStructForm = true |
| | | } else { |
| | | this.$message.error('åªè½ä¸ºå个èç¹æ·»å å
ç´ ') |
| | | } |
| | | } |
| | | // if (this.structSelection.length <= 0) { |
| | | // this.$message.error('è¯·éæ©éè¦æ·»å å
ç´ çèç¹') |
| | | // } else { |
| | | // if (this.structSelection.length === 1) { |
| | | // } else { |
| | | // this.$message.error('åªè½ä¸ºå个èç¹æ·»å å
ç´ ') |
| | | // } |
| | | // } |
| | | }, |
| | | refreshBom(node) { |
| | | if (this.selectedStruct.children != null) { |
| | |
| | | height="100%" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column prop="index" label="åºå·" align="center" width="50" /> |
| | | <!-- <el-table-column prop="index" label="åºå·" align="center" width="50" /> |
| | | <el-table-column label="线è¯" prop="wireCore" align="center" /> |
| | | <el-table-column |
| | | prop="isCheck" |
| | | label="æ½æ£" |
| | | align="center" |
| | | :formatter="isCheckFormatter" |
| | | /> |
| | | /> --> |
| | | <el-table-column label="åæ°ç¼å·" prop="code" align="center" /> |
| | | <el-table-column label="忰项" prop="parameterItem" align="center" /> |
| | | <el-table-column label="æ£æµèå´" prop="referenceValue" align="center"> |
| | |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="éé" prop="aisle" align="center" /> |
| | | <el-table-column label="é¨ä½" prop="position" align="center" /> |
| | | <!-- <el-table-column label="éé" prop="aisle" align="center" /> |
| | | <el-table-column label="é¨ä½" prop="position" align="center" /> --> |
| | | <el-table-column label="åä½" prop="unit" align="center" /> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | prop="extendsRoutingNo" |
| | | label="ç»§æ¿å·¥èºè·¯çº¿" |
| | | align="center" |
| | |
| | | prop="extendsTestStandardParamNo" |
| | | label="ç»§æ¿æ ååæ°" |
| | | align="center" |
| | | /> |
| | | /> --> |
| | | <el-table-column label="æä½" align="center" width="118"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | |
| | | @click.stop="insertOperationParam(scope.row)" |
| | | >æå
¥ |
| | | </el-button> |
| | | <el-button |
| | | <!-- <el-button |
| | | type="text" |
| | | size="mini" |
| | | @click.stop="editTestStandardParam(scope.row)" |
| | | >å
¬å¼ |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button |
| | | type="text" |
| | | size="mini" |
| | |
| | | <basic-container> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <div style="height:80vh"> |
| | | <div style="height:80vh;padding: 0px 10px;"> |
| | | <avue-crud :data="tableData" ref="crud" :option="option" :span-method="spanMethod" |
| | | @refresh-change="getData" |
| | | :page="page" |
| | |
| | | <el-card> |
| | | <div slot="header" class="clearfix"> |
| | | <span>è°åº¦æ¶é´çº¿</span> |
| | | <el-button style="float: right; padding: 3px 0" type="text">æä½æé®</el-button> |
| | | <el-button v-if="scheduleList.length>0" @click="openEditDialog" style="float: right; padding: 3px 0" type="text">ç¼è¾</el-button> |
| | | </div> |
| | | <div style="height:70vh;overflow-y: scroll;"> |
| | | <el-timeline reverse> |
| | | <el-timeline> |
| | | <el-timeline-item |
| | | placement="top" |
| | | v-for="(item, index) in scheduleList" |
| | | :key="index" |
| | | :timestamp="item.planTime"> |
| | | <el-card style="width:95%;margin: 0;padding: 0px 10px;"> |
| | | <p style="font-weight: bold;">{{item.title}}</p> |
| | | <p>å®é
æ¶é´: {{ item.actualTime }}</p> |
| | | :timestamp="item.title"> |
| | | <el-card shadow="hover" :body-style="{margin: '0',padding:'0px 20px 0px 20px'}" style="width:90%;"> |
| | | <p> |
| | | <span style="font-weight: bold;">è®¡åæ¶é´: </span> |
| | | {{item.planTime}} |
| | | </p> |
| | | <p> |
| | | <span style="font-weight: bold;">å®é
æ¶é´: </span> |
| | | {{ item.actualTime }}</p> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </basic-container> |
| | | <el-dialog |
| | | title="ç¼è¾æ¶é´çº¿" |
| | | :visible.sync="dialogVisible" |
| | | top="5vh" |
| | | width="50%" |
| | | :before-close="handleClose"> |
| | | <div style="height:60vh;overflow-y: scroll;"> |
| | | <el-timeline> |
| | | <el-timeline-item |
| | | placement="top" |
| | | v-for="(item, index) in scheduleEditList" |
| | | :key="index" |
| | | :timestamp="item.title"> |
| | | <el-card shadow="hover" style="width:90%" :body-style="{padding:'20px 20px 5px 20px'}"> |
| | | <el-row> |
| | | <el-col :span="3"> |
| | | <p style="font-weight: bold;line-height: 50%;">è®¡åæ¶é´: </p> |
| | | </el-col> |
| | | <el-col :span="21"> |
| | | <el-date-picker |
| | | style="width:100%" |
| | | v-model="item.planTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="datetime" |
| | | placeholder="éæ©æ¥ææ¶é´"> |
| | | </el-date-picker> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="3"> |
| | | <p style="font-weight: bold;line-height: 50%;">å®é
æ¶é´: </p> |
| | | </el-col> |
| | | <el-col :span="21"> |
| | | <el-date-picker |
| | | style="width:100%" |
| | | v-model="item.actualTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="datetime" |
| | | placeholder="éæ©æ¥ææ¶é´"> |
| | | </el-date-picker> |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="confirmEditSchedul">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | fetchScheduleList, |
| | | fetchScheduleById, |
| | | fillTime |
| | | } from '@/api//plan/productionschedul' |
| | | import TableForm from './template-form' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | dialogVisible: false, |
| | | scheduleList: [], |
| | | scheduleEditList: [], |
| | | typeOptions: [], |
| | | multipleSelection: [], |
| | | loading: true, |
| | |
| | | beforeDestroy() { |
| | | }, |
| | | methods: { |
| | | openEditDialog(){ |
| | | this.scheduleEditList = JSON.parse(JSON.stringify(this.scheduleList)) |
| | | this.dialogVisible = true |
| | | }, |
| | | confirmEditSchedul(){ |
| | | let data = this.scheduleEditList |
| | | let orderObj = this.multipleSelection[0] |
| | | console.log("data---",data) |
| | | console.log("orderObj-----",orderObj) |
| | | let obj = { |
| | | "documentActualTime": data[0].actualTime, |
| | | "documentPlanTime": data[0].planTime, |
| | | "bomActualTime": data[1].actualTime, |
| | | "bomPlanTime": data[1].planTime, |
| | | "contractActualTime": data[2].actualTime, |
| | | "contractPlanTime": data[2].planTime, |
| | | "arrivalActualTime": data[3].actualTime, |
| | | "arrivalPlanTime": data[3].planTime, |
| | | "checkActualTime": data[4].actualTime, |
| | | "checkPlanTime": data[4].planTime, |
| | | "productActualTime": data[5].actualTime, |
| | | "productPlanTime": data[5].planTime, |
| | | "id": orderObj.id, |
| | | "contractNo": orderObj.contractNo, |
| | | "customerName": orderObj.customerName, |
| | | "deliveryDate": orderObj.deliveryDate, |
| | | "orderTime": orderObj.orderTime, |
| | | "productType": orderObj.productType, |
| | | "projectName": orderObj.projectName |
| | | } |
| | | console.log("obj----->>>",obj); |
| | | fillTime(obj).then(res=>{ |
| | | if(res.status===200){ |
| | | this.$message.success("æ´æ°æå") |
| | | }else{ |
| | | this.$message.error("æ´æ°å¤±è´¥") |
| | | } |
| | | this.getScheduleById(orderObj.id) |
| | | this.dialogVisible = false |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }) |
| | | |
| | | }, |
| | | handleClose(done){ |
| | | done() |
| | | }, |
| | | initTimeLine(data){ |
| | | this.scheduleList = [] |
| | | if(data){ |
| | |
| | | const preVal = val.shift(); |
| | | this.$refs.crud.toggleRowSelection(preVal, false); |
| | | } |
| | | else{ |
| | | this.scheduleList=[] |
| | | } |
| | | this.multipleSelection = val |
| | | this.getScheduleById(val[0].id) |
| | | }, |
| | | formatDate(row, cellValue){ |
| | |
| | | this.tableData = res.data.data.records |
| | | this.page.total = res.data.data.total |
| | | this.page.currentPage = res.data.data.records.pages |
| | | this.scheduleList = [] |
| | | }) |
| | | this.loading = false |
| | | |
| | | }, |
| | | handleCurrentChange(val) { |
| | | this.multipleSelection = val |
| | |
| | | <template> |
| | | <el-dialog |
| | | width="40%" |
| | | width="60%" |
| | | top="5vh" |
| | | title="ææ" |
| | | :visible.sync="innerVisible" |
| | | append-to-body |
| | |
| | | :key="tableKey" |
| | | :data="dataList" |
| | | border |
| | | style="width: 100%;" |
| | | height="400" |
| | | style="width: 100%;overflow-y: scroll;" |
| | | @cell-dblclick="dblhandleCurrentChange" |
| | | show-summary |
| | | :span-method="objectSpanMethod" |
| | | :summary-method="getSummaries" |
| | | > |
| | | <el-table-column header-align="center" align="center" type="index" label="åºå·"></el-table-column> |
| | | <el-table-column |
| | | prop="partNo" |
| | | header-align="center" |
| | | align="center" |
| | | label="é¶ä»¶ç¼å·" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | header-align="center" |
| | | align="center" |
| | | label="é¶ä»¶" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | header-align="center" |
| | | align="center" |
| | | label="æ¹å·" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <!-- <el-table-column |
| | |
| | | header-align="center" |
| | | align="center" |
| | | label="åä½" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="menu" label="æä½" header-align="center" align="center"> |
| | | <template scope="scope"> |
| | | <el-button type="text" icon="el-icon-circle-close" @click="cancelFeed(scope.$index,scope.row)">åæ¶</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | |
| | | password: null |
| | | } |
| | | }, |
| | | beforeUpdate(){ |
| | | this.$nextTick(()=>{ |
| | | this.objectSpanMethod() |
| | | this.$refs.table.doLayout() |
| | | }) |
| | | }, |
| | | directives: { |
| | | focus: { |
| | | inserted: function(el, option) { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //æå
¥åæ¶æé® |
| | | cancelFeed(index,row){ |
| | | this.dataList.splice(index,1) |
| | | }, |
| | | confirmData() { |
| | | if (this.password != null) { |
| | | checkSubmitPassword({ password: this.password }).then((response) => { |
| | |
| | | return reg.test(value) |
| | | }, |
| | | objectSpanMethod() { |
| | | setTimeout(() => { |
| | | this.$nextTick(()=>{ |
| | | if (this.$refs.table.$el) { |
| | | const current = this.$refs.table.$el |
| | | .querySelector('.el-table__footer-wrapper') |
| | | .querySelector('.el-table__footer') |
| | | const cell = current.rows[0].cells |
| | | // cell[1].style.display = 'none' |
| | | cell[0].colSpan = '4' |
| | | cell[0].colSpan = '6' |
| | | } |
| | | }, 50) |
| | | }) |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param |
| | |
| | | }, |
| | | watch: { |
| | | currshowlist() { |
| | | this.innerVisible = this.currshowlist |
| | | this.password = null |
| | | if (this.currshowlist) { |
| | | this.$nextTick(() => {}) |
| | | const _than = this |
| | | _than.innerVisible = _than.currshowlist |
| | | _than.password = null |
| | | if (!_than.currshowlist) { |
| | | _than.$nextTick(() => { |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | created(){ |
| | | this.$nextTick(()=>{ |
| | | this.objectSpanMethod() |
| | | }) |
| | | }, |
| | | mounted() {} |
| | | } |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-tabs v-model="activeName"> |
| | | <el-tab-pane name="first" label="线边ä»åæ ¼ç©æ"> |
| | | <!-- <el-tab-pane name="first" label="线边ä»åæ ¼ç©æ"> --> |
| | | <div class="line-side-warehouse-header"> |
| | | <div> |
| | | <el-divider class="pane-divider" direction="vertical"></el-divider |
| | |
| | | > |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">å¯ç¨æ°é</div> |
| | | <!-- <div class="th" @click.stop> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | | v-model="queryParamTwo.availableStockQuantity" |
| | |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.availableStockQuantity }}</span> |
| | |
| | | <el-table-column label="åºåæ°é" prop="stockQuantity" align="center"> |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">åºåæ°é</div> |
| | | <!-- <div class="th" @click.stop> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | | v-model="queryParamTwo.stockQuantity" |
| | |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.stockQuantity }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="é¢çæ°é" |
| | | prop="reserveQuantity" |
| | | align="center" |
| | | > |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">é¢çæ°é</div> |
| | | <div style="line-height: 14px;">é¢çæ°é</div> --> |
| | | <!-- <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | |
| | | size="mini" |
| | | ></el-input> |
| | | </div> --> |
| | | </template> |
| | | <!-- </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.reserveQuantity }}</span> |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column label="æ¯å¦å·¥åºåºå" prop="operationStockStatus" align="center"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.operationStockStatus">æ¯</span> |
| | | <span v-else>å¦</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æå±å·¥åº" prop="name" align="center"> |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">æå±å·¥åº</div> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | | v-model="queryParamTwo.name" |
| | | @keyup.enter.native="handleStockList" |
| | | clearable |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="åºä½å·" prop="locationNo" align="center"> |
| | |
| | | > |
| | | </el-pagination> |
| | | </div> --> |
| | | </el-tab-pane> |
| | | <!-- </el-tab-pane> --> |
| | | <!-- <el-tab-pane name="second" label="线边ä»å¾
å¤çç©æ"> |
| | | <div class="line-side-warehouse-header"> |
| | | <div> |
| | |
| | | >æ«ç ææ</el-button |
| | | > |
| | | <el-button |
| | | class="feeding-btn" |
| | | class="feeding-btn"locationNo |
| | | type="primary" |
| | | icon="feed-btn-feeding" |
| | | @click="addFeed()" |
| | |
| | | <span>{{ scope.row.stockQuantity }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æ¯å¦å·¥åºåºå" prop="operationStockStatus" align="center"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.operationStockStatus">æ¯</span> |
| | | <span v-else>å¦</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æå±å·¥åº" prop="name" align="center"> |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">æå±å·¥åº</div> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | | v-model="queryParamTwo.name" |
| | | @keyup.enter.native="handleStockList" |
| | | clearable |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="åºä½å·" prop="ifsLocation" align="center"> |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="line-height: 14px;">åºä½å·</div> |
| | |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.ifsLocation }}</span> |
| | | <span>{{ scope.row.locNo }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="åä½" prop="unit" align="center"> |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | showFeedForm:{ |
| | | handler(newVal,oldVal){ |
| | | if(!newVal){ |
| | | this.$refs.stockTable.toggleAllSelection(false) |
| | | } |
| | | }, |
| | | deep: true |
| | | }, |
| | | workstationId() { |
| | | this.$nextTick(() => { |
| | | if (this.currItem != null && this.currItem === 'feed') { |
| | |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column label="é¶ä»¶æ¹å·" prop="partBatchNo" align="center"> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="é¶ä»¶æ¹å·" prop="partBatchNo" align="center"> |
| | | </el-table-column> --> |
| | | <el-table-column label="è§æ ¼åå·" prop="specs" align="center"> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-table-column> |
| | | <el-table-column label="åä½" prop="unit" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="æ¯å¦å·¥åºåºå" prop="operationStockStatus" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="æå±å·¥åº" prop="name" align="center"> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-button |
| | | v-if="!isCheck" |
| | | style="float: right; padding: 3px 0" |
| | | type="text" |
| | | @click="relateOperationParam()" |
| | |
| | | <!-- æ°å¢ --> |
| | | <packfrom |
| | | :currshowlist.sync="addOrUpdateVisible" |
| | | @way = "wayRenovate" |
| | | > |
| | | @refreshDataList="getData"> |
| | | </packfrom> |
| | | <packfromadd |
| | | :currshowlist.sync="increase" |
| | |
| | | export default { |
| | | data(){ |
| | | return { |
| | | isCheck: false, |
| | | dataway:{}, |
| | | goid:'', |
| | | testStandardParams: [], |
| | |
| | | operator: [ |
| | | { |
| | | text: 'æ£éª', |
| | | icon: 'el-icon-delete', |
| | | icon: 'el-icon-position', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.check |
| | |
| | | }) |
| | | }, |
| | | handleCurrentChange(row){ |
| | | if(row.state=='å·²æ¥æ£'){ |
| | | this.isCheck = true |
| | | } |
| | | this.dataway = row |
| | | this.packageBoxId = { |
| | | packageBoxId:row.id |
| | |
| | | if (this.dataway.state == "æªæ¥æ£") { |
| | | this.increase = true |
| | | }else{ |
| | | this.$message.error('æ¹é¡¹ç®å·²å®ææ£éª') |
| | | this.$message.error('请å
éæ©å
è£
项ç®') |
| | | } |
| | | }, |
| | | preserve(datalist){ |
| | |
| | | contractNo:this.datalistid.contractNo |
| | | } |
| | | pagedataadd (packageBox).then((res =>{ |
| | | this.$emit('way',res ) |
| | | if (res.status === 200) { |
| | | this.$message.success('æ°å¢æå') |
| | | this.$emit('refreshDataList') |
| | | }else{ |
| | | this.$message.error('å建失败') |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | - Copyright (c) 2018-2025, ztt All rights reserved. |
| | | - |
| | | - Redistribution and use in source and binary forms, with or without |
| | | - modification, are permitted provided that the following conditions are met: |
| | | - |
| | | - Redistributions of source code must retain the above copyright notice, |
| | | - this list of conditions and the following disclaimer. |
| | | - Redistributions in binary form must reproduce the above copyright |
| | | - notice, this list of conditions and the following disclaimer in the |
| | | - documentation and/or other materials provided with the distribution. |
| | | - Neither the name of the pig4cloud.com developer nor the names of its |
| | | - contributors may be used to endorse or promote products derived from |
| | | - this software without specific prior written permission. |
| | | - Author: ztt |
| | | --> |
| | | <template> |
| | | <div class="mod-config"> |
| | | <basic-container> |
| | | <ttable |
| | | :table="table" |
| | | :resultData="resultData" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | :ajaxFun="ajaxFun" |
| | | ref="packageInspectTable"> |
| | | <template #toolbar> |
| | | </template> |
| | | </ttable> |
| | | </basic-container> |
| | | <!-- å¼¹çª, æ°å¢ / ä¿®æ¹ --> |
| | | <!-- <RawMaterialForm |
| | | v-if="addOrUpdateVisible" |
| | | ref="addOrUpdate" |
| | | @refreshDataList="getData" |
| | | ></RawMaterialForm> --> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import { fetchList,deleteById } from '@/api/quality/packageInspect' |
| | | // import RawMaterialForm from './rawMaterial-form' |
| | | import * as fecha from 'element-ui/lib/utils/date' |
| | | import { mapGetters } from 'vuex' |
| | | export default { |
| | | data() { |
| | | return { |
| | | resultData:[], |
| | | addOrUpdateVisible: false, |
| | | type: [1], |
| | | multipleSelection: [], |
| | | prelang: 'packageInspect', |
| | | ajaxFun: fetchList, |
| | | options: { |
| | | height: 300, // é»è®¤é«åº¦-为äºè¡¨å¤´åºå® |
| | | stripe: true, // æ¯å¦ä¸ºæé©¬çº¹ table |
| | | highlightCurrentRow: false, // æ¯å¦è¦é«äº®å½åè¡ |
| | | border: true, // æ¯å¦æçºµåè¾¹æ¡ |
| | | lazy: false, // æ¯å¦éè¦æå è½½ |
| | | fit: true, // åç宽度æ¯å¦èªæå¼ |
| | | multiSelect: true, // |
| | | seqNo: true, |
| | | isRefresh: true, // æ¯å¦æ¾ç¤ºå·æ°æé® |
| | | isShowHide: true, // æ¯å¦æ¾ç¤ºæ¾å½±æé®H |
| | | isSearch: true, // é«çº§æ¥è¯¢æé® |
| | | defaultOrderBy: { column: 'createTime', direction: 'desc' }, |
| | | }, |
| | | table: { |
| | | total: 0, |
| | | currentPage: 1, |
| | | pageSize: 20, |
| | | data: [], |
| | | // æ é¢ |
| | | column: [ |
| | | { |
| | | minWidth: '180', |
| | | prop: 'packInsNo', |
| | | label: 'å
è£
æ£éªç¼å·', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | render: { fun: this.addOrUpdateHandle } |
| | | }, |
| | | { |
| | | minWidth: '180', |
| | | prop: 'packageNo', |
| | | label: 'å
è£
ç¼ç ', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '180', |
| | | prop: 'contractNo', |
| | | label: 'ååå·', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '180', |
| | | prop: 'projectName', |
| | | label: '项ç®åç§°', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '180', |
| | | prop: 'customerName', |
| | | label: '客æ·åç§°', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '180', |
| | | prop: 'createTime', |
| | | label: 'æ¥æ£æ¥æ', |
| | | isTrue: true, |
| | | sort: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | formatter: this.formatDateTime, |
| | | }, |
| | | { |
| | | minWidth: '180', |
| | | prop: 'createUser', |
| | | label: 'æ¥æ£äºº', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '200', |
| | | prop: 'result', |
| | | label: 'ç»è®º', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | ], |
| | | toolbar: [ |
| | | // { |
| | | // text: 'æ°å¢', |
| | | // type: 'primary', |
| | | // fun: this.addOrUpdateHandle |
| | | // }, |
| | | ], |
| | | operator: [ |
| | | { |
| | | text: 'ä½åº', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | }], |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: 'æä½', |
| | | width: 100, |
| | | minWidth: 100 |
| | | }, |
| | | }, |
| | | } |
| | | }, |
| | | components: { |
| | | ttable, |
| | | }, |
| | | created() { }, |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | watch:{ |
| | | |
| | | }, |
| | | methods:{ |
| | | // å é¤ |
| | | deleteHandle(row) { |
| | | const _than = this |
| | | this.$confirm('æ¯å¦ç¡®è®¤å é¤å
è£
ç¼å·ã' + row.packInsNo+'ãçæ°æ®ï¼' , 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | closeOnClickModal: false, |
| | | type: 'warning' |
| | | }).then(function() { |
| | | deleteById(row.id).then((response)=>{ |
| | | var data = response.data |
| | | if (data.code == 0) { |
| | | _than.$message.success('å 餿å') |
| | | } else { |
| | | _than.$message.error('å é¤å¤±è´¥') |
| | | } |
| | | _than.getData() |
| | | }) |
| | | }).catch((error) => { |
| | | console.log(error); |
| | | }) |
| | | }, |
| | | // æ°å¢ / ä¿®æ¹ |
| | | addOrUpdateHandle(row) { |
| | | this.$router.push({ |
| | | name: 'packageInspectForm', |
| | | query: { |
| | | id: row == null ? null : row.id |
| | | }, |
| | | params:{resultVal : row.result=='' ? null : row.result} |
| | | }) |
| | | }, |
| | | formatResult(row, column, cellValue){ |
| | | if(cellValue != undefined || cellValue != null){ |
| | | if(cellValue == 'ä¸åæ ¼'){ |
| | | return "<span style='color:#E84738;'>ä¸åæ ¼</span>" |
| | | } |
| | | return "<span style='color:#34BD66;'>åæ ¼</span>" |
| | | } |
| | | }, |
| | | formatDateTime(row, column, cellValue) { |
| | | return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : '' |
| | | }, |
| | | getData() { |
| | | this.$refs.packageInspectTable.getDataList() |
| | | }, |
| | | // tableèªå¸¦äºä»¶ |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div style="height: 100%"> |
| | | <div class="page-header"> |
| | | <div class="header-left"> |
| | | <a @click="$router.go(-1)"><i class="icon-btn-back"></i></a> |
| | | <h2 v-if="resultVal=='' || resultVal==null">ç¼è¾-å
è£
æ£éª</h2> |
| | | <h2 v-else>æ¥ç-å
è£
æ£éª</h2> |
| | | </div> |
| | | <div class="btn-group header-right"> |
| | | </div> |
| | | </div> |
| | | <div class="page-main"> |
| | | <div class="packageInspect-basic"> |
| | | <el-form |
| | | :model="dataForm" |
| | | :rules="dataRule" |
| | | ref="dataForm" |
| | | style="width: 100%" |
| | | class="l-mes" |
| | | label-width="110px"> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="å
è£
æ£éªç¼å·" prop="packInsNo"> |
| | | <el-input v-model="dataForm.packInsNo" disabled> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="å
è£
ç¼å·" prop="packageNo"> |
| | | <el-input v-model="dataForm.packageNo" disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item prop="projectName" label="项ç®åç§°" > |
| | | <el-tooltip :disabled="dataForm.projectName==null" :content="dataForm.projectName"> |
| | | <el-input v-model="dataForm.projectName" disabled ></el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="客æ·åç§°" prop="customerName"> |
| | | <el-input v-model="dataForm.customerName" disabled /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="ååå·" prop="contractNo"> |
| | | <el-input v-model="dataForm.contractNo" disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="æ¥æ£æ¥æ" prop="createTime"> |
| | | <el-input v-model="dataForm.createTime" disabled /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="æ¥æ£äºº" prop="createUser"> |
| | | <el-input v-model="dataForm.createUser" disabled /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </div> |
| | | <div class="packageInspect-detail"> |
| | | <el-row :gutter="10" style="width:100%;z-index: 10;height:50px;"> |
| | | <el-col :span="20">æ£éªé¡¹ç®</el-col> |
| | | <el-col :span="2"> |
| | | <el-button v-if="resultVal=='' || resultVal==null" style="width:100%" size="small" @click="clickAddLine()">æ·»å æ£éªé¡¹ç®</el-button> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-button v-if="resultVal=='' || resultVal==null" style="width:100%" type="primary" size="small" |
| | | @click="savePackIns()">ä¿å</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="width:100%;"> |
| | | <el-col :span="24"> |
| | | <el-table |
| | | :header-cell-style="{textAlign:'center',color:'black',backgroundColor:'#fafafa'}" |
| | | :cell-style="{textAlign:'center'}" |
| | | ref="table" |
| | | :data="list" |
| | | border |
| | | style="width: 100%;" |
| | | height="400" |
| | | row-key="randomId" class="l-mes" |
| | | default-expand-all |
| | | :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> |
| | | <el-table-column type="index" label="åºå·" width="60"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="项ç®" width="260"> |
| | | <template slot-scope="scope"> |
| | | <el-input :readonly="resultVal!=null" v-if="scope.row.children" class="inline-input" style="width:90%;" v-model="scope.row.name" |
| | | placeholder="请è¾å
¥é¡¹ç®åç§°"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="required" label="è¦æ±" width="260"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="!scope.row.children"> |
| | | <el-input :readonly="resultVal!=null" v-model="scope.row.required" |
| | | placeholder="请è¾å
¥è¦æ±"></el-input> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="note" label="æ£éªæè¿°" width="260" > |
| | | <template slot-scope="scope"> |
| | | <div v-if="!scope.row.children"> |
| | | <el-input :readonly="resultVal!=null" v-model="scope.row.note" placeholder="æ£éªæè¿°"></el-input> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="testState" label="ç»è®º" min-width="150"> |
| | | <template slot-scope="scope"> |
| | | <el-select style="width:100%" :disabled="resultVal!=null" @change="changeResult" v-model="scope.row.result" v-if="!scope.row.children"> |
| | | <el-option label="åæ ¼" value="åæ ¼"></el-option> |
| | | <el-option label="ä¸åæ ¼" value="ä¸åæ ¼"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="resultVal=='' || resultVal==null" fixed="right" style="background-color: white;" label="æä½" width="200"> |
| | | <template slot-scope="scope"> |
| | | <el-button v-if="scope.row.children" icon="el-icon-circle-plus-outline" type="text" @click="clickAddChildren(scope.row,scope.$index)">æ·»å è¡</el-button> |
| | | <el-button v-if="!scope.row.children" icon="el-icon-circle-close" type="text" |
| | | @click="clickDelLine(scope.row,scope.$index,scope.row.children!=null)">åæ¶</el-button> |
| | | <el-button v-if="scope.row.children" icon="el-icon-circle-close" type="text" |
| | | @click="clickDelLine(scope.row,scope.$index,scope.row.children!=null)">å é¤é¡¹ç®</el-button> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="packageInspect-result"> |
| | | <el-row> |
| | | <el-col :span="24">æ£éªç»è®º</el-col> |
| | | </el-row> |
| | | <el-row style="width:100%"> |
| | | <el-col :span="24"> |
| | | <el-table class="l-mes" border height="90" :data="conclusionTable" ref="conclusion" v-model="conclusion" |
| | | :header-cell-style="{textAlign:'center',color:'black',backgroundColor:'#fafafa'}" |
| | | :cell-style="{textAlign:'center'}"> |
| | | <el-table-column prop="packageNo" label="å
è£
ç¼å·"></el-table-column> |
| | | <el-table-column prop="userName" label="æ£éªå"></el-table-column> |
| | | <el-table-column prop="result" label="æ£éªç»è®º"> |
| | | <template slot-scope="scope"> |
| | | <el-select :disabled="resultVal!=null" style="width:100%" v-model="scope.row.result"> |
| | | <el-option label="åæ ¼" value="åæ ¼"></el-option> |
| | | <el-option label="ä¸åæ ¼" value="ä¸åæ ¼"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½"> |
| | | <template> |
| | | <el-button type="text" :disabled="resultVal!=null" @click="submitSave()" size="small">䏿¥</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | fetchListById, |
| | | updatePackageInsProduct, |
| | | updatePackageInspectById, |
| | | } from '@/api/quality/packageInspect' |
| | | export default { |
| | | computed:{}, |
| | | components:{ |
| | | }, |
| | | data(){ |
| | | return{ |
| | | loading: false, |
| | | resultVal: null, |
| | | dataForm:{ |
| | | id: null, |
| | | packInsNo: null, |
| | | packageNo: '', |
| | | contractNo: '', |
| | | projectName: '', |
| | | customerName: '', |
| | | packageInsProductS: [{ |
| | | deviceId: 0, |
| | | father:'', |
| | | name: '', |
| | | required: '', |
| | | testValue: '', |
| | | unit: '', |
| | | testValueList: [] |
| | | }] |
| | | }, |
| | | form: null, |
| | | list:[], |
| | | conclusion: null, |
| | | conclusionTable: [{ |
| | | packageNo: '', |
| | | userName: '', |
| | | result: '' |
| | | }], |
| | | dataRule: {}, |
| | | } |
| | | }, |
| | | beforeUpdate(){ |
| | | this.$nextTick(()=>{ |
| | | this.$refs.table.doLayout(); |
| | | }) |
| | | }, |
| | | created(){ |
| | | this.dataForm.id = this.$route.query.id |
| | | this.resultVal = this.$route.params.resultVal |
| | | if(!this.resultVal){ |
| | | let val = sessionStorage.getItem("packIns-resultVal-"+this.dataForm.id) |
| | | if(val){ |
| | | this.resultVal=val |
| | | } |
| | | } |
| | | this.init() |
| | | }, |
| | | watch:{ |
| | | }, |
| | | methods:{ |
| | | changeResult(){ |
| | | let result = '' |
| | | let data = this.list |
| | | if(data){ |
| | | result='åæ ¼' |
| | | data.forEach(item=>{ |
| | | if(item.children){ |
| | | item.children.forEach(ele=>{ |
| | | if(ele.result=='ä¸åæ ¼'){ |
| | | result='ä¸åæ ¼' |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | this.conclusionTable[0].result = result |
| | | }, |
| | | //䏿¥ |
| | | submitSave(){ |
| | | const _than = this |
| | | this.$confirm('䏿¥åï¼è¯·ç¡®è®¤æ£éªé¡¹ç®æ¯å¦å·²ä¿å!', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®è®¤ä¸æ¥', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | let data = { |
| | | id: _than.dataForm.id, |
| | | result: _than.conclusionTable[0].result, |
| | | } |
| | | updatePackageInspectById(data).then(res => { |
| | | if(res.data.code === 0){ |
| | | _than.resultVal = res.data.data |
| | | sessionStorage.setItem("packIns-resultVal-"+_than.dataForm.id,res.data.data) |
| | | _than.$message.success("䏿¥æå"); |
| | | }else{ |
| | | _than.$message.error("䏿¥å¤±è´¥",res.data.data); |
| | | } |
| | | }) |
| | | }).catch(() => {}) |
| | | }, |
| | | // æ·»å è¡ |
| | | clickAddLine() { |
| | | this.list.push({ |
| | | name: '', |
| | | randomId: Math.random(), |
| | | children: [{ |
| | | name: '', |
| | | note: '', |
| | | required: '', |
| | | result: '', |
| | | randomId: Math.random(), |
| | | }] |
| | | }) |
| | | }, |
| | | //æ·»å å级 |
| | | clickAddChildren(row,index){ |
| | | row.children.push({ |
| | | name: row.name, |
| | | note: '', |
| | | required: '', |
| | | result: '', |
| | | randomId: Math.random(), |
| | | }) |
| | | }, |
| | | // å é¤è¡ |
| | | clickDelLine(row,index,isParent) { |
| | | if(isParent){ |
| | | let parentIndex = this.list.findIndex(el =>{ |
| | | return el.randomId == row.randomId |
| | | }) |
| | | this.list.splice(parentIndex,1) |
| | | }else{ |
| | | let i = this.list.findIndex(el =>{ |
| | | return el.children.find(ele => ele.randomId == row.randomId) |
| | | }) |
| | | let childrenIndex = this.list[i].children.findIndex(el =>{ |
| | | return el.randomId == row.randomId |
| | | }) |
| | | this.list[i].children.splice(childrenIndex,1) |
| | | } |
| | | }, |
| | | //ä¿åæ£æ¥é¡¹ |
| | | savePackIns(){ |
| | | if(this.list.length==0){ |
| | | this.$message.error("æ£éªé¡¹ç®ä¸ºç©º!") |
| | | return |
| | | }else{ |
| | | let dataList = [] |
| | | this.list.forEach(item=>{ |
| | | if(item.children){ |
| | | item.children.forEach(ele=>{ |
| | | let obj = { |
| | | id: ele.pid || null, |
| | | name: item.name, |
| | | note: ele.note, |
| | | packageInspectId: this.dataForm.id, |
| | | required: ele.required, |
| | | result: ele.result, |
| | | } |
| | | dataList.push(obj) |
| | | }) |
| | | } |
| | | }) |
| | | updatePackageInsProduct(dataList).then(res=>{ |
| | | if(res.status===200){ |
| | | this.$message.success("ä¿åæå") |
| | | } |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | this.$message.error("ä¿å失败") |
| | | }) |
| | | } |
| | | }, |
| | | init(){ |
| | | if(this.dataForm.id){ |
| | | fetchListById(this.dataForm.id).then(res=>{ |
| | | let data = res.data.data |
| | | this.dataForm.packInsNo = data.packInsNo |
| | | this.dataForm.packageNo = data.packageNo |
| | | this.dataForm.contractNo = data.contractNo |
| | | this.dataForm.customerName = data.customerName |
| | | this.dataForm.projectName = data.projectName |
| | | this.dataForm.createTime = data.createTime |
| | | this.dataForm.createUser = data.createUser |
| | | this.list = [] |
| | | let userNameList = [] |
| | | data.packageInsProductS.forEach(item => { |
| | | if (item.children) { |
| | | let ele = { |
| | | randomId: Math.random(), |
| | | name: null, |
| | | children: [] |
| | | } |
| | | ele.name = item.name |
| | | item.children.forEach(obj => { |
| | | if(obj.userName){ |
| | | userNameList.push(obj.userName) |
| | | } |
| | | let o = { |
| | | name: item.name, |
| | | randomId: Math.random(), |
| | | required: obj.required, |
| | | pid: obj.pid, |
| | | note: obj.note?obj.note:'', |
| | | result: obj.presult |
| | | } |
| | | ele.children.push(o) |
| | | }) |
| | | this.list.push(ele) |
| | | } |
| | | }) |
| | | this.conclusionTable = [{ |
| | | packageNo: data.packageNo, |
| | | userName: Array.from(new Set(userNameList)).join(','), |
| | | result: null |
| | | }] |
| | | this.$nextTick(()=>{ |
| | | if(this.list.length>0){ |
| | | this.changeResult() |
| | | } |
| | | }) |
| | | }).catch(error=>{ |
| | | this.$message.error("è·å失败",error) |
| | | }) |
| | | }else{ |
| | | this.conclusionTable = [] |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .packageInspect-detail { |
| | | width: 100%; |
| | | height: 490px; |
| | | padding: 10px 20px; |
| | | display: flex; |
| | | border: 1px solid #ddd; |
| | | background-color: #fff; |
| | | margin-top: 10px; |
| | | box-sizing: border-box; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .packageInspect-result { |
| | | width: 100%; |
| | | height: 150px; |
| | | padding: 10px 20px; |
| | | display: flex; |
| | | border: 1px solid #ddd; |
| | | background-color: #fff; |
| | | margin-top: 10px; |
| | | box-sizing: border-box; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .packageInspect-basic { |
| | | background-color: #fff; |
| | | height: 120px; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding: 10px 20px; |
| | | border: 1px solid #ddd; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .packageInspect-related-stock-part { |
| | | background-color: #fff; |
| | | width: 100%; |
| | | height: 220px; |
| | | border: 1px solid #ddd; |
| | | padding: 10px 20px 0px 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .packageInspect-bom { |
| | | background-color: #fff; |
| | | width: 100%; |
| | | height: 499px; |
| | | border: 1px solid #ddd; |
| | | padding: 10px 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .packageInspect-bom .el-card__header { |
| | | padding: 1px 20px; |
| | | border-bottom: 0px solid #ebeef5; |
| | | } |
| | | |
| | | .packageInspect-bom .el-card__body { |
| | | height: calc(100% - 22px); |
| | | } |
| | | |
| | | .packageInspect-bom .el-card__body .el-collapse { |
| | | height: 100%; |
| | | overflow: auto; |
| | | } |
| | | |
| | | .packageInspect-technology-params { |
| | | background-color: #fff; |
| | | width: calc(52% - 20px); |
| | | float: left; |
| | | height: 719px; |
| | | border: 1px solid #ddd; |
| | | padding: 10px 20px; |
| | | margin-left: 20px; |
| | | } |
| | | |
| | | .packageInspect-structure { |
| | | background-color: #fff; |
| | | width: 35%; |
| | | float: left; |
| | | height: 719px; |
| | | border: 1px solid #ddd; |
| | | padding: 10px 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .packageInspect-flow { |
| | | background-color: #fff; |
| | | width: calc(65% - 20px); |
| | | float: left; |
| | | height: 719px; |
| | | border: 1px solid #ddd; |
| | | padding: 10px 20px; |
| | | margin-left: 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | /*èªå®ä¹disabledç¶æä¸checkboxçæ ·å¼*/ |
| | | .completeproductstructure-checkout |
| | | .el-checkbox__input.is-disabled.is-checked |
| | | .el-checkbox__inner { |
| | | background-color: #006eff; |
| | | border-color: #006eff; |
| | | } |
| | | |
| | | .completeproductstructure-checkout |
| | | .el-checkbox__input.is-disabled.is-checked |
| | | + span.el-checkbox__label { |
| | | color: #006eff; |
| | | border-color: #006eff; |
| | | } |
| | | |
| | | .completeproductstructure-checkout |
| | | .el-checkbox__input.is-disabled |
| | | .el-checkbox__inner { |
| | | background-color: #ffffff; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .completeproductstructure-checkout |
| | | .el-checkbox__input.is-disabled |
| | | + span.el-checkbox__label { |
| | | color: #606266; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .completeproductstructure-checkout .el-checkbox__inner::after { |
| | | border: 1px solid #fff !important; |
| | | border-left: 0 !important; |
| | | border-top: 0 !important; |
| | | cursor: pointer !important; |
| | | } |
| | | |
| | | .packageInspect-bom-div { |
| | | width: 100%; |
| | | margin-bottom: 5px; |
| | | } |
| | | |
| | | .packageInspect-technology-div { |
| | | width: 100%; |
| | | margin-bottom: 5px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .packageInspect-technology-div .el-collapse { |
| | | border-top: 0px; |
| | | border-bottom: 0px; |
| | | } |
| | | |
| | | .structure-detail-table th.gutter { |
| | | display: table-cell !important; |
| | | width: 10px !important; |
| | | } |
| | | |
| | | .structure-detail-table colgroup.gutter { |
| | | display: table-cell !important; |
| | | width: 10px !important; |
| | | } |
| | | |
| | | .final-product-checkout .el-card__header { |
| | | padding: 0px 20px; |
| | | border-bottom: 0px; |
| | | } |
| | | |
| | | .final-product-checkout .el-card__body { |
| | | padding: 0px 20px 20px; |
| | | } |
| | | |
| | | .orimaterial-quantity .el-card__header { |
| | | padding: 0px 20px; |
| | | border-bottom: 0px; |
| | | } |
| | | |
| | | .orimaterial-quantity .el-card__body { |
| | | padding: 0px 20px 20px; |
| | | } |
| | | |
| | | .packageInspect-materialcost-table th.gutter { |
| | | display: table-cell !important; |
| | | width: 10px !important; |
| | | } |
| | | |
| | | .packageInspect-materialcost-table colgroup.gutter { |
| | | display: table-cell !important; |
| | | width: 10px !important; |
| | | } |
| | | |
| | | .GooFlow .ico .ico_start:before { |
| | | color: red; |
| | | } |
| | | .highlight-tab-class { |
| | | color: #006eff; |
| | | background: #e4e7ed; |
| | | border-top: 1px solid #006eff; |
| | | } |
| | | .unhighlight-tab-class { |
| | | border: 1px solid #e4e7ed; |
| | | border-bottom: none; |
| | | } |
| | | .avue-crud__menu{ |
| | | min-height: 0px; |
| | | } |
| | | </style> |
| | |
| | | minWidth: 100 |
| | | } |
| | | }, |
| | | materialType: [{label:'åæææ£éª',value:'åæææ£éª'},{label:'è¿ç¨æ£éª',value:'è¿ç¨æ£éª'},{label:'äº§åæ£éª',value:'äº§åæ£éª'}], |
| | | materialType: [{label:'åæææ£éª',value:'åæææ£éª'},{label:'è¿ç¨æ£éª',value:'è¿ç¨æ£éª'},{label:'äº§åæ£éª',value:'äº§åæ£éª'},{label:'å
è£
æ£éª',value:'å
è£
æ£éª'}], |
| | | StateList: [{label:'å
¨é¨',value:''},{label:'å·²æäº¤å®¡æ ¸',value:'1'},{label:'å¾
å¤ç',value:'0'},{label:'å·²å¤ç',value:'2'}], |
| | | insStateList: [{label:'å
¶ä»',value:''},{label:'ççµ',value:'1'}], |
| | | } |
| | |
| | | v-if="editable" |
| | | >æå
¥ |
| | | </el-button> |
| | | <el-button |
| | | <!-- <el-button |
| | | type="text" |
| | | size="mini" |
| | | @click.stop="editTestStandardParam(scope.row)" |
| | | v-if="editable && scope.row.id != null" |
| | | >å
¬å¼ |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button |
| | | type="text" |
| | | size="mini" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="çç»äººå" prop="crewSize"> |
| | | <el-form-item label="çç»äººå" prop="crewSize"> |
| | | <el-input |
| | | v-model="dataForm.crewSize" |
| | | placeholder="çç»äººå" |
| | | ></el-input> |
| | | </el-form-item> --> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="å¤é¨å·¥åºé¡¹ç®" prop="outsideOpItem"> |
| | | <el-select |
| | | v-model="dataForm.outsideOpItem" |
| | |
| | | * https://cli.vuejs.org/zh/config/ |
| | | */ |
| | | // const url = 'http://192.168.2.7:9999' |
| | | const url = 'http://192.168.32.45:9999' |
| | | const url = 'http://192.168.2.7:9999' |
| | | //const url = 'http://192.168.32.45:9999' |
| | | // const url = 'http://192.168.0.23:9999' |
| | | |
| | | // const url = 'http://localhost:9999' |
| | | const url = 'http://localhost:9999' |
| | | |
| | | // const url = 'http://ztt-gateway:9999' |
| | | const localUrl = 'http://localhost:8089' |