|
|
|
@ -372,9 +372,6 @@ export default {
|
|
|
|
|
invWarehouseCode: [
|
|
|
|
|
{required: true, message: "请选择当前分库", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
// type: [
|
|
|
|
|
// {required: true, message: "请选择采购类型", trigger: "blur"}
|
|
|
|
|
// ],
|
|
|
|
|
},
|
|
|
|
|
codeArray: [],
|
|
|
|
|
total: 0,
|
|
|
|
@ -559,10 +556,9 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
selectProductFunction(event) {
|
|
|
|
|
if (event == null) {
|
|
|
|
|
} else event.target.select();
|
|
|
|
|
if (event != null)
|
|
|
|
|
event.target.select();
|
|
|
|
|
if (this.$isBlank(event)) {
|
|
|
|
|
|
|
|
|
|
if (this.$isBlank(this.formData.billType)) {
|
|
|
|
|
this.$message.error("单据类型不能为空!")
|
|
|
|
|
return;
|
|
|
|
@ -580,6 +576,7 @@ export default {
|
|
|
|
|
this.thisData.code = "";
|
|
|
|
|
this.thisData.orderEditor = this.orderEditor;
|
|
|
|
|
this.thisData.orderId = "";
|
|
|
|
|
this.thisData.billType = this.formData.billType;
|
|
|
|
|
this.thisData.stockOrderLists = this.codeArray;
|
|
|
|
|
if (this.orderEditor) {
|
|
|
|
|
this.thisData.orderId = this.formData.id
|
|
|
|
@ -605,7 +602,6 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
stockOrderDetailQueryProduct(tQuery).then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
console.log(response)
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
if (response.data.getType === "1") {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -673,20 +669,15 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
iCountChange() {
|
|
|
|
|
// console.log(this.iCount)
|
|
|
|
|
// this.currentRow.count = this.iCount;
|
|
|
|
|
// this.currentRow.reCount = this.iCount;
|
|
|
|
|
},
|
|
|
|
|
iCountEnterFunction() {
|
|
|
|
|
if (this.$isNotBlank(this.currentRow)) {
|
|
|
|
|
this.currentRow.count = this.iCount;
|
|
|
|
|
// this.currentRow.reCount = this.iCount;
|
|
|
|
|
}
|
|
|
|
|
this.focusNext('inputRef');
|
|
|
|
|
},
|
|
|
|
|
tableCountChange(row) {
|
|
|
|
|
if (this.$isNotBlank(row)) {
|
|
|
|
|
// row.count = row.reCount;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tableRowClassName({row, rowIndex}) {
|
|
|
|
@ -816,7 +807,6 @@ export default {
|
|
|
|
|
this.iCount = 0;
|
|
|
|
|
|
|
|
|
|
this.detailLoading = true;
|
|
|
|
|
// row.count = row.reCount;
|
|
|
|
|
let tQuery = row;
|
|
|
|
|
uploadStockOrderDetail(tQuery).then((response) => {
|
|
|
|
|
this.detailLoading = false;
|
|
|
|
@ -875,21 +865,6 @@ export default {
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
}).then(() => {
|
|
|
|
|
// let tQuery = {
|
|
|
|
|
// id: row.id
|
|
|
|
|
// }
|
|
|
|
|
// this.detailLoading = true;
|
|
|
|
|
// copyStockOrderDetail(tQuery)
|
|
|
|
|
// .then((response) => {
|
|
|
|
|
// this.detailLoading = false;
|
|
|
|
|
// if (response.code === 20000) {
|
|
|
|
|
// this.$message.success("复制成功");
|
|
|
|
|
// this.getStockOrderDetailList();
|
|
|
|
|
// } else {
|
|
|
|
|
// this.$message.error(response.message);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
let rData = JSON.parse(JSON.stringify(row));
|
|
|
|
|
rData.id = null;
|
|
|
|
|
if (this.codeArray.length === 0) {
|
|
|
|
|