|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<a-modal
|
|
|
- title="存货列表"
|
|
|
- width="60%"
|
|
|
+ title="料品列表"
|
|
|
+ width="80%"
|
|
|
:visible="visible"
|
|
|
:maskClosable="false"
|
|
|
switchFullscreen
|
|
@@ -14,7 +14,7 @@
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="8" :sm="24">
|
|
|
<a-form-item label="分类名称">
|
|
|
- <a-input placeholder="请输入" v-model="queryParam.className" ></a-input>
|
|
|
+ <a-input-search placeholder="请输入" v-model="queryParam.classifyName" @search="searchClassName"></a-input-search>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="8" :sm="24">
|
|
@@ -66,6 +66,7 @@
|
|
|
</a-table>
|
|
|
</a-form-model>
|
|
|
</a-card >
|
|
|
+ <ClassNamePopup ref="ClassNamePopup" @okData="okData" ></ClassNamePopup>
|
|
|
</a-modal>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -74,10 +75,12 @@
|
|
|
import { JEditableTableModelMixin } from '@/mixins/JEditableTableModelMixin'
|
|
|
import moment from "moment"
|
|
|
import { httpAction ,getAction,postAction,putAction} from '@/api/manage'
|
|
|
+ import ClassNamePopup from './ClassNamePopup.vue'
|
|
|
export default {
|
|
|
name: 'inventoryPopup',
|
|
|
mixins: [JEditableTableModelMixin],
|
|
|
components: {
|
|
|
+ ClassNamePopup
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -115,17 +118,23 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '存货名称',
|
|
|
+ title: '料品名称',
|
|
|
align:"center",
|
|
|
dataIndex: 'Name',
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
- title: '存货编码',
|
|
|
+ title: '料品编码',
|
|
|
align:"center",
|
|
|
dataIndex: 'Code',
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '料品分类',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'className',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
{
|
|
|
title: '规格',
|
|
|
align:"center",
|
|
@@ -197,6 +206,13 @@
|
|
|
this.queryParam.code = ''
|
|
|
this.getData(this.queryParam.Org)
|
|
|
},
|
|
|
+ searchClassName(){
|
|
|
+ this.$refs.ClassNamePopup.visible = true
|
|
|
+ this.$refs.ClassNamePopup.getData()
|
|
|
+ },
|
|
|
+ okData(data){
|
|
|
+ this.$set(this.queryParam,'classifyName',data.name)
|
|
|
+ },
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
|
this.queryParam.pageNo = pagination.current
|
|
|
this.queryParam.pageSize = pagination.pageSize
|