Browse Source

完善挂车台账

master
yunuo970428 2 years ago
parent
commit
8a376ebacf
  1. 9
      anrui-scm/anrui-scm-ui/src/api/cheliang/dictcommons.js
  2. 30
      anrui-scm/anrui-scm-ui/src/views/guache/guachetaizhang/guachetaizhangAdd.vue

9
anrui-scm/anrui-scm-ui/src/api/cheliang/dictcommons.js

@ -254,3 +254,12 @@ export function getButtonPermissions(data) {
headers: { 'Content-Type': 'application/json' }
})
}
// 根据车辆sid获取品牌、车型、公告型号等信息
export function fetchByVehSid(data) {
return request({
url: '/base/v1/basevehicle/fetchByVehSid',
method: 'post',
params: data
})
}

30
anrui-scm/anrui-scm-ui/src/views/guache/guachetaizhang/guachetaizhangAdd.vue

@ -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

Loading…
Cancel
Save