|
@@ -1,13 +1,15 @@
|
|
|
import { shallowRef } from 'vue'
|
|
import { shallowRef } from 'vue'
|
|
|
import { useDataTable } from '@/hooks/datatable'
|
|
import { useDataTable } from '@/hooks/datatable'
|
|
|
-import { queryWrOrderDetail,
|
|
|
|
|
- queryWrTradeDetail,
|
|
|
|
|
- queryTHJPurchaseTradeDetail,
|
|
|
|
|
- queryHoldLB, queryWrOutInApply,
|
|
|
|
|
- queryTHJPromotionIncome,
|
|
|
|
|
- queryTHJPromotionIncomeDetail,
|
|
|
|
|
- queryTHJPurchaseTransferOrder,
|
|
|
|
|
- queryTHJPurchaseTransferOrderDetail } from '@/services/api/order'
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ queryWrOrderDetail,
|
|
|
|
|
+ queryWrTradeDetail,
|
|
|
|
|
+ queryTHJPurchaseTradeDetail,
|
|
|
|
|
+ queryHoldLB, queryWrOutInApply,
|
|
|
|
|
+ queryTHJPromotionIncome,
|
|
|
|
|
+ queryTHJPromotionIncomeDetail,
|
|
|
|
|
+ queryTHJPurchaseTransferOrder,
|
|
|
|
|
+ queryTHJPurchaseTransferOrderDetail
|
|
|
|
|
+} from '@/services/api/order'
|
|
|
import { useLoginStore } from '@/stores'
|
|
import { useLoginStore } from '@/stores'
|
|
|
import { formatDate } from '@/filters'
|
|
import { formatDate } from '@/filters'
|
|
|
|
|
|
|
@@ -16,7 +18,7 @@ export function useQueryHoldLB() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.HoldLBRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.HoldLBRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getFirstAccountId } = useLoginStore()
|
|
const { getFirstAccountId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getHoldLB = async (warehouseid?: number, deliverygoodsid?: number, wrstandardid?: number, wrfactortypeid?: number, dgitemname?: string) => {
|
|
const getHoldLB = async (warehouseid?: number, deliverygoodsid?: number, wrstandardid?: number, wrfactortypeid?: number, dgitemname?: string) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryHoldLB({
|
|
await queryHoldLB({
|
|
@@ -57,7 +59,7 @@ export function useQueryWrOutInApply() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.WrOutInApplyRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.WrOutInApplyRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getWrOutInApply = async (begindate?: string, enddate?: string) => {
|
|
const getWrOutInApply = async (begindate?: string, enddate?: string) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryWrOutInApply({
|
|
await queryWrOutInApply({
|
|
@@ -95,7 +97,7 @@ export function useQueryWrOrderDetail() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.WrOrderDetailRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.WrOrderDetailRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getWrOrderDetail = async (haswr: number, marketid?: number, bcancel?: number, wrtradetype?: number, begindate?: string, enddate?: string) => {
|
|
const getWrOrderDetail = async (haswr: number, marketid?: number, bcancel?: number, wrtradetype?: number, begindate?: string, enddate?: string) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryWrOrderDetail({
|
|
await queryWrOrderDetail({
|
|
@@ -137,7 +139,7 @@ export function useQueryWrTradeDetail() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.WrTradeDetailRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.WrTradeDetailRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getWrTradeDetail = async (haswr: number, marketid?: number, begindate?: string, enddate?: string) => {
|
|
const getWrTradeDetail = async (haswr: number, marketid?: number, begindate?: string, enddate?: string) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryWrTradeDetail({
|
|
await queryWrTradeDetail({
|
|
@@ -177,7 +179,7 @@ export function useTHJPurchaseTradeDetail() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPurchaseTradeDetailRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPurchaseTradeDetailRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getTHJPurchaseTradeDetail = async (type?: number) => {
|
|
const getTHJPurchaseTradeDetail = async (type?: number) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryTHJPurchaseTradeDetail({
|
|
await queryTHJPurchaseTradeDetail({
|
|
@@ -214,7 +216,7 @@ export function useQueryTHJPromotionIncome() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPromotionIncomeRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPromotionIncomeRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getTHJPromotionIncome = async (status?: number) => {
|
|
const getTHJPromotionIncome = async (status?: number) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryTHJPromotionIncome({
|
|
await queryTHJPromotionIncome({
|
|
@@ -251,7 +253,7 @@ export function useQueryTHJPromotionIncomeDetail() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPromotionIncomeDetailRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPromotionIncomeDetailRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getTHJPromotionIncomeDetail = async () => {
|
|
const getTHJPromotionIncomeDetail = async () => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryTHJPromotionIncomeDetail({
|
|
await queryTHJPromotionIncomeDetail({
|
|
@@ -288,7 +290,7 @@ export function useQueryTHJPurchaseTransferOrder() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPurchaseTransferOrderRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJPurchaseTransferOrderRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const getTHJPurchaseTransferOrder = async (ordertype: number) => {
|
|
const getTHJPurchaseTransferOrder = async (ordertype: number) => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
await queryTHJPurchaseTransferOrder({
|
|
await queryTHJPurchaseTransferOrder({
|
|
@@ -321,18 +323,20 @@ export function useQueryTHJPurchaseTransferOrder() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 查询我的订单-转让/受让订单详情
|
|
// 查询我的订单-转让/受让订单详情
|
|
|
-export function useQueryTTHJPurchaseTransferOrderDetail() {
|
|
|
|
|
- const details = shallowRef<Partial<Model.THJPurchaseTransferOrderDetailRsp[]>>()
|
|
|
|
|
|
|
+export function useQueryTTHJPurchaseTransferOrderDetail(wrtradedetailid: string) {
|
|
|
|
|
+ const details = shallowRef<Model.THJPurchaseTransferOrderDetailRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
-
|
|
|
|
|
- const getTHJPurchaseTransferOrderDetail = (id?: string) => {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const getTHJPurchaseTransferOrderDetail = () => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
queryTHJPurchaseTransferOrderDetail({
|
|
queryTHJPurchaseTransferOrderDetail({
|
|
|
data: {
|
|
data: {
|
|
|
- wrtradedetailid: id ?? '0'
|
|
|
|
|
|
|
+ wrtradedetailid,
|
|
|
},
|
|
},
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
- details.value = res.data
|
|
|
|
|
|
|
+ if (res.data.length) {
|
|
|
|
|
+ details.value = res.data[0]
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
complete: () => {
|
|
complete: () => {
|
|
|
loading.value = false
|
|
loading.value = false
|