|
@@ -5,6 +5,7 @@
|
|
|
<!-- <div slot="header" class="clearfix"> -->
|
|
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
|
<el-breadcrumb-item>首页</el-breadcrumb-item>
|
|
|
+ <!-- <el-breadcrumb-item :to="{ path: '/jc/setTaskcd'}">例行检测</el-breadcrumb-item> -->
|
|
|
<!-- <el-breadcrumb-item>承担单位</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item :to="{ path: '/jc/routineMonitor' }">例行检测</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>执行任务</el-breadcrumb-item>
|
|
@@ -22,7 +23,7 @@
|
|
|
<el-option v-for="item in sampleList"
|
|
|
:key="item.product_id"
|
|
|
:label="item.product_name"
|
|
|
- :value="item.product_name">
|
|
|
+ :value="item.product_id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<!-- </el-col> -->
|
|
@@ -175,7 +176,7 @@
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="被抽检单位签字盖章附件" prop="cyd_data.file_url" class="labelItem" style="" size="mini">
|
|
|
<el-upload class="upload-demo" :file-list="fileList" drag :headers="myHeaders"
|
|
|
- action="http://new.syjc.com/api/v1/ossUpload" :on-success="uploadSuccess" :limit="1">
|
|
|
+ action="http://syjcapi.aielab.net/api/v1/ossUpload" :on-success="uploadSuccess" :limit="1">
|
|
|
<i class="el-icon-upload"></i>
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
</el-upload>
|
|
@@ -184,7 +185,7 @@
|
|
|
<!-- 底部按钮 -->
|
|
|
<el-form>
|
|
|
<el-form-item class="btn">
|
|
|
- <el-button type="primary" @click="back">返回抽样列表</el-button>
|
|
|
+ <el-button type="primary" @click="back()">返回抽样列表</el-button>
|
|
|
<el-button @click="resetForm()">重置</el-button>
|
|
|
<el-button @click="onSubmit">保存,继续添加</el-button>
|
|
|
</el-form-item>
|
|
@@ -234,7 +235,7 @@
|
|
|
this.task_id = this.$route.params.task_id
|
|
|
this.undertake_id = this.$route.params.under_id
|
|
|
console.log(this.task_id)
|
|
|
- console.log(this.under_id)
|
|
|
+ console.log(this.undertake_id)
|
|
|
this.getTestObj()
|
|
|
},
|
|
|
methods: {
|
|
@@ -246,7 +247,7 @@
|
|
|
undertake_id: this.undertake_id
|
|
|
})
|
|
|
if (result.data.code == 0) {
|
|
|
- this.sampleList = result.data.data
|
|
|
+ this.sampleList = result.data.data.list
|
|
|
}
|
|
|
},
|
|
|
// 生成样品编码
|
|
@@ -311,10 +312,11 @@
|
|
|
// 返回
|
|
|
back() {
|
|
|
var that = this
|
|
|
+ console.log(that.task_id)
|
|
|
this.$router.push({
|
|
|
name: 'setTaskcd',
|
|
|
params: {
|
|
|
- task_id: that.task_id
|
|
|
+ id: that.task_id
|
|
|
}
|
|
|
})
|
|
|
}
|