|
@@ -13,7 +13,7 @@ import Long from 'long'
|
|
|
/**
|
|
/**
|
|
|
* 我的询价
|
|
* 我的询价
|
|
|
*/
|
|
*/
|
|
|
-export function useBargain(type: 0 | 1) {
|
|
|
|
|
|
|
+export function useBargain() {
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
const { dataList, total, pageIndex, pageSize } = useDataTable<Ermcp.MyBargainApplyRsp | Ermcp.MyDelistingApplyRsp>()
|
|
const { dataList, total, pageIndex, pageSize } = useDataTable<Ermcp.MyBargainApplyRsp | Ermcp.MyDelistingApplyRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
@@ -58,7 +58,7 @@ export function useBargain(type: 0 | 1) {
|
|
|
|
|
|
|
|
const [buyOrSell, applyStatus] = selectList
|
|
const [buyOrSell, applyStatus] = selectList
|
|
|
const param: Ermcp.MyBargainApplyReq | Ermcp.MyDelistingApplyReq = {
|
|
const param: Ermcp.MyBargainApplyReq | Ermcp.MyDelistingApplyReq = {
|
|
|
- type,
|
|
|
|
|
|
|
+ type: 0,
|
|
|
page: pageIndex.value,
|
|
page: pageIndex.value,
|
|
|
pagesize: pageSize.value,
|
|
pagesize: pageSize.value,
|
|
|
userid: getUserId(),
|
|
userid: getUserId(),
|
|
@@ -112,9 +112,9 @@ export function useBargain(type: 0 | 1) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 我的询价-求购
|
|
|
|
|
|
|
+ * 询价消息-买方询价
|
|
|
*/
|
|
*/
|
|
|
-export function useBuyBargain(type: 0 | 1) {
|
|
|
|
|
|
|
+export function useBuyBargain() {
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
const { dataList, total, pageIndex, pageSize } = useDataTable<Ermcp.MyBargainApplyRsp>()
|
|
const { dataList, total, pageIndex, pageSize } = useDataTable<Ermcp.MyBargainApplyRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
@@ -143,12 +143,12 @@ export function useBuyBargain(type: 0 | 1) {
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
- // 获取我的询价列表
|
|
|
|
|
|
|
+ // 获取询价列表
|
|
|
const getBargainOrderList = () => {
|
|
const getBargainOrderList = () => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
return queryMyBargainApply({
|
|
return queryMyBargainApply({
|
|
|
data: {
|
|
data: {
|
|
|
- type,
|
|
|
|
|
|
|
+ type: 1,
|
|
|
page: pageIndex.value,
|
|
page: pageIndex.value,
|
|
|
pagesize: pageSize.value,
|
|
pagesize: pageSize.value,
|
|
|
userid: getUserId(),
|
|
userid: getUserId(),
|
|
@@ -178,9 +178,9 @@ export function useBuyBargain(type: 0 | 1) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 我的询价-出售
|
|
|
|
|
|
|
+ * 询价消息-卖方询价
|
|
|
*/
|
|
*/
|
|
|
-export function useSellBargain(type: 0 | 1) {
|
|
|
|
|
|
|
+export function useSellBargain() {
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
const { dataList, total, pageIndex, pageSize } = useDataTable<Ermcp.MyDelistingApplyRsp>()
|
|
const { dataList, total, pageIndex, pageSize } = useDataTable<Ermcp.MyDelistingApplyRsp>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
@@ -209,12 +209,12 @@ export function useSellBargain(type: 0 | 1) {
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
- // 获取我的询价列表
|
|
|
|
|
|
|
+ // 获取询价列表
|
|
|
const getBargainOrderList = () => {
|
|
const getBargainOrderList = () => {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
return queryMyDelistingApply({
|
|
return queryMyDelistingApply({
|
|
|
data: {
|
|
data: {
|
|
|
- type,
|
|
|
|
|
|
|
+ type: 1,
|
|
|
page: pageIndex.value,
|
|
page: pageIndex.value,
|
|
|
pagesize: pageSize.value,
|
|
pagesize: pageSize.value,
|
|
|
userid: getUserId(),
|
|
userid: getUserId(),
|