|
|
|
@ -101,6 +101,7 @@
|
|
|
|
|
placeholder="请输入往来单位"
|
|
|
|
|
:remote-method="findMethod"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
@focus="findMethod('')"
|
|
|
|
|
@change="selectOne"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
@ -645,7 +646,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
findStorageMethod(query) {
|
|
|
|
|
console.log(query);
|
|
|
|
|
if (this.formData.locStorageCode == null)
|
|
|
|
|
return;
|
|
|
|
|
this.fromStorageOptions = [];
|
|
|
|
@ -706,12 +706,10 @@ export default {
|
|
|
|
|
if (status == '3') {
|
|
|
|
|
tQuery.subErpOrders.forEach((obj) => {
|
|
|
|
|
obj.reCount = obj.count;
|
|
|
|
|
console.log(obj.reCount);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(tQuery);
|
|
|
|
|
insertStockOrderWeb(tQuery)
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -792,7 +790,6 @@ export default {
|
|
|
|
|
this.invQueryData = {
|
|
|
|
|
locStorageCode: this.formData.corpId,
|
|
|
|
|
};
|
|
|
|
|
console.log("his.invQueryData " + this.invQueryData.locStorageCode);
|
|
|
|
|
this.selectInvProductVisible = true;
|
|
|
|
|
} else {
|
|
|
|
|
this.selectProductVisible = true;
|
|
|
|
@ -820,7 +817,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;
|
|
|
|
@ -874,7 +870,6 @@ export default {
|
|
|
|
|
rData.forEach((obj, index) => {
|
|
|
|
|
this.codeArray.unshift(obj);
|
|
|
|
|
});
|
|
|
|
|
console.log(this.codeArray);
|
|
|
|
|
this.$refs.multipleTable.setCurrentRow(this.codeArray[0]);
|
|
|
|
|
this.currentRow = this.codeArray[0];
|
|
|
|
|
this.selectedIndex = 0;
|
|
|
|
@ -1134,7 +1129,6 @@ export default {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
stockOrderDetail(this.query) //查找该单号下的所有条码
|
|
|
|
|
.then((response) => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.codeArray = response.data.list || [];
|
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -1180,15 +1174,11 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
selectOne(event) {
|
|
|
|
|
|
|
|
|
|
this.formData.corpName = event.name;
|
|
|
|
|
this.formData.corpId = event.erpId;
|
|
|
|
|
this.formData.unitIdFk = event.erpId;
|
|
|
|
|
// console.log("this.inputQuery.companyId" + item);
|
|
|
|
|
console.log("this.inputQuery.companyId" + event.erpId);
|
|
|
|
|
},
|
|
|
|
|
findMethod(query) {
|
|
|
|
|
console.log(query);
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
|
let cQuery = {
|
|
|
|
|
key: query,
|
|
|
|
@ -1301,7 +1291,7 @@ export default {
|
|
|
|
|
this.formData.billdate = new Date();
|
|
|
|
|
// this.generateBillNo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.findMethod();
|
|
|
|
|
this.getBusType();
|
|
|
|
|
this.getStorage();
|
|
|
|
|
this.findSubInvByInv();
|
|
|
|
|