fix:玻纤日志输入详情扭转工段可新增wpr

This commit is contained in:
shijing 2025-12-03 09:31:11 +08:00
parent 76d3cc25cc
commit d17c602384
1 changed files with 12 additions and 7 deletions

View File

@ -36,6 +36,7 @@
:addTemplate="addTemplate" :addTemplate="addTemplate"
placeholder="暂无数据" placeholder="暂无数据"
:hideAdd="hideAdd" :hideAdd="hideAdd"
:pushType="pushType"
:canMultiple = "canMultiple" :canMultiple = "canMultiple"
@selectChange="selectChange" @selectChange="selectChange"
@selectAllChange="selectAllChange" @selectAllChange="selectAllChange"
@ -46,10 +47,11 @@
<span v-if="mode == 'outs'">{{ scope.row.number }}</span> <span v-if="mode == 'outs'">{{ scope.row.number }}</span>
<span v-if="mode == 'outs'&&scope.row.wpr_number_out!==null&&scope.row.wpr_number_out!==undefined">{{ scope.row.wpr_number_out }}</span> <span v-if="mode == 'outs'&&scope.row.wpr_number_out!==null&&scope.row.wpr_number_out!==undefined">{{ scope.row.wpr_number_out }}</span>
<el-select <el-select
v-if="scope.row.isEdit&&mode == 'ins'&&route_code!=='niuzhuan'" v-if="scope.row.isEdit&&mode == 'ins'"
v-model="scope.row.wpr" v-model="scope.row.wpr"
placeholder="动态成品" placeholder="动态成品"
clearable clearable
filterable
style="width: 100%" style="width: 100%"
@change="optionChange(scope.row)" @change="optionChange(scope.row)"
> >
@ -507,6 +509,7 @@ export default {
wprNumber:"", wprNumber:"",
route_code:"", route_code:"",
wprInputText:"", wprInputText:"",
pushType:"unshift",
params: {mlogb:'',page:0}, params: {mlogb:'',page:0},
insInput:false, insInput:false,
canMultiple:false, canMultiple:false,
@ -582,7 +585,9 @@ export default {
} }
if(that.mode == 'ins'){ if(that.mode == 'ins'){
if(that.route_code=='niuzhuan'){ if(that.route_code=='niuzhuan'){
that.getEquipment4();
that.gettestitem(); that.gettestitem();
that.getOptions();
}else{ }else{
that.getOptions(); that.getOptions();
that.getList(); that.getList();
@ -910,9 +915,9 @@ export default {
}, },
formTableEdit(row) { formTableEdit(row) {
let that = this; let that = this;
if(that.route_code=='niuzhuan'&&that.optionsEq.length==0){ // if(that.route_code=='niuzhuan'&&that.optionsEq.length==0){
that.getEquipment4(); // that.getEquipment4();
} // }
that.mlogbwlist.forEach((item, index) => { that.mlogbwlist.forEach((item, index) => {
if (item.id == row.id) { if (item.id == row.id) {
that.mlogbwlist[index].isEdit = true; that.mlogbwlist[index].isEdit = true;
@ -1170,9 +1175,9 @@ export default {
that.mlogbwlist[0].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss'); that.mlogbwlist[0].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss');
that.timeChange(that.mlogbwlist[0]); that.timeChange(that.mlogbwlist[0]);
} }
if(that.optionsEq.length==0){ // if(that.optionsEq.length==0){
that.getEquipment4(); // that.getEquipment4();
} // }
} }
if(that.setForm.cd_req_addr!==null&&!that.insInput){ if(that.setForm.cd_req_addr!==null&&!that.insInput){
//cd_req_addr, //cd_req_addr,