Commit 1ff2b1de by lichengming

修改了出库历史记录出库回撤按钮

parent 05790c15
...@@ -6,21 +6,21 @@ ...@@ -6,21 +6,21 @@
<Row> <Row>
<!--查询--> <!--查询-->
<Col span="24" style="margin-top: 10px"> <Col span="24" style="margin-top: 10px">
<Form v-show="searchOpen" id="formId" :label-width="90" inline onsubmit="return false"> <Form id="formId" v-show="searchOpen" :label-width="90" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item class="search-item" label="项目名称:"> <Form-item class="search-item" label="项目名称:">
<Input v-model="formObj.projectName" name="projectName" placeholder="请输入项目名称" clearable @on-enter="_formSearch"/> <Input v-model="formObj.projectName" @on-enter="_formSearch" name="projectName" placeholder="请输入项目名称" clearable/>
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button type="primary" @click="_formSearch">搜索</Button> <Button @click="_formSearch" type="primary">搜索</Button>
</Form-item> </Form-item>
</Form> </Form>
</Col> </Col>
<!--操作--> <!--操作-->
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide" <btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
@on-result-change="_btnClick"></btn-list> class="contHide"></btn-list>
</Col> </Col>
<!--表格--> <!--表格-->
<Col span="24"> <Col span="24">
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<keep-alive> <keep-alive>
<!-- eslint-disable-next-line vue/require-component-is --> <!-- eslint-disable-next-line vue/require-component-is -->
<component :is="currentComponent" ref="refModal" @on-result-change="_componentResult"></component> <component ref="refModal" :is="currentComponent" @on-result-change="_componentResult"></component>
</keep-alive> </keep-alive>
</div> </div>
</template> </template>
...@@ -72,6 +72,11 @@ export default { ...@@ -72,6 +72,11 @@ export default {
], ],
iconMsg: [ iconMsg: [
{ {
type: 'ios-redo',
id: '',
name: '出库撤销'
},
{
type: 'ios-list', type: 'ios-list',
id: '', id: '',
name: '查看' name: '查看'
...@@ -145,6 +150,9 @@ export default { ...@@ -145,6 +150,9 @@ export default {
case '编辑': case '编辑':
this._editModal(true, data.id) this._editModal(true, data.id)
break break
case '出库撤销':
this._outBack(data.id)
break
case '查看': case '查看':
this._viewModal(true, data.id) this._viewModal(true, data.id)
break break
...@@ -172,6 +180,13 @@ export default { ...@@ -172,6 +180,13 @@ export default {
} }
}) })
}, },
_outBack: async function(id) {
const result = await soilSample.outStorageBack({ ids: id })
if (result) {
this.$Message.success('退回成功')
this._page()
}
},
_viewModal(edit, id) { _viewModal(edit, id) {
this.currentComponent = 'ViewDetail' this.currentComponent = 'ViewDetail'
if (edit) { if (edit) {
......
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