盘点传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({
url: `/wms/stock/inv/cancel`,
method: "delete",
data: query,
method: "post",
data,
});
}
// 盘点录入保存
// 盘点执行
export function entrySave(data) {
return request({
url: `/wms/stock/inv/entrySave`,
url: `/wms/stock/inv/exec`,
method: "POST",
data,
});

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

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

Loading…
Cancel
Save