|
@@ -187,7 +187,7 @@
|
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.titleNoOther" placeholder="请输入封号" maxlength="20"
|
|
|
size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if='serviceManagementType == 3 && zjJurisdiction && statusTypetext == "初检"||serviceManagementType == 3 && statusTypetext != "初检"' label="囤位号" span="1"
|
|
|
+ <ws-form-item v-if='serviceManagementType == 3 && zjJurisdiction && statusTypetext == "初检"||serviceManagementType == 3 && statusTypetext != "初检"' label="囤位号(选填)" span="1"
|
|
|
prop="storageTagNo">
|
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.storageTagNo" placeholder="选填,1-10个字符"
|
|
|
maxlength="10" size="small" />
|
|
@@ -198,7 +198,7 @@
|
|
|
size="small" />
|
|
|
</ws-form-item> -->
|
|
|
|
|
|
- <ws-form-item v-if='serviceManagementType == 1' label="囤位号" span="1" prop="storageTagNo">
|
|
|
+ <ws-form-item v-if='serviceManagementType == 1' label="囤位号(选填)" span="1" prop="storageTagNo">
|
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.storageTagNo" placeholder="选填,1-10个字符"
|
|
|
maxlength="10" size="small" />
|
|
|
</ws-form-item>
|
|
@@ -434,36 +434,36 @@
|
|
|
v-model="deptBudgetList.reImperfectGrain" type="number" @mousewheel.native.prevent
|
|
|
placeholder="请输入不完善粒占比" maxlength="40" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if="deptBudgetList.type == '潮粮' && serviceManagementType == 3" label="水分增价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
- <ws-input v-if='statusTypetext != "复检"'
|
|
|
- v-model="deptBudgetList.waterPriceIncrease" type="number" @input="deductionchange"
|
|
|
+ <ws-form-item v-if="serviceManagementType == 3" label="水分增价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
+ <el-input :disabled='statusTypetext != "初检"'
|
|
|
+ v-model="deptBudgetList.waterPriceIncrease" type="number" @focus="pricefocus($event,1)" @blur="priceblur($event,1)" @input="deductionchange"
|
|
|
placeholder="请输入水分增价" maxlength="40" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if="deptBudgetList.type == '潮粮' && serviceManagementType == 3" label="水分扣价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
- <ws-input v-if='statusTypetext != "复检"'
|
|
|
- v-model="deptBudgetList.waterPriceDeduction" type="number" @input="deductionchange"
|
|
|
+ <ws-form-item v-if="serviceManagementType == 3" label="水分扣价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
+ <el-input :disabled='statusTypetext != "初检"'
|
|
|
+ v-model="deptBudgetList.waterPriceDeduction" type="number" @focus="pricefocus($event,2)" @blur="priceblur($event,2)" @input="deductionchange"
|
|
|
placeholder="请输入水分扣价" maxlength="40" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if="deptBudgetList.type == '潮粮' && serviceManagementType == 3" label="质量增价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
- <ws-input v-if='statusTypetext != "复检"'
|
|
|
- v-model="deptBudgetList.qualityPriceIncrease" type="number" @input="deductionchange"
|
|
|
+ <ws-form-item v-if="serviceManagementType == 3" label="质量增价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
+ <el-input :disabled='statusTypetext != "初检"'
|
|
|
+ v-model="deptBudgetList.qualityPriceIncrease" type="number" @focus="pricefocus($event,3)" @blur="priceblur($event,3)" @input="deductionchange"
|
|
|
placeholder="请输入质量增价" maxlength="40" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if="deptBudgetList.type == '潮粮' && serviceManagementType == 3" label="质量扣价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
- <ws-input v-if='statusTypetext != "复检"'
|
|
|
- v-model="deptBudgetList.qualityPriceDeduction" type="number" @input="deductionchange"
|
|
|
+ <ws-form-item v-if="serviceManagementType == 3" label="质量扣价(元/公斤)" span="1" prop="imperfectGrain">
|
|
|
+ <el-input :disabled='statusTypetext != "初检"'
|
|
|
+ v-model="deptBudgetList.qualityPriceDeduction" type="number" @focus="pricefocus($event,4)" @blur="priceblur($event,4)" @input="deductionchange"
|
|
|
placeholder="请输入质量扣价" maxlength="40" size="small" />
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
|
<ws-info-table v-if="zjJurisdiction&&statusTypetext == '初检'||statusTypetext != '初检'">
|
|
|
<ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice"
|
|
|
v-if="deptBudgetList.type == '潮粮' && serviceManagementType == 3">
|
|
|
- <ws-input type="number" @mousewheel.native.prevent v-model="deptBudgetList.tidalGrainPrice"
|
|
|
+ <ws-input type="number" @mousewheel.native.prevent @input="pricechange" v-model="deptBudgetList.tidalGrainPrice"
|
|
|
placeholder="请输入净重单价" maxlength="10" size="small" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="干粮单价(元/公斤)" span="2" prop="dryGrainPrice"
|
|
|
v-if="deptBudgetList.type == '干粮' && serviceManagementType == 3">
|
|
|
- <ws-input type="number" @mousewheel.native.prevent v-model="deptBudgetList.dryGrainPrice"
|
|
|
+ <ws-input type="number" @mousewheel.native.prevent @input="pricechange" v-model="deptBudgetList.dryGrainPrice"
|
|
|
placeholder="请输入干粮单价" maxlength="10" size="small" />
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
@@ -750,6 +750,8 @@ export default {
|
|
|
value1: false,
|
|
|
isQy: false,
|
|
|
isZj: false,
|
|
|
+ dryGrainPrice:0,
|
|
|
+ tidalGrainPrice:0,
|
|
|
bulkDensityMin:'',
|
|
|
qyJurisdiction: false,
|
|
|
zjJurisdiction: false,
|
|
@@ -809,9 +811,72 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ priceblur(e,status){
|
|
|
+ if(status==1){
|
|
|
+ if(this.deptBudgetList.waterPriceIncrease===''){
|
|
|
+ this.deptBudgetList.waterPriceIncrease=0
|
|
|
+
|
|
|
+ }
|
|
|
+ }else if(status==2){
|
|
|
+ if(this.deptBudgetList.waterPriceDeduction===''){
|
|
|
+ this.deptBudgetList.waterPriceDeduction=0
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }else if(status==3){
|
|
|
+ if(this.deptBudgetList.qualityPriceIncrease===''){
|
|
|
+ this.deptBudgetList.qualityPriceIncrease=0
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }else if(status==4){
|
|
|
+ if(this.deptBudgetList.qualityPriceDeduction===''){
|
|
|
+ this.deptBudgetList.qualityPriceDeduction=0
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ pricefocus(e,status){
|
|
|
+ if(status==1){
|
|
|
+ if(this.deptBudgetList.waterPriceIncrease===0){
|
|
|
+ this.deptBudgetList.waterPriceIncrease=''
|
|
|
+
|
|
|
+ }
|
|
|
+ }else if(status==2){
|
|
|
+ if(this.deptBudgetList.waterPriceDeduction===0){
|
|
|
+ this.deptBudgetList.waterPriceDeduction=''
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }else if(status==3){
|
|
|
+ if(this.deptBudgetList.qualityPriceIncrease===0){
|
|
|
+ this.deptBudgetList.qualityPriceIncrease=''
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }else if(status==4){
|
|
|
+ if(this.deptBudgetList.qualityPriceDeduction===0){
|
|
|
+ this.deptBudgetList.qualityPriceDeduction=''
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
deductionchange(){
|
|
|
- if(this.deptBudgetList.tidalGrainPrice&&this.deptBudgetList.waterPriceIncreas&&this.deptBudgetList.waterPriceDeduction&&this.deptBudgetList.qualityPriceIncrease&&this.deptBudgetList.qualityPriceDeduction){
|
|
|
- this.deptBudgetList.tidalGrainPrice=this.deptBudgetList.tidalGrainPrice-this.deptBudgetList.waterPriceIncrease-this.deptBudgetList.waterPriceDeduction-this.deptBudgetList.qualityPriceIncrease-this.deptBudgetList.qualityPriceDeduction
|
|
|
+ if(this.deptBudgetList.type=='潮粮'){
|
|
|
+ this.deptBudgetList.tidalGrainPrice=Number(this.tidalGrainPrice+(this.deptBudgetList.waterPriceIncrease/1000)-(this.deptBudgetList.waterPriceDeduction/1000)+(this.deptBudgetList.qualityPriceIncrease/1000)-(this.deptBudgetList.qualityPriceDeduction/1000)).toFixed(3)
|
|
|
+ }else if(this.deptBudgetList.type=='干粮'){
|
|
|
+ this.deptBudgetList.dryGrainPrice=Number(this.dryGrainPrice+(this.deptBudgetList.waterPriceIncrease/1000)-(this.deptBudgetList.waterPriceDeduction/1000)+(this.deptBudgetList.qualityPriceIncrease/1000)-(this.deptBudgetList.qualityPriceDeduction/1000)).toFixed(3)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ pricechange(){
|
|
|
+ if(this.deptBudgetList.type=='潮粮'){
|
|
|
+ this.tidalGrainPrice=this.deptBudgetList.tidalGrainPrice
|
|
|
+ }else if(this.deptBudgetList.type=='干粮'){
|
|
|
+ this.dryGrainPrice=this.deptBudgetList.dryGrainPrice
|
|
|
}
|
|
|
},
|
|
|
shipInfoChange(e){
|
|
@@ -1031,9 +1096,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- if(this.deptBudgetList.inOutType=="收购入库"){ //收购入库 价格取至合同
|
|
|
- return
|
|
|
- }
|
|
|
+ this.deptBudgetList.waterPriceIncrease=0
|
|
|
+ this.deptBudgetList.waterPriceDeduction=0
|
|
|
+ this.deptBudgetList.qualityPriceIncrease=0
|
|
|
+ this.deptBudgetList.qualityPriceDeduction=0
|
|
|
+ // if(this.deptBudgetList.inOutType=="收购入库"){ //收购入库 价格取至合同
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (this.deptBudgetList.goodsName && type != 'water') {
|
|
|
if (this.deptBudgetList.goodsName.indexOf('潮粮') != -1) {
|
|
|
this.deptBudgetList.type = '潮粮'
|
|
@@ -1048,6 +1117,7 @@ export default {
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
+ this.dryGrainPrice=response
|
|
|
})
|
|
|
}
|
|
|
// debugger
|
|
@@ -1074,9 +1144,14 @@ export default {
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
if (this.deptBudgetList.paramType == '1') {
|
|
|
- this.deptBudgetList.tidalGrainPrice = parseFloat(parseFloat(response) - parseFloat(this.deptBudgetList
|
|
|
+ if(this.deptBudgetList.buckleMiscellaneous){
|
|
|
+ this.deptBudgetList.tidalGrainPrice = parseFloat(parseFloat(response) - parseFloat(this.deptBudgetList
|
|
|
+ .buckleMiscellaneous) / 100 * parseFloat(this.deptBudgetList.dryGrainPrice ? this.deptBudgetList
|
|
|
+ .dryGrainPrice : 0)).toFixed(4)
|
|
|
+ this.tidalGrainPrice = parseFloat(parseFloat(response) - parseFloat(this.deptBudgetList
|
|
|
.buckleMiscellaneous) / 100 * parseFloat(this.deptBudgetList.dryGrainPrice ? this.deptBudgetList
|
|
|
.dryGrainPrice : 0)).toFixed(4)
|
|
|
+ }
|
|
|
} else {
|
|
|
if (this.inspect.type == '干粮') {
|
|
|
if (response == 0) {
|
|
@@ -1087,16 +1162,18 @@ export default {
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
+ this.dryGrainPrice=response
|
|
|
})
|
|
|
} else {
|
|
|
if(response>0){
|
|
|
this.deptBudgetList.dryGrainPrice = response
|
|
|
+ this.dryGrainPrice = response
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if(response>0){
|
|
|
this.deptBudgetList.tidalGrainPrice = response
|
|
|
-
|
|
|
+ this.tidalGrainPrice = response
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1105,6 +1182,10 @@ export default {
|
|
|
if (this.deptBudgetList.goodsName && this.deptBudgetList.customerName) { }
|
|
|
},
|
|
|
obtainPrice(){
|
|
|
+ this.deptBudgetList.waterPriceIncrease=0
|
|
|
+ this.deptBudgetList.waterPriceDeduction=0
|
|
|
+ this.deptBudgetList.qualityPriceIncrease=0
|
|
|
+ this.deptBudgetList.qualityPriceDeduction=0
|
|
|
if(this.deptBudgetList.bulkDensity<this.bulkDensityMin){
|
|
|
this.$alert('容重低于收购标准', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -1125,6 +1206,8 @@ export default {
|
|
|
.then((response) => {
|
|
|
if(response){
|
|
|
this.deptBudgetList.dryGrainPrice = response
|
|
|
+ this.dryGrainPrice = response
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -2182,12 +2265,14 @@ export default {
|
|
|
if (this.reader) {
|
|
|
this.reader.cancel()
|
|
|
}
|
|
|
- if(this.deptBudgetList.bulkDensity<this.bulkDensityMin){
|
|
|
- this.$message({
|
|
|
- message: '容重低于收购标准',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
+ if(this.serviceManagementType==3&&this.zjJurisdiction&&this.statusTypetext=='初检'){
|
|
|
+ if(this.deptBudgetList.bulkDensity<this.bulkDensityMin){
|
|
|
+ this.$message({
|
|
|
+ message: '容重低于收购标准',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if(this.qyJurisdiction&&this.serviceManagementType==1&&this.statusTypetext=='初检'&&!this.zjJurisdiction&&!this.fjJurisdiction&&!this.qrJurisdiction){
|
|
|
this.$message({
|
|
@@ -3558,8 +3643,10 @@ export default {
|
|
|
if(this.outContractNo.priceType == "定价收购"){
|
|
|
if( this.deptBudgetList.type == "潮粮"){
|
|
|
this.deptBudgetList.tidalGrainPrice = Number(this.outContractNo.unitContractPrice/1000).toFixed(2)
|
|
|
+ this.tidalGrainPrice = Number(this.outContractNo.unitContractPrice/1000).toFixed(2)
|
|
|
}else{
|
|
|
this.deptBudgetList.dryGrainPrice = Number(this.outContractNo.unitContractPrice/1000).toFixed(2)
|
|
|
+ this.dryGrainPrice = Number(this.outContractNo.unitContractPrice/1000).toFixed(2)
|
|
|
}
|
|
|
}
|
|
|
if(this.serviceManagementType==3){
|