产品编码
@@ -47,109 +47,123 @@
+ min-width="80"
+ label="派工单号">
+ align="left"
+ min-width="100"
+ label="关联单号">
+ min-width="80"
+ label="关联单号类型">
+ label="工序号">
+ min-width="160"
+ label="工序名称">
+ min-width="80"
+ label="派工数量">
+ min-width="80"
+ label="报工数量">
+ align="left"
+ min-width="80"
+ label="派工日期">
+
+
+ min-width="80"
+ label="物料编码">
+ min-width="200"
+ label="物料名称">
+ label="机台ID">
+ label="班次">
+
+
-
-
+
+
@@ -256,22 +270,67 @@
-
+
+
+
+
+
产品图片
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一张
+
+
+ 下一张
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/production/scheduleForSOTask.vue b/src/views/modules/production/scheduleForSOTask.vue
index c735cd5..14e5c4d 100644
--- a/src/views/modules/production/scheduleForSOTask.vue
+++ b/src/views/modules/production/scheduleForSOTask.vue
@@ -265,7 +265,7 @@
添加
- 保存
+ 保存
@@ -374,6 +374,7 @@
getSOTastRoutingData,
getWorkCenterOperatorList,
getAvailableResourceList,
+ scheduleForSOTask,
} from "@/api/production.js"
export default {
@@ -437,6 +438,7 @@
sumQty: '',
orderDate:'',
operatorId:'',
+ efficiency:'',
},
scheduledModalFlag: false,
availableResourceList: [],
@@ -495,6 +497,7 @@
itemNo: row.itemNo,
operationDesc: row.operationDesc,
workCenterNo: row.workCenterNo,
+ efficiency:row.efficiency,
orderDate: row.orderDate,
scheduleDate: '',
scheduleQty: '',
@@ -528,7 +531,6 @@
shiftNo: this.schedulingModalData.shiftNo,
scheduleDate: null,
operatorId:this.schedulingModalData.operatorId,
- selectList: []
})
this.sumQty += this.schedulingModalData.scheduleQty
},
@@ -566,6 +568,102 @@
this.availableResourceList = data.rows;
})
},
+ saveSchedule(){
+ if(this.schedulingModalTableData.length==0){
+ this.$alert('请添加派工记录!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false
+ }
+ if(this.schedulingModalData.qtyToSchedule {
+ this.doSchedule();
+ })
+ }else {
+ this.doSchedule();
+ }
+ },
+ doSchedule(){
+ let indata={
+ orderNo: this.schedulingModalData.orderNo,
+ site: this.schedulingModalData.site,
+ orderDate: this.schedulingModalData.orderDate,
+ partNo: this.schedulingModalData.partNo,
+ itemNo: this.schedulingModalData.itemNo,
+ workCenterNo: this.schedulingModalData.workCenterNo,
+ sumQty: this.schedulingModalData.sumQty,
+ scheduleDetail:this.schedulingModalTableData,
+ efficiency:this.schedulingModalData.efficiency,
+ orderRef1:this.schedulingModalData.orderRef1
+ }
+ scheduleForSOTask(indata).then(({data}) => {
+ if (data && data.code === 0) {
+ this.scheduledModalFlag = false
+ for (let i = 0; i {
+ }
+ })
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ })
+ }
},
created() {
}