|
|
|
@ -17,8 +17,8 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
<el-button class="customer-bun-min" type="primary" @click="addModel" style="margin-left: 0px; margin-bottom: 0px;">新增</el-button> |
|
|
|
<el-button class="customer-bun-min" type="primary" @click="refreshPageTables" style="margin-left: 0px; margin-bottom: 0px;">编辑</el-button> |
|
|
|
<el-button class="customer-bun-min" type="primary" @click="refreshPageTables" style="margin-left: 0px; margin-bottom: 0px;">删除</el-button> |
|
|
|
<el-button class="customer-bun-min" type="primary" @click="updateModel" style="margin-left: 0px; margin-bottom: 0px;">编辑</el-button> |
|
|
|
<el-button class="customer-bun-min" type="primary" @click="deleteSORoutingData" style="margin-left: 0px; margin-bottom: 0px;">删除</el-button> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:height="height" |
|
|
|
@ -101,8 +101,8 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="saveRoutingDetailData()">保存</el-button> |
|
|
|
<el-button type="primary" @click="detailmodelFlag = false">关闭</el-button> |
|
|
|
<el-button type="primary" @click="saveSORoutingData()">保存</el-button> |
|
|
|
<el-button type="primary" @click="addModelFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
@ -132,6 +132,7 @@ |
|
|
|
addModelFlag:false, |
|
|
|
height:350, |
|
|
|
dataList:[], |
|
|
|
dataListLoading:false, |
|
|
|
currentRow:null, |
|
|
|
columnList:[ |
|
|
|
{ |
|
|
|
@ -595,8 +596,35 @@ |
|
|
|
this.detailData.itemNo+=10; |
|
|
|
} |
|
|
|
this.addModelFlag=true; |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
updateModel(){ |
|
|
|
if(this.currentRow==null){ |
|
|
|
this.$alert('请选择工序', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
this.detailData={ |
|
|
|
itemNo:this.currentRow.itemNo, |
|
|
|
operationDesc:this.currentRow.operationDesc, |
|
|
|
workCenterNo:this.currentRow.workCenterNo, |
|
|
|
machSetupTime:this.currentRow.machSetupTime, |
|
|
|
machRunFactor:this.currentRow.machRunFactor, |
|
|
|
factorUnit:this.currentRow.factorUnit, |
|
|
|
planStartTime:this.currentRow.planStartTime, |
|
|
|
planFinishTime:this.currentRow.planFinishTime, |
|
|
|
efficiency:this.currentRow.efficiency, |
|
|
|
crewsize:this.currentRow.crewsize, |
|
|
|
remark:this.currentRow.remark, |
|
|
|
site:this.currentRow.site, |
|
|
|
partNo:this.currentRow.partNo, |
|
|
|
revNo:this.currentRow.revNo, |
|
|
|
add:1, |
|
|
|
user:this.$store.state.user.name, |
|
|
|
} |
|
|
|
this.addModelFlag=true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
|
|
|
|
|