|
|
@ -112,19 +112,21 @@ |
|
|
|
width="700px" |
|
|
|
> |
|
|
|
<el-form |
|
|
|
ref="form" |
|
|
|
ref="accountDatelist" |
|
|
|
:inline="true" |
|
|
|
:model="form" |
|
|
|
:model="accountDatelist" |
|
|
|
:rules="rules" |
|
|
|
size="small" |
|
|
|
label-width="120px" |
|
|
|
> |
|
|
|
<el-form-item label="日期" prop="accountDate"> |
|
|
|
<el-date-picker |
|
|
|
v-model="accountDatelist.accountDate" |
|
|
|
type="date" |
|
|
|
placeholder="选择日期"> |
|
|
|
</el-date-picker> |
|
|
|
<el-form-item label="日期" prop="accountDate" required> |
|
|
|
<el-date-picker |
|
|
|
v-model="accountDatelist.accountDate" |
|
|
|
type="date" |
|
|
|
clearable |
|
|
|
placeholder="选择日期" |
|
|
|
> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
@ -135,9 +137,7 @@ |
|
|
|
<el-button |
|
|
|
v-loading="formLoading" |
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="handleCreateBills()" |
|
|
|
|
|
|
|
>确认</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
@ -173,12 +173,14 @@ export default { |
|
|
|
erpMaterialCode: [ |
|
|
|
{ required: true, message: "必须输入!", trigger: "blur" }, |
|
|
|
], |
|
|
|
accountDate: [ |
|
|
|
{ required: true, message: "日期必须输入!", trigger: "blur" }, |
|
|
|
], |
|
|
|
}, |
|
|
|
searchContent: "", // 输入内容 |
|
|
|
customerInfo: { |
|
|
|
parentId: "", |
|
|
|
version: "", |
|
|
|
accountDate: "", |
|
|
|
}, |
|
|
|
form: { |
|
|
|
dicDetailID: "", |
|
|
@ -232,9 +234,9 @@ export default { |
|
|
|
showExcelImport: false, |
|
|
|
tableHeight: document.documentElement.clientHeight - 230, |
|
|
|
isEdit: false, |
|
|
|
accountDatelist:{ |
|
|
|
accountDate:"" |
|
|
|
} |
|
|
|
accountDatelist: { |
|
|
|
accountDate: "", |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@ -377,38 +379,37 @@ export default { |
|
|
|
//出库单 |
|
|
|
handleCreateBills(row) { |
|
|
|
this.dialogFormVisible = true; |
|
|
|
this.listLoading = true; |
|
|
|
this.listOutPutQuery.guids = []; |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
if (this.accountDatelist != "") { |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
} |
|
|
|
//this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
|
console.log( |
|
|
|
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
|
this.listLoading = true; |
|
|
|
this.listOutPutQuery.guids = []; |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
if (this.accountDatelist != "") { |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
} |
|
|
|
//this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
|
console.log( |
|
|
|
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
|
|
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "生成成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.getList(); |
|
|
|
this.listLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.listLoading = false; |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "生成成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
|
|
|
|
this.getList(); |
|
|
|
this.listLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.listLoading = false; |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** 刷新列表 */ |
|
|
|
handleHandle(data) { |
|
|
|