|
@ -101,19 +101,21 @@ |
|
|
{{ scope.column.label }} |
|
|
{{ scope.column.label }} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column prop="OutPutQty" label="出库数量" width="100"> |
|
|
prop="OutPutQty" |
|
|
|
|
|
label="出库数量" |
|
|
|
|
|
width="100"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-input size="small" v-model="scope.row.deliverytype" @change="handleEdit(scope.$index, scope.row)"></el-input> |
|
|
<el-input |
|
|
|
|
|
size="small" |
|
|
|
|
|
v-model="scope.row.deliverytype" |
|
|
|
|
|
@change="handleEdit(scope.$index, scope.row)" |
|
|
|
|
|
></el-input> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="state" |
|
|
prop="state" |
|
|
:formatter="fieldFormatter" |
|
|
:formatter="fieldFormatter" |
|
|
label="状态" |
|
|
label="状态" |
|
|
width="100"> |
|
|
width="100" |
|
|
|
|
|
> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<div class="table-footer"> |
|
|
<div class="table-footer"> |
|
@ -141,7 +143,7 @@ |
|
|
size="small" |
|
|
size="small" |
|
|
label-width="120px" |
|
|
label-width="120px" |
|
|
> |
|
|
> |
|
|
<el-form-item label="日期" prop="accountDate" required> |
|
|
<el-form-item label="日期" prop="accountDate"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="accountDatelist.accountDate" |
|
|
v-model="accountDatelist.accountDate" |
|
|
type="date" |
|
|
type="date" |
|
@ -397,6 +399,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
print() { |
|
|
print() { |
|
|
this.dialogFormVisible = true; |
|
|
this.dialogFormVisible = true; |
|
|
|
|
|
//this.getList(); |
|
|
|
|
|
}, |
|
|
|
|
|
handleCreateBillsEnd(row) { |
|
|
|
|
|
this.dialogFormVisible = false; |
|
|
|
|
|
this.getList(); |
|
|
}, |
|
|
}, |
|
|
//出库单 |
|
|
//出库单 |
|
|
handleCreateBills(row) { |
|
|
handleCreateBills(row) { |
|
@ -405,6 +412,16 @@ export default { |
|
|
this.listOutPutQuery.guids = []; |
|
|
this.listOutPutQuery.guids = []; |
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
|
|
//debugger |
|
|
|
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: "请选择日期!", |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
}); |
|
|
|
|
|
this.getList(); |
|
|
|
|
|
return; |
|
|
|
|
|
//this.getList(); |
|
|
|
|
|
} else { |
|
|
if (this.accountDatelist != "") { |
|
|
if (this.accountDatelist != "") { |
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
} |
|
|
} |
|
@ -415,7 +432,7 @@ export default { |
|
|
|
|
|
|
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts( |
|
|
.posts( |
|
|
"/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass", |
|
|
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass", |
|
|
this.listOutPutQuery |
|
|
this.listOutPutQuery |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
@ -426,15 +443,18 @@ export default { |
|
|
type: "success", |
|
|
type: "success", |
|
|
duration: 2000, |
|
|
duration: 2000, |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
|
|
this.dialogFormVisible = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
this.listLoading = false; |
|
|
this.listLoading = false; |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
this.listLoading = false; |
|
|
this.listLoading = false; |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
//删除出库单 |
|
|
//删除出库单 |
|
|
handleDelete(row){ |
|
|
handleDelete(row) { |
|
|
var params = []; |
|
|
var params = []; |
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
if (row) { |
|
|
if (row) { |
|
@ -449,7 +469,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
myalert = "选中项"; |
|
|
myalert = "选中项"; |
|
|
} |
|
|
} |
|
|
this.listDeleteQuery.billNum = this.listQuery.billNum ; |
|
|
this.listDeleteQuery.billNum = this.listQuery.billNum; |
|
|
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); |
|
|
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); |
|
|
this.$confirm("是否删除" + myalert + "?", "提示", { |
|
|
this.$confirm("是否删除" + myalert + "?", "提示", { |
|
|
confirmButtonText: "确定", |
|
|
confirmButtonText: "确定", |
|
@ -458,7 +478,10 @@ export default { |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts("/api/settleaccount/WmsHQHSharePartoutput/WmsOutPutDelete", this.listDeleteQuery) |
|
|
.posts( |
|
|
|
|
|
"/api/settleaccount/WmsHQHSharePartoutput/WmsOutPutDelete", |
|
|
|
|
|
this.listDeleteQuery |
|
|
|
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
const index = this.list.indexOf(row); |
|
|
const index = this.list.indexOf(row); |
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|