Commit d83f5fc3 by 前端

BUG修复

1 parent be273a57
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
ref="editAllocationFormRef" ref="editAllocationFormRef"
:rules="formRules" :rules="formRules"
class="demo-form-inline"> class="demo-form-inline">
<el-form-item>调出方</el-form-item>
<el-form-item label="调出仓库:" <el-form-item label="调出仓库:"
prop="callOutYqMerchantId"> prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId" <el-select v-model="editAllocationForm.callOutYqMerchantId"
...@@ -30,6 +31,7 @@ ...@@ -30,6 +31,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<br /> <br />
<el-form-item>调入方</el-form-item>
<el-form-item label="调入仓库:" <el-form-item label="调入仓库:"
prop="callInYqMerchantId"> prop="callInYqMerchantId">
<el-select v-model="editAllocationForm.callInYqMerchantId" <el-select v-model="editAllocationForm.callInYqMerchantId"
...@@ -146,7 +148,8 @@ export default { ...@@ -146,7 +148,8 @@ export default {
isClear: true isClear: true
} }
], ],
getListApi: this.$apis.stockManage.stockRemainPage, // getListApi: this.$apis.stockManage.stockRemainPage,
getListApi: null,
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
...@@ -324,6 +327,7 @@ export default { ...@@ -324,6 +327,7 @@ export default {
watch: { watch: {
'editAllocationForm.callOutYqMerchantId'(val, oldval) { 'editAllocationForm.callOutYqMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutYqMerchantId"); console.log(val, oldval, "监听callOutYqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.callOutYqMerchantList.length == 1) {//当只有一个选项时不弹提示框 if (this.callOutYqMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable() this.$refs.allocationTable.refreshTable()
} else { } else {
...@@ -336,6 +340,7 @@ export default { ...@@ -336,6 +340,7 @@ export default {
'editAllocationForm.callOutMerchantId'(val, oldval) { 'editAllocationForm.callOutMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutMerchantId"); console.log(val, oldval, "监听callOutMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.callOutMerchantList.length == 1) {//当只有一个选项时不弹提示框 if (this.callOutMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable() this.$refs.allocationTable.refreshTable()
} else { } else {
...@@ -384,6 +389,7 @@ export default { ...@@ -384,6 +389,7 @@ export default {
}) })
}, },
handleSearch() { handleSearch() {
this.getListApi = this.$apis.stockManage.stockRemainPage
this.$refs.allocationTable.refreshTable() this.$refs.allocationTable.refreshTable()
}, },
// 获取仓库门店 // 获取仓库门店
...@@ -411,7 +417,6 @@ export default { ...@@ -411,7 +417,6 @@ export default {
if (this.callInMerchantList && this.callInMerchantList.length == 1) { if (this.callInMerchantList && this.callInMerchantList.length == 1) {
this.editAllocationForm.callInMerchantId = this.callOutMerchantList[0].merchantId this.editAllocationForm.callInMerchantId = this.callOutMerchantList[0].merchantId
} }
console.log(this.callInMerchantList);
} }
}) })
......
...@@ -314,8 +314,15 @@ export default { ...@@ -314,8 +314,15 @@ export default {
callOutMerchantId: '', callOutMerchantId: '',
callInMerchantId: '' callInMerchantId: ''
} }
this.showFormData[this.findFormIdx('callOutMerchantId')].optionList = []
this.showFormData[this.findFormIdx('callInMerchantId')].optionList = []
this.handleSearch() this.handleSearch()
}, },
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
},
handleEnlargeImg(url) { handleEnlargeImg(url) {
if (url) { if (url) {
this.previewImgUrl = url this.previewImgUrl = url
......
...@@ -129,7 +129,9 @@ export default { ...@@ -129,7 +129,9 @@ export default {
}, },
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: {}, searchSelectObj: {},
getListApi: this.$apis.stockManage.stockRemainPage, // getListApi: this.$apis.stockManage.stockRemainPage,
getListApi: null,
tableData: [],
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
...@@ -282,6 +284,7 @@ export default { ...@@ -282,6 +284,7 @@ export default {
watch: { watch: {
'editCheckForm.yqMerchantId'(val, oldval) { 'editCheckForm.yqMerchantId'(val, oldval) {
console.log(val, oldval, "监听yqMerchantId"); console.log(val, oldval, "监听yqMerchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.yqMerchantIdList.length == 1) {//当只有一个选项时不弹提示框 if (this.yqMerchantIdList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
} else { } else {
...@@ -294,6 +297,7 @@ export default { ...@@ -294,6 +297,7 @@ export default {
'editCheckForm.merchantId'(val, oldval2) { 'editCheckForm.merchantId'(val, oldval2) {
console.log(val, oldval2, "监听merchantId"); console.log(val, oldval2, "监听merchantId");
this.getListApi = this.$apis.stockManage.stockRemainPage
if (this.merchantList.length == 1) { if (this.merchantList.length == 1) {
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
} else { } else {
...@@ -316,6 +320,7 @@ export default { ...@@ -316,6 +320,7 @@ export default {
}, },
methods: { methods: {
changeYqMerchant(merchantId) { changeYqMerchant(merchantId) {
// this.switchData(merchantId, 'yqMerchant') // this.switchData(merchantId, 'yqMerchant')
}, },
...@@ -393,6 +398,7 @@ export default { ...@@ -393,6 +398,7 @@ export default {
}, },
handleSearch() { handleSearch() {
this.getListApi = this.$apis.stockManage.stockRemainPage
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
}, },
......
...@@ -117,6 +117,7 @@ export default { ...@@ -117,6 +117,7 @@ export default {
label: '盘点门店', label: '盘点门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择盘点仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -270,8 +271,14 @@ export default { ...@@ -270,8 +271,14 @@ export default {
yqMerchantId: '', yqMerchantId: '',
merchantId: '' merchantId: ''
} }
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch() this.handleSearch()
}, },
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
},
handleEnlargeImg(url) { handleEnlargeImg(url) {
if (url) { if (url) {
this.previewImgUrl = url this.previewImgUrl = url
......
...@@ -104,6 +104,7 @@ export default { ...@@ -104,6 +104,7 @@ export default {
label: '所属门店', label: '所属门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择所属仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -263,7 +264,12 @@ export default { ...@@ -263,7 +264,12 @@ export default {
productCode: '' productCode: ''
} }
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch() this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
} }
} }
} }
......
...@@ -104,6 +104,7 @@ export default { ...@@ -104,6 +104,7 @@ export default {
label: '出库门店', label: '出库门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择出库仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -341,7 +342,12 @@ export default { ...@@ -341,7 +342,12 @@ export default {
goodsSeries: '', goodsSeries: '',
productCode: '' productCode: ''
} }
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch() this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
} }
} }
} }
......
...@@ -133,6 +133,7 @@ export default { ...@@ -133,6 +133,7 @@ export default {
label: '入库门店', label: '入库门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择入库仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -382,7 +383,12 @@ export default { ...@@ -382,7 +383,12 @@ export default {
productCode: '', productCode: '',
deliveryNumber: '' deliveryNumber: ''
} }
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch() this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!