Commit efb29369 by lichengming

去掉弹出框

parent d7f670c1
...@@ -289,7 +289,7 @@ export default { ...@@ -289,7 +289,7 @@ export default {
console.log(data) console.log(data)
}, },
_cusNameQuery(query) { _cusNameQuery(query) {
alert('query') this.formObj.client = query
console.log(query) console.log(query)
}, },
_ctimeChange(data) { _ctimeChange(data) {
......
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
console.log(data) console.log(data)
}, },
_cusNameQuery(query) { _cusNameQuery(query) {
alert('query') this.formObj.client = query
console.log(query) console.log(query)
}, },
_ctimeChange(data) { _ctimeChange(data) {
......
...@@ -281,7 +281,7 @@ export default { ...@@ -281,7 +281,7 @@ export default {
console.log(data) console.log(data)
}, },
_cusNameQuery(query) { _cusNameQuery(query) {
alert('query') this.formObj.client = query
console.log(query) console.log(query)
}, },
_ctimeChange(data) { _ctimeChange(data) {
......
...@@ -287,7 +287,7 @@ export default { ...@@ -287,7 +287,7 @@ export default {
console.log(data) console.log(data)
}, },
_cusNameQuery(query) { _cusNameQuery(query) {
alert('query') this.formObj.client = query
console.log(query) console.log(query)
}, },
_ctimeChange(data) { _ctimeChange(data) {
......
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
this.$Message.warning('请至少选择一条数据!') this.$Message.warning('请至少选择一条数据!')
} else { } else {
const data = {} const data = {}
data.ids = this.selectIds data.ids = this.selectIds.join(',')
this._subpackageCancel(data) this._subpackageCancel(data)
} }
}, },
......
...@@ -175,6 +175,9 @@ export default { ...@@ -175,6 +175,9 @@ export default {
this.currentComponent = componentName this.currentComponent = componentName
this.$nextTick(function() { this.$nextTick(function() {
switch (msg) { switch (msg) {
case '取消分包':
this._subpackageCancelBtn()
break
case '分包出库': case '分包出库':
this._outWarehouse() this._outWarehouse()
break break
...@@ -199,6 +202,23 @@ export default { ...@@ -199,6 +202,23 @@ export default {
} }
}) })
}, },
_subpackageCancelBtn() {
if (this.selectIds.length === 0) {
this.$Message.warning('请至少选择一条数据!')
} else {
const data = {}
data.ids = this.selectIds.join(',')
this._subpackageCancel(data)
}
},
_subpackageCancel: async function(data) {
console.log(data)
const result = await meterSample.subpackageCancel(data)
if (result) {
this.$Message.success('取消成功!')
this._page()
}
},
_outWarehouse() { _outWarehouse() {
if (this.selectData.length === 0) { if (this.selectData.length === 0) {
this.$Message.warning('请选择一条或多条数据!') this.$Message.warning('请选择一条或多条数据!')
...@@ -271,6 +291,7 @@ export default { ...@@ -271,6 +291,7 @@ export default {
this.$refs.pageTable._pageChange(1) this.$refs.pageTable._pageChange(1)
}, },
_page: async function() { _page: async function() {
this.selectIds = []
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
console.log('this.formObj', this.formObj) console.log('this.formObj', this.formObj)
const result = await meterSample.pageSubpackageSample(this.formObj) const result = await meterSample.pageSubpackageSample(this.formObj)
......
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