| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="温度循环要求填写" :visible.sync="circulateShow" width="800px" :show-close="false"> |
| | | <div class="search" style="display: flex;background: transparent;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">保温时间:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">循环次数:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">温度点:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | symbolList:[ |
| | | 'RTS','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'], |
| | | inspectionItem:null, |
| | | circulateShow:false, |
| | | circulateForm:{} |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$refs.productTable.toggleRowSelection(row, true); |
| | | }, |
| | | upProductSelect(selection, row) { |
| | | console.log('danxuan', row) |
| | | this.bsm1DiaList = [] |
| | | row.state = row.state == 1 ? 0 : 1 |
| | | if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 1) { |
| | |
| | | row.bsm1 = false |
| | | } |
| | | if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && this.sampleList.length > 1 && row.state === 1) { |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | if (this.bsm2Val2.length === 0) { |
| | | this.bsm2Val = (this.sampleList.length - 1) * this.sampleList.length / 2 |
| | | this.computationalPairing(this.sampleList.length) |
| | | this.bsm2Val2 = this.HaveJson(this.bsm2Val3) |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | } |
| | | } else if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && row.state === 1 && this.sampleList.length > 1) { |
| | | this.bsm2 = false |
| | |
| | | } |
| | | return item |
| | | }) |
| | | if (row.inspectionItem === '温度循环') { |
| | | this.circulateShow = true; |
| | | return |
| | | } |
| | | this.getProNum() |
| | | }, |
| | | permute(nums) { |
| | |
| | | this.entityCopy1 = this.HaveJson(this.componentData1.entity); |
| | | this.componentData.tagField.weekDay.select = this.weekList |
| | | this.componentData.selectField.weekDay.select = this.weekList |
| | | this.getPower() |
| | | }, |
| | | methods:{ |
| | | getPower(){ |
| | |
| | | if (power[i].menuMethod == 'insertAuxiliaryWorkingHoursDay') { |
| | | add = true |
| | | } |
| | | console.log(add) |
| | | if (power[i].menuMethod == 'updateAuxiliaryWorkingHoursDay') { |
| | | up = true |
| | | } |
| | |
| | | ratify = true |
| | | } |
| | | } |
| | | if (!approve) { |
| | | if (!ratify) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | if (!check) { |
| | |
| | | return |
| | | } |
| | | } |
| | | this.upLoad = true |
| | | for (var a in this.data.selectField) { |
| | | if (this.data.selectField[a].choose == true) { |
| | | this.upData[a] = JSON.stringify(this.upData[a]) |
| | | } |
| | | } |
| | | this.upHead.forEach((item, index) => { |
| | | if (this.data.cascaderField && this.data.cascaderField[item.label]) { |
| | | if (this.upData[item.label]) { |
| | | this.upData[item.label] = JSON.stringify(this.upData[item.label]) |
| | | } else { |
| | | this.upData[item.label] = '' |
| | | for (var i = 0; i < this.upHead.length; i++) { |
| | | if(this.upHead[i].label == 'password'){ |
| | | if(this.upData[this.upHead[i].label]){ |
| | | const reg2 =/^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?[~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?])[a-zA-Z\d~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?]*$/; |
| | | if (!reg2.test(this.upData[this.upHead[i].label])) { |
| | | this.$message.error('密码必须包括数字、大小写字母以及特殊字符') |
| | | return |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | if (this.data.cascaderField && this.data.cascaderField[this.upHead[i].label]) { |
| | | if (this.upData[this.upHead[i].label]) { |
| | | this.upData[this.upHead[i].label] = JSON.stringify(this.upData[this.upHead[i].label]) |
| | | } else { |
| | | this.upData[this.upHead[i].label] = '' |
| | | } |
| | | } |
| | | } |
| | | this.upLoad = true |
| | | this.$axios.post(this.upUrl, this.upData, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | this.editVisible = true; |
| | | }, |
| | | handleEdit(){ |
| | | const reg2 = |
| | | /^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?[~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?])[a-zA-Z\d~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?]*$/; |
| | | if (!this.query.oldPassword) { |
| | | this.$message.error('请填写旧密码') |
| | | return |
| | | }else if (!reg2.test(this.query.oldPassword)) { |
| | | this.$message.error('密码必须包括数字、大小写字母以及特殊字符') |
| | | return |
| | | } |
| | | if (!this.query.newPassWord) { |
| | | this.$message.error('请填写旧密码') |
| | | return |
| | | }else if (!reg2.test(this.query.newPassWord)) { |
| | | this.$message.error('密码必须包括数字、大小写字母以及特殊字符') |
| | | return |
| | | } |
| | | this.$axios.post(this.$api.user.upUserPassword, {...this.query}).then(res => { |
| | | if (res.code == 201) { |