|
@@ -15,23 +15,32 @@
|
|
<ws-form ref="dataList" :model="dataList" :rules="rules">
|
|
<ws-form ref="dataList" :model="dataList" :rules="rules">
|
|
<div class="basicInformation">
|
|
<div class="basicInformation">
|
|
<h2>
|
|
<h2>
|
|
- {{ this.deptBudgetList1.warehouseName }}库
|
|
|
|
|
|
+ {{ this.deptBudgetList1.warehouseName }}
|
|
<span class="position" v-show="this.$route.query.warehouseType == 1">
|
|
<span class="position" v-show="this.$route.query.warehouseType == 1">
|
|
{{ this.deptBudgetList1.binNumber }}仓位
|
|
{{ this.deptBudgetList1.binNumber }}仓位
|
|
</span>
|
|
</span>
|
|
<span v-show="this.$route.query.warehouseType == 2"> (临) </span>
|
|
<span v-show="this.$route.query.warehouseType == 2"> (临) </span>
|
|
</h2>
|
|
</h2>
|
|
<div class="balance-row">
|
|
<div class="balance-row">
|
|
- <BalanceAlert v-if='isShowBalance' class="left" ref="weightChild" :deptBudgetList='deptBudgetList'
|
|
|
|
|
|
+ <BalanceAlert class="left" ref="weightChild" :deptBudgetList='deptBudgetList'
|
|
:information='information' v-on:balanceListen="setVal"></BalanceAlert>
|
|
:information='information' v-on:balanceListen="setVal"></BalanceAlert>
|
|
<div class="top">
|
|
<div class="top">
|
|
- <div class="car-type">毛重</div>
|
|
|
|
- <div class="weight">
|
|
|
|
|
|
+ <div class="confirmInfo">
|
|
|
|
+ <div class="confirmWeight">确定重量</div>
|
|
|
|
+ <div class="weight">
|
|
|
|
+ {{ grossWeight }} <span class="kg-style">kg</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <div class="weight">
|
|
{{grossWeight }}
|
|
{{grossWeight }}
|
|
<span class="kg-style">kg</span>
|
|
<span class="kg-style">kg</span>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<!-- <div class="weight">{{dataList.tare}} <span class="kg-style">kg</span></div> -->
|
|
<!-- <div class="weight">{{dataList.tare}} <span class="kg-style">kg</span></div> -->
|
|
- <div class="car-no">{{ dataList.carNo }}</div>
|
|
|
|
|
|
+ <div class="confirmInfo">
|
|
|
|
+ <div class="confirmCarNo">车牌号</div>
|
|
|
|
+ <div class="car-no">{{ dataList.carNo }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <div class="car-no">{{ dataList.carNo }}</div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="small-title">基本信息</div>
|
|
<div class="small-title">基本信息</div>
|
|
@@ -41,7 +50,7 @@
|
|
<!--任务编号-->
|
|
<!--任务编号-->
|
|
<ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
|
|
<ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
|
|
<el-select filterable clearable v-model="dataList.inOutTaskNo" placeholder="请选择任务编号" class="typeselect"
|
|
<el-select filterable clearable v-model="dataList.inOutTaskNo" placeholder="请选择任务编号" class="typeselect"
|
|
- @change="contractNoChange" >
|
|
|
|
|
|
+ @change="contractNoChange">
|
|
<el-option v-for="item in deptBudgetList2" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
|
|
<el-option v-for="item in deptBudgetList2" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
|
|
:value="item.inOutTaskNo" />
|
|
:value="item.inOutTaskNo" />
|
|
</el-select>
|
|
</el-select>
|
|
@@ -184,15 +193,19 @@
|
|
dataList.outType == '汽运' ||
|
|
dataList.outType == '汽运' ||
|
|
dataList.outType == '集装箱船'
|
|
dataList.outType == '集装箱船'
|
|
">
|
|
">
|
|
- <ws-input v-if="!carstatus || carjudge" v-model="dataList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
|
|
- <el-select v-else filterable clearable :filter-method="dataFilter2" v-model="dataList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">
|
|
|
|
- <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.carNo" />
|
|
|
|
|
|
+ <ws-input v-if="!carstatus || carjudge" v-model="dataList.carNo" placeholder="请输入车牌号" maxlength="7"
|
|
|
|
+ size="small" />
|
|
|
|
+ <el-select v-else filterable clearable v-model="dataList.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>
|
|
</el-select>
|
|
- <!-- <span style='padding-left:10px;'>发货重量(吨):{{dataList.loadNetWeight}}</span> -->
|
|
|
|
- <el-button type="primary" @click="carNoTypeChange" v-if="carstatus">{{carChange1}}</el-button>
|
|
|
|
|
|
+ <!-- <span style='padding-left:10px;'>发货重量(吨):{{dataList.loadNetWeight}}</span> -->
|
|
|
|
+ <el-button type="primary" @click="carNoTypeChange" v-if="carstatus">{{carChange1}}</el-button>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="发货重量(吨):" span="1" prop="loadNetWeight">
|
|
<ws-form-item label="发货重量(吨):" span="1" prop="loadNetWeight">
|
|
- <ws-input v-model="dataList.loadNetWeight" placeholder="暂无获取到发货重量" maxlength="10" disabled size="small" />
|
|
|
|
|
|
+ <ws-input v-model="dataList.loadNetWeight" placeholder="暂无获取到发货重量" maxlength="10" disabled
|
|
|
|
+ size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<ws-form-item label="车号" span="1" prop="carNo" v-if="dataList.outType == '火运'">
|
|
<ws-form-item label="车号" span="1" prop="carNo" v-if="dataList.outType == '火运'">
|
|
@@ -370,7 +383,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- isShowBalance: false,
|
|
|
|
|
|
+ // isShowBalance: false,
|
|
deptBudgetList2: [],
|
|
deptBudgetList2: [],
|
|
//弹出框
|
|
//弹出框
|
|
dialogViewSpareMoney: false,
|
|
dialogViewSpareMoney: false,
|
|
@@ -400,7 +413,7 @@
|
|
value: '3',
|
|
value: '3',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- information:'毛重检斤',
|
|
|
|
|
|
+ information: '毛重检斤',
|
|
readonly: true,
|
|
readonly: true,
|
|
typeList: ['干粮', '潮粮'],
|
|
typeList: ['干粮', '潮粮'],
|
|
qualityInspectorList: [],
|
|
qualityInspectorList: [],
|
|
@@ -449,6 +462,7 @@
|
|
},
|
|
},
|
|
contractList: [],
|
|
contractList: [],
|
|
dataList: {
|
|
dataList: {
|
|
|
|
+ outType: '',
|
|
id: '',
|
|
id: '',
|
|
grossWeight: '',
|
|
grossWeight: '',
|
|
contractNo: '',
|
|
contractNo: '',
|
|
@@ -460,7 +474,7 @@
|
|
inOutDate: '',
|
|
inOutDate: '',
|
|
inOutType: '',
|
|
inOutType: '',
|
|
goodsName: '',
|
|
goodsName: '',
|
|
- selfLoading:"0",
|
|
|
|
|
|
+ selfLoading: "0",
|
|
warehouseInOutDetail: {
|
|
warehouseInOutDetail: {
|
|
qualityInspector: '',
|
|
qualityInspector: '',
|
|
},
|
|
},
|
|
@@ -486,9 +500,9 @@
|
|
param: 9600,
|
|
param: 9600,
|
|
allowEdit: true,
|
|
allowEdit: true,
|
|
result1: '00',
|
|
result1: '00',
|
|
- grossWeight:"",//显示的毛重
|
|
|
|
- carChange1:"手动填写",
|
|
|
|
- carjudge:false
|
|
|
|
|
|
+ grossWeight: "", //显示的毛重
|
|
|
|
+ carChange1: "手动填写",
|
|
|
|
+ carjudge: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
@@ -502,7 +516,7 @@
|
|
this.deptBudgetList1.binNumber = this.$route.query.binNumber
|
|
this.deptBudgetList1.binNumber = this.$route.query.binNumber
|
|
this.dataList.id = this.$route.query.id
|
|
this.dataList.id = this.$route.query.id
|
|
this.dataList.grossWeight = Math.round(this.$route.query.grossWeight * 1000)
|
|
this.dataList.grossWeight = Math.round(this.$route.query.grossWeight * 1000)
|
|
- this.grossWeight = this.dataList.grossWeight
|
|
|
|
|
|
+ this.grossWeight = this.dataList.grossWeight
|
|
this.dataList.contractNo = this.$route.query.contractNo
|
|
this.dataList.contractNo = this.$route.query.contractNo
|
|
this.dataList.baseId = this.$route.query.baseId
|
|
this.dataList.baseId = this.$route.query.baseId
|
|
this.dataList.positionId = this.$route.query.positionId
|
|
this.dataList.positionId = this.$route.query.positionId
|
|
@@ -517,7 +531,7 @@
|
|
this.dataList.grade = this.$route.query.grade
|
|
this.dataList.grade = this.$route.query.grade
|
|
this.dataList.agent = this.$route.query.agent
|
|
this.dataList.agent = this.$route.query.agent
|
|
this.dataList.carNo = this.$route.query.carNo
|
|
this.dataList.carNo = this.$route.query.carNo
|
|
- this.dataList.carId = this.$route.query.carId//派车id初始化默认一下(解决第一次进来无carid)
|
|
|
|
|
|
+ this.dataList.carId = this.$route.query.carId //派车id初始化默认一下(解决第一次进来无carid)
|
|
this.dataList.inOutDate = this.$route.query.inOutDate
|
|
this.dataList.inOutDate = this.$route.query.inOutDate
|
|
this.dataList.contractNo = this.$route.query.contractNo
|
|
this.dataList.contractNo = this.$route.query.contractNo
|
|
this.dataList.inOutType = this.$route.query.inOutType
|
|
this.dataList.inOutType = this.$route.query.inOutType
|
|
@@ -531,21 +545,23 @@
|
|
this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
|
|
this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
|
|
this.dataList.outType = this.$route.query.outType//运输方式
|
|
this.dataList.outType = this.$route.query.outType//运输方式
|
|
this.dataList.selfLoading = this.$route.query.selfLoading//
|
|
this.dataList.selfLoading = this.$route.query.selfLoading//
|
|
- if (this.$route.query.automaticWeightAcquisition == '1') {
|
|
|
|
- this.isShowBalance = true
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.$route.query.automaticWeightAcquisition == '1') {
|
|
|
|
+ // this.isShowBalance = true
|
|
|
|
+ // }
|
|
|
|
+
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ dataFilter2(){},
|
|
//切换车牌号输入状态
|
|
//切换车牌号输入状态
|
|
- carNoTypeChange(){
|
|
|
|
- this.carjudge = !this.carjudge
|
|
|
|
- if(!this.carjudge){
|
|
|
|
- this.dataList.selfLoading = "0"
|
|
|
|
- this.carChange1="手动填写"
|
|
|
|
- }else{
|
|
|
|
- this.dataList.selfLoading = "1"
|
|
|
|
- this.carChange1="识别下拉"
|
|
|
|
|
|
+ carNoTypeChange() {
|
|
|
|
+ this.carjudge = !this.carjudge
|
|
|
|
+ if (!this.carjudge) {
|
|
|
|
+ this.dataList.selfLoading = "0"
|
|
|
|
+ this.carChange1 = "手动填写"
|
|
|
|
+ } else {
|
|
|
|
+ this.dataList.selfLoading = "1"
|
|
|
|
+ this.carChange1 = "识别下拉"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
setVal(data) {
|
|
setVal(data) {
|
|
@@ -612,12 +628,12 @@
|
|
if (this.tranCarInfoList[i].carNo == this.dataList.carNo) {
|
|
if (this.tranCarInfoList[i].carNo == this.dataList.carNo) {
|
|
this.dataList.tranCarNo = this.tranCarInfoList[i].tranCarNo
|
|
this.dataList.tranCarNo = this.tranCarInfoList[i].tranCarNo
|
|
this.dataList.carId = this.tranCarInfoList[i].id
|
|
this.dataList.carId = this.tranCarInfoList[i].id
|
|
- if(this.dataList.inOutType=='移库入库'){
|
|
|
|
- if(!this.dataList.cost){
|
|
|
|
- this.dataList.cost=this.tranCarInfoList[i].cost
|
|
|
|
|
|
+ if (this.dataList.inOutType == '移库入库') {
|
|
|
|
+ if (!this.dataList.cost) {
|
|
|
|
+ this.dataList.cost = this.tranCarInfoList[i].cost
|
|
|
|
+ }
|
|
|
|
+ this.dataList.loadNetWeight = this.tranCarInfoList[i].loadNetWeight
|
|
}
|
|
}
|
|
- this.dataList.loadNetWeight=this.tranCarInfoList[i].loadNetWeight
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -663,7 +679,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if (!data) return
|
|
for (var i = 0; i < this.outContractNo.length; i++) {
|
|
for (var i = 0; i < this.outContractNo.length; i++) {
|
|
if (this.outContractNo[i].contractNo == this.dataList.contractNo) {
|
|
if (this.outContractNo[i].contractNo == this.dataList.contractNo) {
|
|
if (this.outContractNo[i].inOutType == '销售出库') {
|
|
if (this.outContractNo[i].inOutType == '销售出库') {
|
|
@@ -1144,7 +1160,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(!this.carstatus){//若自运的合同该字段置空
|
|
|
|
|
|
+ if (!this.carstatus) { //若自运的合同该字段置空
|
|
this.deptBudgetList.selfLoading = ""
|
|
this.deptBudgetList.selfLoading = ""
|
|
}
|
|
}
|
|
this.$confirm(`确定提交毛重检斤`, {
|
|
this.$confirm(`确定提交毛重检斤`, {
|
|
@@ -1565,28 +1581,47 @@
|
|
}
|
|
}
|
|
|
|
|
|
.top {
|
|
.top {
|
|
- width: 100%;
|
|
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 270px;
|
|
|
|
+ width: 69%;
|
|
background: black;
|
|
background: black;
|
|
color: #2aff7c;
|
|
color: #2aff7c;
|
|
font-size: 32px;
|
|
font-size: 32px;
|
|
text-align: right;
|
|
text-align: right;
|
|
- padding: 20px;
|
|
|
|
|
|
+ // padding: 20px;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
- margin: 0 20px 0 20px;
|
|
|
|
|
|
+ margin: 0 20px 0 40px;
|
|
|
|
|
|
.car-type {
|
|
.car-type {
|
|
text-align: left;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
+ .confirmInfo {
|
|
|
|
+ display: flex;
|
|
|
|
+
|
|
|
|
+ .confirmWeight {
|
|
|
|
+ width: 50%;
|
|
|
|
+ text-align: left;
|
|
|
|
+ line-height: 90px;
|
|
|
|
+ }
|
|
|
|
+ .weight {
|
|
|
|
+ font-size: 68px;
|
|
|
|
+ width: 50%;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .confirmCarNo {
|
|
|
|
+ width: 50%;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .car-no {
|
|
|
|
+ width: 50%;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
.kg-style {
|
|
.kg-style {
|
|
font-size: 30px;
|
|
font-size: 30px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- .weight {
|
|
|
|
- font-size: 68px;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
//下面列表
|
|
//下面列表
|
|
.neifor {
|
|
.neifor {
|
|
width: 80%;
|
|
width: 80%;
|
|
@@ -1610,13 +1645,14 @@
|
|
.el-input__inner {
|
|
.el-input__inner {
|
|
width: 150px;
|
|
width: 150px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.balance-row {
|
|
.balance-row {
|
|
display: flex;
|
|
display: flex;
|
|
margin: 20px 0;
|
|
margin: 20px 0;
|
|
|
|
|
|
.left {
|
|
.left {
|
|
- width: 500px;
|
|
|
|
- margin-bottom: 0;
|
|
|
|
|
|
+ position: relative;
|
|
|
|
+ width: 90%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|