Commit dd59d706 by lichengming

修改了样品管理

parent 92e66bbe
...@@ -4,13 +4,6 @@ ...@@ -4,13 +4,6 @@
<p slot="header">{{modalTitle}}</p> <p slot="header">{{modalTitle}}</p>
<div> <div>
<Form id="edit-form" ref="formObj" :model="formObj" :rules="ruleValidate" :label-width="100" inline> <Form id="edit-form" ref="formObj" :model="formObj" :rules="ruleValidate" :label-width="100" inline>
<Form-item label="库房号" prop="storehouse" style="width: 100%">
<Input v-model="formObj.storehouse" name="storehouse" style="width: 95%;" placeholder="请输入库房号"/>
<span @click="_storageModel()" style="font-size: 20px;color: #00b5ec">+</span>
</Form-item>
<Form-item label="架位号" prop="shelfCode" style="width: 100%">
<Input v-model="formObj.shelfCode" name="shelfCode" placeholder="请输入架位号"/>
</Form-item>
<Form-item label="出库人" prop="outStocker" style="width: 100%"> <Form-item label="出库人" prop="outStocker" style="width: 100%">
<Input v-model="formObj.outStocker" @click.native="_selectStaff" name="outStocker" readonly/> <Input v-model="formObj.outStocker" @click.native="_selectStaff" name="outStocker" readonly/>
</Form-item> </Form-item>
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
<!--组件加载--> <!--组件加载-->
<ViewSample ref="viewSample"></ViewSample> <ViewSample ref="viewSample"></ViewSample>
<ViewDetail ref="viewDetail"></ViewDetail> <ViewDetail ref="viewDetail"></ViewDetail>
<Outstock ref="outStockModal" @on-result-change="_page"></Outstock>
<FileManage ref="FileManage" @on-result-change="_page"></FileManage> <FileManage ref="FileManage" @on-result-change="_page"></FileManage>
<BatchModal ref="batchModal" @on-result-change="_page"></BatchModal> <BatchModal ref="batchModal" @on-result-change="_page"></BatchModal>
<stockSampleEdit ref="editModal" @on-result-change="_page"></stockSampleEdit> <stockSampleEdit ref="editModal" @on-result-change="_page"></stockSampleEdit>
...@@ -73,6 +74,7 @@ ...@@ -73,6 +74,7 @@
<script> <script>
import { soilEntrust, soilSample } from '../../../api' import { soilEntrust, soilSample } from '../../../api'
import ViewDetail from '../../soil-alone-sample/ViewDetail' import ViewDetail from '../../soil-alone-sample/ViewDetail'
import Outstock from '../soil-alone-sample-outstock/Outstock'
import ViewSample from './ViewLocationEntrust' import ViewSample from './ViewLocationEntrust'
import stockSampleEdit from './stockSampleEdit' import stockSampleEdit from './stockSampleEdit'
import BatchModal from './BatchModal' import BatchModal from './BatchModal'
...@@ -81,7 +83,8 @@ export default { ...@@ -81,7 +83,8 @@ export default {
stockSampleEdit, stockSampleEdit,
ViewSample, ViewSample,
ViewDetail, ViewDetail,
BatchModal BatchModal,
Outstock
}, },
data() { data() {
return { return {
...@@ -156,6 +159,9 @@ export default { ...@@ -156,6 +159,9 @@ export default {
this._editModal(false) this._editModal(false)
}) })
break break
case '出库':
this._outstock()
break
case '批量填写': case '批量填写':
this._bathChange() this._bathChange()
break break
...@@ -176,6 +182,13 @@ export default { ...@@ -176,6 +182,13 @@ export default {
break break
} }
}, },
_outstock() {
if (this.selectIds.length === 0) {
this.$Message.warning('请至少选择一条数据')
} else {
this.$refs.outStockModal._open(this.selectIds)
}
},
_bathChange() { _bathChange() {
if (this.selectIds.length === 0) { if (this.selectIds.length === 0) {
this.$Message.warning('请至少选择一条数据') this.$Message.warning('请至少选择一条数据')
......
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