|
@@ -73,7 +73,7 @@
|
|
|
<el-form-item label="样品类型(一)">
|
|
<el-form-item label="样品类型(一)">
|
|
|
<!-- <el-input v-model="item.yang_pin_lei_xing " ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_lei_xing " ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_lei_xing" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_lei_xing" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTypes"
|
|
v-for="item in sampleTypes"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -90,7 +90,7 @@
|
|
|
<el-form-item label="样品运输条件(一)">
|
|
<el-form-item label="样品运输条件(一)">
|
|
|
<!-- <el-input v-model="item.yang_ben_yun_shu_" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_ben_yun_shu_" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_ben_yun_shu_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_ben_yun_shu_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTransportationConditions"
|
|
v-for="item in sampleTransportationConditions"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -105,7 +105,7 @@
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品数量(一)">
|
|
<el-form-item label="样品数量(一)">
|
|
|
- <el-input v-model="item.shu_liang_"></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="item.shu_liang_" @change="changeShuLiang(index)"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
@@ -113,7 +113,7 @@
|
|
|
<el-form-item label="样品规格(一)">
|
|
<el-form-item label="样品规格(一)">
|
|
|
<!-- <el-input v-model="item.yang_pin_gui_ge_"></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_gui_ge_"></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_gui_ge_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_gui_ge_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleSpecifications"
|
|
v-for="item in sampleSpecifications"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -157,7 +157,7 @@
|
|
|
<el-form-item label="样品类型(二)" >
|
|
<el-form-item label="样品类型(二)" >
|
|
|
<!-- <el-input v-model="item.yang_pin_lei_er_" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_lei_er_" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_lei_er_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_lei_er_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTypes"
|
|
v-for="item in sampleTypes"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -173,7 +173,7 @@
|
|
|
<el-form-item label="样品运输条件(二)">
|
|
<el-form-item label="样品运输条件(二)">
|
|
|
<!-- <el-input v-model="item.yang_pin_yun_shu_" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_yun_shu_" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_yun_shu_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_yun_shu_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTransportationConditions"
|
|
v-for="item in sampleTransportationConditions"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -187,14 +187,14 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品数量(二)" >
|
|
<el-form-item label="样品数量(二)" >
|
|
|
- <el-input v-model="item.shu_liang_er_" ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="item.shu_liang_er_" @change="changeShuLiang(index)"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品规格(二)">
|
|
<el-form-item label="样品规格(二)">
|
|
|
<!-- <el-input v-model="item.yang_pin_gui_ge_e" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_gui_ge_e" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_gui_ge_e" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_gui_ge_e" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleSpecifications"
|
|
v-for="item in sampleSpecifications"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -237,7 +237,7 @@
|
|
|
<el-form-item label="样品类型(三)" >
|
|
<el-form-item label="样品类型(三)" >
|
|
|
<!-- <el-input v-model="item.yang_pin_lei_san_" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_lei_san_" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_lei_san_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_lei_san_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTypes"
|
|
v-for="item in sampleTypes"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -253,7 +253,7 @@
|
|
|
<el-form-item label="样品运输条件(三)">
|
|
<el-form-item label="样品运输条件(三)">
|
|
|
<!-- <el-input v-model="item.yang_pin_yun_san" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_yun_san" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_yun_san" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_yun_san" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTransportationConditions"
|
|
v-for="item in sampleTransportationConditions"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -267,14 +267,14 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品数量(三)">
|
|
<el-form-item label="样品数量(三)">
|
|
|
- <el-input v-model="item.shu_liang_san_" ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="item.shu_liang_san_" @change="changeShuLiang(index)"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品规格(三)">
|
|
<el-form-item label="样品规格(三)">
|
|
|
<!-- <el-input v-model="item.yang_pin_gui_ge_s" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_gui_ge_s" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_gui_ge_s" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_gui_ge_s" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleSpecifications"
|
|
v-for="item in sampleSpecifications"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -317,7 +317,7 @@
|
|
|
<el-form-item label="样品类型(四)">
|
|
<el-form-item label="样品类型(四)">
|
|
|
<!-- <el-input v-model="item.yang_pin_lei_si_" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_lei_si_" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_lei_si_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_lei_si_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTypes"
|
|
v-for="item in sampleTypes"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -333,7 +333,7 @@
|
|
|
<el-form-item label="样品运输条件(四)">
|
|
<el-form-item label="样品运输条件(四)">
|
|
|
<!-- <el-input v-model="item.yang_pin_yun_si_" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_yun_si_" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_yun_si_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_yun_si_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleTransportationConditions"
|
|
v-for="item in sampleTransportationConditions"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -347,14 +347,14 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品数量(四)">
|
|
<el-form-item label="样品数量(四)">
|
|
|
- <el-input v-model="item.shu_liang_si_" ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="item.shu_liang_si_" @change="changeShuLiang(index)"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="样品规格(四)">
|
|
<el-form-item label="样品规格(四)">
|
|
|
<!-- <el-input v-model="item.yang_pin_gui_si_" ></el-input> -->
|
|
<!-- <el-input v-model="item.yang_pin_gui_si_" ></el-input> -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="item.yang_pin_gui_si_" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="item.yang_pin_gui_si_" placeholder="请选择" filterable allow-create>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sampleSpecifications"
|
|
v-for="item in sampleSpecifications"
|
|
|
:key = "item.value"
|
|
:key = "item.value"
|
|
@@ -787,6 +787,12 @@ import * as dayjs from 'dayjs'
|
|
|
this.listData[index].xiao_hui_ri_qi_ = itemData
|
|
this.listData[index].xiao_hui_ri_qi_ = itemData
|
|
|
this.listData[index].liu_yang_qi_xian = val
|
|
this.listData[index].liu_yang_qi_xian = val
|
|
|
this.flag = true
|
|
this.flag = true
|
|
|
|
|
+ },
|
|
|
|
|
+ changeShuLiang(index){
|
|
|
|
|
+ let item = this.listData[index]
|
|
|
|
|
+ let total = parseInt(item.shu_liang_ || 0) + parseInt(item.shu_liang_er_ || 0) + parseInt(item.shu_liang_san_ || 0) + parseInt(item.shu_liang_si_ || 0)
|
|
|
|
|
+ item.yang_pin_zong_shu = total
|
|
|
|
|
+ item.jie_yang_shu_lian = total
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|