|
@@ -518,6 +518,7 @@ import { deepClone } from '@/utils';
|
|
|
import BigNumber from 'bignumber.js';
|
|
import BigNumber from 'bignumber.js';
|
|
|
import { isBoolean } from 'mathjs';
|
|
import { isBoolean } from 'mathjs';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ name:'stockManagementAdd',
|
|
|
components: {
|
|
components: {
|
|
|
selectType,
|
|
selectType,
|
|
|
WarehousingDialog,
|
|
WarehousingDialog,
|
|
@@ -607,7 +608,15 @@ export default {
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
deep: true
|
|
deep: true
|
|
|
|
|
+ } ,'$route.query': {
|
|
|
|
|
+ handler(newQuery, oldQuery) {
|
|
|
|
|
+ if(newQuery?.detailId){
|
|
|
|
|
+ this.viewInit()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ deep: true, // 确保对象内部的属性变化也能被监听到
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
if (this.$route.query.name == 'inboundRequests') {
|
|
if (this.$route.query.name == 'inboundRequests') {
|
|
@@ -663,6 +672,15 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
if (this.$route.query.detailId) {
|
|
if (this.$route.query.detailId) {
|
|
|
|
|
+ this.viewInit()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ ...mapActions('dict', ['requestDict']),
|
|
|
|
|
+ changeCount(number) {
|
|
|
|
|
+ return new BigNumber(number).toString();
|
|
|
|
|
+ },
|
|
|
|
|
+ viewInit(){
|
|
|
storageApi
|
|
storageApi
|
|
|
.getInboundDetailsById(this.$route.query.detailId)
|
|
.getInboundDetailsById(this.$route.query.detailId)
|
|
|
.then(async (data) => {
|
|
.then(async (data) => {
|
|
@@ -748,12 +766,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
this.materialList = iArr;
|
|
this.materialList = iArr;
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- methods: {
|
|
|
|
|
- ...mapActions('dict', ['requestDict']),
|
|
|
|
|
- changeCount(number) {
|
|
|
|
|
- return new BigNumber(number).toString();
|
|
|
|
|
},
|
|
},
|
|
|
selectSupplier(val, row) {
|
|
selectSupplier(val, row) {
|
|
|
row.supplierId = val;
|
|
row.supplierId = val;
|