|
@@ -144,11 +144,11 @@
|
|
|
{{ option.dictLabel }}
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
- <span class="el-dropdown-link" >
|
|
|
+ <!-- <span class="el-dropdown-link" >
|
|
|
<el-button type="success" size="mini" >
|
|
|
创建订单
|
|
|
</el-button>
|
|
|
- </span>
|
|
|
+ </span> -->
|
|
|
</el-dropdown>
|
|
|
|
|
|
<!-- <el-button-->
|
|
@@ -183,7 +183,7 @@
|
|
|
{{scope.row.mobile}}
|
|
|
<el-button type="text" size="mini" @click="callNumber(scope.row.customerId,null)">拨号</el-button>
|
|
|
<el-button v-hasPermi="['crm:customer:addVisit']" type="text" size="mini" @click="handleAddVisit(scope.row)">写跟进</el-button>
|
|
|
- <el-button type="text" size="mini" @click="addPackageOrder()" style="margin-right: 15px;">创建订单</el-button>
|
|
|
+ <el-button type="text" size="mini" @click="addPackageOrder(scope.row)" style="margin-right: 15px;">创建订单</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="客户来源" align="center" prop="source">
|
|
@@ -292,7 +292,7 @@
|
|
|
<add-visit-status ref="visitStatus" @close="closeVisitStatus()"></add-visit-status>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="创建线上订单" :visible.sync="addPackageOpen" width="1000px" append-to-body>
|
|
|
- <addPackage @closePackage="closePackage" ref="addPackageVisit" />
|
|
|
+ <addPackage @closePackage="closePackage" ref="addPackageVisit" :customerId="customerId"/>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="创建线下订单" :visible.sync="addOfflineOrder.open" width="1000px" append-to-body>
|
|
|
<add-order-offline @closeOrderOffline="closeOrderOffline" ref="addOrderOffline" />
|
|
@@ -322,6 +322,7 @@ export default {
|
|
|
components: {addPackage,addOrderOffline,addVisitStatus,addCustomerType,addRemark,addTag,assignUser,assistUser,addOrEditCustomer,editSource, addBatchSms,customerDetails,addVisit },
|
|
|
data() {
|
|
|
return {
|
|
|
+ customerId:null,
|
|
|
addOfflineOrder:{
|
|
|
open:false,
|
|
|
},
|
|
@@ -499,7 +500,8 @@ export default {
|
|
|
closeOrderOffline(){
|
|
|
this.addOfflineOrder.open = false
|
|
|
},
|
|
|
- addPackageOrder(){
|
|
|
+ addPackageOrder(row){
|
|
|
+ this.customerId = row.customerId;
|
|
|
this.addPackageOpen=true;
|
|
|
},
|
|
|
closePackage(){
|