@@ -104,4 +104,13 @@ export function getShortBargeSingleData(data ?: any) {
method: 'GET',
params: data
})
+}
+
+//仓库主键查询
+export function getMaindataStorehouseSingleData(data ?: any) {
+ return request({
+ url: '/maindata/maindataStorehouse/single',
+ method: 'GET',
+ params: data
+ })
}
@@ -0,0 +1,27 @@
+<template>
+ <div>
+ {{value}}
+ </div>
+</template>
+<script lang="ts">
+ import { Component, Prop, Vue, Watch, Mixins } from "vue-property-decorator";
+ import { getMaindataStorehouseSingleData } from '@/api/delivery';
+ @Component
+ export default class StoreHouse extends Vue {
+ @Prop()
+ propValue : any
+ value : any = ''
+ created() {
+ if(this.propValue){
+ getMaindataStorehouseSingleData({ id: this.propValue }).then((res : any) => {
+ if (res.code === 200) {
+ this.value = res.data.name
+ }
+ }).catch();
+ };
+</script>
+<style>
+</style>