|
@@ -140,7 +140,8 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
|
- purchasePriceAdd
|
|
|
+ purchasePriceAdd,
|
|
|
+ purchasePriceLook
|
|
|
} from '@/model/houseSelfCollect/index'
|
|
|
import {
|
|
|
packList,
|
|
@@ -245,19 +246,20 @@
|
|
|
isEdit: true
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
- let _goodsNameList = []
|
|
|
- this.baseInfoForm.warehouseId = this.$route.query.warehouseId
|
|
|
- this.baseInfoForm.warehouseName = this.$route.query.warehouseName
|
|
|
- this.baseInfoForm.compId = this.$route.query.compId
|
|
|
- this.type = this.$route.query.type
|
|
|
- console.log(this.baseInfoForm)
|
|
|
- _goodsNameList = this.$route.query.goodsNameList
|
|
|
- this.priceList[0].detailList[0].water = this.baseInfoForm.waterMin
|
|
|
- this.priceList[0].detailList[2].water = this.baseInfoForm.waterBase
|
|
|
- this.priceList[0].detailList[4].water = this.baseInfoForm.waterMax
|
|
|
+ activated() {
|
|
|
+debugger
|
|
|
switch (this.$route.query.type) {
|
|
|
case "新增":
|
|
|
+ let _goodsNameList = []
|
|
|
+ this.baseInfoForm.warehouseId = this.$route.query.warehouseId
|
|
|
+ this.baseInfoForm.warehouseName = this.$route.query.warehouseName
|
|
|
+ this.baseInfoForm.compId = this.$route.query.compId
|
|
|
+ this.type = this.$route.query.type
|
|
|
+ console.log(this.baseInfoForm)
|
|
|
+ _goodsNameList = this.$route.query.goodsNameList
|
|
|
+ this.priceList[0].detailList[0].water = this.baseInfoForm.waterMin
|
|
|
+ this.priceList[0].detailList[2].water = this.baseInfoForm.waterBase
|
|
|
+ this.priceList[0].detailList[4].water = this.baseInfoForm.waterMax
|
|
|
// 货名
|
|
|
packList({
|
|
|
constId: 'CON2'
|
|
@@ -284,7 +286,13 @@
|
|
|
case "编辑":
|
|
|
break;
|
|
|
case "查看":
|
|
|
-
|
|
|
+ this.baseInfoForm =JSON.parse(this.$route.query.data)
|
|
|
+ purchasePriceLook({id:this.baseInfoForm.id}).toPromise().then((response) => {
|
|
|
+ debugger
|
|
|
+ console.log(response)
|
|
|
+ // this.tableData = response.records
|
|
|
+ // this.getList()
|
|
|
+ })
|
|
|
break;
|
|
|
default:
|
|
|
break
|
|
@@ -509,7 +517,7 @@
|
|
|
|
|
|
//打印
|
|
|
print() {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
// 提交
|
|
|
submit() {
|