fix:12.04光芯改动
This commit is contained in:
parent
8c712acfd9
commit
d79283f41e
|
|
@ -125,15 +125,19 @@
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<!-- 光芯的出入库记录中生产领料不显示提交,在生产执行里接收 -->
|
||||||
link
|
<span v-if="scope.row.state==10">
|
||||||
type="primary"
|
<span v-if="scope.row.type=='do_out'&&project_code=='gx'&&(scope.row.mgroup_name!=='外协白片抛'||scope.row.mgroupName!=='外协一次抛'||scope.row.mgroupName!=='外扫')"></span>
|
||||||
@click="table_submit(scope.row)"
|
<el-button
|
||||||
v-auth="'mio.submit'"
|
link
|
||||||
v-if="scope.row.state == 10&&scope.row.type!=='do_out'"
|
type="primary"
|
||||||
>
|
@click="table_submit(scope.row)"
|
||||||
提交
|
v-auth="'mio.submit'"
|
||||||
</el-button>
|
v-else
|
||||||
|
>
|
||||||
|
提交
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="danger"
|
type="danger"
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
let codeId = e.split('#')[1];
|
if(e.indexOf('#')>-1){
|
||||||
this.$API.cm.labelmat.item.req(codeId).then((res) => {
|
let codeId = e.split('#')[1];
|
||||||
if(res){
|
this.$API.cm.labelmat.item.req(codeId).then((res) => {
|
||||||
let arr = that.batchOptions.filter((item) => {
|
if(res){
|
||||||
return item.batch == res.batch&&item.state==res.state;
|
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.batchOptions = arr;
|
||||||
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{
|
}else{
|
||||||
that.selectBatch = '';
|
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() {
|
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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue