Merge remote-tracking branch 'origin/master'
| | |
| | | bsOrderScheduling.setProductionStatus("1"); |
| | | bsOrderScheduling.setOperator(getUserName()); |
| | | bsOrderScheduling.setOperateTime(fomateDate); |
| | | bsOrderScheduling.setProductType(omProductionOrdeInfo.getTypeL());//产品类型 |
| | | bsOrderSchedulingService.insertBsOrderScheduling(bsOrderScheduling); |
| | | startCode++; |
| | | } |
| | |
| | | bsModelNumber.setModelDate(dateTimeRule); |
| | | bsModelNumber.setMaxnumValue((startCode - 1) + ""); |
| | | bsModelNumber.setSaveTime(fomateDate); |
| | | bsModelNumber.setLastNumber((startCode - 1) + ""); |
| | | bsModelNumberService.insertBsModelNumber(bsModelNumber); |
| | | } |
| | | //更新工单状态 |
| | |
| | | @Excel(name = "种类") |
| | | private String typeZ; |
| | | |
| | | private String typeL; |
| | | |
| | | /** 预留字段1 */ |
| | | private String spareField1; |
| | | |
| | |
| | | return typeZ; |
| | | } |
| | | |
| | | public String getTypeL() { |
| | | return typeL; |
| | | } |
| | | |
| | | public void setTypeL(String typeL) { |
| | | this.typeL = typeL; |
| | | } |
| | | |
| | | |
| | | @Override |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="产品型号" align="center" prop="typeZ" width="150"> |
| | | <el-table-column label="机型" align="center" prop="typeZ" width="150"> |
| | | </el-table-column> |
| | | <el-table-column label="特殊代码" align="center" prop="mark" width="120"> |
| | | </el-table-column> |
| | |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label-width="100" label="上次的编号" prop="lastNumber"> |
| | | <!-- <el-form-item label-width="100" label="上次的编号" prop="lastNumber"> |
| | | <el-input |
| | | v-model="queryParams.lastNumber" |
| | | placeholder="请输入上次的编号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-form-item>--> |
| | | <!-- <el-form-item label="状态" prop="status">--> |
| | | <!-- <el-select v-model="queryParams.status" placeholder="请选择状态" clearable>--> |
| | | |
| | |
| | | <!-- </el-form-item>--> |
| | | <el-form-item style="float: right"> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button type="warning" icon="el-icon-copy-document" size="mini" @click="advancedQuery">高级查询</el-button> |
| | | <!-- <el-button type="warning" icon="el-icon-copy-document" size="mini" @click="advancedQuery">高级查询</el-button>--> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | |
| | | </el-table-column> |
| | | <el-table-column label="产品类型" align="center" prop="productType"> |
| | | |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.material_type" :value="scope.row.productType"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="机型" align="center" prop="model"> |
| | | |
| | |
| | | |
| | | export default { |
| | | name: "OrderScheduling", |
| | | dicts: ['order_scheduling_produce_status','quality_status','print_status'], |
| | | dicts: ['order_scheduling_produce_status','quality_status','print_status','material_type'], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | |
| | | 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() |
| | | } |