jhzh
2024-09-19 e3097587828362e34352cf4f378c8f5a260ea700
src/page/list/favorites/data.list.vue
@@ -8,7 +8,7 @@
          </div>
        </van-col>
        <van-col span="9"
          ><div style="text-align: left">
          ><div v-show="false" style="text-align: left">
            {{ $t("hj40") }}
          </div>
        </van-col>
@@ -54,14 +54,14 @@
                  >{{ item.name }}</span
                >
              </div>
              <div class="bt">
             <!-- <div class="bt">
                <span>{{ item.code }}</span>
              </div>
              </div> -->
            </div></van-col
          >
          <van-col span="9">
            <div style="text-align: left">
          <van-col span="9" >
            <div style="text-align: left" v-show="false">
              <div class="tp">
                <span class="price_color">{{
                  item.price | _toLocaleString(false)
@@ -81,7 +81,28 @@
              </div>
            </div>
          </van-col>
          <div style="width: 100%;display: flex;justify-content: space-between;align-items: center;margin-top: 10px;font-size: 10px;;">
            <div>{{$t('hj59')}}:{{
                $moment(item.subscribeTime).format(
                  "DD-MM-YYYY hh:mm:ss A"
                )
              }}</div>
            <div>{{$t('申购结束时间')}}:{{
                $moment(item.subscriptionTime).format(
                  "DD-MM-YYYY hh:mm:ss A"
                )
              }}</div>
          </div>
          <div style="width: 100%;display: flex;justify-content: space-between;align-items: center;margin-top: 10px;font-size: 10px;;">
            <div>{{$t('上市时间')}}:{{
                $moment(item.listDate).format(
                  "DD-MM-YYYY hh:mm:ss A"
                )
              }}</div>
            <div>{{$t('hj314')}}:{{item.price | _toLocaleString(false)}}</div>
          </div>
        </van-row>
      </div>
    </van-list>
@@ -99,7 +120,14 @@
          <div class="laber">
            {{ shengouObj.type === 1 ? $t("hj57") : $t("配售数量") }}:
          </div>
          <input type="number" :value="fromData.value" @input="fromDatavalue" />
          <input disabled type="text" :maxlength="9"  v-model="fromData.value" @input="fromDatavalue"  />
        </div>
        <div class="input-box" style="margin-top:20px;" v-if="shengouObj.password">
        <!-- <div class="input-box" style="margin-top:20px;"> -->
          <div class="laber">
            {{$t("秘钥")}}:
          </div>
          <input type="text" :maxlength="9"  v-model="fromData.password"  />
        </div>
        <div class="shijian">
@@ -203,6 +231,7 @@
    return {
      fromData: {
        value: 1,
        password:''
      },
      loadings: false,
      show: false,
@@ -220,14 +249,16 @@
  },
  methods: {
    fromDatavalue(e) {
      this.fromData.value = e.target.value;
      this.fromData.value = this.fromData.value.replace(/^(0+)|[^\d]+/g, '')
    },
    async newAddxg() {
      console.log(this.shengouObj, "=====");
      console.log(this.shengouObj.newlistId, "=====");
      const res = await api.getNewAdd({
        newCode: this.shengouObj.code,
        applyNums: this.fromData.value,
        type: this.fromData.type,
        password: this.fromData.password,
        newlistId: this.shengouObj.newlistId,
        type: this.shengouObj.type,
      });
      if (res.status === 0) {
        Notify({ type: "success", message: res.msg });
@@ -240,6 +271,7 @@
    shengou(item) {
      this.show = true;
      this.shengouObj = item;
      this.fromData.value = item.orderNumber
    },
    filterSH(val) {
      if (val === "sh") {
@@ -260,6 +292,7 @@
      }
      let opt = {
        zt: 0,
        getType: 1,
        pageSize: 1000,
      };
      let data = await api.getStocklist(opt);
@@ -305,6 +338,7 @@
    font-size: 0.3975rem;
    .laber {
      margin-right: 10px;
      width: 50%;
    }
    // margin-top: 0.8rem;
  }
@@ -416,4 +450,4 @@
  text-align: center;
  line-height: 35px;
}
</style>
</style>