jhzh
2025-08-27 ef2e2e3f9c6d37cc47b14ce0444fb75e6aa19dd1
src/page/user/Warehouse copy.vue
@@ -207,6 +207,7 @@
                :finished="finished"
                v-if="zjtype == 0 && cclist.length"
                :finished-text="$t('hj43')"
                :loading-text="$t('hj430')"
                @load="onLoad"
              >
                <div v-if="cclist.length > 0" class="tabs_o">
@@ -250,7 +251,7 @@
                    </div>
                    <div class="bottom_price_title">
                      <div class="start_price">
                        <span>P/L(INR)</span>
                        <span>P/L(JPY)</span>
                      </div>
                      <div class="new_price">
                        <span>{{ $t("shou") }}</span>
@@ -350,7 +351,7 @@
                    </div>
                    <div class="bottom_price_title">
                      <div class="start_price">
                        <span>P/L(INR)</span>
                        <span>P/L(JPY)</span>
                      </div>
                      <div class="new_price">
                        <span>{{ $t("shou") }}</span>
@@ -449,6 +450,7 @@
                v-model="loadingss"
                :finished="finishedss"
                :finished-text="$t('hj43')"
                :loading-text="$t('hj430')"
                v-if="tabsCurrentIndex === 1 && totalss != 0"
                :immediate-check="immediate"
              >
@@ -525,6 +527,7 @@
                v-model="loadings"
                :finished="finisheds"
                :finished-text="$t('hj43')"
                :loading-text="$t('hj430')"
                @load="onLoads"
                :immediate-check="immediate"
                v-if="tabsCurrentIndex === 2 && totals != 0"
@@ -599,7 +602,7 @@
                      @click="
                        $router.push({
                          path: '/trading-list',
                          query: { listid: 5 },
                          query: { listid: 5 }
                        })
                      "
                    >
@@ -730,7 +733,7 @@
        this.$t("hj2"),
        this.$t("hj109"),
        this.$t("hj136"),
        this.$t("hj3"),
        this.$t("hj3")
      ],
      tabsCurrentIndex: 0,
      titleName: this.$t("hj114"),
