diff --git a/src/views/inm/mainso_mio.vue b/src/views/inm/mainso_mio.vue
index 58472a54..57ea1e21 100644
--- a/src/views/inm/mainso_mio.vue
+++ b/src/views/inm/mainso_mio.vue
@@ -125,15 +125,19 @@
>
编辑
-
- 提交
-
+
+
+
+
+ 提交
+
+
{
- 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 {