| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">æ¥ç</el-button> |
| | | <el-button type="text" size="small" >æäº¤</el-button> |
| | | <!-- <el-button type="text" size="small" >æäº¤</el-button> --> |
| | | <el-button type="text" size="small" >ä½åº</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-pagination |
| | | class="pagination" |
| | | :current-page="currentPage" |
| | | :page-sizes="[5, 10, 20, 30]" |
| | | :page-sizes="[1, 10, 20, 30]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- å¯¹è¯æ¡ --> |
| | | <div class="checkType"> |
| | | <el-dialog |
| | | title="æ°å¢æ£éªå" |
| | |
| | | > |
| | | <div class="check-box"> |
| | | <el-radio-group v-model="type" @change="handleRadioChange"> |
| | | <el-radio :label="0" border>åæææ£éª</el-radio> |
| | | <el-radio :label="0" border >åæææ£éª</el-radio> |
| | | <el-radio :label="1" border>å§ææ£éª</el-radio> |
| | | <el-radio :label="2" border>æåæ£éª</el-radio> |
| | | </el-radio-group> |
| | |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ¥ææ¥æï¼"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.dateSurvey" placeholder="请è¾å
¥æ¥ææ¥æ" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.dateSurvey" placeholder="请è¾å
¥æ¥ææ¥æ" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="ä¾åºååç§°ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.supplierName" placeholder="请è¾å
¥ä¾åºååç§°" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.supplierName" placeholder="请è¾å
¥ä¾åºååç§°" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="åææç¼ç ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.materialCoding" placeholder="请è¾å
¥åææç¼ç " autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.materialCoding" placeholder="请è¾å
¥åææç¼ç " autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="åææåç§°ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.materialName" placeholder="请è¾å
¥åææåç§°" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.materialName" placeholder="请è¾å
¥åææåç§°" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="è§æ ¼åå·ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.specificationsModels" placeholder="请è¾å
¥è§æ ¼åå·" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.specificationsModels" placeholder="请è¾å
¥è§æ ¼åå·" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="åä½ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ°éï¼"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.quantity" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.quantity" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ¥ææ¥æï¼"> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.formTime" placeholder="请è¾å
¥æ¥ææ¥æ" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.formTime" placeholder="请è¾å
¥æ¥ææ¥æ" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="ä¾åºååç§°ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.supplier" placeholder="请è¾å
¥å§æåä½" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.supplier" placeholder="请è¾å
¥å§æåä½" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="å§æç¼å·ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.mcode" placeholder="请è¾å
¥æ ·åç¼å·" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.mcode" placeholder="请è¾å
¥æ ·åç¼å·" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="å§æåç§°ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.name" placeholder="请è¾å
¥æ ·ååç§°" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.name" placeholder="请è¾å
¥æ ·ååç§°" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="è§æ ¼åå·ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.specifications" placeholder="请è¾å
¥åå·è§æ ¼" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.specifications" placeholder="请è¾å
¥åå·è§æ ¼" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="åä½ï¼"> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ°éï¼"> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.num" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="commisionSelection.num" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ¥ææ¥æï¼"> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.deliverydate" placeholder="请è¾å
¥æ¥ææ¥æ" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.deliverydate" placeholder="请è¾å
¥æ¥ææ¥æ" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="ä¾åºååç§°ï¼"> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.supplier" placeholder="请è¾å
¥ä¾åºååç§°" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.supplier" placeholder="请è¾å
¥ä¾åºååç§°" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="åææç¼ç ï¼"> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.code" placeholder="请è¾å
¥åææç¼ç " autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.code" placeholder="请è¾å
¥åææç¼ç " autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="åææåç§°ï¼"> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.name" placeholder="请è¾å
¥åææåç§°" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.name" placeholder="请è¾å
¥åææåç§°" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="è§æ ¼åå·ï¼"> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.modelandspecification" placeholder="请è¾å
¥è§æ ¼åå·" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.modelandspecification" placeholder="请è¾å
¥è§æ ¼åå·" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="åä½ï¼"> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ°éï¼"> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.amount" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" v-model="finishedTable.amount" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | type="selection" |
| | | label="" |
| | | min-width="10%" |
| | | /> |
| | | /> |
| | | <el-table-column |
| | | type="index" |
| | | label="åºå·" |
| | |
| | | <el-button @click="commisionVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="handleCommisionSelection">ç¡® å®</el-button> |
| | | </span> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | <template v-else> |
| | | <router-view /> |
| | | |
| | | </template> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import { selectInspectsList, selectAll, addInspect} from '@/api/experiment/planAssignments' |
| | | export default { |
| | |
| | | searchData: { |
| | | applicationnumber: '', |
| | | type: '', |
| | | state: '' |
| | | state: '', |
| | | }, |
| | | icode:'', |
| | | inspectionTable: [], |
| | | rawMaterialTable: [], |
| | | commisionTable: [{ |
| | |
| | | }], |
| | | currentPage: 1, |
| | | total: 20, // æ»æ¡æ° |
| | | pageSize: 5, // æ¯é¡µçæ°æ®æ¡æ° |
| | | pageSize: 8, // æ¯é¡µçæ°æ®æ¡æ° |
| | | radioValue: 'å
¨é¨', |
| | | checkTypeVisible: false, |
| | | type: '', // é»è®¤ä¸éä¸çç¶æ |
| | |
| | | if (this.$route.name === 'ForInspectionDetail') this.showDetail = true |
| | | }, |
| | | methods: { |
| | | async handleClick(row){ |
| | | // console.log(item); |
| | | // const res = await ddd({goodId:id}) |
| | | // this.$message({ |
| | | // message: 'æåä½ ï¼è¿æ¯ä¸æ¡æåæ¶æ¯', |
| | | // type: 'success' |
| | | // }); |
| | | |
| | | // console.log(res); |
| | | this.inspectionTable = row; |
| | | console.log(row.icode); |
| | | this.icode = row.icode |
| | | this.$router.push({name:'Viewdetails',query: {icode:row.icode}}); |
| | | this.selectInspectsList() |
| | | }, |
| | | async selectInspectsList() { |
| | | // è·åå页å表 |
| | | const res = await selectInspectsList({ countSize: this.pageSize, pageSize: this.currentPage }) |
| | | const res = await selectInspectsList({ countSize: this.pageSize, pageSize: this.currentPage,message:this.icode}) |
| | | // this.inspectionTable = data |
| | | // console.log(res.data.row) |
| | | const data = res.data.row |
| | |
| | | this.total = this.inspectionTable.length |
| | | }, |
| | | reset(){ |
| | | this.searchData = { |
| | | applicationnumber: '', |
| | | type: '', |
| | | state: '' |
| | | } |
| | | this.countSize = 1 |
| | | this.searchData = { } |
| | | // console.log('2222'); |
| | | this.selectInspectsList() |
| | | }, |
| | | //被éä¸çä¿¡æ¯ åé |
| | | //被éä¸çä¿¡æ¯ åé |
| | | handleSelectionChange(val) { |
| | | if (val.length > 1) { |
| | | this.$refs.multipleTable.clearSelection(); |
| | | this.$refs.multipleTable.clearSelection(); |
| | | this.$refs.multipleTable.toggleRowSelection(val.pop()) |
| | | } |
| | | this.tmp = val[0] |
| | |
| | | this.rawmaterialVisible = false |
| | | }, |
| | | async handleRadioChange(){ |
| | | console.log(this.type) |
| | | if(this.type === 0){ |
| | | // åæææ¥æ£ |
| | | this.rawmaterialVisible = true |
| | | const res = await selectAll({type: this.type}) |
| | | var data = res.data |
| | | data.forEach((item)=>{ |
| | | var checkdate = [] |
| | | checkdate.push(item['createTime']) |
| | | checkdate.push(item['updateTime']) |
| | | item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | }) |
| | | this.rawMaterialTable = data |
| | | // this.rawmaterialVisible = true |
| | | // const res = await selectAll({type: this.type}) |
| | | // var data = res.data |
| | | // data.forEach((item)=>{ |
| | | // var checkdate = [] |
| | | // checkdate.push(item['createTime']) |
| | | // checkdate.push(item['updateTime']) |
| | | // item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | // }) |
| | | this.$router.push({ name: 'ReportForInspection' }); |
| | | }else if(this.type === 1){ |
| | | this.commisionVisible = true |
| | | const res = await selectAll({type: this.type}) |
| | | var data = res.data |
| | | data.forEach((item)=>{ |
| | | var checkdate = [] |
| | | checkdate.push(item['startTime']) |
| | | checkdate.push(item['endTime']) |
| | | item['checkdate_'] = item['startTime'] + '~' + item['endTime'] |
| | | item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | }) |
| | | this.commisionTable = res.data |
| | | // this.commisionVisible = true |
| | | // const res = await selectAll({type: this.type}) |
| | | // var data = res.data |
| | | // data.forEach((item)=>{ |
| | | // var checkdate = [] |
| | | // checkdate.push(item['startTime']) |
| | | // checkdate.push(item['endTime']) |
| | | // item['checkdate_'] = item['startTime'] + '~' + item['endTime'] |
| | | // item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | // }) |
| | | // this.commisionTable = res.data |
| | | this.$router.push({ name: 'CommissionInspection' }); |
| | | } |
| | | }, |
| | | // æ°å¢æ£éª |
| | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | |
| | | <style lang="scss" scoped> |
| | | .checkType{ |
| | | .check-box{ |
| | |
| | | border-color: #b3d8ff; |
| | | ::v-deep .el-radio__label{ |
| | | color: #333 !important; |
| | | |
| | | |
| | | } |
| | | } |
| | | height: auto; |
| | |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | |
| | | .getDataBtn, .createBtn { |
| | | margin-left: 10px; /* Optional: Add some space between the buttons */ |
| | | } |