|
@@ -212,7 +212,7 @@
|
|
username: "请更改昵称",
|
|
username: "请更改昵称",
|
|
gridList: {
|
|
gridList: {
|
|
natureOfGrainPurchase: '贸易粮',
|
|
natureOfGrainPurchase: '贸易粮',
|
|
- type: '潮粮',
|
|
|
|
|
|
+ type: '',
|
|
tidalGrainPrice: '',
|
|
tidalGrainPrice: '',
|
|
dryGrainPrice: '',
|
|
dryGrainPrice: '',
|
|
buckleMiscellaneous: '',
|
|
buckleMiscellaneous: '',
|
|
@@ -277,7 +277,6 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
-
|
|
|
|
this.commonWarehouseNo = options.commonWarehouseNo
|
|
this.commonWarehouseNo = options.commonWarehouseNo
|
|
this.warehouseCount = Number(options.warehouseCount) + 1
|
|
this.warehouseCount = Number(options.warehouseCount) + 1
|
|
let number = '000' + this.warehouseCount
|
|
let number = '000' + this.warehouseCount
|
|
@@ -285,16 +284,19 @@
|
|
this.gridList.warehouseName = options.warehouseName
|
|
this.gridList.warehouseName = options.warehouseName
|
|
this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
|
|
this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
|
|
this.cangid = options.cangid
|
|
this.cangid = options.cangid
|
|
- this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
|
|
|
|
- warehouseId: this.cangid
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data.data) {
|
|
|
|
|
|
+ // this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
|
|
|
|
+ // warehouseId: this.cangid
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // if (res.data.data) {
|
|
|
|
+ // this.setGoodName([0])
|
|
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
this.managementType = options.managementType
|
|
this.managementType = options.managementType
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
+
|
|
|
|
+ let that = this
|
|
this.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
this.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
if (uni.getStorageSync('checkcustomer')) {
|
|
if (uni.getStorageSync('checkcustomer')) {
|
|
|
|
|
|
@@ -302,10 +304,10 @@
|
|
if (_customerInfo.shipperName) {
|
|
if (_customerInfo.shipperName) {
|
|
//点击登记客户
|
|
//点击登记客户
|
|
this.gridList.customerName = _customerInfo.shipperName
|
|
this.gridList.customerName = _customerInfo.shipperName
|
|
- this.gridList.customerPhone =_customerInfo.shipperPhone
|
|
|
|
|
|
+ this.gridList.customerPhone = _customerInfo.shipperPhone
|
|
} else {
|
|
} else {
|
|
//点击搜索客户
|
|
//点击搜索客户
|
|
- this.gridList.customerName =_customerInfo.customerName
|
|
|
|
|
|
+ this.gridList.customerName = _customerInfo.customerName
|
|
this.gridList.customerPhone = _customerInfo.customerPhone
|
|
this.gridList.customerPhone = _customerInfo.customerPhone
|
|
}
|
|
}
|
|
|
|
|
|
@@ -313,7 +315,6 @@
|
|
}
|
|
}
|
|
this.gridList.grade = this.gradeList[0].value
|
|
this.gridList.grade = this.gradeList[0].value
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
this.gridList.gradeKey = this.gradeList[0].key
|
|
- var that = this
|
|
|
|
this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
|
|
this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
|
|
compId: '',
|
|
compId: '',
|
|
authenticationStatusKey: 7
|
|
authenticationStatusKey: 7
|
|
@@ -335,6 +336,15 @@
|
|
that.goodsList = res.data.data
|
|
that.goodsList = res.data.data
|
|
if (that.goodsList.length > 0) {
|
|
if (that.goodsList.length > 0) {
|
|
that.gridList.goodsName = that.goodsList[0].goodsName
|
|
that.gridList.goodsName = that.goodsList[0].goodsName
|
|
|
|
+ if (that.goodsList[0].goodsName == '玉米') {
|
|
|
|
+ that.gridList.type = '干粮'
|
|
|
|
+ that.edit = true
|
|
|
|
+ } else if (that.goodsList[0].goodsName == '玉米(潮粮)') {
|
|
|
|
+ that.gridList.type = '潮粮'
|
|
|
|
+ that.edit = true
|
|
|
|
+ } else {
|
|
|
|
+ that.edit = false
|
|
|
|
+ }
|
|
uni.setStorageSync('purchasePriceList', that.goodsList)
|
|
uni.setStorageSync('purchasePriceList', that.goodsList)
|
|
that.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
that.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
that.waterContentChange()
|
|
that.waterContentChange()
|
|
@@ -354,21 +364,21 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- confirmInfo(){
|
|
|
|
- this.isShowAlert = true
|
|
|
|
- },
|
|
|
|
- alertBtn() {
|
|
|
|
- // this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
|
|
|
|
- // warehouseId: this.cangid,
|
|
|
|
- // goodsName: this.gridList.goodsName
|
|
|
|
- // }).then(res => {
|
|
|
|
- // if(res.data.code=="200"){
|
|
|
|
- // this.$api.msg('提交成功!')
|
|
|
|
- // }else{
|
|
|
|
- // this.$api.msg('提交失败')
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- },
|
|
|
|
|
|
+ // confirmInfo() {
|
|
|
|
+ // this.isShowAlert = true
|
|
|
|
+ // },
|
|
|
|
+ // alertBtn() {
|
|
|
|
+ // this.$api.doRequest('get', '/qualityInspectionManagement/api/editQualityInspection', {
|
|
|
|
+ // id: this.id,
|
|
|
|
+ // flag:2
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // if(res.data.code=="200"){
|
|
|
|
+ // this.$api.msg('提交成功!')
|
|
|
|
+ // }else{
|
|
|
|
+ // this.$api.msg('提交失败')
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
cancelClick() {
|
|
cancelClick() {
|
|
this.isShowAlert = false
|
|
this.isShowAlert = false
|
|
},
|
|
},
|
|
@@ -581,8 +591,8 @@
|
|
this.gridList.gradeKey = this.gradeList[e[0]].key
|
|
this.gridList.gradeKey = this.gradeList[e[0]].key
|
|
this.waterContentChange()
|
|
this.waterContentChange()
|
|
},
|
|
},
|
|
- goodspicker(e) {
|
|
|
|
- console.log(e)
|
|
|
|
|
|
+ setGoodName(e) {
|
|
|
|
+ // [e[0]] = 0
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|
|
if (this.goodsList[e[0]].goodsName == '玉米') {
|
|
if (this.goodsList[e[0]].goodsName == '玉米') {
|
|
this.gridList.type = '干粮'
|
|
this.gridList.type = '干粮'
|
|
@@ -600,11 +610,16 @@
|
|
warehouseId: this.cangid,
|
|
warehouseId: this.cangid,
|
|
goodsName: this.gridList.goodsName
|
|
goodsName: this.gridList.goodsName
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- that.gridList.dryGrainPrice = res.data.data
|
|
|
|
|
|
+ this.gridList.dryGrainPrice = res.data.data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.waterContentChange()
|
|
this.waterContentChange()
|
|
},
|
|
},
|
|
|
|
+ goodspicker(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ this.setGoodName(e)
|
|
|
|
+
|
|
|
|
+ },
|
|
typepicker(e) {
|
|
typepicker(e) {
|
|
var that = this
|
|
var that = this
|
|
this.gridList.type = this.typeList[e[0]]
|
|
this.gridList.type = this.typeList[e[0]]
|
|
@@ -794,7 +809,7 @@
|
|
.button {
|
|
.button {
|
|
background: #22C572;
|
|
background: #22C572;
|
|
width: 90%;
|
|
width: 90%;
|
|
- margin: 0 auto;
|
|
|
|
|
|
+ margin: 20rpx auto;
|
|
padding: 10px;
|
|
padding: 10px;
|
|
color: #fff;
|
|
color: #fff;
|
|
text-align: center;
|
|
text-align: center;
|