|
|
@@ -1,47 +1,50 @@
|
|
|
<template>
|
|
|
- <!-- 现货仓单 议价 议价单 -->
|
|
|
- <Drawer
|
|
|
- :title="'议价单'"
|
|
|
- :placement="'right'"
|
|
|
- class="delistingBottom"
|
|
|
- :visible="visible"
|
|
|
- @cancel="cancel"
|
|
|
- >
|
|
|
- <div class="listed">
|
|
|
- <a-form class="inlineForm dialogForm">
|
|
|
- <div class="formBar">
|
|
|
- <a-table
|
|
|
- :columns="columns"
|
|
|
- class="dialogTable dialogTable2"
|
|
|
- :pagination="false"
|
|
|
- :expandIcon="expandIcon"
|
|
|
- :loading="loading"
|
|
|
- :expandIconAsCell="false"
|
|
|
- rowKey="applyprice"
|
|
|
- :data-source="tableList"
|
|
|
- >></a-table>
|
|
|
- </div>
|
|
|
- <a-row :gutter="24" type="flex" justify="center">
|
|
|
- <a-col :span="24" class="fixedBtns">
|
|
|
- <a-form-item class="btnCenter">
|
|
|
- <a-button class="cancelBtn" v-if="isMy()" @click="cancelAction">撤销</a-button>
|
|
|
- <template v-else>
|
|
|
- <a-button class="listedBtn ml10" @click="submit">确认</a-button>
|
|
|
- <a-button class="ml10 cancelBtn" @click="refuse">拒绝</a-button>
|
|
|
- </template>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
+ <!-- 现货仓单 议价 议价单 -->
|
|
|
+ <Drawer :title="'议价单'"
|
|
|
+ :placement="'right'"
|
|
|
+ class="delistingBottom"
|
|
|
+ :visible="visible"
|
|
|
+ @cancel="cancel">
|
|
|
+ <div class="listed">
|
|
|
+ <a-form class="inlineForm dialogForm">
|
|
|
+ <div class="formBar">
|
|
|
+ <a-table :columns="columns"
|
|
|
+ class="dialogTable dialogTable2"
|
|
|
+ :pagination="false"
|
|
|
+ :expandIcon="expandIcon"
|
|
|
+ :loading="loading"
|
|
|
+ :expandIconAsCell="false"
|
|
|
+ rowKey="applyprice"
|
|
|
+ :data-source="tableList">></a-table>
|
|
|
</div>
|
|
|
- </Drawer>
|
|
|
+ <a-row :gutter="24"
|
|
|
+ type="flex"
|
|
|
+ justify="center">
|
|
|
+ <a-col :span="24"
|
|
|
+ class="fixedBtns">
|
|
|
+ <a-form-item class="btnCenter">
|
|
|
+ <a-button class="cancelBtn"
|
|
|
+ v-if="isMy()"
|
|
|
+ @click="cancelAction">撤销</a-button>
|
|
|
+ <template v-else>
|
|
|
+ <a-button class="listedBtn ml10"
|
|
|
+ @click="submit">确认</a-button>
|
|
|
+ <a-button class="ml10 cancelBtn"
|
|
|
+ @click="refuse">拒绝</a-button>
|
|
|
+ </template>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </div>
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { QueryWrPositionReq, QueryWrTradeBargainApplyReq, WrOrderDetail, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
+import { QueryWrPositionReq, QueryWrTradeBargainApplyQsp, QueryWrTradeBargainApplyReq, WrOrderDetail, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
import { getUserId } from '@/services/bus/account';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { hdWROrder } from '@/services/proto/warehousetrade';
|
|
|
@@ -62,18 +65,18 @@ export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
|
props: {
|
|
|
selectedRow: {
|
|
|
- type: Object as PropType<WrOrderDetail>,
|
|
|
+ type: Object as PropType<QueryWrTradeBargainApplyQsp>,
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<WrOrderDetail>();
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<QueryWrTradeBargainApplyQsp>();
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
- const { wrtradeorderid } = props.selectedRow;
|
|
|
+ const { wrbargainid } = props.selectedRow;
|
|
|
const param: QueryWrTradeBargainApplyReq = {
|
|
|
haswr: 1,
|
|
|
- wrtradeorderid: wrtradeorderid,
|
|
|
+ wrtradeorderid: props.selectedRow.wrtradeorderid,
|
|
|
};
|
|
|
queryTable(queryQueryWrTradeBargainApply, param);
|
|
|
// 我对别人的 => 撤销
|
|
|
@@ -82,7 +85,7 @@ export default defineComponent({
|
|
|
// 确认
|
|
|
function submit() {
|
|
|
const param: WrBargainNoAgreeReq = {
|
|
|
- WrBargainID: Long.fromString(wrtradeorderid),
|
|
|
+ WrBargainID: Long.fromString(wrbargainid),
|
|
|
Status: 1,
|
|
|
};
|
|
|
requestResultLoadingAndInfo(wrBargainNoAgree, param, loading, ['确认成功', '确认失败:']).then(() => {
|
|
|
@@ -92,7 +95,7 @@ export default defineComponent({
|
|
|
// 拒绝
|
|
|
function refuse() {
|
|
|
const param: WrBargainNoAgreeReq = {
|
|
|
- WrBargainID: Long.fromString(wrtradeorderid),
|
|
|
+ WrBargainID: Long.fromString(wrbargainid),
|
|
|
Status: 2,
|
|
|
};
|
|
|
requestResultLoadingAndInfo(wrBargainNoAgree, param, loading, ['拒绝成功', '拒绝失败:']).then(() => {
|
|
|
@@ -102,7 +105,7 @@ export default defineComponent({
|
|
|
// 撤销
|
|
|
function cancelAction() {
|
|
|
const param: WrBargainBackReq = {
|
|
|
- WrBargainID: Long.fromString(wrtradeorderid),
|
|
|
+ WrBargainID: Long.fromString(wrbargainid),
|
|
|
};
|
|
|
requestResultLoadingAndInfo(wrBargainBack, param, loading, ['撤销成功', '撤销失败:']).then(() => {
|
|
|
cancel(true);
|