|
@@ -27,7 +27,8 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import PageTitle from "@/components/Page/Title";
|
|
import PageTitle from "@/components/Page/Title";
|
|
-
|
|
|
|
|
|
+import { getCookie } from "@/utils/util.js";
|
|
|
|
+let _this ;
|
|
export default {
|
|
export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
@@ -37,8 +38,14 @@ export default {
|
|
carrierIds: "",
|
|
carrierIds: "",
|
|
state: "",
|
|
state: "",
|
|
restaurants: [],
|
|
restaurants: [],
|
|
|
|
+ accessToken:null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ created(){
|
|
|
|
+ _this = this;
|
|
|
|
+ _this.accessToken = getCookie("accessToken");
|
|
|
|
+ console.log(this.accessToken ,'cookie1')
|
|
|
|
+ },
|
|
mounted() {},
|
|
mounted() {},
|
|
methods: {
|
|
methods: {
|
|
onInput() {
|
|
onInput() {
|
|
@@ -72,44 +79,44 @@ export default {
|
|
this.carrierIds=item.carrierIds;
|
|
this.carrierIds=item.carrierIds;
|
|
console.log(item)
|
|
console.log(item)
|
|
},
|
|
},
|
|
-
|
|
|
|
- makeSure() {
|
|
|
|
- // console.log(this.form1)
|
|
|
|
- let RmsCapacity={
|
|
|
|
- capacityTypeId:this.form1.capacityTypeId,
|
|
|
|
- capacityNumber:this.form1.capacityNumber.toUpperCase(),
|
|
|
|
- number:this.capacityNumber,
|
|
|
|
- capacityCorlor:this.form1.capacityCorlor,
|
|
|
|
- capacityOwneris:this.form1.capacityOwneris,
|
|
|
|
- capacityVip:this.form1.capacityVip,
|
|
|
|
- capacityBlacklist:this.form1.capacityBlacklist,
|
|
|
|
- // carrierId:this.form1.carrierId,
|
|
|
|
- state:this.state,
|
|
|
|
- carrierName:this.state,
|
|
|
|
- carrierIds: this.carrierIds,
|
|
|
|
- };
|
|
|
|
- // console.log("RmsCapacity",RmsCapacity)
|
|
|
|
- if(
|
|
|
|
- RmsCapacity.capacityNumber==null ||
|
|
|
|
- RmsCapacity.capacityCorlor==null ||
|
|
|
|
- RmsCapacity.capacityOwneris==null ||
|
|
|
|
- RmsCapacity.capacityVip==null ||
|
|
|
|
- RmsCapacity.capacityBlacklist==null ||
|
|
|
|
- RmsCapacity.carrierIds==null
|
|
|
|
- )this.$message.error("存在空值!");
|
|
|
|
- else
|
|
|
|
- this.axios
|
|
|
|
- .post("/api/v1/rms/getCarrierName?state=" + this.state)
|
|
|
|
- .then((res) => {
|
|
|
|
- if (res.data.code == "200") {
|
|
|
|
- res.data.data.forEach((element) => {
|
|
|
|
- this.restaurants.push({
|
|
|
|
- value: element.carrierName,
|
|
|
|
- carrierIds: element.carrierId,
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ makeSure() {
|
|
|
|
+ console.log(_this ,'cookie1')
|
|
|
|
+
|
|
|
|
+// let RmsCapacity={
|
|
|
|
+// capacityTypeId:this.form1.capacityTypeId,
|
|
|
|
+// capacityNumber:this.form1.capacityNumber.toUpperCase(),
|
|
|
|
+// number:this.capacityNumber,
|
|
|
|
+// capacityCorlor:this.form1.capacityCorlor,
|
|
|
|
+// capacityOwneris:this.form1.capacityOwneris,
|
|
|
|
+// capacityVip:this.form1.capacityVip,
|
|
|
|
+// capacityBlacklist:this.form1.capacityBlacklist,
|
|
|
|
+// // carrierId:this.form1.carrierId,
|
|
|
|
+// state:this.state,
|
|
|
|
+// carrierName:this.state,
|
|
|
|
+// carrierIds: this.carrierIds,
|
|
|
|
+// };
|
|
|
|
+// console.log("RmsCapacity",RmsCapacity)
|
|
|
|
+// if(
|
|
|
|
+// RmsCapacity.capacityNumber==null ||
|
|
|
|
+// RmsCapacity.capacityCorlor==null ||
|
|
|
|
+// RmsCapacity.capacityOwneris==null ||
|
|
|
|
+// RmsCapacity.capacityVip==null ||
|
|
|
|
+// RmsCapacity.capacityBlacklist==null ||
|
|
|
|
+// RmsCapacity.carrierIds==null
|
|
|
|
+// )this.$message.error("存在空值!");
|
|
|
|
+// else
|
|
|
|
+// this.axios
|
|
|
|
+// .post("/api/v1/rms/getCarrierName?state=" + this.state)
|
|
|
|
+// .then((res) => {
|
|
|
|
+// if (res.data.code == "200") {
|
|
|
|
+// res.data.data.forEach((element) => {
|
|
|
|
+// this.restaurants.push({
|
|
|
|
+// value: element.carrierName,
|
|
|
|
+// carrierIds: element.carrierId,
|
|
|
|
+// });
|
|
|
|
+// });
|
|
|
|
+// }
|
|
|
|
+// });
|
|
},
|
|
},
|
|
querySearch(queryString, cb) {
|
|
querySearch(queryString, cb) {
|
|
var restaurants = this.restaurants;
|
|
var restaurants = this.restaurants;
|