|
@@ -1,4 +1,4 @@
|
|
-<!-- <!--收购管理新增-->
|
|
|
|
|
|
+<!-- 收购管理新增-->
|
|
<template>
|
|
<template>
|
|
<el-container class="container">
|
|
<el-container class="container">
|
|
<!-- <div class="type">{{type}}</div> -->
|
|
<!-- <div class="type">{{type}}</div> -->
|
|
@@ -110,7 +110,7 @@
|
|
<div class="right">
|
|
<div class="right">
|
|
<div class="line"></div>
|
|
<div class="line"></div>
|
|
<div class="jt-style"></div>
|
|
<div class="jt-style"></div>
|
|
- <div v-for="(item1, index) in item.detailList">
|
|
|
|
|
|
+ <div v-for="(item1, index) in item.detailList" :key="index">
|
|
<div class="item-style">
|
|
<div class="item-style">
|
|
<div v-if="item1.type != 4" class="item-style-title">
|
|
<div v-if="item1.type != 4" class="item-style-title">
|
|
<span>{{ item1.name }}{{ item1.index }}</span>
|
|
<span>{{ item1.name }}{{ item1.index }}</span>
|
|
@@ -389,7 +389,6 @@ export default {
|
|
// this.isSolidFood = false
|
|
// this.isSolidFood = false
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
// }
|
|
// }
|
|
-
|
|
|
|
// this.isSolidFood = false
|
|
// this.isSolidFood = false
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
this.baseInfoForm.goodsNameKey = response[0].constKey
|
|
this.baseInfoForm.goodsNameKey = response[0].constKey
|
|
@@ -413,7 +412,6 @@ export default {
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
// }
|
|
// }
|
|
this.baseInfoForm.goodsNameKey = _list[0].constKey
|
|
this.baseInfoForm.goodsNameKey = _list[0].constKey
|
|
-
|
|
|
|
// this.isSolidFood = false
|
|
// this.isSolidFood = false
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
}
|
|
}
|
|
@@ -594,16 +592,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
goodsChange(e) {
|
|
goodsChange(e) {
|
|
- if (e == '玉米淀粉' ||
|
|
|
|
- e == '玉米(机收)' ||
|
|
|
|
- e == '玉米(酒精)' ||
|
|
|
|
- e == '玉米(筛漏)' ||
|
|
|
|
- e == '玉米(陈粮)' ||
|
|
|
|
- e == '玉米(棒)' ||
|
|
|
|
- e == '玉米'
|
|
|
|
- ) {
|
|
|
|
- // this.isSolidFood = true //true
|
|
|
|
- this.baseInfoForm = {
|
|
|
|
|
|
+ this.baseInfoForm = {
|
|
//防止填完数据 后切换货名不清空多余数据
|
|
//防止填完数据 后切换货名不清空多余数据
|
|
warehouseId: '',
|
|
warehouseId: '',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
@@ -625,10 +614,20 @@ export default {
|
|
detailPrints: [],
|
|
detailPrints: [],
|
|
paramType: '1',
|
|
paramType: '1',
|
|
}
|
|
}
|
|
|
|
+ if (e == '玉米淀粉' ||
|
|
|
|
+ e == '玉米(机收)' ||
|
|
|
|
+ e == '玉米(酒精)' ||
|
|
|
|
+ e == '玉米(筛漏)' ||
|
|
|
|
+ e == '玉米(陈粮)' ||
|
|
|
|
+ e == '玉米(棒)' ||
|
|
|
|
+ e == '玉米'
|
|
|
|
+ ) {
|
|
this.baseInfoForm.warehouseId = this.$route.query.warehouseId
|
|
this.baseInfoForm.warehouseId = this.$route.query.warehouseId
|
|
this.baseInfoForm.warehouseName = this.$route.query.warehouseName
|
|
this.baseInfoForm.warehouseName = this.$route.query.warehouseName
|
|
this.baseInfoForm.compId = this.$route.query.compId
|
|
this.baseInfoForm.compId = this.$route.query.compId
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
|
|
+ }else{
|
|
|
|
+ this.baseInfoForm.bulkDensityStandard = ""
|
|
}
|
|
}
|
|
for (let num = 0; num < this.goodnameList.length; num++) {
|
|
for (let num = 0; num < this.goodnameList.length; num++) {
|
|
if (e == this.goodnameList[num].constValue) {
|
|
if (e == this.goodnameList[num].constValue) {
|