|
@@ -3,9 +3,9 @@
|
|
<a-col :md="24">
|
|
<a-col :md="24">
|
|
<a-card :bordered="false">
|
|
<a-card :bordered="false">
|
|
<!-- 查询区域 -->
|
|
<!-- 查询区域 -->
|
|
- <filter-form></filter-form>
|
|
|
|
|
|
+ <!-- <filter-form></filter-form> -->
|
|
<div>
|
|
<div>
|
|
- <a-button type="primary" icon="plus">新增盘点任务</a-button>
|
|
|
|
|
|
+ <a-button type="primary" icon="plus" @click="addTask">新增盘点任务</a-button>
|
|
<a-button>取消盘点</a-button>
|
|
<a-button>取消盘点</a-button>
|
|
<a-button>批量删除</a-button>
|
|
<a-button>批量删除</a-button>
|
|
<a-button>导出任务</a-button>
|
|
<a-button>导出任务</a-button>
|
|
@@ -15,9 +15,9 @@
|
|
size="middle"
|
|
size="middle"
|
|
bordered
|
|
bordered
|
|
rowKey="id"
|
|
rowKey="id"
|
|
- :columns="taskColumns"
|
|
|
|
|
|
+ :columns="columns"
|
|
:dataSource="dataSource"
|
|
:dataSource="dataSource"
|
|
- :components="handleDrag(taskColumns)"
|
|
|
|
|
|
+ :components="handleDrag(columns)"
|
|
:pagination="ipagination"
|
|
:pagination="ipagination"
|
|
:scroll="scroll"
|
|
:scroll="scroll"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
@@ -40,21 +40,80 @@
|
|
</a-table>
|
|
</a-table>
|
|
</a-card>
|
|
</a-card>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <stock-modal
|
|
|
|
+ :stockVisible.sync="stockVisible"
|
|
|
|
+ :form="form"
|
|
|
|
+ :validatorRules="validatorRules"
|
|
|
|
+ ref="stockF"
|
|
|
|
+ ></stock-modal>
|
|
</a-row>
|
|
</a-row>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import FilterForm from './components/FilterForm.vue'
|
|
import FilterForm from './components/FilterForm.vue'
|
|
|
|
+import table from './utils/table'
|
|
|
|
+import StockModal from './components/stockModal.vue'
|
|
|
|
+import { getAction } from '@/api/manage'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- components: { FilterForm },
|
|
|
|
|
|
+ components: { FilterForm, StockModal },
|
|
mixins: [JeecgListMixin],
|
|
mixins: [JeecgListMixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- taskColumns: [],
|
|
|
|
|
|
+ description: '盘点任务列表',
|
|
|
|
+ // 表头
|
|
|
|
+ scroll: { x: 1500 },
|
|
|
|
+ // 权限按钮集合
|
|
|
|
+ btnEnableList: [1, 1, 1],
|
|
|
|
+ queryParam: {
|
|
|
|
+ taskStatus: '',
|
|
|
|
+ number: '',
|
|
|
|
+ depotId: '',
|
|
|
|
+ createBy: '',
|
|
|
|
+ },
|
|
|
|
+ // stockTable: {
|
|
|
|
+ // loading: false,
|
|
|
|
+ // dataSource: [],
|
|
|
|
+ // columns: table.taskColumns,
|
|
|
|
+ // },
|
|
|
|
+ defColumns: table.taskColumns,
|
|
|
|
+ dataSource: [],
|
|
|
|
+ form: {
|
|
|
|
+ number: '',
|
|
|
|
+ taskType: '',
|
|
|
|
+ taskName: '',
|
|
|
|
+ depotId: '',
|
|
|
|
+ creator: '',
|
|
|
|
+ createBy: '',
|
|
|
|
+ createTime: '',
|
|
|
|
+ positionRange: '',
|
|
|
|
+ materialExtendIdList: [],
|
|
|
|
+ },
|
|
|
|
+ validatorRules: {
|
|
|
|
+ taskType: { rules: [{ required: true, message: '请选择盘点类型' }] },
|
|
|
|
+ depotId: { rules: [{ required: true, message: '请选择盘点仓库' }] },
|
|
|
|
+ taskName: { rules: [{ required: true, message: '请输入盘点任务名称' }] },
|
|
|
|
+ },
|
|
|
|
+ rules: {
|
|
|
|
+ number: { rules: [{ required: true, message: '请输入盘点编号' }] },
|
|
|
|
+ },
|
|
|
|
+ organId: { rules: [{ required: true, message: '请选择盘点类型' }] },
|
|
|
|
+ organId: { rules: [{ required: true, message: '请选择盘点仓库' }] },
|
|
|
|
+ organId: { rules: [{ required: true, message: '请选择盘点负责人' }] },
|
|
|
|
+ url: {
|
|
|
|
+ list: '/stocktaking/list',
|
|
|
|
+ add: '/stocktaking/add',
|
|
|
|
+ },
|
|
|
|
+ stockVisible: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ methods: {
|
|
|
|
+ addTask() {
|
|
|
|
+ this.stockVisible = true
|
|
|
|
+ },
|
|
|
|
+ },
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|