| | |
| | | </div> |
| | | <div class="right_title"> |
| | | <div class="t_t" style="white-space: nowrap"> |
| | | <span>{{ name | getName }}</span> |
| | | <span>{{ name }}</span> |
| | | </div> |
| | | <div class="b_t"> |
| | | <span>{{ code }}</span> |
| | | <span>{{ spell }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | if (this.$route.query.name) { |
| | | this.name = this.$route.query.name; |
| | | } |
| | | if (this.$route.query.spell) { |
| | | this.spell = this.$route.query.spell; |
| | | } |
| | | if (this.$route.query.type) { |
| | | this.type = this.$route.query.type; |
| | | } |
| | |
| | | type: 0, |
| | | code: "", |
| | | name: "", |
| | | spell: "", |
| | | settingInfo: [], |
| | | selectCycle: 1, |
| | | siteLeverList: [], |
| | |
| | | elAlertType: "success", |
| | | }); |
| | | this.getUserInfo(); |
| | | this.$router.push("/warehouse?index=1"); |
| | | this.$router.push("/warehouse?index=1&buyType=" + this.bayType); |
| | | } else { |
| | | this.$store.commit("elAlertShow", { |
| | | elAlertShow: true, |
| | |
| | | } else { |
| | | buyType = 0; |
| | | } |
| | | if (this.bayType == "US") { |
| | | this.$router.push("/warehouse?index=1&buyType=" + buyType); |
| | | } else if (this.bayType == "MAS") { |
| | | this.$router.push("/warehouse?index=0&buyType=" + buyType); |
| | | } else { |
| | | this.$router.push("/warehouse"); |
| | | } |
| | | this.$router.push("/warehouse?index=1&buyType=" + this.bayType); |
| | | } else { |
| | | if (data.msg.indexOf("不在交易时段内") > -1) { |
| | | this.$store.commit("elAlertShow", { |
| | |
| | | elAlertType: "success", |
| | | }); |
| | | this.getUserInfo(); |
| | | this.$router.push("/warehouse?index=0"); |
| | | this.$router.push("/warehouse?index=1&buyType=" + this.bayType); |
| | | } else { |
| | | this.$store.commit("elAlertShow", { |
| | | elAlertShow: true, |
| | |
| | | i++ |
| | | ) { |
| | | let val = this.$store.state.userInfo.siteLever.split("/")[i]; |
| | | let item = { label: val + this.$t("hj112"), value: val }; |
| | | let item = { label: val + this.$t("hj112"), name: val, gg: val}; |
| | | this.siteLeverList.push(item); |
| | | } |
| | | } else { |
| | |
| | | filters: { |
| | | getName(name) { |
| | | if (name.length > 15) { |
| | | return name.substring(0, 14); |
| | | return name; |
| | | } else { |
| | | return name; |
| | | } |