|
|
@@ -35,7 +35,7 @@
|
|
|
<el-form :model="mainForm" :rules="rulesmainForm" label-width="130px" ref="mainForm">
|
|
|
<el-row :gutter="10" class="entrustformcss">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="检测报告" prop="ProjectTypeId">
|
|
|
+ <el-form-item label="检测项目" prop="ProjectTypeId">
|
|
|
<el-select ref="refProjectTypeId" v-model="mainForm.ProjectTypeId" @change="SampleTypeChangeHandler"
|
|
|
style="width:100%" filterable placeholder="请选择">
|
|
|
<el-option v-for="item in projectTypeList" :key="item.id" :label="item.FullName" :value="item.Id"></el-option>
|
|
|
@@ -44,17 +44,17 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item :label="(!tjz)?'委托单号':'报告单号'" prop="EntrustNo">
|
|
|
- <el-input v-model="mainForm.EntrustNo" placeholder="单号" :disabled="mainForm.EntrustNo == ''"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="委托类型" prop="EntrustTypeId">
|
|
|
- <el-select ref="refEntrustType" v-model="mainForm.EntrustTypeId" style="width:100%" placeholder="请选择委托类型">
|
|
|
- <el-option v-for="item in entypeList" :key="item.Id" :label="item.Value" :value="item.Id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-input v-model="mainForm.EntrustNo" placeholder="单号" disabled ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <!--<el-col :span="8">-->
|
|
|
+ <!--<el-form-item label="委托类型" prop="EntrustTypeId">-->
|
|
|
+ <!--<el-select ref="refEntrustType" v-model="mainForm.EntrustTypeId" style="width:100%" placeholder="请选择委托类型">-->
|
|
|
+ <!--<el-option v-for="item in entypeList" :key="item.Id" :label="item.Value" :value="item.Id">-->
|
|
|
+ <!--</el-option>-->
|
|
|
+ <!--</el-select>-->
|
|
|
+ <!--</el-form-item>-->
|
|
|
+ <!--</el-col>-->
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="委托方名称">
|
|
|
@@ -69,7 +69,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="16">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="委托方地址">
|
|
|
<el-input v-model="mainForm.Address" placeholder="委托方地址" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -88,7 +88,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="经办人">
|
|
|
+ <el-form-item label="联系人">
|
|
|
<el-input v-model="mainForm.CustomerPerson" placeholder="委托方经办人"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -108,16 +108,16 @@
|
|
|
placeholder="请选择样品名称" style="width: 100%"></el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="数量/单位" prop="SampleNum">
|
|
|
- <el-input type="SampleNum" placeholder="数量" v-model.number="mainForm.SampleNum" class="input-with-select">
|
|
|
- <el-select ref="reftube" v-model="mainForm.Unit" slot="append" placeholder="单位">
|
|
|
- <el-option v-for="item in sampeunitlist" :label="item.Value" :value="item.Value" :key="item.Value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <!--<el-col :span="8">-->
|
|
|
+ <!--<el-form-item label="数量/单位" prop="SampleNum">-->
|
|
|
+ <!--<el-input type="SampleNum" placeholder="数量" v-model.number="mainForm.SampleNum" class="input-with-select">-->
|
|
|
+ <!--<el-select ref="reftube" v-model="mainForm.Unit" slot="append" placeholder="单位">-->
|
|
|
+ <!--<el-option v-for="item in sampeunitlist" :label="item.Value" :value="item.Value" :key="item.Value">-->
|
|
|
+ <!--</el-option>-->
|
|
|
+ <!--</el-select>-->
|
|
|
+ <!--</el-input>-->
|
|
|
+ <!--</el-form-item>-->
|
|
|
+ <!--</el-col>-->
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="委托时间" prop="EntrustTime">
|
|
|
<el-date-picker style="width: 100%" v-model="mainForm.EntrustTime" type="datetime" placeholder="请选择委托日期">
|
|
|
@@ -161,7 +161,7 @@
|
|
|
<div v-if="mainForm.Id <= 0">
|
|
|
<el-form>
|
|
|
<el-form-item label="到期时间查询:" :label-width="formLabelWidth">
|
|
|
- <el-select v-model="QueryCheckDate" placeholder="请选择到期时间" style="width: 350px" @change="SampleTypeChangeHandler">
|
|
|
+ <el-select v-model="QueryCheckDate" placeholder="请选择到期时间" style="width: 350px" clearable @change="SampleTypeChangeHandler">
|
|
|
<el-option label="近1个月" value="1"></el-option>
|
|
|
<el-option label="近2个月" value="2"></el-option>
|
|
|
<el-option label="近3个月" value="3"></el-option>
|
|
|
@@ -310,12 +310,12 @@
|
|
|
sort: true
|
|
|
},
|
|
|
|
|
|
- {
|
|
|
- prop: 'OrderNo',
|
|
|
- label: '序号',
|
|
|
- width: 100,
|
|
|
- sort: true
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // prop: 'OrderNo',
|
|
|
+ // label: '序号',
|
|
|
+ // width: 100,
|
|
|
+ // sort: true
|
|
|
+ // },
|
|
|
|
|
|
{
|
|
|
prop: 'CustNo',
|
|
|
@@ -672,7 +672,7 @@
|
|
|
_this.mainForm.ProjectTypeId = parseInt(_this.mainForm.ProjectTypeId)
|
|
|
_this.mainForm.ProjectType = _this.$refs.refProjectTypeId.selectedLabel + ''
|
|
|
_this.mainForm.EntrustTypeId = parseInt(_this.mainForm.EntrustTypeId)
|
|
|
- _this.mainForm.EntrustType = _this.$refs.refEntrustType.selectedLabel + ''
|
|
|
+ // _this.mainForm.EntrustType = _this.$refs.refEntrustType.selectedLabel + '' 委托类型
|
|
|
_this.mainForm.DetectSampleId = parseInt(_this.selectedorg[_this.selectedorg.length - 1])
|
|
|
_this.mainForm.DetectSample = _this.getDetectSampleName(_this.mainForm.DetectSampleId)
|
|
|
_this.mainForm.Samplelist = _this.selectedorg.join(',')
|
|
|
@@ -719,7 +719,7 @@
|
|
|
_this.mainForm.ProjectTypeId = parseInt(_this.mainForm.ProjectTypeId)
|
|
|
_this.mainForm.ProjectType = _this.$refs.refProjectTypeId.selectedLabel + ''
|
|
|
_this.mainForm.EntrustTypeId = parseInt(_this.mainForm.EntrustTypeId)
|
|
|
- _this.mainForm.EntrustType = _this.$refs.refEntrustType.selectedLabel + ''
|
|
|
+ // _this.mainForm.EntrustType = _this.$refs.refEntrustType.selectedLabel + '' 委托类型
|
|
|
_this.mainForm.DetectSampleId = parseInt(_this.selectedorg[_this.selectedorg.length - 1])
|
|
|
_this.mainForm.DetectSample = _this.getDetectSampleName(_this.mainForm.DetectSampleId)
|
|
|
_this.mainForm.Samplelist = _this.selectedorg.join(',')
|
|
|
@@ -834,7 +834,7 @@
|
|
|
_this.sampleForm.DetectSampleId = parseInt(_this.sampleForm.DetectSampleId)
|
|
|
_this.sampleForm.DetectSample = _this.getDetectSampleName(_this.sampleForm.DetectSampleId)
|
|
|
_this.sampleForm.EntrustTypeId = parseInt(_this.mainForm.EntrustTypeId)
|
|
|
- _this.sampleForm.EntrustType = _this.$refs.refEntrustType.selectedLabel + ''
|
|
|
+ // _this.sampleForm.EntrustType = _this.$refs.refEntrustType.selectedLabel + '' 委托类型
|
|
|
_this.sampleForm.Unit = _this.sampleForm.Unit
|
|
|
_this.sampleForm.SampleNum = parseFloat(_this.mainForm.SampleNum)
|
|
|
_this.sampleForm.ISsend = parseInt(_this.mainForm.ISsend)
|