| | |
| | | 车间订单<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in orderTypeArr" :disabled="item.disabled">{{ |
| | | <el-dropdown-item :key="index" :command="item.command" v-for="(item,index) in orderTypeArr" :disabled="item.disabled">{{ |
| | | item.label }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | |
| | | 状态改变<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in stateTagArr" :disabled="item.disabled">{{ |
| | | <el-dropdown-item :key="index" :command="item.command" v-for="(item,index) in stateTagArr" :disabled="item.disabled">{{ |
| | | item.label }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | |
| | | 工艺文件<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in documentTagArr" :disabled="item.disabled"> |
| | | <el-dropdown-item :key="index" :command="item.command" v-for="(item,index) in documentTagArr" :disabled="item.disabled"> |
| | | {{ item.label }} |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | |
| | | 审核状态改变<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in commitStateTagArr" :disabled="item.disabled">{{item.label }}</el-dropdown-item> |
| | | <el-dropdown-item :key="index" :command="item.command" v-for="(item,index) in commitStateTagArr" :disabled="item.disabled">{{item.label }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | <el-button v-if="permissions.masterproductionschedule_submit_oa" @click="commitOa()" type="primary" |
| | | <!-- <el-button v-if="permissions.masterproductionschedule_submit_oa" @click="commitOa()" type="primary" |
| | | style="margin-left:10px;" :loading="loadingOa">提交OA |
| | | </el-button> |
| | | </el-button> --> |
| | | <!-- <el-button |
| | | v-if="permissions.masterproductionschedule_sync_scm" |
| | | @click="syncScm()" |
| | |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | >SCM状态变更 |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | @click="addPlanProcure" |
| | | >新增采购计划 |
| | | </el-button> --> |
| | | </el-button> |
| | | </template> |
| | | </ttable> |
| | | |
| | |
| | | import { |
| | | delObj, |
| | | fetchList, |
| | | loadOrderHandle |
| | | loadOrderHandle, |
| | | addPlanPurchasing |
| | | } from '@/api/plan/masterproductionschedule' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import stockDialog from '@/views/common/stock' |
| | |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // { |
| | | // minWidth: '140', |
| | | // prop: 'outerColor', |
| | | // label: '外护颜色', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // { |
| | | // minWidth: '140', |
| | | // prop: 'lengthRequirement', |
| | | // label: '盘长要求', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // { |
| | | // minWidth: '140', |
| | | // prop: 'printRequirement', |
| | | // label: '印字要求', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'outerColor', |
| | | label: '外护颜色', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'lengthRequirement', |
| | | label: '盘长要求', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'printRequirement', |
| | | label: '印字要求', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'orderRemark', |
| | | prop: 'remark', |
| | | label: '销售订单备注', |
| | | sort: true, |
| | | isTrue: true, |
| | |
| | | this.getSysParam(sysParam.IS_REPORT_OPERATION) |
| | | }, |
| | | methods: { |
| | | addPlanProcure(){ |
| | | let val=this.masterPlanSelection.filter(item=>{ |
| | | return item.technologyDocumentId==null||item.technologyDocumentId==''||item.docNumber==''||item.docNumber==null |
| | | }) |
| | | if(val.length>0){ |
| | | this.$message.warning("当前所选择的计划,含有未绑定工艺文件!") |
| | | return |
| | | } |
| | | addPlanPurchasing(this.masterPlanSelection).then(res=>{ |
| | | console.log(res); |
| | | }) |
| | | }, |
| | | deleteMainPlan(row){ |
| | | console.log(row); |
| | | }, |