|
@@ -468,7 +468,7 @@
|
|
grossWeight: 0,
|
|
grossWeight: 0,
|
|
tare: 0,
|
|
tare: 0,
|
|
grade:'',
|
|
grade:'',
|
|
- inOutDate: new Date().toISOString().slice(0, 10),
|
|
|
|
|
|
+ // inOutDate: new Date().toISOString().slice(0, 10),
|
|
netWeight:0,
|
|
netWeight:0,
|
|
pureWeight:0,
|
|
pureWeight:0,
|
|
deductionWeight:0,
|
|
deductionWeight:0,
|
|
@@ -491,7 +491,7 @@
|
|
boxNoOther:'',
|
|
boxNoOther:'',
|
|
titleNo:'',
|
|
titleNo:'',
|
|
titleNoOther:'',
|
|
titleNoOther:'',
|
|
- statusFlag:0
|
|
|
|
|
|
+ statusFlag:1
|
|
},
|
|
},
|
|
typeList: ['潮粮', '干粮'],
|
|
typeList: ['潮粮', '干粮'],
|
|
managementType: '',
|
|
managementType: '',
|
|
@@ -829,7 +829,10 @@
|
|
|
|
|
|
if(this.gridList.contractNo==this.contractNolist[i].contractNo){
|
|
if(this.gridList.contractNo==this.contractNolist[i].contractNo){
|
|
if(this.typevalue==3){
|
|
if(this.typevalue==3){
|
|
- if(this.goodsList.indexOf(this.contractNolist[i].goodsName)!=-1){
|
|
|
|
|
|
+ var gooddata=this.goodsList.filter((item)=>{
|
|
|
|
+ return item.goodsName==this.contractNolist[i].goodsName
|
|
|
|
+ })
|
|
|
|
+ if(gooddata.length>0){
|
|
// 收购入库
|
|
// 收购入库
|
|
for (let q = 0; q < this.goodsList.length; q++) {
|
|
for (let q = 0; q < this.goodsList.length; q++) {
|
|
if(this.goodsList[q].goodsName==this.contractNolist[i].goodsName){
|
|
if(this.goodsList[q].goodsName==this.contractNolist[i].goodsName){
|
|
@@ -1098,7 +1101,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(this.utils.getCurrectRoles('acquisitionQuality.initial')){
|
|
if(this.utils.getCurrectRoles('acquisitionQuality.initial')){
|
|
- this.gridList.statusFlag=0
|
|
|
|
|
|
+
|
|
// if (!this.gridList.qualityNo) {
|
|
// if (!this.gridList.qualityNo) {
|
|
// this.$api.msg('编号不能为空')
|
|
// this.$api.msg('编号不能为空')
|
|
// return
|
|
// return
|
|
@@ -1162,9 +1165,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(this.utils.getCurrectRoles('acquisitionQuality.qview')){
|
|
if(this.utils.getCurrectRoles('acquisitionQuality.qview')){
|
|
- if(!this.utils.getCurrectRoles('acquisitionQuality.initial')){
|
|
|
|
- this.gridList.statusFlag=7
|
|
|
|
- }
|
|
|
|
if(this.typevalue==3){
|
|
if(this.typevalue==3){
|
|
if (!this.gridList.customerName) {
|
|
if (!this.gridList.customerName) {
|
|
this.$api.msg('客户不能为空')
|
|
this.$api.msg('客户不能为空')
|
|
@@ -1251,6 +1251,13 @@
|
|
'/warehouseInOutInfo/InOutWarehouse',
|
|
'/warehouseInOutInfo/InOutWarehouse',
|
|
that.gridList)
|
|
that.gridList)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+ if(that.utils.getCurrectRoles('acquisitionQuality.qview')){
|
|
|
|
+ if(!that.utils.getCurrectRoles('acquisitionQuality.initial')){
|
|
|
|
+ that.gridList.statusFlag=7
|
|
|
|
+ }else{
|
|
|
|
+ that.gridList.statusFlag=0
|
|
|
|
+ }
|
|
|
|
+ }
|
|
that.gridList.warehouseInOutId=res.data.data
|
|
that.gridList.warehouseInOutId=res.data.data
|
|
that.$api.doRequest('post',
|
|
that.$api.doRequest('post',
|
|
'/qualityInspectionManagement/api/addQualityInspection',
|
|
'/qualityInspectionManagement/api/addQualityInspection',
|
|
@@ -1284,6 +1291,7 @@
|
|
'/warehouseInOutInfo/InOutWarehouse',
|
|
'/warehouseInOutInfo/InOutWarehouse',
|
|
that.gridList)
|
|
that.gridList)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+
|
|
that.gridList.warehouseInOutId=res.data.data
|
|
that.gridList.warehouseInOutId=res.data.data
|
|
that.$api.doRequest('post',
|
|
that.$api.doRequest('post',
|
|
'/qualityInspectionManagement/api/addQualityInspection',
|
|
'/qualityInspectionManagement/api/addQualityInspection',
|
|
@@ -1321,7 +1329,7 @@
|
|
this.waterContentChange()
|
|
this.waterContentChange()
|
|
},
|
|
},
|
|
setGoodName(e,status) {
|
|
setGoodName(e,status) {
|
|
- console.log(this.goodsList[e[0]].goodsName,111111111)
|
|
|
|
|
|
+ // console.log(this.goodsList[e[0]].goodsName,111111111)
|
|
//
|
|
//
|
|
// [e[0]] = 0
|
|
// [e[0]] = 0
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|