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
link
type="primary"
@click="table_submit(scope.row)"
v-auth="'mio.submit'"
v-if="scope.row.state == 10&&scope.row.type!=='do_out'"
>
提交
</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
link
type="primary"
@click="table_submit(scope.row)"
v-auth="'mio.submit'"
v-else
>
提交
</el-button>
</span>
<el-button
link
type="danger"

View File

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