盘点传ids

master
Mr.sun 2 years ago
parent 4c76752793
commit 68b173b7c7
  1. 10
      src/api/libraryManage/inventory.js
  2. 14
      src/views/libraryManage/inventory/InventoryEntry.vue
  3. 3
      src/views/taskManagement/index.vue

@ -64,18 +64,18 @@ export function list(query) {
} }
// 取消盘点计划 // 取消盘点计划
export function cancel(query) { export function cancel(data) {
return request({ return request({
url: `/wms/stock/inv/cancel`, url: `/wms/stock/inv/cancel`,
method: "delete", method: "post",
data: query, data,
}); });
} }
// 盘点录入保存 // 盘点执行
export function entrySave(data) { export function entrySave(data) {
return request({ return request({
url: `/wms/stock/inv/entrySave`, url: `/wms/stock/inv/exec`,
method: "POST", method: "POST",
data, data,
}); });

@ -191,13 +191,6 @@ export default {
// if (!this.enterForm.invOrderNo) return this.$message("!"); // if (!this.enterForm.invOrderNo) return this.$message("!");
this.loading = true this.loading = true
this.disabledFlag = true this.disabledFlag = true
// if (this.value1 !== null && this.value1 !== 'null' && this.value1 !== undefined) {
// this.enterForm.execTime = this.value1[0]
// this.enterForm.endTime = this.value1[1]
// } else {
// this.enterForm.execTime = null
// this.enterForm.endTime = null
// }
list({ list({
// invWay: 'open', // invWay: 'open',
...this.enterForm ...this.enterForm
@ -278,7 +271,7 @@ export default {
} }
return result return result
}, },
// //
async generateThePlan() { async generateThePlan() {
let arr = [] let arr = []
this.selectData.forEach((ele, index) => { this.selectData.forEach((ele, index) => {
@ -302,7 +295,7 @@ export default {
arr2.push(obj) arr2.push(obj)
}) })
// ids // ids
const { rows } = await entrySave(arr2) const { rows } = await entrySave({ ids: this.handleSelect })
this.$message.success('操作成功') this.$message.success('操作成功')
this.queryTable() this.queryTable()
} }
@ -319,7 +312,8 @@ export default {
}, },
// //
remove() { remove() {
cancel(this.handleSelect) // console.log(this.handleSelect)
cancel({ ids: this.handleSelect })
.then((response) => { .then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.$message({ this.$message({

@ -603,9 +603,6 @@ export default {
} }
queryTaskManagement(this.queryParams).then((res) => { queryTaskManagement(this.queryParams).then((res) => {
// res.rows.sort((a, b) => {
// a.createTime < b.createTime ? 1 : -1
// })
res.rows = res.rows.sort((a, b) => { res.rows = res.rows.sort((a, b) => {
return this.formatStringToTimestamp(b['createTime']) - this.formatStringToTimestamp(a['createTime']) return this.formatStringToTimestamp(b['createTime']) - this.formatStringToTimestamp(a['createTime'])
}) })

Loading…
Cancel
Save