修改耗材字典bug

feature-order-fix
郑明梁 3 years ago
parent 10d8361f6f
commit 04f7cff829

@ -602,6 +602,8 @@ export default {
this.query.startTime = null; this.query.startTime = null;
this.query.endTime = null; this.query.endTime = null;
} }
//
this.query.page=1
this.getList(); this.getList();
if (this.query.status === "502") { if (this.query.status === "502") {
this.haveNewDistributionVisible = true; this.haveNewDistributionVisible = true;
@ -698,6 +700,7 @@ export default {
getStockOrderDetailList(row) { getStockOrderDetailList(row) {
if (this.$isNotBlank(row)) { if (this.$isNotBlank(row)) {
this.detailQuery.orderIdFk = row.id; this.detailQuery.orderIdFk = row.id;
this.detailQuery.page=1
this.formData = row; this.formData = row;
} }
this.detailLoading = true; this.detailLoading = true;

@ -117,7 +117,7 @@
<el-form-item class="query-form-item" prop="fromCorp" <el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==1"> v-if="curAction.corpType ==1">
<el-select v-model="formData.fromSubInvCode" placeholder="请选择仓库" clearable="true" <el-select v-model="formData.fromSubInvCode" @change="getFormSubInv" placeholder="请选择仓库" clearable="true"
:disabled="codeArray.length>0" :disabled="codeArray.length>0"
> >
<el-option <el-option
@ -416,6 +416,7 @@ import {filterAll, filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehou
import dialogInvProduct from "../inventory/DialogInvProduct" import dialogInvProduct from "../inventory/DialogInvProduct"
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {filterDepts} from "@/api/auth/authDept"
export default { export default {
name: "idQuery", name: "idQuery",
@ -665,8 +666,6 @@ export default {
obj.reCount = obj.count; obj.reCount = obj.count;
}); });
} }
insertStockOrderWeb(tQuery) insertStockOrderWeb(tQuery)
.then(response => { .then(response => {
this.loading = false; this.loading = false;
@ -682,6 +681,11 @@ export default {
this.loading = false; this.loading = false;
}) })
}, },
getFormSubInv(){
//id
this.formData.corpName= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).name
this.formData.corpId= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).code
},
submit(formName) { submit(formName) {
if (this.total < 1) { if (this.total < 1) {
this.$message.warning('未添加产品'); this.$message.warning('未添加产品');
@ -1212,6 +1216,7 @@ export default {
}, },
subStorageChange() { subStorageChange() {
this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
this.findSubStorageMethod(); this.findSubStorageMethod();
this.getBusType(); this.getBusType();
}, },
@ -1296,6 +1301,7 @@ export default {
this.findSubInvs(); this.findSubInvs();
this.findSubStorageMethod(); this.findSubStorageMethod();
this.findDeptMethod();
this.codeArray = []; this.codeArray = [];
this.closeConfirmFunction(false); this.closeConfirmFunction(false);
}, },

@ -506,7 +506,7 @@ export default {
this.certQuery.customerId = this.inputQuery.customerId; this.certQuery.customerId = this.inputQuery.customerId;
this.certQuery.type = 1; this.certQuery.type = 1;
this.certQuery.auditStatus=25; this.certQuery.auditStatus=25;
filterCompanyCert(this.certQuery) filterCompanyCert(this.certQuery)
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;

@ -479,7 +479,10 @@ export default {
this.findSubStorageMethod(); this.findSubStorageMethod();
}, },
subStorageChange(item) { subStorageChange(item) {
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.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code
this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName
this.findSubStorageMethod(); this.findSubStorageMethod();
this.getBusType(); this.getBusType();
}, },

Loading…
Cancel
Save