| | |
| | | placeholder="请先选择车间" |
| | | no-data-text='请先选择车间' |
| | | class="select-width" |
| | | @change='getGroupNumber' |
| | | @change="getGroupNumber(false,'groupNumber')" |
| | | > |
| | | <el-option |
| | | v-for="item in workshopGroupList" |
| | |
| | | } |
| | | }); |
| | | }, |
| | | getGroupNumber(val){ |
| | | getGroupNumber(val,prop){ |
| | | if(this.ruleForm.workshopNumber){ |
| | | //组别 |
| | | getWorkshopManageGroup({number:this.ruleForm.workshopNumber}).then((res) => { |
| | | if (res.code == 200) { |
| | | let workshopGroupList = res.data || {}; |
| | | this.workshopGroupList=[] |
| | | this.ruleForm.groupNumber='' |
| | | if(Object.keys(workshopGroupList).length>0){ |
| | | for(let i in workshopGroupList){ |
| | | this.workshopGroupList.push(workshopGroupList[i]) |
| | | } |
| | | if(prop&&prop!='groupNumber'){ |
| | | this.ruleForm.groupNumber='' |
| | | } |
| | | // 编辑 |
| | | if(val){ |
| | | this.$set(this.ruleForm,'groupNumber',this.ruleForm.groupNumber) |
| | | setTimeout(()=>{ |
| | | this.$set(this.ruleForm,'groupNumber',this.ruleForm.groupNumber) |
| | | },200) |
| | | } |
| | | } |
| | | }else{ |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-form-item label="车间" prop="workshopId"> |
| | | <el-form-item label="车间" prop="workshopNumber"> |
| | | <el-select |
| | | v-model="proForm.workshopId" |
| | | v-model="proForm.workshopNumber" |
| | | placeholder="请选择" |
| | | class="select-width" |
| | | @change="getGroupNumber" |
| | |
| | | proForm: { |
| | | createTime: "", |
| | | groupNumber: "", |
| | | workshopId: "", |
| | | workshopNumber: "", |
| | | spec: "", |
| | | marketId: "", |
| | | tareWeight: "", |
| | |
| | | marketId: [ |
| | | { required: true, message: "请选择", trigger: ["change", "blur"] }, |
| | | ], |
| | | workshopId: [ |
| | | workshopNumber: [ |
| | | { required: true, message: "请选择", trigger: ["change", "blur"] }, |
| | | ], |
| | | groupNumber: [ |
| | |
| | | deep: true, |
| | | immediate:true, |
| | | }, |
| | | 'form.workshopId': function () { |
| | | 'form.workshopNumber': function () { |
| | | this.getGroupNumber() |
| | | } |
| | | }, |
| | |
| | | getInfo(){ |
| | | this.proForm.createTime=this.form.createTime |
| | | this.proForm.groupNumber=this.form.groupNumber |
| | | this.proForm.workshopId=this.form.workshopId |
| | | this.proForm.workshopNumber=this.form.workshopNumber |
| | | this.proForm.spec=this.form.spec |
| | | this.proForm.marketId=this.form.marketId |
| | | if(!this.proForm.carNumber){ |
| | |
| | | this.$forceUpdate(); |
| | | }, |
| | | getGroupNumber(){ |
| | | if(this.proForm.workshopId){ |
| | | if(this.proForm.workshopNumber){ |
| | | //组别 |
| | | getWorkshopManageGroup({number:this.proForm.workshopId}).then((res) => { |
| | | getWorkshopManageGroup({number:this.proForm.workshopNumber}).then((res) => { |
| | | if (res.code == 200) { |
| | | this.workshopGroupList=[] |
| | | let workshopGroupList = res.data || {}; |
| | | this.workshopGroupList=[] |
| | | this.ruleForm.groupNumber='' |
| | | if(Object.keys(workshopGroupList).length>0){ |
| | | for(let i in workshopGroupList){ |
| | | this.workshopGroupList.push(workshopGroupList[i]) |
| | |
| | | } |
| | | }, |
| | | changeForm(val){ |
| | | if(this.editDialogVisible&&this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopId){ |
| | | if(this.editDialogVisible&&this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopNumber){ |
| | | changeYieldRegister({ |
| | | createTime: this.proForm.createTime, |
| | | groupNumber: this.proForm.groupNumber, |
| | | marketId: this.proForm.marketId, |
| | | spec: this.proForm.spec, |
| | | workshopId: this.proForm.workshopId, |
| | | workshopNumber: this.proForm.workshopNumber, |
| | | }).then((res) => { |
| | | if (res.code == 200) { |
| | | if(res.data){ |
| | |
| | | placeholder="请先选择车间" |
| | | no-data-text="请先选择车间" |
| | | class="select-width" |
| | | @change="getGroupNumber" |
| | | > |
| | | <el-option |
| | | v-for="item in workshopGroupList" |
| | |
| | | <div class="edit-sace-label">{{ isEdit ? "锁定保存" : "界面设计" }}</div> |
| | | </div> |
| | | <div> |
| | | 111:{{ this.silkTableList.tableData }} |
| | | <SilkTableList |
| | | :detail-enter="isEdit" |
| | | :silk-table-list="silkTableList" |
| | |
| | | } |
| | | }, |
| | | saveParam() { |
| | | let saveList = this.tableData.map((item) => { |
| | | let tableData=JSON.parse( |
| | | JSON.stringify(this.silkTableList.tableData) |
| | | ); |
| | | for(let i in tableData){ |
| | | tableData[i].dynamicsRanks=[] |
| | | for(let j in this.columnInputList){ |
| | | tableData[i].dynamicsRanks.push({ |
| | | rankName:this.columnInputList[j].rankName, |
| | | rankProp:this.columnInputList[j].rankProp, |
| | | rankValue:tableData[i][this.columnInputList[j].rankProp] |
| | | }) |
| | | } |
| | | } |
| | | let saveList = tableData.map((item) => { |
| | | return { |
| | | checkItem: item.checkItem, |
| | | dynamicsRanks: item.dynamicsRanks, |
| | |
| | | item.rankName = val |
| | | } |
| | | }) |
| | | console.log(this.columnInputList, "888") |
| | | }, |
| | | getCheckItemName(val) { |
| | | if (val) { |