|
@@ -152,7 +152,7 @@
|
|
@change="carChange($event, 0)">
|
|
@change="carChange($event, 0)">
|
|
<el-option v-for="item in options2" :key="item.constKey" :label="item.carNo" :value="item.carNo" />
|
|
<el-option v-for="item in options2" :key="item.constKey" :label="item.carNo" :value="item.carNo" />
|
|
</el-select> -->
|
|
</el-select> -->
|
|
- <el-select :disabled="disabled2" v-if="carNumberList.length > 0 && serviceManagementType == 3"
|
|
|
|
|
|
+ <el-select :disabled="disabled2" v-if="carNumberList.length > 0 && !carstatus"
|
|
filterable clearable :allow-create="true" v-model="deptBudgetList.carNo" placeholder="请选择车牌号"
|
|
filterable clearable :allow-create="true" v-model="deptBudgetList.carNo" placeholder="请选择车牌号"
|
|
class="typeselect" @change="carChange($event, 1)">
|
|
class="typeselect" @change="carChange($event, 1)">
|
|
<el-option v-for="item in carNumberList" :key="item.id" :label="item.carNo" :value="item.carNo" />
|
|
<el-option v-for="item in carNumberList" :key="item.id" :label="item.carNo" :value="item.carNo" />
|
|
@@ -310,21 +310,21 @@
|
|
<ws-form-item v-if="serviceManagementType == 1 && deptBudgetList.outType == '汽运'" label="车牌号" span="1"
|
|
<ws-form-item v-if="serviceManagementType == 1 && deptBudgetList.outType == '汽运'" label="车牌号" span="1"
|
|
prop="carNo">
|
|
prop="carNo">
|
|
<ws-input :disabled="disabled2"
|
|
<ws-input :disabled="disabled2"
|
|
- v-if="carInputStatus"
|
|
|
|
|
|
+ v-if="carInputStatus&&!carstatus"
|
|
v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
<el-select :disabled="disabled2"
|
|
<el-select :disabled="disabled2"
|
|
- v-if="!carInputStatus&&compName!='辽宁佳屹农商贸有限公司'"
|
|
|
|
|
|
+ v-if="!carInputStatus&&carstatus"
|
|
filterable clearable v-model="deptBudgetList.carNo1" placeholder="请选择车牌号" class="typeselect"
|
|
filterable clearable v-model="deptBudgetList.carNo1" placeholder="请选择车牌号" class="typeselect"
|
|
- @change="carChange($event, 0)">
|
|
|
|
|
|
+ @change="(val) => {carChange(val, 0)}">
|
|
<el-option v-for="(item, index) in options2" :key="index"
|
|
<el-option v-for="(item, index) in options2" :key="index"
|
|
:label="item.carNo + '(' + item.tranCarNo + ')'" :value="index" />
|
|
:label="item.carNo + '(' + item.tranCarNo + ')'" :value="index" />
|
|
</el-select>
|
|
</el-select>
|
|
- <el-select :disabled="disabled2" v-if="!carInputStatus&&compName=='辽宁佳屹农商贸有限公司'"
|
|
|
|
- filterable clearable :allow-create="true" v-model="deptBudgetList.carNo" placeholder="请选择车牌号"
|
|
|
|
- class="typeselect" @change="carChange($event, 1)">
|
|
|
|
- <el-option v-for="item in carNumberList" :key="item.id" :label="item.carNo" :value="item.carNo" />
|
|
|
|
|
|
+ <el-select :disabled="disabled2" v-if="!carInputStatus&&!carstatus"
|
|
|
|
+ filterable clearable v-model="deptBudgetList.carNo1" placeholder="请选择车牌号"
|
|
|
|
+ class="typeselect" @change=" (val) => {carChange(val, 1)}">
|
|
|
|
+ <el-option v-for="(item,index) in carNumberList" :key="item.id" :label="item.carNo" :value="index" />
|
|
</el-select>
|
|
</el-select>
|
|
- <el-button @click="editcarStatus" type="text">{{ cartext }}</el-button>
|
|
|
|
|
|
+ <el-button v-if='switchStatus' @click="editcarStatus" type="text">{{ cartext }}</el-button>
|
|
|
|
|
|
<!-- <ws-input :disabled="disabled2"
|
|
<!-- <ws-input :disabled="disabled2"
|
|
v-if="options2.length == 0 && serviceManagementType == 1 && deptBudgetList.inOutType != '移库入库'&&deptBudgetList.inOutType != '退库' || statusTypetext != '初检'||deptBudgetList.inOutType == '退库'&&tranTaskFlag!=1"
|
|
v-if="options2.length == 0 && serviceManagementType == 1 && deptBudgetList.inOutType != '移库入库'&&deptBudgetList.inOutType != '退库' || statusTypetext != '初检'||deptBudgetList.inOutType == '退库'&&tranTaskFlag!=1"
|
|
@@ -549,8 +549,6 @@
|
|
type="number" @focus="pricefocus($event, 4)" @blur="priceblur($event, 4)" @input="deductionchange"
|
|
type="number" @focus="pricefocus($event, 4)" @blur="priceblur($event, 4)" @input="deductionchange"
|
|
placeholder="请输入质量扣价" maxlength="40" size="small" />
|
|
placeholder="请输入质量扣价" maxlength="40" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- </ws-info-table>
|
|
|
|
- <ws-info-table>
|
|
|
|
<ws-form-item label="规格(公斤)" span="1" prop="boxNoOther"
|
|
<ws-form-item label="规格(公斤)" span="1" prop="boxNoOther"
|
|
v-if="compName=='辽宁佳屹农商贸有限公司'">
|
|
v-if="compName=='辽宁佳屹农商贸有限公司'">
|
|
<el-select :disabled='recheck' filterable clearable v-model="deptBudgetList.specifications" placeholder="请选择规格"
|
|
<el-select :disabled='recheck' filterable clearable v-model="deptBudgetList.specifications" placeholder="请选择规格"
|
|
@@ -564,6 +562,10 @@
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.factory" placeholder="请输入工厂" maxlength="30"
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.factory" placeholder="请输入工厂" maxlength="30"
|
|
size="small" />
|
|
size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
+ <ws-form-item label="生产日期" span="1" prop="titleNoOther"
|
|
|
|
+ v-if="compName=='辽宁佳屹农商贸有限公司'">
|
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd" :disabled='recheck' v-model="deptBudgetList.produceDate" type="date" placeholder="选择生产日期"></el-date-picker>
|
|
|
|
+ </ws-form-item>
|
|
<ws-form-item label="污染件数" span="1" prop="titleNoOther"
|
|
<ws-form-item label="污染件数" span="1" prop="titleNoOther"
|
|
v-if="compName=='辽宁佳屹农商贸有限公司'">
|
|
v-if="compName=='辽宁佳屹农商贸有限公司'">
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.polluteNum" placeholder="请输入污染件数" maxlength="30"
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.polluteNum" placeholder="请输入污染件数" maxlength="30"
|
|
@@ -759,6 +761,7 @@ export default {
|
|
cost: '',
|
|
cost: '',
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
size:9,
|
|
size:9,
|
|
|
|
+ switchStatus:false,
|
|
cartext:'选择',
|
|
cartext:'选择',
|
|
carInputStatus:true,
|
|
carInputStatus:true,
|
|
isShowPrint: false,
|
|
isShowPrint: false,
|
|
@@ -946,7 +949,8 @@ export default {
|
|
this.warehouseNameChange(_WarehouseName.value)
|
|
this.warehouseNameChange(_WarehouseName.value)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ var date = new Date()
|
|
|
|
+ this.deptBudgetList.produceDate = date.getFullYear()+'-'+((date.getMonth()+1)>=10?(date.getMonth()+1):'0'+(date.getMonth()+1))+'-'+((date.getDate())>=10?date.getDate():'0'+date.getDate())
|
|
},
|
|
},
|
|
// activated() {
|
|
// activated() {
|
|
|
|
|
|
@@ -1059,7 +1063,7 @@ export default {
|
|
},
|
|
},
|
|
shipInfoChange(e) {
|
|
shipInfoChange(e) {
|
|
for (let i = 0; i < this.shipInfoList.length; i++) {
|
|
for (let i = 0; i < this.shipInfoList.length; i++) {
|
|
- if (this.shipInfoList[i].shipName == this.deptBudgetList.shipName) {
|
|
|
|
|
|
+ if (this.shipInfoList[i].shipName == this.deptBudgetList.shipName) {carNo
|
|
this.deptBudgetList.shipNumber = this.shipInfoList[i].shipNo
|
|
this.deptBudgetList.shipNumber = this.shipInfoList[i].shipNo
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1204,10 +1208,17 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
carChange(e, status) {
|
|
carChange(e, status) {
|
|
- console.log(this.carNumberList, e)
|
|
|
|
|
|
+ console.log(this.carNumberList,e,status)
|
|
if (status == 1) {
|
|
if (status == 1) {
|
|
this.$set(this.deptBudgetList, 'customerName', this.carNumberList[e].shipperName)
|
|
this.$set(this.deptBudgetList, 'customerName', this.carNumberList[e].shipperName)
|
|
this.$set(this.deptBudgetList, 'customerPhone', this.carNumberList[e].shipperPhone)
|
|
this.$set(this.deptBudgetList, 'customerPhone', this.carNumberList[e].shipperPhone)
|
|
|
|
+ this.$set(this.deptBudgetList, 'shipId', this.carNumberList[e].shipId)
|
|
|
|
+
|
|
|
|
+ for (let i = 0; i < this.carNumberList.length; i++) {
|
|
|
|
+ if(i==e){
|
|
|
|
+ this.$set(this.deptBudgetList, 'carNo', this.carNumberList[e].carNo)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
for (let i = 0; i < this.customerList1.length; i++) {
|
|
for (let i = 0; i < this.customerList1.length; i++) {
|
|
@@ -1680,6 +1691,9 @@ export default {
|
|
this.deptBudgetList.reBulkDensity = response.bulkDensity
|
|
this.deptBudgetList.reBulkDensity = response.bulkDensity
|
|
this.deptBudgetList.reMildewGrain = response.mildewGrain
|
|
this.deptBudgetList.reMildewGrain = response.mildewGrain
|
|
}
|
|
}
|
|
|
|
+ if(this.statusTypetext == '初检'){
|
|
|
|
+ this.deptBudgetList.donecount = response.inOutWarehouseTask.completedQuantity + '/' + response.inOutWarehouseTask.weight
|
|
|
|
+ }
|
|
this.deptBudgetList.warehouseInOutDetail = {
|
|
this.deptBudgetList.warehouseInOutDetail = {
|
|
grade: response.grade,
|
|
grade: response.grade,
|
|
reGrade: response.reGrade,
|
|
reGrade: response.reGrade,
|
|
@@ -4120,8 +4134,10 @@ export default {
|
|
|
|
|
|
if (this.outContractNo.deliverType == '1') {
|
|
if (this.outContractNo.deliverType == '1') {
|
|
this.carstatus = true
|
|
this.carstatus = true
|
|
|
|
+ this.switchStatus=false
|
|
} else {
|
|
} else {
|
|
this.carstatus = false
|
|
this.carstatus = false
|
|
|
|
+ this.switchStatus=true
|
|
}
|
|
}
|
|
if (this.outContractNo.tranCarInfoList) {
|
|
if (this.outContractNo.tranCarInfoList) {
|
|
this.options2 = this.outContractNo.tranCarInfoList
|
|
this.options2 = this.outContractNo.tranCarInfoList
|