|
@@ -15,14 +15,14 @@
|
|
|
<span style="margin-left: 20px" class="color-danger">订单状态:
|
|
<span style="margin-left: 20px" class="color-danger">订单状态:
|
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" v-if="order.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" v-if="order.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</span>
|
|
</span>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<div class="operate-button-container" >
|
|
<div class="operate-button-container" >
|
|
|
<el-button size="mini" @click="handleCertificates()" v-hasPermi="['store:storeOrder:uploadCredentials']" >上传凭证</el-button>
|
|
<el-button size="mini" @click="handleCertificates()" v-hasPermi="['store:storeOrder:uploadCredentials']" >上传凭证</el-button>
|
|
|
<el-button size="mini" @click="handleEditAddress()" v-if="order.status==0||order.status==1" v-hasPermi="['store:storeOrder:editAddress']" >修改收货地址</el-button>
|
|
<el-button size="mini" @click="handleEditAddress()" v-if="order.status==0||order.status==1" v-hasPermi="['store:storeOrder:editAddress']" >修改收货地址</el-button>
|
|
|
<el-button size="mini" @click="handleBindCustomer()" v-hasPermi="['store:storeOrder:bindCustomer']" >关联客户</el-button>
|
|
<el-button size="mini" @click="handleBindCustomer()" v-hasPermi="['store:storeOrder:bindCustomer']" >关联客户</el-button>
|
|
|
<el-button size="mini" @click="editOrder()" v-hasPermi="['store:storeOrder:edit']" >修改订单</el-button>
|
|
<el-button size="mini" @click="editOrder()" v-hasPermi="['store:storeOrder:edit']" >修改订单</el-button>
|
|
|
<!-- <el-button size="mini" @click="handleEditUser()" v-hasPermi="['users:user:edit']" >修改会员修改</el-button> -->
|
|
<!-- <el-button size="mini" @click="handleEditUser()" v-hasPermi="['users:user:edit']" >修改会员修改</el-button> -->
|
|
|
- <el-button size="mini" v-if="order.customerId!=null&&order.customerId>0" @click="handleCustomer()" >查看客户详情</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" v-if="order.customerId!=null&&order.customerId>0" @click="handleCustomer()" >查看客户详情</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="operate-button-container" v-hasPermi="['store:storeOrder:express']" >
|
|
<div class="operate-button-container" v-hasPermi="['store:storeOrder:express']" >
|
|
|
<el-button size="mini" @click="showExpress()" >查看物流</el-button>
|
|
<el-button size="mini" @click="showExpress()" >查看物流</el-button>
|
|
@@ -48,7 +48,7 @@
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<!-- <el-descriptions-item label="进线时间" >
|
|
<!-- <el-descriptions-item label="进线时间" >
|
|
|
<span v-if="user!=null">
|
|
<span v-if="user!=null">
|
|
|
- {{user.registerDate}}
|
|
|
|
|
|
|
+ {{user.registerDate}}
|
|
|
</span>
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="推线编码" >
|
|
<el-descriptions-item label="推线编码" >
|
|
@@ -56,7 +56,7 @@
|
|
|
{{user.registerCode}}
|
|
{{user.registerCode}}
|
|
|
</span>
|
|
</span>
|
|
|
</el-descriptions-item> -->
|
|
</el-descriptions-item> -->
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<el-descriptions-item label="收货人" >
|
|
<el-descriptions-item label="收货人" >
|
|
|
<span v-if="order!=null ">
|
|
<span v-if="order!=null ">
|
|
|
{{order.realName }}
|
|
{{order.realName }}
|
|
@@ -123,7 +123,7 @@
|
|
|
{{customerInfo.registerDate }}
|
|
{{customerInfo.registerDate }}
|
|
|
</span>
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
<div style="margin: 20px 0px" v-if="order!=null">
|
|
<div style="margin: 20px 0px" v-if="order!=null">
|
|
|
<span class="font-small">
|
|
<span class="font-small">
|
|
@@ -286,7 +286,7 @@
|
|
|
<el-dialog :title="editUser.title" :visible.sync="editUser.open" width="600px" append-to-body>
|
|
<el-dialog :title="editUser.title" :visible.sync="editUser.open" width="600px" append-to-body>
|
|
|
<el-form ref="editUserForm" :model="editUserForm" :rules="editUserRules" label-width="100px">
|
|
<el-form ref="editUserForm" :model="editUserForm" :rules="editUserRules" label-width="100px">
|
|
|
<el-form-item label="进线时间" prop="registerDate">
|
|
<el-form-item label="进线时间" prop="registerDate">
|
|
|
- <el-date-picker clearable size="small"
|
|
|
|
|
|
|
+ <el-date-picker clearable size="small"
|
|
|
v-model="editUserForm.registerDate"
|
|
v-model="editUserForm.registerDate"
|
|
|
type="date"
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
@@ -386,7 +386,7 @@
|
|
|
<el-button type="primary" @click="searchCustomer">查看</el-button>
|
|
<el-button type="primary" @click="searchCustomer">查看</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="客户选择" prop="customerIds">
|
|
<el-form-item label="客户选择" prop="customerIds">
|
|
|
<el-table @selection-change="handleSelectionChange"
|
|
<el-table @selection-change="handleSelectionChange"
|
|
@@ -440,23 +440,12 @@ import {updateUser,getUser } from "@/api/users/user";
|
|
|
|
|
|
|
|
import {getCustomerListBySearch } from "@/api/crm/customer";
|
|
import {getCustomerListBySearch } from "@/api/crm/customer";
|
|
|
import ImageUpload from '@/components/ImageUpload'
|
|
import ImageUpload from '@/components/ImageUpload'
|
|
|
-import {
|
|
|
|
|
- bindCustomer,
|
|
|
|
|
- getExpress,
|
|
|
|
|
- listStoreOrder,
|
|
|
|
|
- getStoreOrder,
|
|
|
|
|
- delStoreOrder,
|
|
|
|
|
- addStoreOrder,
|
|
|
|
|
- updateStoreOrder,
|
|
|
|
|
- exportStoreOrder,
|
|
|
|
|
- uploadCredentials,
|
|
|
|
|
- updateAddressErpFsStoreOrder
|
|
|
|
|
-} from "@/api/store/storeOrder";
|
|
|
|
|
|
|
+import {bindCustomer,getExpress, listStoreOrder, getStoreOrder, delStoreOrder, addStoreOrder, updateStoreOrder, exportStoreOrder,uploadCredentials } from "@/api/store/storeOrder";
|
|
|
import {getAllList} from "@/api/store/city";
|
|
import {getAllList} from "@/api/store/city";
|
|
|
import customerDetails from '../../crm/components/customerDetails.vue';
|
|
import customerDetails from '../../crm/components/customerDetails.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: "order",
|
|
name: "order",
|
|
|
- components: {customerDetails,
|
|
|
|
|
|
|
+ components: {customerDetails,
|
|
|
ImageUpload },
|
|
ImageUpload },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -509,7 +498,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
editAddressForm:{
|
|
editAddressForm:{
|
|
|
districtId:null,
|
|
districtId:null,
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
editAddressRules:{
|
|
editAddressRules:{
|
|
|
|
|
|
|
@@ -564,7 +553,7 @@ export default {
|
|
|
this.getDicts("store_order_create_type").then((response) => {
|
|
this.getDicts("store_order_create_type").then((response) => {
|
|
|
this.createTypeOptions = response.data;
|
|
this.createTypeOptions = response.data;
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
showImageDialog() {
|
|
showImageDialog() {
|
|
@@ -587,7 +576,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
var data={mobile:this.bindCustomerForm.mobile};
|
|
var data={mobile:this.bindCustomerForm.mobile};
|
|
|
getCustomerListBySearch(data).then(response => {
|
|
getCustomerListBySearch(data).then(response => {
|
|
|
- this.customers=response.data;
|
|
|
|
|
|
|
+ this.customers=response.data;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleBindCustomer() {
|
|
handleBindCustomer() {
|
|
@@ -632,7 +621,7 @@ export default {
|
|
|
if(this.express!=null&&this.express.Traces!=null){
|
|
if(this.express!=null&&this.express.Traces!=null){
|
|
|
this.traces=this.express.Traces
|
|
this.traces=this.express.Traces
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -651,8 +640,8 @@ export default {
|
|
|
})
|
|
})
|
|
|
console.log(item)
|
|
console.log(item)
|
|
|
this.editAddressForm.city=item.name;
|
|
this.editAddressForm.city=item.name;
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
provinceChange(val){
|
|
provinceChange(val){
|
|
|
this.city=this.citys.filter(item => item.parentId===val )
|
|
this.city=this.citys.filter(item => item.parentId===val )
|
|
@@ -686,7 +675,7 @@ export default {
|
|
|
var city=this.citys.find((item)=>{
|
|
var city=this.citys.find((item)=>{
|
|
|
return item.name==address[1]&&item.level==1;
|
|
return item.name==address[1]&&item.level==1;
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if(city!=null){
|
|
if(city!=null){
|
|
|
this.editAddressForm.cityId=city.cityId;
|
|
this.editAddressForm.cityId=city.cityId;
|
|
|
this.district=this.citys.filter(item => item.parentId===city.cityId&&item.level==2 )
|
|
this.district=this.citys.filter(item => item.parentId===city.cityId&&item.level==2 )
|
|
@@ -697,7 +686,7 @@ export default {
|
|
|
if(district!=null){
|
|
if(district!=null){
|
|
|
this.editAddressForm.districtId=district.cityId;
|
|
this.editAddressForm.districtId=district.cityId;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.editAddress.open = true;
|
|
this.editAddress.open = true;
|
|
|
},
|
|
},
|
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
@@ -705,7 +694,7 @@ export default {
|
|
|
this.$refs["editAddressForm"].validate(valid => {
|
|
this.$refs["editAddressForm"].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
this.editAddressForm.userAddress=this.editAddressForm.province+" "+this.editAddressForm.city+" "+this.editAddressForm.district+" "+this.editAddressForm.detail;
|
|
this.editAddressForm.userAddress=this.editAddressForm.province+" "+this.editAddressForm.city+" "+this.editAddressForm.district+" "+this.editAddressForm.detail;
|
|
|
- updateAddressErpFsStoreOrder(this.editAddressForm).then(response => {
|
|
|
|
|
|
|
+ updateStoreOrder(this.editAddressForm).then(response => {
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("修改成功");
|
|
this.msgSuccess("修改成功");
|
|
|
this.editAddress.open = false;
|
|
this.editAddress.open = false;
|
|
@@ -749,7 +738,7 @@ export default {
|
|
|
this.getOrder(this.order.id);
|
|
this.getOrder(this.order.id);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -768,7 +757,7 @@ export default {
|
|
|
this.order = response.order;
|
|
this.order = response.order;
|
|
|
if(response.order.certificates != null){
|
|
if(response.order.certificates != null){
|
|
|
this.certificates = response.order.certificates;
|
|
this.certificates = response.order.certificates;
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
this.user = response.user;
|
|
this.user = response.user;
|
|
|
this.logs = response.logs;
|
|
this.logs = response.logs;
|
|
|
this.items = response.items;
|
|
this.items = response.items;
|