|
@@ -275,7 +275,7 @@
|
|
|
:value="item.fleetName" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if="serviceManagementType == 1&&deptBudgetList.outType != '散船'&&deptBudgetList.outType != '火运'" label="车牌号" span="1" prop="carNo">
|
|
|
+ <ws-form-item v-if="serviceManagementType == 1&&deptBudgetList.outType == '汽运'" label="车牌号" span="1" prop="carNo">
|
|
|
<ws-input :disabled="disabled2"
|
|
|
v-if="options2.length == 0 && serviceManagementType == 1&&deptBudgetList.inOutType!='移库入库' || serviceManagementType == 3 && carNumberList.length == 0"
|
|
|
v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
@@ -310,7 +310,7 @@
|
|
|
top: -1px;
|
|
|
" src="../../../public/img/edit.png" @click="editClick(3)" alt="" /> -->
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="车牌号" span="1" prop="shipName" v-if="deptBudgetList.outType == '散船'">
|
|
|
+ <ws-form-item label="车牌号" span="1" prop="shipName" v-if="deptBudgetList.outType == '散船'||deptBudgetList.outType == '集装箱船'">
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
|
</ws-form-item>
|
|
@@ -454,7 +454,7 @@
|
|
|
:type="statusType == 2 ? 'primary' : ''">已复检
|
|
|
</el-button>
|
|
|
<el-table highlight-current-row @cell-click='listclick' :data="inspect" style="width: 100%; margin-top: 20px"
|
|
|
- ref="inspect" border>
|
|
|
+ ref="inspect" >
|
|
|
<el-table-column prop="qualityNo" width="160" label="业务编号"></el-table-column>
|
|
|
<el-table-column prop="carNumber" label="车牌号">
|
|
|
<template slot-scope="scope">
|
|
@@ -732,7 +732,6 @@ export default {
|
|
|
this.fjJurisdiction= getHp('acquisitionManagement.acquisitionQuality.again')
|
|
|
// 确认
|
|
|
this.qrJurisdiction= getHp('acquisitionManagement.acquisitionQuality.con')
|
|
|
- console.log(111111111)
|
|
|
console.log(this.qyJurisdiction)
|
|
|
//获取质检员权限
|
|
|
this.getNowTime()
|
|
@@ -966,25 +965,8 @@ export default {
|
|
|
this.deptBudgetList.customerPhone = customers[1].split(')')[0]
|
|
|
},
|
|
|
waterContentChange(type) {
|
|
|
- if (this.deptBudgetList.goodsName && type != 'water') {
|
|
|
- if (this.deptBudgetList.goodsName.indexOf('潮粮') != -1) {
|
|
|
- this.deptBudgetList.type = '潮粮'
|
|
|
- } else {
|
|
|
- this.deptBudgetList.type = '干粮'
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.dryGrainPrice || this.deptBudgetList.dryGrainPrice == 0) {
|
|
|
- getDryGrainPrice({
|
|
|
- warehouseId: this.cangid,
|
|
|
- goodsName: this.deptBudgetList.goodsName
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
- })
|
|
|
- }
|
|
|
- // debugger
|
|
|
- //客户
|
|
|
- if(this.serviceManagementType==3){
|
|
|
+ //客户
|
|
|
+ if(this.serviceManagementType==3){
|
|
|
getcustomer({
|
|
|
warehouseId: this.cangid,
|
|
|
goodsName: this.deptBudgetList.goodsName
|
|
@@ -1008,7 +990,26 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+ if(this.deptBudgetList.inOutType=="收购入库"){ //收购入库 价格取至合同
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.deptBudgetList.goodsName && type != 'water') {
|
|
|
+ if (this.deptBudgetList.goodsName.indexOf('潮粮') != -1) {
|
|
|
+ this.deptBudgetList.type = '潮粮'
|
|
|
+ } else {
|
|
|
+ this.deptBudgetList.type = '干粮'
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.dryGrainPrice || this.deptBudgetList.dryGrainPrice == 0) {
|
|
|
+ getDryGrainPrice({
|
|
|
+ warehouseId: this.cangid,
|
|
|
+ goodsName: this.deptBudgetList.goodsName
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // debugger
|
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
if (this.purchasePriceList[i].goodsName == this.deptBudgetList.goodsName) {
|
|
|
this.$set(this.deptBudgetList, 'buckleWeightRatio', this.purchasePriceList[i].deductWeight)
|
|
@@ -1070,6 +1071,9 @@ export default {
|
|
|
|
|
|
}
|
|
|
});
|
|
|
+ }else{
|
|
|
+ if(this.deptBudgetList.inOutType=="收购入库"){ //收购入库 价格取至合同
|
|
|
+ return
|
|
|
}else{
|
|
|
getinspectLookUnitPrice({
|
|
|
warehouseId: this.cangid,
|
|
@@ -1081,11 +1085,9 @@ export default {
|
|
|
if(response){
|
|
|
this.deptBudgetList.dryGrainPrice = response
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
opendBtn() {
|
|
|
html2canvas(this.$refs.saveImg.$el).then(canvas => {
|
|
@@ -1324,7 +1326,6 @@ export default {
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- // debugger
|
|
|
console.log(response)
|
|
|
this.deptBudgetList = response
|
|
|
if (this.statusTypetext == '复检') {
|
|
@@ -3328,6 +3329,15 @@ export default {
|
|
|
var data = this.taskNolist[i]
|
|
|
if (this.taskNolist[i].inOutType == '移库入库') {
|
|
|
this.deptBudgetList.contractNo = this.taskNolist[i].moveTaskNo
|
|
|
+ }else if(this.taskNolist[i].inOutType == '收购入库'){
|
|
|
+ this.deptBudgetList.contractNo = this.taskNolist[i].contractNo
|
|
|
+ this.deptBudgetList.inOutType == this.taskNolist[i].inOutType
|
|
|
+ this.deptBudgetList.goodsName = this.taskNolist[i].goodsName
|
|
|
+ if(this.taskNolist[i].goodsName.indexOf("潮粮") != -1){ //收购从合同中带出货名 单价等信息 用货名是否带有潮粮字符来判断干潮类型
|
|
|
+ this.deptBudgetList.type = "潮粮"
|
|
|
+ }else{
|
|
|
+ this.deptBudgetList.type = "干粮"
|
|
|
+ }
|
|
|
} else {
|
|
|
if (this.taskNolist[i].contractNo) {
|
|
|
// console.log(this.taskNolist[i])
|
|
@@ -3344,7 +3354,9 @@ export default {
|
|
|
if (
|
|
|
this.outContractNo[i].contractNo == this.deptBudgetList.contractNo
|
|
|
) {
|
|
|
- console.log(this.outContractNo[i])
|
|
|
+ if(this.outContractNo[i].priceType == "定价收购"){
|
|
|
+ this.deptBudgetList.dryGrainPrice = Number(this.outContractNo[i].unitContractPrice/1000).toFixed(2)
|
|
|
+ }
|
|
|
if(this.serviceManagementType==3){
|
|
|
var arr=this.goodnameList.filter((item)=>{return item.goodsName==this.outContractNo[i].goodsName})
|
|
|
console.log(arr)
|
|
@@ -3353,13 +3365,15 @@ export default {
|
|
|
this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
|
|
|
this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
|
|
|
}else{
|
|
|
- this.deptBudgetList.goodsName=''
|
|
|
- this.deptBudgetList.goodsNameKey=''
|
|
|
- this.$message({
|
|
|
- message: `当前仓库未设置:`+this.outContractNo[i].goodsName,
|
|
|
- type: 'warning',
|
|
|
- });
|
|
|
- break;
|
|
|
+ if(this.deptBudgetList.inOutType!="收购入库"){
|
|
|
+ this.deptBudgetList.goodsName=''
|
|
|
+ this.deptBudgetList.goodsNameKey=''
|
|
|
+ this.$message({
|
|
|
+ message: `当前仓库未设置:`+this.outContractNo[i].goodsName,
|
|
|
+ type: 'warning',
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}else{
|
|
|
this.shipInfoList=this.outContractNo[i].shipInfoList
|