ruanqi 4 years ago
parent
commit
9b766b3e14
  1. 38
      src/views/modules/common/updateProductRouting.vue
  2. 10
      src/views/modules/schedule/order_schedule.vue

38
src/views/modules/common/updateProductRouting.vue

@ -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() {

10
src/views/modules/schedule/order_schedule.vue

@ -182,11 +182,11 @@
<hr width="95%" />
<el-dropdown-item class="customer-li" command="重新排产"
:disabled="primaryMenuButton.reScheduleOrderFlag">重新排产</el-dropdown-item>
<hr width="95%"/>
<el-dropdown-item class="customer-li" command="更改工艺路线"
:disabled="primaryMenuButton.updateProductRouting">更改工艺路线</el-dropdown-item>
<el-dropdown-item class="customer-li" command="更改工艺路线版本"
:disabled="primaryMenuButton.updateProductRouting">更改工艺路线版本</el-dropdown-item>
<!-- <hr width="95%"/>-->
<!-- <el-dropdown-item class="customer-li" command="更改工艺路线"-->
<!-- :disabled="primaryMenuButton.updateProductRouting">更改工艺路线</el-dropdown-item>-->
<!-- <el-dropdown-item class="customer-li" command="更改工艺路线版本"-->
<!-- :disabled="primaryMenuButton.updateProductRouting">更改工艺路线版本</el-dropdown-item>-->
<hr width="95%" />
<el-dropdown-item class="customer-li" command="查看物料库存"
:disabled="primaryMenuButton.partStockFlag">查看物料库存</el-dropdown-item>

Loading…
Cancel
Save