modified: src/api/plan/masterproductionschedule.js
modified: src/views/plan/customerorder/index.vue
modified: src/views/plan/customerorder/sample-customerorder-form.vue
modified: src/views/plan/customerorder/schedule-table.vue
modified: src/views/plan/masterproductionschedule/index.vue
| | |
| | | }) |
| | | } |
| | | |
| | | export function addPlanPurchasing(obj) { |
| | | return request({ |
| | | url: '/mes/masterProductionSchedule/addPlanPurchasing', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | export function getObj(id) { |
| | | return request({ |
| | | url: '/mes/masterProductionSchedule/' + id, |
| | |
| | | minWidth: '140', |
| | | width: '120', |
| | | prop: 'deliveryDate', |
| | | label: '交货时间', |
| | | label: '计划交货时间', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'datetimerange', |
| | | formatter: this.formatDutyDate |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | width: '120', |
| | | prop: 'wantedDeliveryDate', |
| | | label: '客户期望交货时间', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | |
| | | this.showPart = true |
| | | }, |
| | | selectPart(part) { |
| | | console.log(part); |
| | | const index = this.currentSelectRow |
| | | if (part) { |
| | | this.tableData[index].partId=part.id |
| | | this.tableData[index].partNo = part.partNo |
| | | this.tableData[index].customerPartSpec = part.specs |
| | | this.tableData[index].productName = part.partName |
| | |
| | | label="本次计划数量" |
| | | > |
| | | <template scope="scope"> |
| | | <el-form-item>{{ scope.row.qtyPlaned }}</el-form-item> |
| | | <!-- <el-form-item |
| | | <!-- <el-form-item>{{ scope.row.qtyPlaned }}</el-form-item> --> |
| | | <el-form-item |
| | | :prop="'customer.' + scope.$index" |
| | | :rules="rules.qtyPlaned" |
| | | > |
| | | <el-input |
| | | v-model="scope.row.qtyPlaned" |
| | | placeholder="请输入本次计划数量" |
| | | ></el-input> --> |
| | | <!-- </el-form-item> --> |
| | | ></el-input> |
| | | </el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | label="需求日期" |
| | | label="计划日期" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item>{{ scope.row.deliveryDate }}</el-form-item> |
| | |
| | | <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | label="客户需求日期" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item>{{ scope.row.wantedDeliveryDate }}</el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | show-overflow-tooltip |
| | | label="备注" |
| | | min-width="140" |
| | |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item 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()" |
| | |
| | | <el-button |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | @click="addPlanProcure" |
| | | >新增采购计划 |
| | | </el-button> |
| | | </template> |
| | |
| | | import { |
| | | delObj, |
| | | fetchList, |
| | | loadOrderHandle |
| | | loadOrderHandle, |
| | | addPlanPurchasing |
| | | } from '@/api/plan/masterproductionschedule' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import stockDialog from '@/views/common/stock' |
| | |
| | | // }, |
| | | { |
| | | 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); |
| | | }, |