diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue
index 07f5e8f8..1a3c059f 100644
--- a/src/views/wpm_gx/handover.vue
+++ b/src/views/wpm_gx/handover.vue
@@ -15,6 +15,12 @@
v-auth="'handover.create'"
v-if="mgroupName!=='切片'"
>返工
+ 改版
+
+
+
+
+
+
+
+
+
@@ -269,7 +284,9 @@ export default {
},
initForm:{},
selectObjIds:[],
+ apiObj:this.$API.wpm.wmaterial.list,
apiObjM:null,
+ params:{},
paramsM:{},
selectObj:{},
selectObjs:[],
@@ -350,11 +367,11 @@ export default {
that.form.handle_date = that.form.send_date = this.$TOOL.dateFormat2(new Date());
that.form.send_mgroup = that.mgroupId;
that.route_code = that.$route.path.split("/")[2];
- // console.log('that.route_code',that.route_code)
- // console.log('that.type',that.type)
- // console.log('that.mtype',that.mtype)
- // console.log(that.route_code=='tuihuo'&&that.type==10&&that.mtype==10)
- //type 10:正常交接 ;20:返工交接 ;40:报废交接
+ // type=10 正常交接 物料都可交接,接收工段有限制
+ // type=20 返工交接 不合格品交接,接收工段为该工艺流程中的工段
+ // type=30 物料检验 合格品交接,检验部接收
+ // type=40 废品入库 不合格品交接,接收工段固定为废品库
+ // type=50 改版 灵活无限制
//mtype 10:正常交接 ;20:分批操作 ;30:合批操作
//state 10:合格;20:不合格;30:返工;34:返工完成;40:检验;50:报废
//获取交接人员
@@ -374,6 +391,9 @@ export default {
}else if(that.type==40){
//报废交接
that.paramsM = {mgroupx: that.mgroupId,page: 0,state:20};
+ }else if(that.type==50){
+ //改版交接
+ that.paramsM = {mgroupx: that.mgroupId,page: 0};
}else{
//其他
that.paramsM = {mgroup: that.mgroupId,page: 0,state:10,tag : 'done'};
@@ -512,9 +532,14 @@ export default {
this.codeText = data.replace(" ","");
this.codeTextChange(this.codeText)
}else{
- this.form.handoverb = data;
+ this.form.handoverb = [];
data.forEach(item=>{
- this.totalCount += Number(item.count);
+ let obj = {};
+ obj.wm = item.id;
+ obj.batch = item.batch;
+ obj.count = item.count_canhandover;
+ this.form.handoverb.push(obj);
+ this.totalCount += Number(item.count_canhandover);
})
}
}
@@ -526,8 +551,6 @@ export default {
//选中物料批次后,放入handoverb
materialChange0(){
let that = this;
- // that.form.handoverb = [];
- // that.handoverbIds = [];
that.totalCount = 0;
that.selectObjs.forEach(item=>{
if(that.handoverbIds.indexOf(item.id)==-1){
@@ -542,6 +565,13 @@ export default {
obj.defect_name = item.defect_name;
obj.count_cando = item.count_canhandover;
obj.material = item.material;
+ if(that.type==50){
+ that.form.material_changed = item.material;
+ that.form.material_changed_fname = item.material_name;
+ that.form.recive_mgroup = that.mgroupId;
+ that.form.new_batch = item.batch;
+ }
+
that.form.handoverb.push(obj);
that.getResaveMgroups(obj.material);
}
diff --git a/src/views/wpm_gx/inmOut.vue b/src/views/wpm_gx/inmOut.vue
index 9e0a137e..5a53122e 100644
--- a/src/views/wpm_gx/inmOut.vue
+++ b/src/views/wpm_gx/inmOut.vue
@@ -112,13 +112,14 @@
@click="table_Check(scope.row)"
v-auth="'ftestwork.create'"
type="primary"
- v-if="(scope.row.mgroup_name == '黑化'||scope.row.mgroup_name == '退火'||scope.row.mgroup_name == '外观检验')&&(scope.row.state == 10||scope.row.state == 20||scope.row.state == 34)"
+ v-if="scope.row.state == 10||scope.row.state == 34"
>检验
+
检验记录
物料标签