Browse Source

修改地区

mxx 3 years ago
parent
commit
bccad6edab

+ 4 - 2
src/components/mapdrag/mapdrag.vue

@@ -130,8 +130,7 @@ export default {
   watch: {
     selectedOptions:{
       handler(newValue, oldValue) {
-        console.log(CodeToText[newValue[1]])
-        this.province=newValue[0]
+        this.province=CodeToText[newValue[0]]
         this.selectP(this.province)
         this.city = CodeToText[newValue[1]]
         this.selectC(CodeToText[newValue[1]])
@@ -345,6 +344,7 @@ export default {
       })
     },
     selectP(val) {
+     this.province=CodeToText[val]
       if (this.status) {
         this.$emit('provinceChange', val)
         this.loadmap(val)
@@ -360,6 +360,7 @@ export default {
       }
     },
     selectD(val) {
+     this.district=CodeToText[val]
       if (this.status) {
         this.loadmap(val)
       }
@@ -373,6 +374,7 @@ export default {
       _data.push(this.type)
       this.$emit('addressListen',_data)
       this.$parent.blurMap()
+      console.log("submit")
     }
   },
 }

+ 2 - 0
src/views/contractManagement/purchaseContractAdd.vue

@@ -722,6 +722,8 @@ export default {
   activated() {
     this.selectedOptions=[]
     this.selectedOptions1 = []
+    this.newSelectedOptions:'请选择货源所在地',
+    this.newSelectedOptions1:'请选择交货所在地',
     this.deptBudgetList.packingMethod = '散装'
     this.deptBudgetList.packingMethodKey = 1
     this.deptBudgetList.contractGoodsInfo.goodsName = '玉米'

+ 2 - 0
src/views/contractManagement/salesContractAdd.vue

@@ -667,6 +667,8 @@ export default {
     //cg.viewBudget
     //cg.viewSpareMoney
     // this.getVesselData();
+    this.newSelectedOptions:'请选择货源所在地',
+    this.newSelectedOptions1:'请选择交货所在地',
     this.deptBudgetList.packingMethod = '散装'
     this.deptBudgetList.packingMethodKey = 1
     this.deptBudgetList.contractGoodsInfo.goodsName = '玉米'