|
|
|
@ -50,6 +50,7 @@
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
:clearable="false"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
:disabled-date="disabledArrivalDate"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -211,6 +212,7 @@ export default {
|
|
|
|
|
id: null,
|
|
|
|
|
billNo: null,
|
|
|
|
|
createTime: "",
|
|
|
|
|
arrivalTime: '',
|
|
|
|
|
remark: "",
|
|
|
|
|
billType: "CGJH",
|
|
|
|
|
deptCode: null,
|
|
|
|
@ -288,6 +290,9 @@ export default {
|
|
|
|
|
if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) {
|
|
|
|
|
return this.$message.error("到货时间不能为空!");
|
|
|
|
|
}
|
|
|
|
|
if (this.formData.arrivalTime<this.formData.createTime) {
|
|
|
|
|
return this.$message.error("到货时间不能比单据日期早!!!");
|
|
|
|
|
}
|
|
|
|
|
for (let i = 0; i < this.codeArray.length; i++) {
|
|
|
|
|
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
|
|
|
|
|
return this.$message.error('单据数量不能为0');
|
|
|
|
@ -311,6 +316,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
disabledArrivalDate(time) {
|
|
|
|
|
return time.getTime() < new Date(this.formData.createTime).getTime()
|
|
|
|
|
},
|
|
|
|
|
submitFunction(status) {
|
|
|
|
|
let tMessage = status === '1' ? '保存' : '提交';
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -394,6 +402,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
deleteCodeArray(index, row) {
|
|
|
|
|
this.detailLoading=true;
|
|
|
|
|
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
@ -413,7 +422,7 @@ export default {
|
|
|
|
|
this.detailLoading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
// this.getStockOrderDetailList();
|
|
|
|
|
this.getStockOrderDetailList();
|
|
|
|
|
this.codeArray.splice(index, 1);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|