| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://192.168.110.254:1234/' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | |
| | | |
| | | # base api |
| | | # VUE_APP_BASE_API = '/prod-api' |
| | | VUE_APP_BASE_API = 'http://192.168.137.138:1234/' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | | |
| | |
| | | </el-form-item> |
| | | <div class="rightBtn"> |
| | | <el-form-item> |
| | | <el-button type="primary" plain size="mini">清空</el-button> |
| | | <el-button type="primary" @click="clear" plain size="mini">清空</el-button> |
| | | <el-button type="primary" @click="search" size="mini">查询</el-button> |
| | | </el-form-item> |
| | | </div> |
| | |
| | | console.log("主线程"+index); |
| | | } |
| | | }, |
| | | clear(){ |
| | | this.searchData.date=[] |
| | | this.searchData.type=null |
| | | this.searchData.supplier=null |
| | | this.searchData.code=null |
| | | }, |
| | | async search() { |
| | | this.testSampleStatistics = null |
| | | this.supplierNoPassStatistics = null |
| | |
| | | </el-form-item> |
| | | <el-form-item label="规格型号:" prop="specificationsNumber"> |
| | | <el-cascader v-model="insertData.specificationsNumber" :options="childrenOptions" |
| | | :props="{label: 'Name', value: 'Name'}" separator="-"></el-cascader> |
| | | :props="{label: 'Name', value: 'Id'}" separator="-"></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item label="单位:" prop="unit"> |
| | | <el-input type="text" v-model="insertData.unit" /> |
| | |
| | | getChooseVersion, |
| | | lookProByVer |
| | | } from '@/api/inspection/rawmaterial' |
| | | import ItemVue from '@/layout/components/Sidebar/Item.vue' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | insert() { |
| | | this.$refs['addMaterialForm'].validate((valid) => { |
| | | if (valid) { |
| | | console.log(this.childrenOptions); |
| | | console.log(this.insertData); |
| | | let f=this.childrenOptions.filter(item=>{ |
| | | return item.Id===this.insertData.specificationsNumber[0] |
| | | })[0] |
| | | console.log(f); |
| | | let fatherName=f.Name; |
| | | let c=f.children.filter(item=>{ |
| | | return item.Id===this.insertData.specificationsNumber[1] |
| | | })[0] |
| | | let sonName=c.Name |
| | | let specificationsId=c.Id; |
| | | var str = { |
| | | "dateSurvey": this.insertData.fromDate, |
| | | "materialCoding": this.insertData.mCode, |
| | | "materialName": this.insertData.mName, |
| | | "quantity": this.insertData.num, |
| | | "specificationsModels": this.insertData.specificationsNumber[0] + '-' + this.insertData |
| | | .specificationsNumber[1], |
| | | "specificationsModels": fatherName+ '-' + sonName, |
| | | "specificationsId": specificationsId, |
| | | "supplierName": this.insertData.supplierName, |
| | | "type": 0, |
| | | "unit": this.insertData.unit |
| | |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table v-if="this.radioValue == 0" :max-height="800" :cell-style="{ textAlign: 'center' }" |
| | | <el-table v-if="this.radioValue == 0" :max-height="500" :cell-style="{ textAlign: 'center' }" |
| | | :header-cell-style="{ border: '0px', background: '#f5f7fa', color: '#606266', boxShadow: 'inset 0 1px 0 #ebeef5', textAlign: 'center' }" |
| | | :data="measureLedgerTable" style="width: 100%"> |
| | | <el-table-column type="index" min-width="10%" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-table v-show="this.radioValue == 1" :max-height="800" :cell-style="{ textAlign: 'center' }" |
| | | <el-table v-show="this.radioValue == 1" :max-height="500" :cell-style="{ textAlign: 'center' }" |
| | | :header-cell-style="{ border: '0px', background: '#f5f7fa', color: '#606266', boxShadow: 'inset 0 1px 0 #ebeef5', textAlign: 'center' }" |
| | | :data="measurePlanTable" style="width: 100%"> |
| | | <el-table-column type="index" min-width="10%" /> |
| | |
| | | <!-- 分页器 --> |
| | | <div style="display: flex;justify-content: end;padding: 10px 0;"> |
| | | <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" |
| | | :current-page="currentPage" :page-sizes="[5, 10, 20]" :page-size="pageSize" |
| | | :current-page="currentPage" :page-sizes="[10, 20, 30]" :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | |
| | | measureLedgerTable: [], |
| | | measurePlanTable: [], |
| | | currentPage: 1, |
| | | pageSize: 5, |
| | | pageSize: 10, |
| | | total: 0, |
| | | currentPagePlan: 1, |
| | | pageSizePlan: 5, |
| | | pageSizePlan: 10, |
| | | totalPlan: 0, |
| | | direction: 'rtl', |
| | | lookVisible: false, |
| | |
| | | }); |
| | | this.lookVisible = false |
| | | this.addBtn = false |
| | | this.getPlanPageList() |
| | | this.limitGetPlanMeasureInstrument() |
| | | }, |
| | | async handleSizeChangePlan(num) { |
| | |
| | | this.reset() |
| | | }, |
| | | async getPlanPageList() { |
| | | console.log(111); |
| | | let param = { |
| | | currentPage: this.currentPage, |
| | | pageSize: this.pageSize, |
| | |
| | | }) |
| | | this.measurePlanTable = res.data.list |
| | | this.total = res.data.total |
| | | console.log(333); |
| | | }, |
| | | async lookMeasurement(code) { |
| | | }, |
| | |
| | | <el-form-item class="rightBtn"> |
| | | <el-col> |
| | | <el-button type="primary" @click="searchRole">查询</el-button> |
| | | <el-button type="primary" plain>重置</el-button> |
| | | <el-button type="primary" @click="clear()" plain>重置</el-button> |
| | | </el-col> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | searchRole() { |
| | | this.start() |
| | | }, |
| | | clear(){ |
| | | this.searchData.roleName='' |
| | | this.start() |
| | | }, |
| | | clearUPAll() { |
| | | this.updateRole = { |
| | | roleId: null, |