|
@@ -253,10 +253,9 @@
|
|
">
|
|
">
|
|
<ws-input v-if="options2.length == 0" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
|
|
<ws-input v-if="options2.length == 0" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
|
|
size="small" />
|
|
size="small" />
|
|
- <el-select v-if="carstatus && options2.length > 0" filterable clearable :filter-method="dataFilter2"
|
|
|
|
- v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">
|
|
|
|
- <el-option v-for="item in options2" :key="item.constKey"
|
|
|
|
- :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.carNo" />
|
|
|
|
|
|
+ <el-select v-if="carstatus && options2.length > 0" filterable clearable v-model="deptBudgetList.carNoCopy" placeholder="请选择车牌号" class="typeselect" @change="carChange">
|
|
|
|
+ <el-option v-for="(item,index) in options2" :key="index"
|
|
|
|
+ :label="item.carNo + '(' + item.tranCarNo + ')'" :value="index" />
|
|
</el-select>
|
|
</el-select>
|
|
<el-select v-if="!carstatus && options2.length > 0" filterable clearable :filter-method="dataFilter2"
|
|
<el-select v-if="!carstatus && options2.length > 0" filterable clearable :filter-method="dataFilter2"
|
|
v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">
|
|
v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">
|
|
@@ -663,23 +662,23 @@
|
|
this.options1 = this.outContractNo
|
|
this.options1 = this.outContractNo
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- dataFilter2(val) {
|
|
|
|
- this.deptBudgetList.carNo = val
|
|
|
|
- if (val) {
|
|
|
|
- //val存在
|
|
|
|
- this.options1 = this.outContractNo1.filter((item) => {
|
|
|
|
- if (
|
|
|
|
- !!~item.carNo.indexOf(val) ||
|
|
|
|
- !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
|
|
|
|
- ) {
|
|
|
|
- return true
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- //val为空时,还原数组
|
|
|
|
- this.options2 = this.tranCarInfoList
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // dataFilter2(val) {
|
|
|
|
+ // this.deptBudgetList.carNo = val
|
|
|
|
+ // if (val) {
|
|
|
|
+ // //val存在
|
|
|
|
+ // this.options1 = this.outContractNo1.filter((item) => {
|
|
|
|
+ // if (
|
|
|
|
+ // !!~item.carNo.indexOf(val) ||
|
|
|
|
+ // !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
|
|
|
|
+ // ) {
|
|
|
|
+ // return true
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
|
|
+ // //val为空时,还原数组
|
|
|
|
+ // this.options2 = this.tranCarInfoList
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
editClick(status) {
|
|
editClick(status) {
|
|
this.isGetCost = false
|
|
this.isGetCost = false
|
|
if (status == 1) {
|
|
if (status == 1) {
|
|
@@ -696,7 +695,9 @@
|
|
},
|
|
},
|
|
carChange(e) {
|
|
carChange(e) {
|
|
for (let i = 0; i < this.tranCarInfoList.length; i++) {
|
|
for (let i = 0; i < this.tranCarInfoList.length; i++) {
|
|
- if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
|
|
|
|
|
|
+ if (i==e) {
|
|
|
|
+ this.deptBudgetList.carNo = this.tranCarInfoList[i].carNo
|
|
|
|
+ this.deptBudgetList.carNoCopy = this.tranCarInfoList[i].carNo + '(' + this.tranCarInfoList[i].tranCarNo + ')'
|
|
this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
|
|
this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
|
|
this.deptBudgetList.carId = this.tranCarInfoList[i].id
|
|
this.deptBudgetList.carId = this.tranCarInfoList[i].id
|
|
this.deptBudgetList.freight = Math.round(
|
|
this.deptBudgetList.freight = Math.round(
|
|
@@ -1852,6 +1853,7 @@
|
|
this.deptBudgetList.pureWeight /= 1000
|
|
this.deptBudgetList.pureWeight /= 1000
|
|
this.deptBudgetList.deductionAmount *= 1000
|
|
this.deptBudgetList.deductionAmount *= 1000
|
|
this.deptBudgetList.deductionWeight /= 1000
|
|
this.deptBudgetList.deductionWeight /= 1000
|
|
|
|
+ delete this.deptBudgetList.carNoCopy
|
|
addstorageputList(this.deptBudgetList)
|
|
addstorageputList(this.deptBudgetList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|