|
|
@ -4,13 +4,13 @@
|
|
|
|
<el-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
|
|
|
|
<el-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="产品标识DI:">
|
|
|
|
<el-form-item label="DI/物资编码:">
|
|
|
|
<el-input v-model="filterQuery.nameCode" style="width: 90%" placeholder="请输入产品标识DI"></el-input>
|
|
|
|
<el-input v-model="filterQuery.nameCode" style="width: 90%" placeholder="请输入DI/物资编码"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="产品名称:">
|
|
|
|
<el-form-item label="物资名称:">
|
|
|
|
<el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入产品名称"></el-input>
|
|
|
|
<el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入物资名称"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
@ -23,6 +23,33 @@
|
|
|
|
<el-input v-model="filterQuery.batchNo" style="width: 90%" placeholder="请输入批次号"></el-input>
|
|
|
|
<el-input v-model="filterQuery.batchNo" style="width: 90%" placeholder="请输入批次号"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="生产企业:" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input v-model="filterQuery.manufactory" style="width: 100%" placeholder="请输入生产企业/注册备案人"
|
|
|
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="物资分类:" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input v-model="filterQuery.category" style="width: 100%" placeholder="请输入物资分类名称"
|
|
|
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="6" v-if="productRemarkSet.remarkEnable1">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle1+':'" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input v-model="filterQuery.basicPrductRemak1" style="width: 100%"
|
|
|
|
|
|
|
|
:placeholder="productRemarkSet.remarkTitle1"
|
|
|
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6" v-if="productRemarkSet.remarkEnable2">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle2 +':'" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input v-model="filterQuery.basicPrductRemak2" style="width: 100%"
|
|
|
|
|
|
|
|
:placeholder="productRemarkSet.remarkTitle2"
|
|
|
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
@ -38,21 +65,22 @@
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="false" border ref="multipleTable">
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="false" border
|
|
|
|
|
|
|
|
ref="multipleTable">
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="55"></el-table-column>
|
|
|
|
<el-table-column label="DI/物资编码" prop="nameCode"></el-table-column>
|
|
|
|
<el-table-column label="DI/物资编码" prop="nameCode" width="120" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="物资名称" prop="cpmctymc"></el-table-column>
|
|
|
|
<el-table-column label="物资名称" prop="cpmctymc" width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="规格型号" prop="ggxh"></el-table-column>
|
|
|
|
<el-table-column label="规格型号" prop="ggxh" width="160"></el-table-column>
|
|
|
|
<el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
|
<el-table-column label="批次号" prop="batchNo" width="90"></el-table-column>
|
|
|
|
<el-table-column label="生产日期" prop="productionDate"></el-table-column>
|
|
|
|
<el-table-column label="生产日期" prop="productionDate" width="90"></el-table-column>
|
|
|
|
<el-table-column label="失效日期" prop="expireDate"></el-table-column>
|
|
|
|
<el-table-column label="失效日期" prop="expireDate" width="90"></el-table-column>
|
|
|
|
<el-table-column label="入库数量" prop="inCount"></el-table-column>
|
|
|
|
<el-table-column label="入库数量" prop="inCount" width="90"></el-table-column>
|
|
|
|
<el-table-column label="出库数量" prop="outCount"></el-table-column>
|
|
|
|
<el-table-column label="出库数量" prop="outCount" width="90"></el-table-column>
|
|
|
|
<el-table-column label="结余数量" prop="reCount"></el-table-column>
|
|
|
|
<el-table-column label="结余数量" prop="reCount" width="90"></el-table-column>
|
|
|
|
<el-table-column label="生产企业" prop="manufactory" width="200"></el-table-column>
|
|
|
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" width="180"></el-table-column>
|
|
|
|
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh" width="200"></el-table-column>
|
|
|
|
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh" width="180"></el-table-column>
|
|
|
|
<el-table-column label="供应商" prop="supName" width="260"></el-table-column>
|
|
|
|
<el-table-column label="供应商" prop="supName" width="180"></el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
@ -74,6 +102,7 @@ import {addDetail} from "@/api/inout/receiveOrder";
|
|
|
|
import {addBizProduct} from "@/api/inout/orderDetailCode";
|
|
|
|
import {addBizProduct} from "@/api/inout/orderDetailCode";
|
|
|
|
import {getInvPreInProduct, getInvPreInProductStock} from "@/api/inventory/invPreInSearch";
|
|
|
|
import {getInvPreInProduct, getInvPreInProductStock} from "@/api/inventory/invPreInSearch";
|
|
|
|
import {getInvPreProduct, getInvPreProductStock} from "@/api/inventory/invPreProduct";
|
|
|
|
import {getInvPreProduct, getInvPreProductStock} from "@/api/inventory/invPreProduct";
|
|
|
|
|
|
|
|
import {finProductSet} from "@/api/param/systemParamConfig";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -130,6 +159,7 @@ export default {
|
|
|
|
idQuery: null,
|
|
|
|
idQuery: null,
|
|
|
|
showSup: false,
|
|
|
|
showSup: false,
|
|
|
|
fromOptions: [],
|
|
|
|
fromOptions: [],
|
|
|
|
|
|
|
|
productRemarkSet: {},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
components: {},
|
|
|
@ -173,7 +203,7 @@ export default {
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
//寄售
|
|
|
|
//寄售
|
|
|
|
if(this.invQueryData.advanceType==3){
|
|
|
|
if (this.invQueryData.advanceType == 3) {
|
|
|
|
getInvPreProductStock(this.filterQuery)
|
|
|
|
getInvPreProductStock(this.filterQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.showSup = response.data.showSup;
|
|
|
|
this.showSup = response.data.showSup;
|
|
|
@ -187,7 +217,7 @@ export default {
|
|
|
|
this.total = 0;
|
|
|
|
this.total = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//预验收
|
|
|
|
//预验收
|
|
|
|
}else if(this.invQueryData.advanceType==2){
|
|
|
|
} else if (this.invQueryData.advanceType == 2) {
|
|
|
|
getInvPreInProductStock(this.filterQuery)
|
|
|
|
getInvPreInProductStock(this.filterQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.showSup = response.data.showSup;
|
|
|
|
this.showSup = response.data.showSup;
|
|
|
@ -201,7 +231,7 @@ export default {
|
|
|
|
this.total = 0;
|
|
|
|
this.total = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
getInvProductStock(this.filterQuery)
|
|
|
|
getInvProductStock(this.filterQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.showSup = response.data.showSup;
|
|
|
|
this.showSup = response.data.showSup;
|
|
|
@ -226,16 +256,16 @@ export default {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var idster = [];
|
|
|
|
var idster = [];
|
|
|
|
if(this.codeArray != null || this.codeArray!=undefined ){
|
|
|
|
if (this.codeArray != null || this.codeArray != undefined) {
|
|
|
|
if(this.codeArray.length>0){
|
|
|
|
if (this.codeArray.length > 0) {
|
|
|
|
for(var i=0;i<this.codeArray.length;i++){
|
|
|
|
for (var i = 0; i < this.codeArray.length; i++) {
|
|
|
|
idster.push(this.codeArray[i].relIdFk);
|
|
|
|
idster.push(this.codeArray[i].relIdFk);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(idster.length>0){
|
|
|
|
if (idster.length > 0) {
|
|
|
|
for(var i=0;i<idster.length;i++){
|
|
|
|
for (var i = 0; i < idster.length; i++) {
|
|
|
|
for(var j=0;j<selection.length;j++){
|
|
|
|
for (var j = 0; j < selection.length; j++) {
|
|
|
|
if(idster[i]==selection[j].relIdFk){
|
|
|
|
if (idster[i] == selection[j].relIdFk) {
|
|
|
|
this.$message.error("该产品已录入!");
|
|
|
|
this.$message.error("该产品已录入!");
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -293,8 +323,14 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
findBasicProductSet() {
|
|
|
|
|
|
|
|
finProductSet().then((response) => {
|
|
|
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
|
|
|
this.productRemarkSet = response.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filters: {
|
|
|
|
filters: {
|
|
|
@ -313,6 +349,7 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.findBasicProductSet();
|
|
|
|
this.filterQuery.invCode = this.invQueryData.targetInvCode;
|
|
|
|
this.filterQuery.invCode = this.invQueryData.targetInvCode;
|
|
|
|
// 加载表格数据
|
|
|
|
// 加载表格数据
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|