|
|
|
@ -1,6 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<basic-container> |
|
|
|
|
<avue-tabs :option="option" |
|
|
|
|
ref="tabs" |
|
|
|
|
@change="handleChange"></avue-tabs> |
|
|
|
|
<span v-if="type.prop==='information'"> |
|
|
|
|
<avue-form :option="tab1_option" |
|
|
|
@ -78,7 +79,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {add, getDetail} from "@/api/spares/material"; |
|
|
|
|
import {add, getDetail, getDetailByMaterialNo} from "@/api/spares/material"; |
|
|
|
|
import {inbound_getListByMaterialNo, update_materialDetailIn} from "@/api/spares/inbound"; |
|
|
|
|
import {outbound_getListByMaterialNo, update_materialDetailOut} from "@/api/spares/outbound"; |
|
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
@ -446,7 +447,29 @@ |
|
|
|
|
this.addUpdateShowButton=false; |
|
|
|
|
this.frame_class = 'frame_class'; |
|
|
|
|
this.SearchDetail(); |
|
|
|
|
}else{ |
|
|
|
|
}else if(this.$route.query.frameMode == "search"){ |
|
|
|
|
const creditCodeM = this.findObject(this.tab1_option.column, "creditCodeM"); |
|
|
|
|
creditCodeM.display = false; |
|
|
|
|
const creditCodeS = this.findObject(this.tab1_option.column, "creditCodeS"); |
|
|
|
|
creditCodeS.display = false; |
|
|
|
|
this.option.column.push({ label: '入库详情', prop: 'inbound' },{ label: '出库详情', prop: 'outbound' }); |
|
|
|
|
if (this.$route.query.mode == "in") |
|
|
|
|
{ |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.tabs.changeTabs(1) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.tabs.changeTabs(2) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
this.readonlyForm=true; |
|
|
|
|
this.addUpdateShowButton=false; |
|
|
|
|
this.frame_class = 'frame_class'; |
|
|
|
|
this.SearchDetailByMaterialNo(); |
|
|
|
|
} else { |
|
|
|
|
const materialNo = this.findObject(this.tab1_option.column, "materialNo"); |
|
|
|
|
materialNo.value = ' '; |
|
|
|
|
materialNo.disabled = true; |
|
|
|
@ -512,6 +535,11 @@ |
|
|
|
|
this.tab1_form = res.data.data; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
SearchDetailByMaterialNo() { |
|
|
|
|
getDetailByMaterialNo(this.$route.query.materialNo).then(res => { |
|
|
|
|
this.tab1_form = res.data.data; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
SearchClassCode() { |
|
|
|
|
getCodeList().then(res => { |
|
|
|
|
this.optionsExt = res.data.data; |
|
|
|
|