|
@@ -7,11 +7,11 @@
|
|
<el-button @click='warehousetypechange(3)' :type="serviceManagementType == 3 ? 'primary' : ''">收购入库</el-button>
|
|
<el-button @click='warehousetypechange(3)' :type="serviceManagementType == 3 ? 'primary' : ''">收购入库</el-button>
|
|
</template>
|
|
</template>
|
|
<template slot="right">
|
|
<template slot="right">
|
|
- <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType"
|
|
|
|
|
|
+ <el-select v-model="warehouseName" filterable placeholder="" @change="warehouseNameChange" :value="searchType"
|
|
style="margin: 0 10px">
|
|
style="margin: 0 10px">
|
|
- <ws-option v-for="item in warehouseList" :key="'cangku' + item.value" :label="item.value" :value="item.value"
|
|
|
|
|
|
+ <el-option v-for="item in warehouseList" :key="'cangku' + item.value" :label="item.value" :value="item.value"
|
|
style="color: #8890b1" />
|
|
style="color: #8890b1" />
|
|
- </ws-select>
|
|
|
|
|
|
+ </el-select>
|
|
<!-- <el-checkbox @change='checkchange' v-model="checked">默认</el-checkbox> -->
|
|
<!-- <el-checkbox @change='checkchange' v-model="checked">默认</el-checkbox> -->
|
|
</template>
|
|
</template>
|
|
</BaseHeaderLayout>
|
|
</BaseHeaderLayout>
|
|
@@ -268,7 +268,9 @@
|
|
<ws-form-item
|
|
<ws-form-item
|
|
v-if='serviceManagementType == 1 || serviceManagementType == 3 && deptBudgetList.outType == "自运"'
|
|
v-if='serviceManagementType == 1 || serviceManagementType == 3 && deptBudgetList.outType == "自运"'
|
|
label="车队" span="1" prop="fleetName">
|
|
label="车队" span="1" prop="fleetName">
|
|
- <el-select :disabled='recheck' v-model="deptBudgetList.fleet" placeholder="非车队车辆">
|
|
|
|
|
|
+ <el-select @change="fleetNameChange" :disabled='recheck' v-model="deptBudgetList.fleet" placeholder="非车队车辆">
|
|
|
|
+ <el-option key="0" label="非车队"
|
|
|
|
+ value="非车队" />
|
|
<el-option v-for="item in fleetNameList" :key="item.value" :label="item.fleetName"
|
|
<el-option v-for="item in fleetNameList" :key="item.value" :label="item.fleetName"
|
|
:value="item.fleetName" />
|
|
:value="item.fleetName" />
|
|
</el-select>
|
|
</el-select>
|
|
@@ -745,6 +747,19 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ fleetNameChange(e){
|
|
|
|
+ console.log(e,this.fleetNameList)
|
|
|
|
+ if(e=='非车队'){
|
|
|
|
+ this.weighingList.freight=''
|
|
|
|
+ }else{
|
|
|
|
+ for (let i = 0; i < this.fleetNameList.length; i++) {
|
|
|
|
+ if (this.fleetNameList[i].carNo == this.weighingList.fleetName) {
|
|
|
|
+ this.weighingList.freight = this.fleetNameList[i].tranPrice
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
getNowTime() {
|
|
getNowTime() {
|
|
var now = new Date();
|
|
var now = new Date();
|
|
var year = now.getFullYear(); //得到年份
|
|
var year = now.getFullYear(); //得到年份
|
|
@@ -2739,6 +2754,7 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.deptBudgetList.warehouseInOutId = response
|
|
this.deptBudgetList.warehouseInOutId = response
|
|
if(!this.deptBudgetList.id){
|
|
if(!this.deptBudgetList.id){
|
|
|
|
+ this.$delete(this.deptBudgetList,'statusFlag')
|
|
inspectAdd(this.deptBudgetList)
|
|
inspectAdd(this.deptBudgetList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response1) => {
|
|
.then((response1) => {
|
|
@@ -2844,9 +2860,10 @@ export default {
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
this.deptBudgetList.id=zjid
|
|
this.deptBudgetList.id=zjid
|
|
- if (this.serviceManagementType==3) {
|
|
|
|
- this.deptBudgetList.statusFlag = this.qyJurisdiction&&!this.zjJurisdiction ? 7 : 1
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.serviceManagementType==3) {
|
|
|
|
+ // this.deptBudgetList.statusFlag = this.qyJurisdiction&&!this.zjJurisdiction ? 7 : 1
|
|
|
|
+ // }
|
|
|
|
+ this.$delete(this.deptBudgetList,'statusFlag')
|
|
getinspectEdit(this.deptBudgetList)
|
|
getinspectEdit(this.deptBudgetList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -2981,9 +2998,7 @@ export default {
|
|
.catch((response) => { })
|
|
.catch((response) => { })
|
|
})
|
|
})
|
|
} else if (this.statusTypetext == '确认') {
|
|
} else if (this.statusTypetext == '确认') {
|
|
- if (this.serviceManagementType==3) {
|
|
|
|
- this.deptBudgetList.statusFlag = 2
|
|
|
|
- }
|
|
|
|
|
|
+ this.$delete(this.deptBudgetList,'statusFlag')
|
|
this.deptBudgetList.flag = 2
|
|
this.deptBudgetList.flag = 2
|
|
getinspectEdit(this.deptBudgetList)
|
|
getinspectEdit(this.deptBudgetList)
|
|
.toPromise()
|
|
.toPromise()
|