|
|
@ -298,7 +298,7 @@ |
|
|
|
import req from '@/api/guache/guachetaizhang' |
|
|
|
import guachechexingselect from './relation/guachechexingselect' |
|
|
|
import upload_picture from '@/components/uploadFile/upload_picture' |
|
|
|
import { fetchBySid } from '@/api/cheliang/dictcommons' |
|
|
|
import { fetchBySid, fetchByVehSid } from '@/api/cheliang/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'GuaCheTaiZhangInfo', |
|
|
@ -518,17 +518,23 @@ export default { |
|
|
|
}, |
|
|
|
changeVinNo(value) { |
|
|
|
const choose = this.vinNo_list.filter((item) => item.vinNo === value) |
|
|
|
this.formobj.zcvinNo = choose[0].vinNo |
|
|
|
this.formobj.vehSid = choose[0].vehSid |
|
|
|
this.formobj.brand = choose[0].brandName |
|
|
|
this.formobj.vehicleModel = choose[0].vehicleAlias |
|
|
|
this.formobj.noticeModel = choose[0].noticeModel |
|
|
|
this.formobj.salesOrderNumber = choose[0].saleOrderNo |
|
|
|
this.formobj.dateOfSalesOrder = choose[0].saleOrderDate |
|
|
|
this.formobj.staffName = choose[0].staffName |
|
|
|
this.formobj.staffSid = choose[0].staffSid |
|
|
|
this.formobj.customerName = choose[0].customerName |
|
|
|
this.formobj.customerSid = choose[0].customerSid |
|
|
|
if (choose !== null && choose !== undefined) { |
|
|
|
this.formobj.zcvinNo = choose[0].vinNo |
|
|
|
this.formobj.vehSid = choose[0].vehSid |
|
|
|
this.formobj.brand = choose[0].brandName |
|
|
|
this.formobj.vehicleModel = choose[0].vehicleAlias |
|
|
|
this.formobj.noticeModel = choose[0].noticeModel |
|
|
|
fetchByVehSid({ vehSid: choose[0].vehSid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj.salesOrderNumber = res.data.saleOrderNo |
|
|
|
this.formobj.dateOfSalesOrder = res.data.saleOrderDate |
|
|
|
this.formobj.staffName = res.data.staffName |
|
|
|
this.formobj.staffSid = res.data.staffSid |
|
|
|
this.formobj.customerName = res.data.customerName |
|
|
|
this.formobj.customerSid = res.data.customerSid |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleChoose() { |
|
|
|
this.viewState = 2 |
|
|
|