|
|
@ -91,6 +91,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getUnitList() {
|
|
|
|
getUnitList() {
|
|
|
|
|
|
|
|
if(!this.unitquery.key){
|
|
|
|
|
|
|
|
this.getUnitListByCode(this.codeId)
|
|
|
|
|
|
|
|
}else{
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
getBasicUnitMaintains(this.unitquery)
|
|
|
|
getBasicUnitMaintains(this.unitquery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
@ -100,6 +103,7 @@ export default {
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getUnitListByCode(row) {
|
|
|
|
getUnitListByCode(row) {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|