|
|
|
@ -3,35 +3,44 @@
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-form :model="listQuery" label-width="120px" v-show="showSearch">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
<el-form-item label="UDI码:" class="query-form-item">
|
|
|
|
|
<el-input v-model="listQuery.UdiCode" style="width: 96%" placeholder="请扫描或输入UDI码" clearable="true" @keyup.enter.native="keyup_submit($event)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="第三方产品编码:" class="query-form-item">
|
|
|
|
|
<el-input v-model="listQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码" clearable="true"></el-input>
|
|
|
|
|
<el-input v-model="listQuery.UdiCode" style="width: 96%" placeholder="请扫描或输入UDI码" clearable="true"
|
|
|
|
|
@keyup.enter.native="keyup_submit($event)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="第三方产品编码:" class="query-form-item">
|
|
|
|
|
<el-input v-model="listQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码"
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="物品编码:" class="query-form-item">
|
|
|
|
|
<el-input v-model="listQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码" clearable="true"></el-input>
|
|
|
|
|
<el-input v-model="listQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码"
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="物资名称:" class="query-form-item">
|
|
|
|
|
<el-input v-model="listQuery.cpmctymc" style="width: 90%" placeholder="请输入物资名称" clearable="true"></el-input>
|
|
|
|
|
<el-input v-model="listQuery.cpmctymc" style="width: 90%" placeholder="请输入物资名称"
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="规格型号:" class="query-form-item">
|
|
|
|
|
<el-input v-model="listQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="生产企业:" class="query-form-item">
|
|
|
|
|
<el-input v-model="listQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人"
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
@ -50,7 +59,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row :row-class-name="tableRowClassName" @current-change="handleChange" ref="multipleTable">
|
|
|
|
|
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row
|
|
|
|
|
:row-class-name="tableRowClassName" @current-change="handleChange" ref="multipleTable">
|
|
|
|
|
<el-table-column label width="45">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
|
|
|
@ -114,7 +124,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {filterCompanyProductRelevance} from "../../../api/basic/udiRlSuptRelevance";
|
|
|
|
|
import {addApplyDetail,addApply} from "../../../api/purchase/purApply";
|
|
|
|
|
import {addApplyDetail, addApply} from "../../../api/purchase/purApply";
|
|
|
|
|
import store from "../../../store";
|
|
|
|
|
import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog";
|
|
|
|
|
import {addOrderDetail} from "@/api/inventory/innerOrder";
|
|
|
|
@ -160,7 +170,7 @@ export default {
|
|
|
|
|
erpName: "",
|
|
|
|
|
keys: [],
|
|
|
|
|
},
|
|
|
|
|
ids:[],
|
|
|
|
|
ids: [],
|
|
|
|
|
radioCheck: null,
|
|
|
|
|
dataList: [],
|
|
|
|
|
pageTotal: 1,
|
|
|
|
@ -301,9 +311,9 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.ids.length>0){
|
|
|
|
|
for(var i=0;i<this.ids.length;i++){
|
|
|
|
|
if(this.ids[i]==this.multipleSelection.rlId){
|
|
|
|
|
if (this.ids.length > 0) {
|
|
|
|
|
for (var i = 0; i < this.ids.length; i++) {
|
|
|
|
|
if (this.ids[i] == this.multipleSelection.rlId) {
|
|
|
|
|
this.$message.error("该产品已录入!");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -322,12 +332,12 @@ export default {
|
|
|
|
|
combine() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
let tQuery = {
|
|
|
|
|
productId:this.multipleSelection.rlId,
|
|
|
|
|
productName:this.multipleSelection.cpmctymc,
|
|
|
|
|
count:1,
|
|
|
|
|
orderIdFk:this.pId,
|
|
|
|
|
supId:this.multipleSelection.customerId,
|
|
|
|
|
zczbhhzbapzbh:this.multipleSelection.zczbhhzbapzbh
|
|
|
|
|
productId: this.multipleSelection.rlId,
|
|
|
|
|
productName: this.multipleSelection.cpmctymc,
|
|
|
|
|
count: 1,
|
|
|
|
|
orderIdFk: this.pId,
|
|
|
|
|
supId: this.multipleSelection.customerId,
|
|
|
|
|
zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh
|
|
|
|
|
};
|
|
|
|
|
addOrderDetail(tQuery).then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -350,7 +360,7 @@ export default {
|
|
|
|
|
selectCert() {
|
|
|
|
|
if (this.currentCert == null) {
|
|
|
|
|
this.$message.error("请先选择对应的注册证!");
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.multipleSelection.zczbhhzbapzbh = this.currentCert;
|
|
|
|
|
this.combine();
|
|
|
|
|
}
|
|
|
|
@ -362,9 +372,9 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
console.log(this.data)
|
|
|
|
|
if (this.$isNotBlank(this.data)) {
|
|
|
|
|
this.ids=[];
|
|
|
|
|
if(this.data.stockOrderLists.length>0){
|
|
|
|
|
for(var i=0;i<this.data.stockOrderLists.length;i++){
|
|
|
|
|
this.ids = [];
|
|
|
|
|
if (this.data.stockOrderLists.length > 0) {
|
|
|
|
|
for (var i = 0; i < this.data.stockOrderLists.length; i++) {
|
|
|
|
|
this.ids.push(this.data.stockOrderLists[i].productId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|