|
@@ -147,7 +147,7 @@
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if="fleetNameList.length > 0 && tpyeNo == 1" label="车队" span="1" prop="fleetName">
|
|
|
- <el-select :disabled="recheck" v-model="deptBudgetList.fleet" placeholder="非车队车辆">
|
|
|
+ <el-select @change="fleetNameChange" :disabled="recheck" v-model="weighingList.fleet" placeholder="非车队车辆">
|
|
|
<el-option v-for="item in fleetNameList" :key="item.value" :label="item.fleetName"
|
|
|
:value="item.fleetName" />
|
|
|
</el-select>
|
|
@@ -1943,11 +1943,27 @@
|
|
|
if (this.tranCarInfoList[i].carNo == this.weighingList.carNo) {
|
|
|
this.weighingList.carNumber = this.tranCarInfoList[i].carNo
|
|
|
this.weighingList.tranCarNo = this.tranCarInfoList[i].tranCarNo
|
|
|
+ this.weighingList.freight = this.tranCarInfoList[i].tranPrice
|
|
|
this.weighingList.carId = this.tranCarInfoList[i].id
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ fleetNameChange(e){
|
|
|
+ console.log(e,this.fleetNameList)
|
|
|
+ for (let i = 0; i < this.fleetNameList.length; i++) {
|
|
|
+ if (this.fleetNameList[i].carNo == this.weighingList.fleet) {
|
|
|
+ this.weighingList.freight = this.fleetNameList[i].tranPrice
|
|
|
+ this.carjudge=true
|
|
|
+ if (this.carjudge) {
|
|
|
+ this.weighingList.selfLoading = '1'
|
|
|
+ this.carChange1 = '识别下拉'
|
|
|
+ } else {
|
|
|
+ this.weighingList.selfLoading = '0'
|
|
|
+ this.carChange1 = '手动填写'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取当前年月日
|
|
|
getTime() {
|
|
|
var date = new Date()
|
|
@@ -2008,7 +2024,7 @@
|
|
|
if(this.taskNolist[i].inOutType=='移库出库'){
|
|
|
|
|
|
this.weighingList.contractNo = this.taskNolist[i].moveTaskNo
|
|
|
- gettask({moveTaskNo:this.taskNolist[i].moveTaskNo,compId:localStorage.getItem('ws-pf_compId')}).toPromise().then((response) => {
|
|
|
+ gettask({contractNo:this.taskNolist[i].moveTaskNo,compId:localStorage.getItem('ws-pf_compId')}).toPromise().then((response) => {
|
|
|
// console.log(response)
|
|
|
if(!response){
|
|
|
this.$message({
|