Commit 6cb8a7fa by zhuxiaomei

储存条件

parent bc3f81e8
...@@ -849,7 +849,7 @@ ...@@ -849,7 +849,7 @@
inward: '', inward: '',
originPlace: '', originPlace: '',
packClass: '', packClass: '',
storageCondition: [], storageCondition: '',
storageConditionRemark: '' storageConditionRemark: ''
}, },
taskTypeList: ['监督抽检', '风险监测', '评价性抽检'], taskTypeList: ['监督抽检', '风险监测', '评价性抽检'],
...@@ -915,15 +915,18 @@ ...@@ -915,15 +915,18 @@
this.formObj[key] = result[key] this.formObj[key] = result[key]
} }
} }
for (let key in this.netTested) { for (let key in this.nonNetTested) {
if (result.netTested[key]) { if (result.nonNetTested[key]) {
this.netTested[key] = result.netTested[key] this.nonNetTested[key] = result.nonNetTested[key]
} }
} }
for (let key in this.sample) { for (let key in this.sample) {
if (result.sample[key]) { if (result.sample[key]) {
if (key === 'sampleDate') { if (key === 'sampleDate') {
this.sample[key] = result.sample[key] ? this.$dateformat(result.sample[key], 'yyyy-mm-dd') : '' this.sample[key] = result.sample[key] ? this.$dateformat(result.sample[key], 'yyyy-mm-dd') : ''
}else if(key==='storageCondition'){
this.storageCondition = result.sample[key].split(',')
this.sample[key] = result.sample[key]
} else { } else {
this.sample[key] = result.sample[key] this.sample[key] = result.sample[key]
} }
......
...@@ -902,7 +902,10 @@ ...@@ -902,7 +902,10 @@
if (result.sample[key]) { if (result.sample[key]) {
if (key === 'sampleDate') { if (key === 'sampleDate') {
this.sample[key] = result.sample[key] ? this.$dateformat(result.sample[key], 'yyyy-mm-dd') : '' this.sample[key] = result.sample[key] ? this.$dateformat(result.sample[key], 'yyyy-mm-dd') : ''
} else { }else if(key==='storageCondition'){
this.storageCondition = result.sample[key].split(',')
this.sample[key] = result.sample[key]
} else {
this.sample[key] = result.sample[key] this.sample[key] = result.sample[key]
} }
} }
......
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
</van-list> </van-list>
</van-pull-refresh> </van-pull-refresh>
</div> </div>
<div class="bottom-btn"> <div class="bottom-btn bottom-btn-two" >
<van-button type="info" block @click="_goto('/sampling_list/file_upload')">添加附件</van-button> <!--<van-button type="info" block @click="_goto('/sampling_list/file_upload')">添加附件</van-button>-->
<!--<van-button type="primary" square @click="_uploadImg">添加图片</van-button>--> <van-button type="info" square @click="_goto('/sampling_list/file_upload')">添加附件</van-button>
<van-button type="primary" square @click="_uploadImg">添加图片</van-button>
</div> </div>
<van-image-preview v-model="showImg" :images="imgList"> <van-image-preview v-model="showImg" :images="imgList">
<!--<template #:index>第{{ index }}页</template>--> <!--<template #:index>第{{ index }}页</template>-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment