| | |
| | | <!-- </el-col>--> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | type="success" |
| | | plain |
| | | icon="el-icon-download" |
| | | icon="el-icon-wind-power" |
| | | size="mini" |
| | | @click="getProductionNotice" |
| | | v-hasPermi="['om:productionOrde:receive']" |
| | |
| | | |
| | | getProductionNotice(){ |
| | | getProductionNotice(this.queryParams).then(response => { |
| | | this.$modal.msgSuccess(response.data.msg); |
| | | |
| | | this.$modal.msgSuccess(response.msg); |
| | | this.queryParams = {} |
| | | this.getList(); |
| | | }); |
| | |
| | | this.materialQueryParams.materialCode = response.data.productCode; |
| | | listMaterial(this.materialQueryParams).then(response => { |
| | | this.markNo = response.rows[0].mark |
| | | this.form.typeL = response.rows[0].typeL; |
| | | }); |
| | | this.form = response.data; |
| | | this.Createopen = true; |
| | |
| | | model: this.form.typeZ, |
| | | modelDate: this.form.dateTimeRule, |
| | | } |
| | | if(startCode>999){ |
| | | this.$message.error('起始编号超出最大范围,请输入1-999的数字!'); |
| | | return; |
| | | }else if(startCode<1){ |
| | | this.$message.error('起始编号超出最小范围,请输入1-999的数字!'); |
| | | return; |
| | | } |
| | | listModelNumber(queryParams).then(response => { |
| | | if(response.rows.length === 0){ |
| | | this.saveBoxCode() |
| | | }else { |
| | | let maxNumValue = response.rows[0].maxnumValue; |
| | | if(startCode<maxNumValue){ |
| | | this.$message.error('新建的不能比查询出的小'); |
| | | return; |
| | | this.$message.error('箱体条码重复,请重新输入起始编号!'); |
| | | }else { |
| | | this.saveBoxCode() |
| | | } |