Browse Source

车辆台账新增、厂家采购新增品牌默认选中第一个

master
yunuo970428 3 years ago
parent
commit
63e5befd22
  1. 12
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue
  2. 4
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue

12
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue

@ -436,6 +436,8 @@ export default {
this.temp.insideCode = row.insideCode
},
showAdd() {
this.getType()
this.getPathSid()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
@ -451,10 +453,10 @@ export default {
this.temp.isProblemVeh = '0'
this.temp.purchaseSystemName = window.sessionStorage.getItem('departmentName')
this.temp.purchaseSystemSid = window.sessionStorage.getItem('departmentSid')
this.getType()
this.getPathSid()
},
showEdit(sid) {
this.getType()
this.getPathSid()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
@ -471,8 +473,6 @@ export default {
})
}
})
this.getType()
this.getPathSid()
},
getPathSid() {
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => {
@ -494,6 +494,10 @@ export default {
brandDown({ useOrg: res.data }).then((resp) => {
if (resp.success) {
this.carBrand_list = resp.data
if (this.carBrand_list.length > 0) {
this.temp.carBrandName = this.carBrand_list[0].barndName
this.temp.carBrandSid = this.carBrand_list[0].sid
}
}
})
}

4
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue

@ -266,6 +266,10 @@ export default {
brandDown({ useOrg: resp.data }).then((res) => {
if (res.success) {
this.carBrand_list = res.data
if (this.carBrand_list.length > 0) {
this.formobj.carBrandName = this.carBrand_list[0].brandName
this.formobj.carBrandSid = this.carBrand_list[0].sid
}
}
})
}

Loading…
Cancel
Save