|
|
@@ -711,6 +711,7 @@ try {
|
|
|
const showInitialPage = ref(true)
|
|
|
const expressNo = ref(null)
|
|
|
const warehouse = ref(useStore.warehouse)
|
|
|
+console.log(`warehouse:${warehouse.value}`)
|
|
|
// 当前选择的货主
|
|
|
|
|
|
const title = computed(() => {
|
|
|
@@ -742,7 +743,13 @@ const asnList = ref({})
|
|
|
const boxFiles = ref([])
|
|
|
// 内物图
|
|
|
const productFiles = ref([])
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
+ if (!warehouse.value){
|
|
|
+ warehouse.value = ref(useStore.warehouse)
|
|
|
+ console.log(`on mounted:${warehouse.value}`)
|
|
|
+ }
|
|
|
+
|
|
|
getOwner().then((res) => {
|
|
|
const { data } = res
|
|
|
owners.value = data.map((item) => {
|
|
|
@@ -765,6 +772,7 @@ onMounted(() => {
|
|
|
warehouses.value = data.map((item) => {
|
|
|
return { value: item.code, text: item.name }
|
|
|
})
|
|
|
+ console.log(warehouses)
|
|
|
const map = {}
|
|
|
data.forEach((item) => {
|
|
|
map[item.code] = item.name
|
|
|
@@ -1039,6 +1047,7 @@ function inputExpressNo() {
|
|
|
return
|
|
|
}
|
|
|
params.value.returnNo = express_no
|
|
|
+ console.log(warehouse.value)
|
|
|
params.value.warehouseCode = warehouse.value
|
|
|
listAsn(express_no).then((res) => {
|
|
|
if (res.data) {
|