Commit 378cbb1b by lichengming

修改了余样管理

parent 1f4d8d1e
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<div> <div>
<Form id="storage-location-form" ref="formObj" :model="formObj" :rules="ruleValidate" :label-width="100"> <Form id="storage-location-form" ref="formObj" :model="formObj" :rules="ruleValidate" :label-width="100">
<Form-item label="保存容器:" prop="keepContainer"> <Form-item label="保存容器:" prop="keepContainer">
<Input v-model="formObj.keepContainer" clearable placeholder="请输入保存容器"></Input> <el-select v-model="scope.row.keepContainer" clearable style="width:100%" size="small">
<el-option v-for="item in containerList" :value="item.name" :key="item.name">{{ item.name }}
</el-option>
</el-select>
</Form-item> </Form-item>
<Form-item label="制备数量"> <Form-item label="制备数量">
<Input v-model="formObj.quantity" clearable placeholder="请输入备样数量"></Input> <Input v-model="formObj.quantity" clearable placeholder="请输入备样数量"></Input>
...@@ -40,17 +43,22 @@ export default { ...@@ -40,17 +43,22 @@ export default {
{ id: '', name: '取消', type: '' }, { id: '', name: '取消', type: '' },
{ id: '', name: '保存', type: 'primary' } { id: '', name: '保存', type: 'primary' }
], ],
conditionList: [], containerList: [],
locList: [], locList: [],
backupUserList: [], backupUserList: [],
sampleUnit: '' sampleUnit: ''
} }
}, },
mounted() { mounted() {
this._getConditionList() this._getContainerList()
this._getUserList()
}, },
methods: { methods: {
_getContainerList: async function() {
const result = await soilSample.getDictList('保存容器')
if (result) {
this.containerList = result
}
},
_locChange(msg, data) { _locChange(msg, data) {
switch (msg) { switch (msg) {
case 'select': case 'select':
......
...@@ -54,12 +54,6 @@ ...@@ -54,12 +54,6 @@
<el-input v-model="scope.row.quantity" placeholder="制备数量"></el-input> <el-input v-model="scope.row.quantity" placeholder="制备数量"></el-input>
</div> </div>
</div> </div>
<div v-else-if="item.key==='quantity'">
<div v-if="editIndex!==scope.rowIndex">{{scope.row[item.key]}}</div>
<div v-else>
<el-input v-model="scope.row.quantity" placeholder="制备数量"></el-input>
</div>
</div>
<div v-else-if="item.key==='keepLocation'"> <div v-else-if="item.key==='keepLocation'">
<div v-if="editIndex!==scope.rowIndex">{{scope.row[item.key]}}</div> <div v-if="editIndex!==scope.rowIndex">{{scope.row[item.key]}}</div>
<div v-else> <div v-else>
......
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