Merge branch 'master' of http://gitea.xxhhcty.xyz:8080/zcdsj/factory_web
This commit is contained in:
commit
364f9320cb
|
|
@ -15,6 +15,12 @@
|
|||
v-auth="'handover.create'"
|
||||
v-if="mgroupName!=='切片'"
|
||||
>返工</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
@click="table_add(50)"
|
||||
v-auth="'handover.create'"
|
||||
>改版</el-button>
|
||||
<scScanner :labeltext="'交接扫码'" @scanResult="codeTextChange10"></scScanner>
|
||||
<scScanner :labeltext="'返工扫码'" @scanResult="codeTextChange20"></scScanner>
|
||||
<el-input
|
||||
|
|
|
|||
|
|
@ -160,6 +160,21 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24" v-if="type==50">
|
||||
<el-form-item label="更改物料">
|
||||
<xtSelect
|
||||
:apiObj="apiObj"
|
||||
:params="params"
|
||||
v-model="form.material_changed"
|
||||
v-model:label="form.material_changed_fname"
|
||||
style="width:100%"
|
||||
>
|
||||
<el-table-column label="名称" prop="name"></el-table-column>
|
||||
<el-table-column label="工序" prop="process_name"></el-table-column>
|
||||
<el-table-column label="规格" prop="specification"></el-table-column>
|
||||
</xtSelect>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24" v-if="type==10&&mtype==30">
|
||||
<el-form-item label="更改批次">
|
||||
<el-switch v-model="change_batch"></el-switch>
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
>检验</el-button>
|
||||
<!-- 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)" -->
|
||||
<el-button
|
||||
link size="small"
|
||||
type="warning"
|
||||
@click="tableCheckList(scope.row)"
|
||||
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"
|
||||
>检验记录</el-button>
|
||||
<el-button @click="printMaterial(scope.row)" type="text">物料标签</el-button>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue