|
|
@@ -251,6 +251,7 @@
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import { carBookPageListAPI } from '@/api/transportManager/carBook';
|
|
|
import modalTitle from '@/BIZComponents/modalTitle.vue';
|
|
|
+ import { projectsGetByIdAPI } from '@/api/pro';
|
|
|
|
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
|
@@ -425,6 +426,9 @@
|
|
|
this.$refs.taskInfoTableRef &&
|
|
|
this.$refs.taskInfoTableRef.putTableValue(trakNoteList);
|
|
|
this.setAddress();
|
|
|
+ if (projectId) {
|
|
|
+ this.getProjectData(projectId);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
@@ -434,7 +438,21 @@
|
|
|
this.form.receiveAddress
|
|
|
);
|
|
|
},
|
|
|
+ async getProjectData(id) {
|
|
|
+ const data = await projectsGetByIdAPI(id);
|
|
|
+ if (data.contactAddressId) {
|
|
|
+ this.form.receiveAddress =
|
|
|
+ data.contactAddressName + data.contactAddress;
|
|
|
+ this.setAddress();
|
|
|
+ }
|
|
|
|
|
|
+ if (data.contactRelationPhone) {
|
|
|
+ this.form.linkPhone = data.contactRelationPhone;
|
|
|
+ }
|
|
|
+ if(data.contactRelationUserName){
|
|
|
+ this.form.linkName=data.contactRelationUserName
|
|
|
+ }
|
|
|
+ },
|
|
|
//发货单详情
|
|
|
async getSendSaleOrderDetail(id) {
|
|
|
this.businessId = id;
|