Commit 378cbb1b by lichengming

修改了余样管理

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