|
|
@@ -1,23 +1,46 @@
|
|
|
<template>
|
|
|
- <Drawer
|
|
|
- :title="'详情'"
|
|
|
- :placement="'right'"
|
|
|
- :visible="visible"
|
|
|
- width="486px"
|
|
|
- height="479px"
|
|
|
- @cancel="cancel"
|
|
|
- class="top"
|
|
|
- >
|
|
|
- <div class="delisting"></div>
|
|
|
- </Drawer>
|
|
|
+ <!-- 买卖大厅详情 -->
|
|
|
+ <Drawer :title="'详情'"
|
|
|
+ :placement="'right'"
|
|
|
+ :visible="visible"
|
|
|
+ class="top top486"
|
|
|
+ @cancel="cancel">
|
|
|
+ <div class="detailCont">
|
|
|
+ <div class="rows">
|
|
|
+ <div class="row"
|
|
|
+ v-for="item in lstitem"
|
|
|
+ :key="item.name">
|
|
|
+ <div class="left">{{item.name}}</div>
|
|
|
+ <div class="right">{{item.value}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="ruleTitle">履约规则:</div>
|
|
|
+ <div class="rulesCont">
|
|
|
+ <a-row>
|
|
|
+ <a-col :span="24"
|
|
|
+ class="ruleCol">
|
|
|
+ <div class="line"
|
|
|
+ v-for="item in lststep"
|
|
|
+ :key="item.autoid">
|
|
|
+ <!-- <div class="no">{{index + 1}}</div> -->
|
|
|
+ <div class="name">{{item.steptypename}}</div>
|
|
|
+ <div class="time">{{item.stepdate}}</div>
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
-
|
|
|
+import { QueryWrGoodsInfoReq, WrGoodsPerformanceStep, WrTypeItem } from '@/services/go/wrtrade/interface';
|
|
|
+import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
+import { queryWrBsGoodsInfo, queryWrGoodsInfo } from '@/services/go/wrtrade';
|
|
|
+import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
@@ -30,13 +53,21 @@ export default defineComponent({
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
-
|
|
|
setup(props, context) {
|
|
|
- const { visible, cancel } = _closeModal(context);
|
|
|
-
|
|
|
const loading = ref<boolean>(false);
|
|
|
+ const { visible, cancel } = _closeModal(context);
|
|
|
+ const lstitem = ref<WrTypeItem[]>();
|
|
|
+ const lststep = ref<WrGoodsPerformanceStep[]>();
|
|
|
+ queryResultLoadingAndInfo(queryWrBsGoodsInfo, loading, props.parantSelectedRow.goodsid).then((res) => {
|
|
|
+ if (res.length) {
|
|
|
+ lstitem.value = res[0].lstitem;
|
|
|
+ lststep.value = res[0].lststep;
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
return {
|
|
|
+ lstitem,
|
|
|
+ lststep,
|
|
|
visible,
|
|
|
cancel,
|
|
|
};
|
|
|
@@ -44,125 +75,100 @@ export default defineComponent({
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less">
|
|
|
-.delisting {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- .flex;
|
|
|
- flex-direction: column;
|
|
|
- overflow: hidden;
|
|
|
- .condition {
|
|
|
+<style lang="less" scoped>
|
|
|
+.detailCont {
|
|
|
+ padding: 10px;
|
|
|
+ .rows {
|
|
|
+ .flex;
|
|
|
+ flex-direction: column;
|
|
|
width: 100%;
|
|
|
- height: 48px;
|
|
|
- margin: 0 16px;
|
|
|
- padding: 10px 0;
|
|
|
- border-bottom: 1px solid @m-black6;
|
|
|
- .inlineflex;
|
|
|
- .conditionBtn {
|
|
|
- align-self: center;
|
|
|
- align-items: center;
|
|
|
- border: 0;
|
|
|
- min-width: 80px;
|
|
|
- height: 28px;
|
|
|
- line-height: 28px;
|
|
|
- background: @m-black7;
|
|
|
- .rounded-corners(3px);
|
|
|
- font-size: 14px;
|
|
|
- color: @m-blue0;
|
|
|
- &:hover {
|
|
|
- background: @m-black7-hover;
|
|
|
- color: @m-blue0-hover;
|
|
|
+ border: 1px solid @m-black6;
|
|
|
+ background: @m-black13;
|
|
|
+ .row {
|
|
|
+ display: inline-flex;
|
|
|
+ width: 100%;
|
|
|
+ height: 38px;
|
|
|
+ line-height: 38px;
|
|
|
+ border-bottom: 1px solid @m-black6;
|
|
|
+ > div {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ .left {
|
|
|
+ width: 126px;
|
|
|
+ color: @m-grey1;
|
|
|
+ border-right: 1px solid @m-black6;
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ flex: 1;
|
|
|
+ color: @m-white11;
|
|
|
}
|
|
|
- }
|
|
|
- .conditionBtn + .conditionBtn {
|
|
|
- margin-left: 10px;
|
|
|
}
|
|
|
}
|
|
|
- .ant-form {
|
|
|
- height: 100%;
|
|
|
+ .ruleTitle {
|
|
|
+ width: 100%;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: @m-grey1;
|
|
|
}
|
|
|
-}
|
|
|
-::v-deep.ant-input-suffix {
|
|
|
- position: absolute;
|
|
|
- right: -25px;
|
|
|
-}
|
|
|
-.unit {
|
|
|
- margin-left: 70px;
|
|
|
- width: 260px;
|
|
|
- .flex;
|
|
|
- justify-content: space-between;
|
|
|
- font-size: 14px;
|
|
|
- color: @m-grey41;
|
|
|
- height: 14px;
|
|
|
- line-height: 14px;
|
|
|
-}
|
|
|
-.listedBtn {
|
|
|
- width: 120px;
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- background: linear-gradient(0deg, @m-blue2 0%, @m-blue0 100%);
|
|
|
- border-radius: 3px;
|
|
|
- color: @m-white0;
|
|
|
- font-size: 14px;
|
|
|
- text-align: center;
|
|
|
- border: 0;
|
|
|
- &:hover {
|
|
|
- background: linear-gradient(0deg, @m-blue0-hover 0%, @m-blue2-hover 100%);
|
|
|
- color: @m-white0-hover;
|
|
|
+ .rulesCont {
|
|
|
+ margin-top: 10px;
|
|
|
+ .flex;
|
|
|
+ overflow-x: auto;
|
|
|
+ overflow-y: hidden;
|
|
|
+ max-width: 450px;
|
|
|
+ .ruleCol.ant-col {
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-.cancelBtn:extend(.listedBtn) {
|
|
|
- background: linear-gradient(0deg, @m-grey12 0%, @m-grey13 100%) !important;
|
|
|
- &:hover {
|
|
|
- background: linear-gradient(0deg, @m-grey12-hover 0%, @m-grey13-hover 100%) !important;
|
|
|
- color: @m-white0-hover;
|
|
|
+.ant-row {
|
|
|
+ margin-left: 0 !important;
|
|
|
+ margin-right: 0 !important;
|
|
|
+ .ant-col {
|
|
|
+ padding-left: 0 !important;
|
|
|
+ padding-right: 0 !important;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .rounded-corners(3px);
|
|
|
+ display: inline-flex;
|
|
|
+ .line {
|
|
|
+ width: 100%;
|
|
|
+ .flex;
|
|
|
+ flex-direction: column;
|
|
|
+ .name {
|
|
|
+ min-width: 120px;
|
|
|
+ height: 30px;
|
|
|
+ background: @m-blue28;
|
|
|
+ border: 1px solid @m-black37;
|
|
|
+ .rounded-corners(3px);
|
|
|
+ text-align: center;
|
|
|
+ font-size: 16px;
|
|
|
+ color: @m-white6;
|
|
|
+ }
|
|
|
+
|
|
|
+ .time {
|
|
|
+ margin: 6px auto 0;
|
|
|
+ width: 50px;
|
|
|
+ height: 28px;
|
|
|
+ background: @m-black38;
|
|
|
+ .rounded-corners(5px);
|
|
|
+ color: @m-blue26;
|
|
|
+ font-size: 14px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .line:nth-child(2n) {
|
|
|
+ .name {
|
|
|
+ background: @m-yellow4;
|
|
|
+ border-color: @m-yellow5;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .line + .line {
|
|
|
+ margin-left: 5px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-.ml10 {
|
|
|
- margin-left: 10px;
|
|
|
-}
|
|
|
-.ant-form.dialogForm .ant-row.ant-form-item {
|
|
|
- margin-bottom: 14px;
|
|
|
-}
|
|
|
-.mt20 {
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
-.mt-20 {
|
|
|
- margin-top: -20px;
|
|
|
-}
|
|
|
-.labelTip {
|
|
|
- font-size: 14px;
|
|
|
- color: @m-blue16;
|
|
|
- position: absolute;
|
|
|
- top: 15px;
|
|
|
- left: -66px;
|
|
|
-}
|
|
|
-.minusBtn,
|
|
|
-.plusBtn {
|
|
|
- width: 15px;
|
|
|
- height: 32px;
|
|
|
- line-height: 32px;
|
|
|
- font-size: 15px;
|
|
|
- color: @m-blue15;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-.minusBtn {
|
|
|
- position: absolute;
|
|
|
- top: -6px;
|
|
|
- left: 14px;
|
|
|
- z-index: 1;
|
|
|
-}
|
|
|
-.plusBtn {
|
|
|
- position: absolute;
|
|
|
- top: -6px;
|
|
|
- right: 14px;
|
|
|
- z-index: 1;
|
|
|
-}
|
|
|
-.stepper {
|
|
|
- padding-left: 30px;
|
|
|
- padding-right: 30px;
|
|
|
- text-align: center;
|
|
|
- color: @m-yellow1;
|
|
|
- font-size: 16px;
|
|
|
-}
|
|
|
-</style>;
|
|
|
+</style>
|