Просмотр исходного кода

订单管理、订货业务、订货订单新增地址编辑功能

qymljy 2 лет назад
Родитель
Сommit
0b3ab6653a

+ 5 - 2
src/HDrpManagement/orderManage/modules/edit.vue

@@ -219,8 +219,9 @@
                   </el-table-column>
                   <el-table-column
                     label="操作"
-                    width="120">
+                    width="150">
                     <template slot-scope="scope">
+                      <editAddressInfo class="inline-16" :mainData="{sys_enterpriseid:data.sys_enterpriseid}" :row="scope.row"  @onAddSuccess="receiveAddress()"></editAddressInfo>
                       <el-button class="inline-16" type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">选 择</el-button>
                       <delete-btn
                         message="确定删除当前地址吗?"
@@ -340,6 +341,7 @@ import financeEnterprise from '@/template/orderCanUseFinance/index.vue'
 import selectSaler from '@/template/selectSaler/index.vue'
 import addAmountInfo from '@/components/financialInfo/modules/add'
 import addAddressInfo from '@/HManagement/marketing2/agent/details/modules/address/add'
+import editAddressInfo from '@/HManagement/marketing2/agent/details/modules/address/edit'
 export default {
   props:['data'],
   components:{
@@ -349,7 +351,8 @@ export default {
     addProduct,
     financeEnterprise,
     addAmountInfo,
-    addAddressInfo
+    addAddressInfo,
+    editAddressInfo
   },
   inject:['thisDetail'],
   computed:{

+ 6 - 6
src/HManagement/marketing2/agent/details/modules/address/edit.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <el-button type="text" size="small" @click="onShow(dialogFormVisible = true)">编 辑</el-button>
-    <el-dialog title="新建联系人" :visible.sync="dialogFormVisible" append-to-body width="50%">
+    <el-dialog title="新建联系人" :visible.sync="dialogFormVisible" append-to-body width="50%" @close="dialogFormVisible = false">
       <el-row :gutter="20">
         <el-form :model="form" ref="form" label-position="right" label-width="100px" size="small">
           <el-col :span="12">
@@ -105,7 +105,7 @@ export default {
     return {
       dialogFormVisible:false,
       form:{
-        "contactsid":0, 
+        "contactsid":0,
         "sys_enterpriseid":null,
         "name":"",
         "sex":"男",
@@ -134,7 +134,7 @@ export default {
   methods:{
     onShow () {
       this.$store.dispatch('optiontypeselect','sex')
-      
+      this.form.value = []
       let arr = ['province','city','county']
       arr.forEach(e=>{
         this.row[e] !== '' ?this.form.value.push(this.row[e]):''
@@ -142,10 +142,10 @@ export default {
       this.form = Object.assign({},this.form,this.row)
     },
     cascaderChange (val) {
-      if (val.length === 1) 
+      if (val.length === 1)
         return this.form = Object.assign({},this.form,{province:val[0],city:'',county:''})
       this.form = Object.assign({},this.form,{province:val[0],city:val[1],county:val[2]})
-      
+
     },
     submitAddress () {
       this.$refs['form'].validate(async (valid) => {
@@ -172,4 +172,4 @@ export default {
 
 </script>
 <style>
-</style>
+</style>

+ 5 - 2
src/SDrpManagement/agentOrder/modules/edit.vue

@@ -219,8 +219,9 @@
                   </el-table-column>
                   <el-table-column
                     label="操作"
-                    width="120">
+                    width="150">
                     <template slot-scope="scope">
+                      <editAddressInfo class="inline-16" :mainData="{sys_enterpriseid:data.sys_enterpriseid}" :row="scope.row"  @onAddSuccess="receiveAddress()"></editAddressInfo>
                       <el-button class="inline-16" type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">选 择</el-button>
                       <delete-btn
                         message="确定删除当前地址吗?"
@@ -318,6 +319,7 @@ import addProduct from '@/template/orderCanUseProduct/index.vue'
 import financeEnterprise from '@/template/orderCanUseFinance/index.vue'
 import addAmountInfo from '@/components/financialInfo/modules/add'
 import addAddressInfo from '@/HManagement/marketing2/agent/details/modules/address/add'
+import editAddressInfo from '@/HManagement/marketing2/agent/details/modules/address/edit'
 export default {
   props:['data'],
   components:{
@@ -326,7 +328,8 @@ export default {
     addProduct,
     financeEnterprise,
     addAmountInfo,
-    addAddressInfo
+    addAddressInfo,
+    editAddressInfo
   },
   inject:['thisDetail'],
   computed:{

+ 5 - 2
src/SDrpManagement/salerOrder/modules/edit.vue

@@ -210,8 +210,9 @@
                   </el-table-column>
                   <el-table-column
                     label="操作"
-                    width="120">
+                    width="150">
                     <template slot-scope="scope">
+                      <editAddressInfo class="inline-16" :mainData="{sys_enterpriseid:data.sys_enterpriseid}" :row="scope.row"  @onAddSuccess="receiveAddress()"></editAddressInfo>
                       <el-button class="inline-16" type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">选 择</el-button>
                       <delete-btn
                         message="确定删除当前地址吗?"
@@ -309,6 +310,7 @@ import addProduct from '@/template/orderCanUseProduct/index.vue'
 import financeEnterprise from '@/template/orderCanUseFinance/index.vue'
 import addAmountInfo from '@/components/financialInfo/modules/add'
 import addAddressInfo from '@/HManagement/marketing2/agent/details/modules/address/add'
+import editAddressInfo from '@/HManagement/marketing2/agent/details/modules/address/edit'
 export default {
   props:['data'],
   components:{
@@ -317,7 +319,8 @@ export default {
     addProduct,
     financeEnterprise,
     addAmountInfo,
-    addAddressInfo
+    addAddressInfo,
+    editAddressInfo
   },
   inject:['thisDetail'],
   computed:{