fix:12.04光芯改动

This commit is contained in:
shijing 2025-12-05 11:25:21 +08:00
parent 8c712acfd9
commit d79283f41e
2 changed files with 32 additions and 33 deletions

View File

@ -125,15 +125,19 @@
> >
编辑 编辑
</el-button> </el-button>
<!-- 光芯的出入库记录中生产领料不显示提交在生产执行里接收 -->
<span v-if="scope.row.state==10">
<span v-if="scope.row.type=='do_out'&&project_code=='gx'&&(scope.row.mgroup_name!=='外协白片抛'||scope.row.mgroupName!=='外协一次抛'||scope.row.mgroupName!=='外扫')"></span>
<el-button <el-button
link link
type="primary" type="primary"
@click="table_submit(scope.row)" @click="table_submit(scope.row)"
v-auth="'mio.submit'" v-auth="'mio.submit'"
v-if="scope.row.state == 10&&scope.row.type!=='do_out'" v-else
> >
提交 提交
</el-button> </el-button>
</span>
<el-button <el-button
link link
type="danger" type="danger"

View File

@ -305,6 +305,7 @@ export default {
isSaveing: false, isSaveing: false,
materialOptions: [], materialOptions: [],
batchOptions: [], batchOptions: [],
batchOptions_o: [],
setFiltersVisible: false, setFiltersVisible: false,
warehouseOptions: [], warehouseOptions: [],
// warehouseDisable: false, // warehouseDisable: false,
@ -390,34 +391,28 @@ export default {
}); });
}, },
inputChange(e){ inputChange(e){
console.log('e',e);
let that = this; let that = this;
if(e!==''&&e!==null&&e!==undefined){ if(e!==''&&e!==null&&e!==undefined){
if(e.indexOf('#')>-1){
let codeId = e.split('#')[1]; let codeId = e.split('#')[1];
this.$API.cm.labelmat.item.req(codeId).then((res) => { this.$API.cm.labelmat.item.req(codeId).then((res) => {
if(res){ if(res){
let arr = that.batchOptions.filter((item) => { let arr = that.batchOptions.filter((item) => {
return item.batch == res.batch&&item.state==res.state; return item.batch == res.batch&&item.state==res.state;
}) })
if (arr.length > 0) { that.batchOptions = arr;
that.selectBatch = arr[0].batch;
that.form.batch = arr[0].batch;
that.form.mb = arr[0].id;
that.batchcount = Number(arr[0].count_canmio);
that.form.count = Number(arr[0].count_canmio);
that.form.warehouse = arr[0].warehouse;
that.inputBatchDisable = true;
setTimeout(() => {
options.value = res.batch;
}, 200)
}else{
that.selectBatch = '';
that.$message.error("批次号不存在");
}
}else{ }else{
that.selectBatch = ''; that.selectBatch = '';
} }
}) })
}else{
let arr = that.batchOptions.filter((item) => {
return item.batch.indexOf(e)>-1;
})
that.batchOptions = arr;
}
}else{
that.batchOptions = that.batchOptions_o;
} }
}, },
getMaterialOptions() { getMaterialOptions() {
@ -523,7 +518,7 @@ export default {
this.$API.inm.warehouse.batch this.$API.inm.warehouse.batch
.req({ page: 0, material: this.form.material }) .req({ page: 0, material: this.form.material })
.then((res) => { .then((res) => {
this.batchOptions = res; this.batchOptions_o = this.batchOptions = res;
if (res.length == 0) { if (res.length == 0) {
this.selectBatchDisable = true; this.selectBatchDisable = true;
} else { } else {