|
@@ -182,10 +182,16 @@
|
|
|
:value="item.value" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
+
|
|
|
<ws-form-item label="封号-2" span="1" prop="titleNoOther"
|
|
|
v-if="serviceManagementType == 3 && qyJurisdiction&&statusTypetext == '初检'||serviceManagementType == 3 && statusTypetext != '初检'">
|
|
|
<ws-input :disabled='recheck' v-model="deptBudgetList.titleNoOther" placeholder="请输入封号" maxlength="20"
|
|
|
size="small" />
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item v-if='serviceManagementType == 3 && qyJurisdiction' label="交易量" span="1"
|
|
|
+ prop="customerName">
|
|
|
+ <el-input :class="redstatus?'volumeofbusiness':''" disabled v-model="deptBudgetList.volumeofbusiness" placeholder="自动获取,不可编辑" maxlength="20"
|
|
|
+ size="small" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if='serviceManagementType == 3 && zjJurisdiction && statusTypetext == "初检"||serviceManagementType == 3 && statusTypetext != "初检"' label="囤位号(选填)" span="1"
|
|
|
prop="storageTagNo">
|
|
@@ -551,7 +557,8 @@ import {
|
|
|
getinspectLookGoods,
|
|
|
getshippinginfo,
|
|
|
postCheck,
|
|
|
- getcontract
|
|
|
+ getcontract,
|
|
|
+ getquality
|
|
|
} from '@/model/houseSelfCollect/index'
|
|
|
import {
|
|
|
pullDown,
|
|
@@ -626,6 +633,7 @@ export default {
|
|
|
customerName: '',
|
|
|
customerPhone: '',
|
|
|
contractFlag:7,
|
|
|
+ redstatus:false,
|
|
|
deptBudgetList: {
|
|
|
type: '干粮',
|
|
|
freight: 0,
|
|
@@ -1057,7 +1065,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- customerChange(e) {
|
|
|
+ async customerChange(e) {
|
|
|
let customers = e.split('(')
|
|
|
this.deptBudgetList.bankCard = customers[1].split(')')[0]
|
|
|
this.deptBudgetList.customerName = customers[0]
|
|
@@ -1069,6 +1077,22 @@ export default {
|
|
|
this.deptBudgetList.customerPhone = this.customerList1[i].customerPhone
|
|
|
}
|
|
|
}
|
|
|
+ if( this.deptBudgetList.goodsName&&this.deptBudgetList.customerName){
|
|
|
+ await getquality({goodsName:this.deptBudgetList.goodsName,compId:localStorage.getItem('ws-pf_compId'),warehouseName:this.warehouseName,customerNumberCard:this.deptBudgetList.customerNumberCard})
|
|
|
+ .toPromise().then((response) => {
|
|
|
+ if(response.A+response.B+response.C*50>response.D-50){
|
|
|
+ this.redstatus=true
|
|
|
+ }else{
|
|
|
+ this.redstatus=false
|
|
|
+ }
|
|
|
+ var a=response.A>0?response.A+'吨':''
|
|
|
+ var b=response.B>0?response.B+'吨':''
|
|
|
+ var c=response.C>0?response.C+'车':''
|
|
|
+
|
|
|
+ this.deptBudgetList.volumeofbusiness=a+b+c
|
|
|
+ this.$forceUpdate()
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
waterContentChange(type) {
|
|
|
//客户
|
|
@@ -3694,7 +3718,7 @@ export default {
|
|
|
find() {
|
|
|
this.getList()
|
|
|
},
|
|
|
- contractNoChange(e) {
|
|
|
+ async contractNoChange(e) {
|
|
|
// console.log(e)
|
|
|
// 循环任务编号获取合同号
|
|
|
for (let i = 0; i < this.taskNolist.length; i++) {
|
|
@@ -3735,7 +3759,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (!data) return
|
|
|
- getcontract({contractNo:this.deptBudgetList.contractNo,compId:localStorage.getItem('ws-pf_compId')}).toPromise().then((response) => {
|
|
|
+ var response=await getcontract({contractNo:this.deptBudgetList.contractNo,compId:localStorage.getItem('ws-pf_compId')}).toPromise()
|
|
|
this.outContractNo=response
|
|
|
if(this.outContractNo.priceType == "定价收购"){
|
|
|
if( this.deptBudgetList.type == "潮粮"){
|
|
@@ -3866,8 +3890,22 @@ export default {
|
|
|
}else{
|
|
|
this.fleetNameList = []
|
|
|
}
|
|
|
- console.log(this.deptBudgetList.inOutType,this.outContractNo.inOutType)
|
|
|
- })
|
|
|
+ if( this.deptBudgetList.goodsName&&this.deptBudgetList.customerName){
|
|
|
+ await getquality({goodsName:this.deptBudgetList.goodsName,compId:localStorage.getItem('ws-pf_compId'),warehouseName:this.warehouseName,customerNumberCard:this.deptBudgetList.customerNumberCard})
|
|
|
+ .toPromise().then((response) => {
|
|
|
+ if(response.A+response.B+response.C*50>response.D-50){
|
|
|
+ this.redstatus=true
|
|
|
+ }else{
|
|
|
+ this.redstatus=false
|
|
|
+ }
|
|
|
+ var a=response.A>0?response.A+'吨':''
|
|
|
+ var b=response.B>0?response.B+'吨':''
|
|
|
+ var c=response.C>0?response.C+'车':''
|
|
|
+
|
|
|
+ this.deptBudgetList.volumeofbusiness=a+b+c
|
|
|
+ this.$forceUpdate()
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
selectstorageType() {
|
|
|
|
|
@@ -4167,4 +4205,7 @@ export default {
|
|
|
font-weight: 500;
|
|
|
margin-left: 10px;
|
|
|
}
|
|
|
+/deep/.el-input.volumeofbusiness .el-input__inner{
|
|
|
+ color:red !important;
|
|
|
+}
|
|
|
</style>
|