Merge remote-tracking branch 'origin/orderChange' into zhairh

zhairh
x_z 3 years ago
commit 23154db0d5

@ -490,7 +490,7 @@
<div style="margin-top: 18px;margin-bottom: 18px"> <div style="margin-top: 18px;margin-bottom: 18px">
<el-checkbox v-model="editQuery.isDisable" class="" <el-checkbox v-model="editQuery.isDisable" class=""
@change="diableChange" @change="diableChange"
>是否禁用 >是否禁用{{editQuery.isDisable}}
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.isAdavence" class="" <el-checkbox v-model="editQuery.isAdavence" class=""
>是否寄售 >是否寄售
@ -1151,7 +1151,7 @@ export default {
}, },
diableChange() { diableChange() {
let query = { let query = {
relId: this.editQuery.id relId: this.pId
} }
disableUdi(query) disableUdi(query)
.then((response) => { .then((response) => {
@ -1278,7 +1278,7 @@ export default {
}) })
.then(() => { .then(() => {
let query = { let query = {
relId: this.editQuery.id, relId: this.pId,
thirdSys: row.sysId thirdSys: row.sysId
}; };
removeRl(query) removeRl(query)
@ -1421,6 +1421,7 @@ export default {
this.editDialogVisible = true; this.editDialogVisible = true;
this.editQuery = row; this.editQuery = row;
this.pId=row.id; this.pId=row.id;
this.pId=row.id;
this.relevanceEdit = { this.relevanceEdit = {
id: row.id, id: row.id,
// thirdId: row.thirdId, // thirdId: row.thirdId,

@ -238,7 +238,6 @@ export default {
fromOptions: [], fromOptions: [],
loading: false, loading: false,
detailList: [], detailList: [],
storageList: [],
detailLoading: false, detailLoading: false,
subInvList: [], subInvList: [],
@ -354,6 +353,7 @@ export default {
}, },
findSubStorageMethod() { findSubStorageMethod() {
this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
this.getBusType();
let cQuery = { let cQuery = {
code: this.formData.invWarehouseCode, code: this.formData.invWarehouseCode,
filter: 2, filter: 2,
@ -435,6 +435,7 @@ export default {
}, },
getBusType() { getBusType() {
let query = { let query = {
code: this.formData.invWarehouseCode,
enabled: true, enabled: true,
}; };
getLocalJoinByUser(query) getLocalJoinByUser(query)
@ -445,15 +446,6 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getStorage() {
this.storageList = [];
filterAllByUser()
.then((response) => {
this.storageList = response.data || [];
})
.catch(() => {
});
},
getStockOrderDetailList(orderId) { getStockOrderDetailList(orderId) {
let query = { let query = {
orderIdFk: orderId orderIdFk: orderId
@ -482,9 +474,10 @@ export default {
let date = new Date(); let date = new Date();
this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
} }
this.formData.invWarehouseCode = this.$store.getters.locSubInvCode;
this.formData.locStorageCode = this.$store.getters.locInvCode;
this.getBusType(); this.getBusType();
this.findSubInvByInv(this.formData.locStorageCode); this.findSubInvByInv(this.formData.locStorageCode);
this.getStorage();
this.getStockOrderDetailList(this.curRow.id); this.getStockOrderDetailList(this.curRow.id);
} }
} }

@ -871,6 +871,7 @@ export default {
} }
}, },
getBusType() { getBusType() {
this.query.locStorageCode= this.subInvList.find(item => item.code == this.query.invWarehouseCode).parentId
let query = { let query = {
code: this.query.invWarehouseCode, code: this.query.invWarehouseCode,
enabled: true, enabled: true,

@ -946,6 +946,7 @@ export default {
}, },
getBusType() { getBusType() {
this.query.locStorageCode= this.subInvList.find(item => item.code == this.query.invWarehouseCode).parentId
let query = { let query = {
code: this.query.invWarehouseCode, code: this.query.invWarehouseCode,
enabled: true, enabled: true,

@ -550,8 +550,10 @@ export default {
let tQuery = { let tQuery = {
orderId: this.idQuery.id, orderId: this.idQuery.id,
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
invStorageCode: this.formData.invStorageCode,
invWarehouseCode: this.formData.invWarehouseCode, invWarehouseCode: this.formData.invWarehouseCode,
fromSubInvCode: this.formData.fromSubInvCode, fromSubInvCode: this.formData.fromSubInvCode,
subInvCode: this.formData.subInvCode,
action: this.formData.action, action: this.formData.action,
fromCorp: this.formData.fromCorp, fromCorp: this.formData.fromCorp,
fromCorpId: this.formData.fromCorpId, fromCorpId: this.formData.fromCorpId,
@ -1005,11 +1007,6 @@ export default {
}, },
findSubStorageMethod(val) { findSubStorageMethod(val) {
this.subInvList.forEach(item => {
if (item.code === val) {
this.formData.locStorageCode = item.parentId;
}
});
this.getBusType(); this.getBusType();
let cQuery = { let cQuery = {
code: this.formData.invWarehouseCode, code: this.formData.invWarehouseCode,
@ -1229,6 +1226,8 @@ export default {
this.query.limit = parseInt(this.query.limit); this.query.limit = parseInt(this.query.limit);
this.query.corpOrderId = query.id; this.query.corpOrderId = query.id;
} }
this.formData.invWarehouseCode = this.$store.getters.locSubInvCode;
this.formData.locStorageCode = this.$store.getters.locInvCode;
if (this.$isNotBlank(this.formData.locStorageCode)) { if (this.$isNotBlank(this.formData.locStorageCode)) {
this.findStorageMethod(); this.findStorageMethod();
} }

@ -377,9 +377,10 @@ export default {
}; };
if (this.inputQuery.formData == null) { if (this.inputQuery.formData == null) {
this.formData = {} this.formData = {}
} else this.formData = this.inputQuery.formData; } else{
this.formData = this.inputQuery.formData;
console.log(this.inputQuery.formData);
}
if (this.formData.filePath != null) { if (this.formData.filePath != null) {
this.choiceFile = "更换文件"; this.choiceFile = "更换文件";
} else { } else {

@ -449,8 +449,10 @@ export default {
created() { created() {
if (this.editType == 0) { if (this.editType == 0) {
this.inputQuery.customerId = getUUID(""); this.inputQuery.customerId = getUUID("");
} }else{
this.getCompanyCertList(); this.getCompanyCertList();
}
this.headers = { this.headers = {
ADMIN_ID: store.getters.adminId, ADMIN_ID: store.getters.adminId,
ADMIN_TOKEN: store.getters.token, ADMIN_TOKEN: store.getters.token,
@ -576,7 +578,7 @@ export default {
, ,
addCert(row) { addCert(row) {
if (this.$isNotBlank(row)) { if (this.$isNotBlank(row) && this.$isNotBlank(row.id)) {
this.formName = 2 this.formName = 2
this.inputQuery.formData = row; this.inputQuery.formData = row;
this.editTye = 2; this.editTye = 2;

Loading…
Cancel
Save