|
@@ -18,17 +18,17 @@
|
|
|
<a-divider />
|
|
|
<div>
|
|
|
<div>
|
|
|
- <a-form :form="queryParams" ref="form">
|
|
|
+ <a-form :form="queryParam" ref="form">
|
|
|
<a-row class="form-row" :gutter="24">
|
|
|
<a-col :lg="6" :md="12" :sm="24" class="form-col">
|
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="商品类别">
|
|
|
- <!-- <a-input disabled placeholder="请输入" v-model="queryParams.categoryId" /> -->
|
|
|
+ <!-- <a-input disabled placeholder="请输入" v-model="queryParam.categoryId" /> -->
|
|
|
<a-tree-select
|
|
|
style="width: 100%"
|
|
|
:dropdownStyle="{ maxHeight: '200px', overflow: 'auto' }"
|
|
|
allow-clear
|
|
|
:treeData="categoryTree"
|
|
|
- v-model="queryParams.categoryId"
|
|
|
+ v-model="queryParam.categoryId"
|
|
|
placeholder="请选择商品类别"
|
|
|
>
|
|
|
</a-tree-select>
|
|
@@ -36,17 +36,17 @@
|
|
|
</a-col>
|
|
|
<a-col :lg="6" :md="12" :sm="24" class="form-col">
|
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="商品名称">
|
|
|
- <a-input placeholder="请输入" v-model="queryParams.name" />
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.name" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6" :md="12" :sm="24" class="form-col">
|
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="批次号">
|
|
|
- <a-input placeholder="请输入" v-model="queryParams.batchNumber" />
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.batchNumber" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6" :md="12" :sm="24" class="form-col">
|
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="仓位货架">
|
|
|
- <a-input placeholder="请输入" v-model="queryParams.position" />
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.position" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6" :md="12" :sm="24" class="form-col">
|
|
@@ -200,7 +200,7 @@ export default {
|
|
|
form: {},
|
|
|
isShow: false,
|
|
|
stockType: 'check',
|
|
|
- queryParams: { categoryId: '', materialName: '', batchNumber: '', position: '', isDifference: null },
|
|
|
+ queryParam: { categoryId: '', materialName: '', batchNumber: '', position: '', isDifference: null },
|
|
|
isDifferenceData: [
|
|
|
{
|
|
|
label: '是',
|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
editVisible(val) {
|
|
|
if (!val) {
|
|
|
this.editForm = {}
|
|
|
- this.form.resetFields()
|
|
|
+ // this.form.resetFields()
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -361,7 +361,7 @@ export default {
|
|
|
const url2 = '/stocktaking/detailByItemList'
|
|
|
const form = this.$refs['editForm'].form
|
|
|
|
|
|
- const params = { ...this.queryParams, taskStocktakingId: id }
|
|
|
+ const params = { ...this.queryParam, taskStocktakingId: id || this.taskId }
|
|
|
const url = url2 + '?pageNum=' + this.ipagination.current + '&pageSize=' + this.ipagination.pageSize
|
|
|
postAction(url, params).then((res) => {
|
|
|
this.dataSource = res.data
|