Merge remote-tracking branch 'origin/master'
# Conflicts:
# src/views/equipment/metering/metering-form.vue
# src/views/quality/finishedProductInspection/finishedProduct-form.vue
| | |
| | | # Lock File |
| | | package-lock.json |
| | | yarn.lock |
| | | |
| | | # config.js |
| | | vue.config.js |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="校准时间" prop="createTime"> |
| | | <el-date-picker |
| | | v-model="dataForm.createTime" |
| | | align="right" |
| | | type="date" |
| | | placeholder="校准时间" |
| | | :picker-options="pickerOptions"> |
| | | </el-date-picker> |
| | | <el-date-picker |
| | | v-model="dataForm.createTime" |
| | | type="datetime" |
| | | placeholder="校准时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="到期时间" prop="updateTime"> |
| | | <el-date-picker |
| | | v-model="dataForm.updateTime" |
| | | type="datetime" |
| | | placeholder="校准到期时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="校准到期时间" prop="updateTime"> |
| | | <el-date-picker |
| | | v-model="dataForm.updateTime" |
| | | align="right" |
| | | type="date" |
| | | placeholder="校准到期时间" |
| | | :picker-options="pickerOptions"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- <el-col :span="12"> |
| | | <el-form-item label="类型" prop="type"> |
| | | <el-select |
| | | v-model="dataForm.type" |
| | | 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="createUser"> |
| | | <el-input |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | |
| | | <el-col :span="12"> |
| | | <el-form-item label="责任部门" prop="responsibleDepartment"> |
| | | <el-input |
| | |
| | | placeholder="检定/校准" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="分类" prop="classification"> |
| | | <el-input |
| | |
| | | placeholder="分类" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="定点位置" prop="fixedPointPosition"> |
| | | <el-input |
| | |
| | | placeholder="定点位置" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-col> |
| | | |
| | | |
| | | |
| | | <!-- <el-col :span="12"> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | pickerOptions: { |
| | | disabledDate(time) { |
| | | return time.getTime() > Date.now(); |
| | | } |
| | | }, |
| | | |
| | | },}, |
| | | // options: regionData, |
| | | visible: false, |
| | | dataForm: { |
| | |
| | | manufactureDate: '', |
| | | installDate: '', |
| | | // state: '', |
| | | verification:'', |
| | | inspectionUnit:'', |
| | | specifications:'', |
| | | responsibleDepartment:'', |
| | | // createUser:'', |
| | | classification:'', |
| | | createUser:'', |
| | | status:'', |
| | | |
| | | |
| | | updateTime:'', |
| | | createTime:'', |
| | | description: '', |
| | | value1: '', |
| | | certificate:'', |
| | | fixedPointPosition:'', |
| | | code: null, |
| | | // type: null, |
| | | // status: null, |
| | | status: null, |
| | | supplier: null |
| | | }, |
| | | dataRule: { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | initFactorySelect() { |
| | | loadFactoryList().then((res) => { |
| | | this.factoryOptions = res.data |
| | |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | |
| | | created() { |
| | | this.initFactorySelect() |
| | | this.getEquipmentState() |
| | | |
| | | |
| | | // remote('work_shop').then((response) => { |
| | | // if (response.data.code === 0) { |
| | | // this.workshopList = response.data.data |
| | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | <h2 v-else>编辑-产品检验单</h2> |
| | | </div> |
| | | <div class="btn-group header-right"> |
| | | <el-button @click="addTestProject" v-if="processInspectVo.id==null">生成检验项目</el-button> |
| | | <el-button @click="addTestProject" type="primary" v-if="processInspectVo.id==null">生成检验项目</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="page-main"> |
| | |
| | | class="item" effect="dark" content="请先选择设备!" placement="top-start"> |
| | | <el-input :disabled="scope.row.eId == null" |
| | | v-model="scope.row.inote" |
| | | @blur="changeState(scope.row, index)" placeholder="请输入检验描述"></el-input> |
| | | @blur="changeState(scope.row, index)" placeholder="请输入检测值"></el-input> |
| | | <!-- <el-select style="width: 100%;" @change="changeState(scope.row, index)" :disabled="scope.row.eId == null" v-model="scope.row.inote" placeholder="请选择"> |
| | | <el-option v-for="item in dataVal" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | submitSave(){ |
| | | let pro = 0 |
| | | this.inspectionItems.forEach(item => { |
| | |
| | | }) |
| | | }, |
| | | updateDevice(row,index){ |
| | | updateDeviceById({deviceId:row.eId,fpid:row.iId}).then(res=>{ |
| | | updateDeviceById({equiomentId:row.eId,fpid:row.iId}).then(res=>{ |
| | | this.inspectionItems.forEach(obj=>{ |
| | | if(obj.children){ |
| | | obj.children[index-1].inspectionValue = '' |
| | |
| | | return |
| | | } |
| | | let obj = { |
| | | deviceId: row.eId, |
| | | equiomentId: row.eId, |
| | | fpid: row.iid, |
| | | inspectionValue: str, |
| | | note : row.inote |
| | |
| | | }, |
| | | showPrint(row){ |
| | | queryById(row.id).then(res=>{ |
| | | console.log(res); |
| | | this.printFormData = res.data.data |
| | | this.printFormData = res.data.data |
| | | this.printDialogVisible = true |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }) |
| | | }, |
| | | exportExcel(){ |
| | | console.log("============"); |
| | | let queryParam=this.$refs.finishedProduct.getQueryParam(); |
| | | delete queryParam.criteria |
| | | console.log(queryParam); |
| | |
| | | }) |
| | | }, |
| | | updateDevice(row, index) { |
| | | let rowId=JSON.stringify(row.iid) |
| | | updateDeviceBypppId({ deviceId: row.eId, ppid: row.iid }).then(res => { |
| | | this.inspectionItems.forEach(obj => { |
| | | console.log(obj); |
| | | if (obj.children) { |
| | | obj.children[index - 1].inspectionValue = null |
| | | obj.children[index - 1].iresult = null |
| | | obj.children[index - 1].empiricalValueAddss = [] |
| | | obj.children[index-1].inote='' |
| | | } |
| | | obj.children.forEach(c=>{ |
| | | if(c.iid==rowId){ |
| | | c.inspectionValue = null |
| | | c.iresult = null |
| | | c.empiricalValueAddss = [] |
| | | c.inote='' |
| | | } |
| | | }) |
| | | }) |
| | | }).catch(error => { |
| | | console.log(error) |
| | |
| | | <h2 v-else>编辑-原材料检验</h2> |
| | | </div> |
| | | <div class="btn-group header-right"> |
| | | <el-button @click="save()" v-if="this.dataForm.id==null">保存</el-button> |
| | | <el-button type="primary" @click="save()" v-if="this.dataForm.id==null">保存</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="page-main"> |
| | |
| | | }, |
| | | // 确认回调 |
| | | selectPart(param, nodePart, index) { |
| | | console.log(param) |
| | | if (typeof param !== 'undefined') { |
| | | this.dataForm.code = param.code |
| | | this.dataForm.name = param.name |