Browse Source

0412 新看板

master
ruanqi 4 years ago
parent
commit
cb07b21757
  1. 4
      src/api/production.js
  2. 36
      src/views/modules/production/generateReport.vue
  3. 90
      src/views/modules/production/scheduleForSOTask.vue
  4. 137
      src/views/modules/production/scheduleForShopOrder.vue

4
src/api/production.js

@ -42,6 +42,10 @@ export const getShopOrderRoutingData=data => createAPI(`dailyPlan/getShopOrderRo
export const getSOTastRoutingData=data => createAPI(`dailyPlan/getSOTastRoutingData`, 'post', data); export const getSOTastRoutingData=data => createAPI(`dailyPlan/getSOTastRoutingData`, 'post', data);
export const getWorkCenterOperatorList=data => createAPI(`dailyPlan/getWorkCenterOperatorList`, 'post', data);
export const getAvailableResourceList=data => createAPI(`dailyPlan/getAvailableResourceList`, 'post', data);

36
src/views/modules/production/generateReport.vue

@ -12,22 +12,24 @@
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码</a></span> <span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码</a></span>
<el-input v-model="searchData.partNo" style="width: 120px"></el-input> <el-input v-model="searchData.partNo" style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-button @click="search()" style="margin-left: 0px;margin-top: 33px" type="primary">查询</el-button>
<download-excel
:fields="exportDataStandard"
:data="tableData"
type="xlsx"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:defaultValue="exportDefaultValue"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{'导出'}}
</download-excel>
<el-form-item :label="' '">
<el-button @click="search()" style="margin-left: 0px;margin-top:0px" type="primary">查询</el-button>
<download-excel
:fields="exportDataStandard"
:data="tableData"
type="xlsx"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:defaultValue="exportDefaultValue"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{'导出'}}
</download-excel>
</el-form-item>
</el-form> </el-form>
<el-table <el-table
:height="height" :height="height"
@ -271,7 +273,7 @@
import Chooselist from '@/views/modules/common/Chooselist' import Chooselist from '@/views/modules/common/Chooselist'
export default { export default {
name: 'searchDailyPlan',
name: 'generateReport',
components: { components: {
Chooselist Chooselist
}, },

90
src/views/modules/production/scheduleForSOTask.vue

@ -45,11 +45,11 @@
<el-form-item :label="'物料编码:'"> <el-form-item :label="'物料编码:'">
<el-input v-model="searchData.partNo" style="width: 120px"></el-input> <el-input v-model="searchData.partNo" style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'排产情况:'">
<el-form-item :label="'派工情况:'">
<el-select filterable v-model="searchData.planStatus" style="width: 120px"> <el-select filterable v-model="searchData.planStatus" style="width: 120px">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="未派工完" value="ROUND(a.LotSize,3) >ROUND(ISNULL(SL.scheduledQty,0),3)"></el-option>
<el-option label="已派工完" value="ROUND(ISNULL(SL.scheduledQty,0),3) >=ROUND(a.LotSize,3)"></el-option>
<el-option label="未派工完" value="ROUND(a.OrderQty,3) >ROUND(ISNULL(SL.scheduledQty,0),3)"></el-option>
<el-option label="已派工完" value="ROUND(ISNULL(SL.scheduledQty,0),3) >=ROUND(a.OrderQty,3)"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="' '"> <el-form-item :label="' '">
@ -203,19 +203,19 @@
</el-table> </el-table>
<el-dialog title="派工" :close-on-click-modal="false" v-drag :visible.sync="scheduledModalFlag" width="720px"> <el-dialog title="派工" :close-on-click-modal="false" v-drag :visible.sync="scheduledModalFlag" width="720px">
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="订单号:">
<el-form-item label="日计划号:">
<el-input v-model="schedulingModalData.orderNo" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.orderNo" disabled style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="工厂编号:"> <el-form-item label="工厂编号:">
<el-input v-model="schedulingModalData.site" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.site" disabled style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="生产订单号:">
<el-input v-model="schedulingModalData.orderRef1" disabled style="width: 120px"></el-input>
<el-form-item label="计划日期:">
<el-input v-model="schedulingModalData.orderDate" disabled style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="订单数量:"> <el-form-item label="订单数量:">
<el-input v-model="schedulingModalData.lotSize" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.lotSize" disabled style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="待排产数:">
<el-form-item label="待派工数:">
<el-input v-model="schedulingModalData.qtyToSchedule" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.qtyToSchedule" disabled style="width: 120px"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -237,30 +237,35 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="排产机台:">
<el-form-item label="派工机台:">
<el-select v-model="schedulingModalData.resourceId" style="width: 120px" <el-select v-model="schedulingModalData.resourceId" style="width: 120px"
placeholder="请选择"> placeholder="请选择">
<el-option
v-for="(item,index) in availableResourceList"
:key="index"
:label="item.resourceID"
:value="item.resourceID"
>
<el-option v-for="item in availableResourceList " :key="index" :label="item.ResouceDesc"
:value="item.ResourceID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="排产班次:">
<el-form-item label="派工班次:">
<el-select v-model="schedulingModalData.shiftNo" style="width: 120px" <el-select v-model="schedulingModalData.shiftNo" style="width: 120px"
placeholder="请选择"> placeholder="请选择">
<el-option label="白班" value="白班"></el-option> <el-option label="白班" value="白班"></el-option>
<el-option label="晚班" value="晚班"></el-option> <el-option label="晚班" value="晚班"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="本次累计排产数量:">
<el-form-item label="派工人员:">
<el-select v-model="schedulingModalData.operatorId" style="width: 120px"
placeholder="请选择">
<el-option v-for="item in operatorIdList " :key="index" :label="item.operatorName"
:value="item.operatorId">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="本次累计派工数量:">
<el-input v-model="schedulingModalData.sumQty" type="number" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.sumQty" type="number" disabled style="width: 120px"></el-input>
<el-button type="primary" @click="addPlans()" style="margin-left: 10px;">添加</el-button> <el-button type="primary" @click="addPlans()" style="margin-left: 10px;">添加</el-button>
<el-button type="primary" @click="savePlans()">保存</el-button> <el-button type="primary" @click="savePlans()">保存</el-button>
<el-button type="primary" @click="scheduledModalFlag = false">关闭</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="inputTable "> <div class="inputTable ">
@ -274,7 +279,7 @@
header-align="center" header-align="center"
align="left" align="left"
min-width="100" min-width="100"
label="排产日期">
label="派工日期">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker <el-date-picker
style="width: 95%" style="width: 95%"
@ -292,7 +297,7 @@
header-align="center" header-align="center"
align="right" align="right"
min-width="80" min-width="80"
label="排产数量">
label="派工数量">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.scheduleQty" type="number" @change="changeSum" placeholder="请输入数量" <el-input v-model="scope.row.scheduleQty" type="number" @change="changeSum" placeholder="请输入数量"
style="width:98%"></el-input> style="width:98%"></el-input>
@ -303,12 +308,12 @@
header-align="center" header-align="center"
align="left" align="left"
min-width="80" min-width="80"
label="排产机台">
label="派工机台">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.resourceId" placeholder="请选择" style="height: 12px;padding: 0px " filterable <el-select v-model="scope.row.resourceId" placeholder="请选择" style="height: 12px;padding: 0px " filterable
allow-create> allow-create>
<el-option v-for="item in availableResourceList " :key="index" :label="item.resourceID"
:value="item.resourceID">
<el-option v-for="item in availableResourceList " :key="index" :label="item.ResouceDesc"
:value="item.ResourceID">
</el-option> </el-option>
</el-select> </el-select>
@ -319,7 +324,7 @@
header-align="center" header-align="center"
align="left" align="left"
min-width="80" min-width="80"
label="排产班次">
label="派工班次">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.shiftNo" placeholder="请选择" style="height: 12px;padding: 0px " filterable <el-select v-model="scope.row.shiftNo" placeholder="请选择" style="height: 12px;padding: 0px " filterable
allow-create> allow-create>
@ -333,7 +338,7 @@
header-align="center" header-align="center"
align="right" align="right"
min-width="80" min-width="80"
label="排产人员">
label="派工人员">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.operatorId" placeholder="请选择" style="height: 12px;padding: 0px " filterable <el-select v-model="scope.row.operatorId" placeholder="请选择" style="height: 12px;padding: 0px " filterable
allow-create> allow-create>
@ -366,7 +371,9 @@
<script> <script>
import { import {
getSOTastRoutingData
getSOTastRoutingData,
getWorkCenterOperatorList,
getAvailableResourceList,
} from "@/api/production.js" } from "@/api/production.js"
export default { export default {
@ -409,7 +416,7 @@
partNo: '', partNo: '',
orderRef1:'', orderRef1:'',
site: this.$store.state.user.site, site: this.$store.state.user.site,
planStatus: 'ROUND(a.LotSize,3) >ROUND(ISNULL(SL.scheduledQty,0),3)',
planStatus: 'ROUND(a.OrderQty,3) >ROUND(ISNULL(SL.scheduledQty,0),3)',
itemNo:'', itemNo:'',
}, },
schedulingModalData: { schedulingModalData: {
@ -428,6 +435,8 @@
resourceId: '', resourceId: '',
shiftNo: '', shiftNo: '',
sumQty: '', sumQty: '',
orderDate:'',
operatorId:'',
}, },
scheduledModalFlag: false, scheduledModalFlag: false,
availableResourceList: [], availableResourceList: [],
@ -486,14 +495,17 @@
itemNo: row.itemNo, itemNo: row.itemNo,
operationDesc: row.operationDesc, operationDesc: row.operationDesc,
workCenterNo: row.workCenterNo, workCenterNo: row.workCenterNo,
orderDate: row.orderDate,
scheduleDate: '', scheduleDate: '',
scheduleQty: '', scheduleQty: '',
resourceId: '', resourceId: '',
shiftNo: '', shiftNo: '',
sumQty: 0, sumQty: 0,
operatorId: '',
} }
this.schedulingModalTableData = [] this.schedulingModalTableData = []
// this.getAvailableResourceList(row)
this.getAvailableResourceList(row);
this.getWorkCenterOperatorList(row);
this.scheduledModalFlag = true this.scheduledModalFlag = true
}, },
addPlans () { addPlans () {
@ -505,7 +517,7 @@
// return false // return false
// } // }
// if (this.schedulingModalData.shiftNo == '') { // if (this.schedulingModalData.shiftNo == '') {
// this.$alert('', '', {
// this.$alert('', '', {
// confirmButtonText: '' // confirmButtonText: ''
// }) // })
// return false // return false
@ -515,7 +527,7 @@
resourceId: this.schedulingModalData.resourceId, resourceId: this.schedulingModalData.resourceId,
shiftNo: this.schedulingModalData.shiftNo, shiftNo: this.schedulingModalData.shiftNo,
scheduleDate: null, scheduleDate: null,
operatorId:'',
operatorId:this.schedulingModalData.operatorId,
selectList: [] selectList: []
}) })
this.sumQty += this.schedulingModalData.scheduleQty this.sumQty += this.schedulingModalData.scheduleQty
@ -532,10 +544,28 @@
this.schedulingModalData.sumQty = sum this.schedulingModalData.sumQty = sum
}, },
splitScheduleTable (index) { splitScheduleTable (index) {
this.schedulingModalTableData.splice(index, 1) this.schedulingModalTableData.splice(index, 1)
this.changeSum() this.changeSum()
}, },
getWorkCenterOperatorList(row){
let inData={
site:row.site,
workCenterNo:row.workCenterNo,
}
getWorkCenterOperatorList(inData).then(({data}) => {
this.operatorIdList = data.rows;
})
},
getAvailableResourceList(row){
let inData={
site:row.site,
orderNo:row.orderRef1,
itemNo:row.itemNo,
}
getAvailableResourceList(inData).then(({data}) => {
this.availableResourceList = data.rows;
})
},
}, },
created() { created() {
} }

137
src/views/modules/production/scheduleForShopOrder.vue

@ -82,7 +82,7 @@
<el-form-item :label="'物料编码:'"> <el-form-item :label="'物料编码:'">
<el-input v-model="searchData.partNo" style="width: 130px"></el-input> <el-input v-model="searchData.partNo" style="width: 130px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'排产情况:'">
<el-form-item :label="'派工情况:'">
<el-select filterable v-model="searchData.planStatus" style="width: 120px"> <el-select filterable v-model="searchData.planStatus" style="width: 120px">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="未派工完" value="ROUND(a.LotSize,3) >ROUND(ISNULL(SL.scheduledQty,0),3)"></el-option> <el-option label="未派工完" value="ROUND(a.LotSize,3) >ROUND(ISNULL(SL.scheduledQty,0),3)"></el-option>
@ -266,7 +266,7 @@
<el-form-item label="订单数量:"> <el-form-item label="订单数量:">
<el-input v-model="schedulingModalData.lotSize" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.lotSize" disabled style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="待排产数:">
<el-form-item label="待派工数:">
<el-input v-model="schedulingModalData.qtyToSchedule" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.qtyToSchedule" disabled style="width: 120px"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -288,30 +288,38 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="排产机台:">
<el-form-item label="派工机台:">
<el-select v-model="schedulingModalData.resourceId" style="width: 120px" <el-select v-model="schedulingModalData.resourceId" style="width: 120px"
placeholder="请选择"> placeholder="请选择">
<el-option <el-option
v-for="(item,index) in availableResourceList" v-for="(item,index) in availableResourceList"
:key="index" :key="index"
:label="item.resourceID"
:value="item.resourceID"
:label="item.ResouceDesc"
:value="item.ResourceID"
> >
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="排产班次:">
<el-form-item label="派工班次:">
<el-select v-model="schedulingModalData.shiftNo" style="width: 120px" <el-select v-model="schedulingModalData.shiftNo" style="width: 120px"
placeholder="请选择"> placeholder="请选择">
<el-option label="白班" value="白班"></el-option> <el-option label="白班" value="白班"></el-option>
<el-option label="晚班" value="晚班"></el-option> <el-option label="晚班" value="晚班"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="本次累计排产数量:">
<el-form-item label="派工人员:">
<el-select v-model="schedulingModalData.operatorId" style="width: 120px"
placeholder="请选择">
<el-option v-for="item in operatorIdList " :key="index" :label="item.operatorName"
:value="item.operatorId">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="本次累计派工数量:">
<el-input v-model="schedulingModalData.sumQty" type="number" disabled style="width: 120px"></el-input> <el-input v-model="schedulingModalData.sumQty" type="number" disabled style="width: 120px"></el-input>
<el-button type="primary" @click="addPlans()" style="margin-left: 10px;">添加</el-button> <el-button type="primary" @click="addPlans()" style="margin-left: 10px;">添加</el-button>
<el-button type="primary" @click="savePlans()">保存</el-button>
<el-button type="primary" @click="scheduledModalFlag = false">关闭</el-button>
<el-button type="primary" @click="saveSchedule()">保存</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="inputTable "> <div class="inputTable ">
@ -325,7 +333,7 @@
header-align="center" header-align="center"
align="left" align="left"
min-width="100" min-width="100"
label="排产日期">
label="派工日期">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker <el-date-picker
style="width: 95%" style="width: 95%"
@ -343,7 +351,7 @@
header-align="center" header-align="center"
align="right" align="right"
min-width="80" min-width="80"
label="排产数量">
label="派工数量">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.scheduleQty" type="number" @change="changeSum" placeholder="请输入数量" <el-input v-model="scope.row.scheduleQty" type="number" @change="changeSum" placeholder="请输入数量"
style="width:98%"></el-input> style="width:98%"></el-input>
@ -354,12 +362,12 @@
header-align="center" header-align="center"
align="left" align="left"
min-width="80" min-width="80"
label="排产机台">
label="派工机台">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.resourceId" placeholder="请选择" style="height: 12px;padding: 0px " filterable <el-select v-model="scope.row.resourceId" placeholder="请选择" style="height: 12px;padding: 0px " filterable
allow-create> allow-create>
<el-option v-for="item in availableResourceList " :key="index" :label="item.resourceID"
:value="item.resourceID">
<el-option v-for="item in availableResourceList " :key="index" :label="item.ResouceDesc"
:value="item.ResourceID">
</el-option> </el-option>
</el-select> </el-select>
@ -370,7 +378,7 @@
header-align="center" header-align="center"
align="left" align="left"
min-width="80" min-width="80"
label="排产班次">
label="派工班次">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.shiftNo" placeholder="请选择" style="height: 12px;padding: 0px " filterable <el-select v-model="scope.row.shiftNo" placeholder="请选择" style="height: 12px;padding: 0px " filterable
allow-create> allow-create>
@ -384,7 +392,7 @@
header-align="center" header-align="center"
align="right" align="right"
min-width="80" min-width="80"
label="排产人员">
label="派工人员">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.operatorId" placeholder="请选择" style="height: 12px;padding: 0px " filterable <el-select v-model="scope.row.operatorId" placeholder="请选择" style="height: 12px;padding: 0px " filterable
allow-create> allow-create>
@ -417,7 +425,10 @@
<script> <script>
import { import {
getShopOrderRoutingData
getShopOrderRoutingData,
getWorkCenterOperatorList,
getAvailableResourceList,
} from "@/api/production.js" } from "@/api/production.js"
export default { export default {
@ -484,6 +495,7 @@
resourceId: '', resourceId: '',
shiftNo: '', shiftNo: '',
sumQty: '', sumQty: '',
operatorId:'',
}, },
scheduledModalFlag: false, scheduledModalFlag: false,
availableResourceList: [], availableResourceList: [],
@ -546,10 +558,12 @@
scheduleQty: '', scheduleQty: '',
resourceId: '', resourceId: '',
shiftNo: '', shiftNo: '',
operatorId:'',
sumQty: 0, sumQty: 0,
} }
this.schedulingModalTableData = [] this.schedulingModalTableData = []
// this.getAvailableResourceList(row)
this.getAvailableResourceList(row)
this.getWorkCenterOperatorList(row);
this.scheduledModalFlag = true this.scheduledModalFlag = true
}, },
addPlans () { addPlans () {
@ -561,7 +575,7 @@
// return false // return false
// } // }
// if (this.schedulingModalData.shiftNo == '') { // if (this.schedulingModalData.shiftNo == '') {
// this.$alert('', '', {
// this.$alert('', '', {
// confirmButtonText: '' // confirmButtonText: ''
// }) // })
// return false // return false
@ -571,8 +585,7 @@
resourceId: this.schedulingModalData.resourceId, resourceId: this.schedulingModalData.resourceId,
shiftNo: this.schedulingModalData.shiftNo, shiftNo: this.schedulingModalData.shiftNo,
scheduleDate: null, scheduleDate: null,
operatorId:'',
selectList: []
operatorId:this.schedulingModalData.operatorId,
}) })
this.sumQty += this.schedulingModalData.scheduleQty this.sumQty += this.schedulingModalData.scheduleQty
}, },
@ -592,6 +605,88 @@
this.schedulingModalTableData.splice(index, 1) this.schedulingModalTableData.splice(index, 1)
this.changeSum() this.changeSum()
}, },
getWorkCenterOperatorList(row){
let inData={
site:row.site,
workCenterNo:row.workCenterNo,
}
getWorkCenterOperatorList(inData).then(({data}) => {
this.operatorIdList = data.rows;
})
},
getAvailableResourceList(row){
let inData={
site:row.site,
orderNo:row.orderNo,
itemNo:row.itemNo,
}
getAvailableResourceList(inData).then(({data}) => {
this.availableResourceList = data.rows;
})
},
saveSchedule(){
if(this.schedulingModalTableData.length==0){
this.$alert('请添加派工记录!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(this.schedulingModalData.qtyToSchedule<this.schedulingModalData.sumQty){
this.$alert('实际派工数量大于可派工数量!', '错误', {
confirmButtonText: '确定'
})
return false
}
for (let i = 0; i <this.schedulingModalTableData.length; i++) {
if(''==this.schedulingModalTableData[i].scheduleQty||this.schedulingModalTableData[i].scheduleQty==null){
this.$alert('存在派工记录没有填写派工数量!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(''==this.schedulingModalTableData[i].resourceId||this.schedulingModalTableData[i].resourceId==null){
this.$alert('存在派工记录没有选择机台!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(''==this.schedulingModalTableData[i].shiftNo||this.schedulingModalTableData[i].shiftNo==null){
this.$alert('存在派工记录没有选择班次!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(''==this.schedulingModalTableData[i].scheduleDate||this.schedulingModalTableData[i].scheduleDate==null){
this.$alert('存在派工记录没有填写日期!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(''==this.schedulingModalTableData[i].operatorId||this.schedulingModalTableData[i].operatorId==null){
this.$alert('存在派工记录没有选择操作员!', '错误', {
confirmButtonText: '确定'
})
return false
}
}
this.doSchedule();
},
doSchedule(){
let indata={
orderNo: this.schedulingModalData.orderNo,
site: this.schedulingModalData.site,
needDate: this.schedulingModalData.needDate,
lotSize: this.schedulingModalData.lotSize,
qtyToSchedule: this.schedulingModalData.qtyToSchedule,
partNo: this.schedulingModalData.partNo,
partDescription: this.schedulingModalData.partDescription,
itemNo: this.schedulingModalData.itemNo,
operationDesc: this.schedulingModalData.operationDesc,
workCenterNo: this.schedulingModalData.workCenterNo,
sumQty: this.schedulingModalData.sumQty,
}
}
}, },
created() { created() {
} }

Loading…
Cancel
Save