@@ -763,7 +766,7 @@
      tabsXgArr: [],
      cclist: [],
      loadingXg: false,
      finishedXg: false,
      finishedXg: false
    };
  },
  mounted() {
@@ -788,7 +791,7 @@
        state: this.zjtype == 0 ? "0" : "1",
        stockType: this.typeindex == 0 ? "IN" : "US",
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        pageSize: this.pageSize
      };
      let data = await api.getchicang(opt);
      if (data.status === 0) {
@@ -800,11 +803,11 @@
    getrenjiao(val) {
      MessageBox.confirm(this.$t("hj251") + "?", this.$t("hj165"), {
        confirmButtonText: this.$t("hj161"),
        cancelButtonText: this.$t("hj106"),
        cancelButtonText: this.$t("hj106")
      })
        .then(async () => {
          let opt = {
            id: val,
            id: val
          };
          let data = await api.submitSubscribe(opt);
          if (data.status === 0) {
@@ -828,11 +831,11 @@
        // 沪深京
        MessageBox.confirm(this.$t("hj139") + "?", this.$t("hj165"), {
          confirmButtonText: this.$t("hj161"),
          cancelButtonText: this.$t("hj106"),
          cancelButtonText: this.$t("hj106")
        })
          .then(async () => {
            let opt = {
              positionSn: val,
              positionSn: val
            };
            let data = await api.sell(opt);
            if (data.status === 0) {
@@ -857,11 +860,11 @@
        // 指数
        MessageBox.confirm(this.$t("hj139") + "?", this.$t("hj165"), {
          confirmButtonText: this.$t("hj161"),
          cancelButtonText: this.$t("hj106"),
          cancelButtonText: this.$t("hj106")
        })
          .then(async () => {
            let opt = {
              positionSn: val,
              positionSn: val
            };
            let data = await api.sellIndex(opt);
            if (data.status === 0) {
@@ -931,7 +934,7 @@
    },
    async gdClose(item) {
      let opts = {
        id: item.id,
        id: item.id
      };
      let data = await api.delGuaDan(opts);
      if (data.status === 1) {
@@ -980,8 +983,8 @@
      this.$router.push({
        path: "/trading-list",
        query: {
          listid: 5,
        },
          listid: 5
        }
      });
    },
    SetTitleIndex(index) {
@@ -1050,7 +1053,7 @@
      let data = await api.getorderList(opts);
      this.loadingss = false;
      if (data.status === 0) {
        data.data.forEach((element) => {
        data.data.forEach(element => {
          this.tabsOrderList.push(element);
        });
        this.totalss = data.data.length;
@@ -1113,7 +1116,7 @@
        stockCode: "", // 代码
        stockSpell: "", // 简拼
        pageNum: this.page,
        pageSize: 15,
        pageSize: 15
      };
      let data = await api.getOrderList(opt);
      this.loading = false;
@@ -1121,7 +1124,7 @@
        if (data.data.list.length < 15) {
          this.finished = true;
        }
        data.data.list.forEach((element) => {
        data.data.list.forEach(element => {
          this.tabsPositionNumArr.push(element);
        });
        this.total = data.data.total;
@@ -1137,7 +1140,7 @@
        stockCode: "", // 代码
        stockSpell: "", // 简拼
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        pageSize: this.pageSize
      };
      let data = await api.getIndexOrderList(opt);
      this.loading = false;
@@ -1145,7 +1148,7 @@
        if (data.data.list.length < 15) {
          this.finished = true;
        }
        data.data.list.forEach((element) => {
        data.data.list.forEach(element => {
          this.tabsPositionNumArr.push(element);
        });
        this.total = data.data.total;
@@ -1161,7 +1164,7 @@
        fnCode: "", // 代码
        fnName: "", // 简拼
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        pageSize: this.pageSize
      };
      let data = await api.getFuturesOrderList(opt);
      this.loading = false;
@@ -1169,7 +1172,7 @@
        if (data.data.list.length < 15) {
          this.finished = true;
        }
        data.data.list.forEach((element) => {
        data.data.list.forEach(element => {
          this.tabsPositionNumArr.push(element);
        });
        this.total = data.data.total;
@@ -1185,7 +1188,7 @@
        stockCode: "", // 代码
        stockSpell: "", // 简拼
        pageNum: this.pages,
        pageSize: 15,
        pageSize: 15
      };
      let data = await api.getOrderList(opt);
      this.loadings = false;
@@ -1193,7 +1196,7 @@
        if (data.data.list.length < 15) {
          this.finisheds = true;
        }
        data.data.list.forEach((element) => {
        data.data.list.forEach(element => {
          this.tabsPcArr.push(element);
        });
        this.totals = data.data.total;
@@ -1209,7 +1212,7 @@
        stockCode: "", // 代码
        stockSpell: "", // 简拼
        pageNum: this.pageNum,
        pageSize: 15,
        pageSize: 15
      };
      let data = await api.getIndexOrderList(opt);
      this.loadings = false;
@@ -1217,7 +1220,7 @@
        this.finisheds = true;
      }
      if (data.status === 0) {
        data.data.list.forEach((element) => {
        data.data.list.forEach(element => {
          this.tabsPcArr.push(element);
        });
        this.totals = data.data.total;
@@ -1233,7 +1236,7 @@
        fnCode: "", // 代码
        fnName: "", // 简拼
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        pageSize: this.pageSize
      };
      let data = await api.getFuturesOrderList(opt);
      this.loadings = false;
@@ -1241,7 +1244,7 @@
        if (data.data.list.length < 15) {
          this.finisheds = true;
        }
        data.data.list.forEach((element) => {
        data.data.list.forEach(element => {
          this.tabsPcArr.push(element);
        });
        this.totals = data.data.total;
@@ -1265,7 +1268,7 @@
      } else {
        Toast(data.msg);
      }
    },
    }
  },
  filters: {
    gettime(time) {
@@ -1297,8 +1300,8 @@
      // 17:35:2922-06-2022
      // return y + '/' + mm + '/' + d + ' ' + h + ':' + m + ':' + c
      return mm + "/" + d + "/" + y + " " + h + ":" + m + ":" + c;
    },
  },
    }
  }
};
</script>
@@ -2083,4 +2086,4 @@
  right: 0.5rem;
  top: calc(50% - 0.15rem);
}
</style>
</style>