|
@@ -531,6 +531,8 @@
|
|
|
this.cangid = options.cangid
|
|
|
this.warehouseName=options.warehouseName
|
|
|
this.managementType = options.managementType
|
|
|
+
|
|
|
+ this.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
|
console.log(this.flag)
|
|
|
var that = this
|
|
|
this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
|
|
@@ -588,8 +590,14 @@
|
|
|
warehouseId: this.cangid
|
|
|
}).then(res => {
|
|
|
if (res.data.data) {
|
|
|
- this.goodsList = res.data.data
|
|
|
+ that.goodsList = res.data.data
|
|
|
+ if (that.goodsList.length > 0) {
|
|
|
+ that.gridList.goodsName = that.goodsList[0].goodsName
|
|
|
+ uni.setStorageSync('purchasePriceList', that.goodsList)
|
|
|
+ that.purchasePriceList = uni.getStorageSync('purchasePriceList')
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
})
|
|
|
this.gridList.grade = this.gradeList[0].value
|
|
|
this.gridList.gradeKey = this.gradeList[0].key
|