|
@@ -326,7 +326,7 @@
|
|
<div class="grid-content bg-purple">
|
|
<div class="grid-content bg-purple">
|
|
<el-button v-if='statusTypetext=="复检"' @click='statustypechangelist(1)' :type="statusType==1?'primary':''">未复检</el-button>
|
|
<el-button v-if='statusTypetext=="复检"' @click='statustypechangelist(1)' :type="statusType==1?'primary':''">未复检</el-button>
|
|
<el-button v-if='statusTypetext=="复检"' @click='statustypechangelist(2)' :type="statusType==2?'primary':''">已复检</el-button>
|
|
<el-button v-if='statusTypetext=="复检"' @click='statustypechangelist(2)' :type="statusType==2?'primary':''">已复检</el-button>
|
|
- <el-table @cell-click='listclick' :data="inspect" style="width: 100%; margin-top: 20px" ref="inspect" border>
|
|
|
|
|
|
+ <el-table highlight-current-row @cell-click='listclick' :data="inspect" style="width: 100%; margin-top: 20px" ref="inspect" border>
|
|
<el-table-column prop="qualityNo" width="100" label="业务编号"></el-table-column>
|
|
<el-table-column prop="qualityNo" width="100" label="业务编号"></el-table-column>
|
|
<el-table-column prop="carNumber" label="车牌号"></el-table-column>
|
|
<el-table-column prop="carNumber" label="车牌号"></el-table-column>
|
|
<el-table-column prop="status" label="状态">
|
|
<el-table-column prop="status" label="状态">
|
|
@@ -351,7 +351,7 @@
|
|
:total="deptBudgetTotal">
|
|
:total="deptBudgetTotal">
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <el-button @click="checkOk" v-if="statusTypetext=='复检'" type="primary">确认初检信息</el-button>
|
|
<el-button @click="submit" type="primary">提交</el-button>
|
|
<el-button @click="submit" type="primary">提交</el-button>
|
|
</div>
|
|
</div>
|
|
<el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单" @opened='opendBtn' @close="closeDialog"
|
|
<el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单" @opened='opendBtn' @close="closeDialog"
|
|
@@ -379,7 +379,8 @@
|
|
getcustomer,
|
|
getcustomer,
|
|
getDryGrainPrice,
|
|
getDryGrainPrice,
|
|
getinspectLookGoods,
|
|
getinspectLookGoods,
|
|
- getshippinginfo
|
|
|
|
|
|
+ getshippinginfo,
|
|
|
|
+ postCheck,
|
|
} from '@/model/houseSelfCollect/index'
|
|
} from '@/model/houseSelfCollect/index'
|
|
import {
|
|
import {
|
|
pullDown,
|
|
pullDown,
|
|
@@ -497,7 +498,6 @@
|
|
options1:[],
|
|
options1:[],
|
|
editcar:false,
|
|
editcar:false,
|
|
isGetCost:'',
|
|
isGetCost:'',
|
|
- disabled1:false,
|
|
|
|
carstatus:false,
|
|
carstatus:false,
|
|
options2:[],
|
|
options2:[],
|
|
tranCarInfoList:[],
|
|
tranCarInfoList:[],
|
|
@@ -956,6 +956,15 @@
|
|
.then((response) => {
|
|
.then((response) => {
|
|
console.log(response)
|
|
console.log(response)
|
|
this.deptBudgetList=response
|
|
this.deptBudgetList=response
|
|
|
|
+ if(this.statusTypetext=='复检'){
|
|
|
|
+ this.deptBudgetList.reGrade=response.grade
|
|
|
|
+ this.deptBudgetList.reWaterContent=response.waterContent
|
|
|
|
+ this.deptBudgetList.reImperfectGrain=response.imperfectGrain
|
|
|
|
+ this.deptBudgetList.reImpurity=response.impurity
|
|
|
|
+ this.deptBudgetList.reJiaorenli=response.jiaorenli
|
|
|
|
+ this.deptBudgetList.reBulkDensity=response.bulkDensity
|
|
|
|
+ this.deptBudgetList.reMildewGrain=response.mildewGrain
|
|
|
|
+ }
|
|
this.deptBudgetList.warehouseInOutDetail={
|
|
this.deptBudgetList.warehouseInOutDetail={
|
|
grade:response.grade,
|
|
grade:response.grade,
|
|
reGrade:response.reGrade,
|
|
reGrade:response.reGrade,
|
|
@@ -1092,14 +1101,14 @@
|
|
}
|
|
}
|
|
if(this.serviceManagementType==3){
|
|
if(this.serviceManagementType==3){
|
|
var count=''
|
|
var count=''
|
|
- if(this.warehouseTradeCount<10){
|
|
|
|
- count='000'+(this.warehouseTradeCount+1)
|
|
|
|
|
|
+ if(this.warehouseCount<10){
|
|
|
|
+ count='000'+(this.warehouseCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseTradeCount<100&&this.warehouseTradeCount>=10){
|
|
|
|
- count='00'+(this.warehouseTradeCount+1)
|
|
|
|
|
|
+ if(this.warehouseCount<100&&this.warehouseCount>=10){
|
|
|
|
+ count='00'+(this.warehouseCount+1)
|
|
}
|
|
}
|
|
- if(this.warehouseTradeCount<1000&&this.warehouseTradeCount>=100){
|
|
|
|
- count='0'+(this.warehouseTradeCount+1)
|
|
|
|
|
|
+ if(this.warehouseCount<1000&&this.warehouseCount>=100){
|
|
|
|
+ count='0'+(this.warehouseCount+1)
|
|
}
|
|
}
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
}
|
|
}
|
|
@@ -1121,6 +1130,100 @@
|
|
this.deptBudgetTotal = response.total
|
|
this.deptBudgetTotal = response.total
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ //确认初检信息
|
|
|
|
+ checkOk(){
|
|
|
|
+ this.$confirm('确定初检信息后,初检员不需要再次确认质检信息,是否确认提交', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ postCheck(this.deptBudgetList)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ postCheck({id:this.deptBudgetList.id,flag:2})
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ if(response == 'OK'){
|
|
|
|
+ this.$message.success('提交成功')
|
|
|
|
+ this.deptBudgetList={
|
|
|
|
+ type: '潮粮',
|
|
|
|
+ freight: 0,
|
|
|
|
+ cost: '',
|
|
|
|
+ addressUrl: '',
|
|
|
|
+ tidalGrainPrice: 0,
|
|
|
|
+ buckleWeightRatio: 0,
|
|
|
|
+ natureOfGrainPurchase: '贸易粮',
|
|
|
|
+ buckleMiscellaneous: 0,
|
|
|
|
+ paramType: 1,
|
|
|
|
+ warehouseInOutDetail: {
|
|
|
|
+ grade:'',
|
|
|
|
+ reGrade:'',
|
|
|
|
+ imperfectGrain:'',
|
|
|
|
+ reImperfectGrain:'',
|
|
|
|
+ impurity:'',
|
|
|
|
+ reImpurity:'',
|
|
|
|
+ jiaorenli:'',
|
|
|
|
+ reJiaorenli:'',
|
|
|
|
+ bulkDensity:'',
|
|
|
|
+ reBulkDensity:'',
|
|
|
|
+ mildewGrain:'',
|
|
|
|
+ reMildewGrain:'',
|
|
|
|
+ },
|
|
|
|
+ disablednotarize:false,
|
|
|
|
+ deductionAmount: 0,
|
|
|
|
+ deductionWeight: 0,
|
|
|
|
+ grossWeight: 0,
|
|
|
|
+ tare: 0,
|
|
|
|
+ grade:'',
|
|
|
|
+ inOutDate: '',
|
|
|
|
+ netWeight:0,
|
|
|
|
+ pureWeight:0,
|
|
|
|
+ deductionWeight:0,
|
|
|
|
+ waterContent:'',
|
|
|
|
+ reWaterContent:'',
|
|
|
|
+ reGrade:'',
|
|
|
|
+ imperfectGrain:'',
|
|
|
|
+ reImperfectGrain:'',
|
|
|
|
+ impurity:'',
|
|
|
|
+ reImpurity:'',
|
|
|
|
+ jiaorenli:'',
|
|
|
|
+ reJiaorenli:'',
|
|
|
|
+ bulkDensity:'',
|
|
|
|
+ reBulkDensity:'',
|
|
|
|
+ reMemo:'',
|
|
|
|
+ storageTagNo:'',
|
|
|
|
+ mildewGrain:'',
|
|
|
|
+ reMildewGrain:'',
|
|
|
|
+ boxNo:'',
|
|
|
|
+ boxNoOther:'',
|
|
|
|
+ titleNo:'',
|
|
|
|
+ titleNoOther:'',
|
|
|
|
+ }
|
|
|
|
+ if(this.serviceManagementType==3){
|
|
|
|
+ var count=''
|
|
|
|
+ if(this.warehouseCount<10){
|
|
|
|
+ count='000'+(this.warehouseCount+1)
|
|
|
|
+ }
|
|
|
|
+ if(this.warehouseCount<100&&this.warehouseCount>=10){
|
|
|
|
+ count='00'+(this.warehouseCount+1)
|
|
|
|
+ }
|
|
|
|
+ if(this.warehouseCount<1000&&this.warehouseCount>=100){
|
|
|
|
+ count='0'+(this.warehouseCount+1)
|
|
|
|
+ }
|
|
|
|
+ this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
|
|
|
|
+ }
|
|
|
|
+ this.getList()
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error('提交失败')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
statustypechange(status){
|
|
statustypechange(status){
|
|
this.statusTypetext=status
|
|
this.statusTypetext=status
|
|
@@ -1129,11 +1232,18 @@
|
|
this.deptBudgetList.statusType=1
|
|
this.deptBudgetList.statusType=1
|
|
this.statusType=this.deptBudgetList.statusType
|
|
this.statusType=this.deptBudgetList.statusType
|
|
this.recheck=false
|
|
this.recheck=false
|
|
|
|
+ this.disablednotarize=false
|
|
|
|
+ this.goodsdisabled=false
|
|
|
|
+ this.disabled=false
|
|
|
|
+ this.disabled1=false
|
|
}else if(status=='复检'){
|
|
}else if(status=='复检'){
|
|
this.deptBudgetList.statusType=1
|
|
this.deptBudgetList.statusType=1
|
|
this.recheck=true
|
|
this.recheck=true
|
|
this.disabled2=true
|
|
this.disabled2=true
|
|
- this.statusType=0
|
|
|
|
|
|
+ this.statusType=1
|
|
|
|
+ this.goodsdisabled=true
|
|
|
|
+ this.disabled=true
|
|
|
|
+ this.disabled1=true
|
|
this.isSelectType=true
|
|
this.isSelectType=true
|
|
}else if(status=='确认'){
|
|
}else if(status=='确认'){
|
|
this.deptBudgetList.statusType=3
|
|
this.deptBudgetList.statusType=3
|
|
@@ -1141,6 +1251,9 @@
|
|
this.disablednotarize=true
|
|
this.disablednotarize=true
|
|
this.statusType=0
|
|
this.statusType=0
|
|
this.disabled2=false
|
|
this.disabled2=false
|
|
|
|
+ this.goodsdisabled=false
|
|
|
|
+ this.disabled=false
|
|
|
|
+ this.disabled1=false
|
|
}
|
|
}
|
|
|
|
|
|
this.getList()
|
|
this.getList()
|
|
@@ -2006,6 +2119,7 @@
|
|
for (let i = 0; i < response.length; i++) {
|
|
for (let i = 0; i < response.length; i++) {
|
|
if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
|
|
if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
|
|
this.warehouseCount = response[i].count
|
|
this.warehouseCount = response[i].count
|
|
|
|
+ console.log(response[i].tradeCount)
|
|
this.warehouseTradeCount = response[i].tradeCount
|
|
this.warehouseTradeCount = response[i].tradeCount
|
|
this.allowEdit = response[i].allowEdit
|
|
this.allowEdit = response[i].allowEdit
|
|
this.cangid = _wareHouse.warehouseId
|
|
this.cangid = _wareHouse.warehouseId
|
|
@@ -2062,6 +2176,7 @@
|
|
this.serviceManagementType=status
|
|
this.serviceManagementType=status
|
|
if(status==3){
|
|
if(status==3){
|
|
//解决冲突别解决没了(注意)
|
|
//解决冲突别解决没了(注意)
|
|
|
|
+ this.outType='他运'
|
|
this.warehouseTradeCount = '000' + Number(this.warehouseTradeCount + 1)
|
|
this.warehouseTradeCount = '000' + Number(this.warehouseTradeCount + 1)
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
|
|
this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
|
|
}
|
|
}
|
|
@@ -2088,12 +2203,11 @@
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
contractNoChange(e) {
|
|
contractNoChange(e) {
|
|
|
|
+ // console.log(e)
|
|
// 循环任务编号获取合同号
|
|
// 循环任务编号获取合同号
|
|
for (let i = 0; i < this.taskNolist.length; i++) {
|
|
for (let i = 0; i < this.taskNolist.length; i++) {
|
|
if (this.taskNolist[i].inOutTaskNo == e) {
|
|
if (this.taskNolist[i].inOutTaskNo == e) {
|
|
- console.log(this.taskNolist[i])
|
|
|
|
var data = this.taskNolist[i]
|
|
var data = this.taskNolist[i]
|
|
-
|
|
|
|
if (this.taskNolist[i].contractNo) {
|
|
if (this.taskNolist[i].contractNo) {
|
|
this.deptBudgetList.contractNo = this.taskNolist[i].contractNo
|
|
this.deptBudgetList.contractNo = this.taskNolist[i].contractNo
|
|
} else {
|
|
} else {
|
|
@@ -2111,10 +2225,11 @@
|
|
this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
|
|
this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
|
|
this.deptBudgetList.grade = this.outContractNo[i].grade
|
|
this.deptBudgetList.grade = this.outContractNo[i].grade
|
|
if (this.outContractNo[i].inOutType == '采购入库') {
|
|
if (this.outContractNo[i].inOutType == '采购入库') {
|
|
- this.customerName=this.carNumberList[e].buyer
|
|
|
|
- this.customerPhone=this.carNumberList[e].buyerPhone
|
|
|
|
- this.warehouseCount = '000' + Number(this.warehouseCount + 1)
|
|
|
|
- this.deptBudgetList.qualityNo='CGRK'+this.getTime()+this.warehouseNo+this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
|
|
|
+ this.customerName=this.outContractNo[i].buyer
|
|
|
|
+ this.customerPhone=this.outContractNo[i].buyerPhone
|
|
|
|
+ console.log(this.warehouseTradeCount)
|
|
|
|
+ this.warehouseTradeCount = '000' + Number(this.warehouseTradeCount + 1)
|
|
|
|
+ this.deptBudgetList.qualityNo='CGRK'+this.getTime()+this.warehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
|
|
if (!this.outContractNo[i].unitContractPrice) {
|
|
if (!this.outContractNo[i].unitContractPrice) {
|
|
this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
|
|
this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
|
|
} else {
|
|
} else {
|
|
@@ -2123,8 +2238,8 @@
|
|
this.deptBudgetList.inOutTypeKey = 1
|
|
this.deptBudgetList.inOutTypeKey = 1
|
|
} else if (this.outContractNo[i].inOutType == '移库入库') {
|
|
} else if (this.outContractNo[i].inOutType == '移库入库') {
|
|
this.customerName=localStorage.getItem('ws-pf_compName')
|
|
this.customerName=localStorage.getItem('ws-pf_compName')
|
|
- this.warehouseCount = '000' + Number(this.warehouseCount + 1)
|
|
|
|
- this.deptBudgetList.qualityNo='YKRK'+this.getTime()+this.warehouseNo+this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
|
|
|
+ this.warehouseTradeCount = '000' + Number(this.warehouseTradeCount + 1)
|
|
|
|
+ this.deptBudgetList.qualityNo='YKRK'+this.getTime()+this.warehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
|
|
this.deptBudgetList.goodsName = data.goodsName
|
|
this.deptBudgetList.goodsName = data.goodsName
|
|
this.deptBudgetList.goodsNameKey = data.goodsNameKey
|
|
this.deptBudgetList.goodsNameKey = data.goodsNameKey
|
|
this.deptBudgetList.grade = data.grade
|
|
this.deptBudgetList.grade = data.grade
|
|
@@ -2428,7 +2543,10 @@
|
|
width: 50%;
|
|
width: 50%;
|
|
border: none;
|
|
border: none;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ .el-table__body tr.current-row>td{
|
|
|
|
+ background-color: #69A8EA !important;
|
|
|
|
+ color: #fff;
|
|
|
|
+}
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
width: 30%;
|
|
width: 30%;
|
|
text-align: center;
|
|
text-align: center;
|