|
@@ -1825,8 +1825,9 @@ let field5_lists = ref<ISelectItem[]>([])
|
|
|
|
|
|
let supplierPaymentTermsLists = ref<ISelectItem[]>([])
|
|
|
|
|
|
+loading.value = true
|
|
|
// 获取下拉框非动态候选数据
|
|
|
-axios
|
|
|
+const p1 = axios
|
|
|
.post('/api/common/getfieldsData')
|
|
|
.then((response: any) => {
|
|
|
// console.log(response, '/common/getfieldsData')
|
|
@@ -1866,7 +1867,7 @@ const route = useRoute()
|
|
|
const productBlackList = ['4791186000046982872', '4791186000046982896']
|
|
|
const soOwner = ref('')
|
|
|
// 获取销售订单详情
|
|
|
-axios
|
|
|
+const p2 = axios
|
|
|
.post('/api/common/getSalesOrdersData', { id: route.params.id })
|
|
|
.then((response) => {
|
|
|
if (response.data.code !== 1) return
|
|
@@ -1913,13 +1914,17 @@ axios
|
|
|
|
|
|
// 根据url传递过来的用户ID获取的用户身份信息
|
|
|
const userInfo = ref({} as IUser)
|
|
|
-axios
|
|
|
+const p3 = axios
|
|
|
.post('/api/common/getUsersData', { id: route.query.user })
|
|
|
.then((response) => {
|
|
|
const res = response.data
|
|
|
if (res.code !== 1) return
|
|
|
userInfo.value = res.result || {}
|
|
|
})
|
|
|
+
|
|
|
+Promise.all([p1, p2, p3]).finally(() => {
|
|
|
+ loading.value = false
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|