chenrui 4 years ago
parent
commit
46a5ad51fd

+ 1 - 1
src/views/inventoryManagement/warehouse/list.vue

@@ -121,7 +121,7 @@ export default {
     },
     //  查看仓位
     goStoringLocation(row){
-      this.$router.push({ path: `/inventoryManagement/storingLocation/${row.id}` })
+      this.$router.push({ path: `/inventoryManagement/storingLocation/${row.id}`, query: { name: row.name } })
     }
   }
 }

+ 4 - 0
src/views/inventoryManagement/warehouse/storingLocation/list.vue

@@ -27,6 +27,7 @@
       <div class="table-operator">
         <a-button id="storingLocationList-add" type="primary" @click="handleEdit()">新增仓位</a-button>
       </div>
+      <strong style="display: block;margin: 30px 0 20px;">所属仓库:{{ $route.query.name }}</strong>
       <!-- 列表 -->
       <s-table
         class="sTable"
@@ -82,6 +83,9 @@ export default {
       nowData: null  //  当前记录数据
     }
   },
+  mounted() {
+    console.log(this.$route.query.name)
+  },
   methods: {
     //  重置
     resetSearchForm () {

+ 1 - 1
src/views/salesManagement/customerManagement/edit.vue

@@ -185,7 +185,7 @@ export default {
 	methods: {
 		//  获取客户信息
 		getDetail() {
-			custFindById({ id: this.itemId }).then(res => {
+			custFindById({ id: this.$route.params.id }).then(res => {
 				if (res.status == 200) {
 					// this.detailsData = res.data
 				} else {

+ 3 - 3
src/views/salesManagement/customerManagement/list.vue

@@ -247,8 +247,8 @@ export default {
     getCityList (val) {
       this.addrCityList = []
       this.addrDistrictList = []
-      this.queryParam.cityCode = undefined
-      this.queryParam.districtCode = undefined
+      this.queryParam.cityId = undefined
+      this.queryParam.areaId = undefined
       this.getCityListRequest(val)
     },
     getCityListRequest (val) {
@@ -265,7 +265,7 @@ export default {
     // 获取区县列表
     getAreaList (val) {
       this.addrDistrictList = []
-      this.queryParam.districtCode = undefined
+      this.queryParam.areaId = undefined
       this.getAreaListRequest(val)
     },
     getAreaListRequest (val) {