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