|  | @@ -27,7 +27,7 @@
 | 
	
		
			
				|  |  |                  <el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="form[item.prop]" size="small" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss"/>
 | 
	
		
			
				|  |  |                  <span v-else-if="item.type === 'select'">
 | 
	
		
			
				|  |  |                    <el-select v-model="form[item.prop]" slot="prepend" style="width: 100%;" size="small" placeholder="请选择">
 | 
	
		
			
				|  |  | -                    <el-option v-for="item in item.dicData" :label="item.label" :value="item.value"></el-option>
 | 
	
		
			
				|  |  | +                    <el-option v-for="(item,index) in item.dicData" :label="item.label" :value="item.value" :key="index"></el-option>
 | 
	
		
			
				|  |  |                    </el-select>
 | 
	
		
			
				|  |  |                  </span>
 | 
	
		
			
				|  |  |                  <selectComponent v-else-if="item.prop === 'corps'" v-model="form[item.prop]"
 | 
	
	
		
			
				|  | @@ -207,6 +207,9 @@ import goodsOption from "./configuration/commodity.json";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "detailsPage",
 | 
	
		
			
				|  |  | +  props:{
 | 
	
		
			
				|  |  | +    detailData:Object
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        configuration: {
 | 
	
	
		
			
				|  | @@ -364,8 +367,8 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    //初始化查询
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  | -    if (this.$route.query.id) {
 | 
	
		
			
				|  |  | -      detail(JSON.parse(this.$route.query.id)).then(res =>{
 | 
	
		
			
				|  |  | +    if (this.detailData.id) {
 | 
	
		
			
				|  |  | +      detail(JSON.parse(this.detailData.id)).then(res =>{
 | 
	
		
			
				|  |  |          this.form = res.data.data
 | 
	
		
			
				|  |  |          if (this.form.corpNameList) {
 | 
	
		
			
				|  |  |            this.configuration.dicData = this.form.corpNameList
 | 
	
	
		
			
				|  | @@ -384,7 +387,7 @@ export default {
 | 
	
		
			
				|  |  |    watch: {
 | 
	
		
			
				|  |  |      '$route'(to, from) {
 | 
	
		
			
				|  |  |        console.log(to, from);
 | 
	
		
			
				|  |  | -      if (this.$route.query.id) {
 | 
	
		
			
				|  |  | +      if (this.detailData.id) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          this.form = {}
 |