项目组套新增供应商ID

dev_ksck2.0
anthonywj 1 year ago
parent 275449e3b1
commit 1bdbc9beb5

@ -4,7 +4,7 @@
<el-form :model="listQuery" label-width="120px" v-if="showSearch">
<el-row>
<el-col :span="18">
<el-form-item label="UDI码:" >
<el-form-item label="UDI码:">
<el-input v-model="listQuery.udiCode" style="width: 96%" placeholder="请扫描或输入UDI码" clearable="true"
@keyup.enter.native="keyup_submit($event)"></el-input>
</el-form-item>
@ -12,25 +12,25 @@
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="拼音简写:" >
<el-form-item label="拼音简写:">
<el-input v-model="listQuery.pinyinInitial" @input="search" style="width: 100%" placeholder="请输入物资拼音简写"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="第三方物资编码:" >
<el-form-item label="第三方物资编码:">
<el-input v-model="listQuery.thrPiId" style="width: 100%" placeholder="第三方物资编码"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="分类编码:" >
<el-form-item label="分类编码:">
<el-input v-model="listQuery.flbm" style="width: 100%" placeholder="请输入分类编码"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="供应商:" >
<el-form-item label="供应商:">
<el-input v-model="listQuery.companyName" style="width: 100%" placeholder="请输入供应商"
clearable="true"></el-input>
</el-form-item>
@ -38,24 +38,24 @@
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="物品编码:" >
<el-form-item label="物品编码:">
<el-input v-model="listQuery.unionCode" style="width: 100%" placeholder="请输入DI/医保编码/商品条码"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="产品通用名:" >
<el-form-item label="产品通用名:">
<el-input v-model="listQuery.cpmctymc" style="width: 100%" placeholder="请输入产品通用名"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="规格型号:" >
<el-form-item label="规格型号:">
<el-input v-model="listQuery.ggxh" style="width: 100%" placeholder="请输入规格型号" clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="生产企业:" >
<el-form-item label="生产企业:">
<el-input v-model="listQuery.manufactory" style="width: 100%" placeholder="请输入生产企业/注册备案人"
clearable="true"></el-input>
</el-form-item>
@ -64,7 +64,7 @@
<el-row>
<el-col :span="6">
<el-form-item label="物资分类:" >
<el-form-item label="物资分类:">
<el-input v-model="listQuery.category" style="width: 100%" placeholder="请输入物资分类名称"
clearable="true"></el-input>
</el-form-item>
@ -84,7 +84,7 @@
<el-divider style="margin: 15px"></el-divider>
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row
@selection-change="handleSelectionChange" ref="multipleTable">
@selection-change="handleSelectionChange" ref="multipleTable">
<el-table-column type="selection" :reserve-selection="true"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="最小销售产品标识" prop="nameCode" width="140" show-overflow-tooltip></el-table-column>
@ -98,11 +98,11 @@
</el-table>
<pagination
v-show="pageTotal>0"
:total="pageTotal"
:page.sync="listQuery.page"
:limit.sync="listQuery.limit"
@pagination="handleErpPageChange"
v-show="pageTotal>0"
:total="pageTotal"
:page.sync="listQuery.page"
:limit.sync="listQuery.limit"
@pagination="handleErpPageChange"
></pagination>
</el-card>
@ -269,29 +269,33 @@ export default {
handleSelectionChange(val) {
this.lists = [];
for (var i = 0; i < val.length; i++) {
this.lists.push(val[i].id)
let data = {
udiRlIdFk: val[i].id,
unitFk: val[i].unitFk
}
this.lists.push(data)
}
},
getList() {
this.loading = true;
this.listQuery.id = this.editQuery.id
filterDestinyProduct(this.listQuery)
.then((response) => {
this.loading = false;
if (response.code === 20000) {
this.dataList = response.data.list || [];
this.pageTotal = response.data.total || 0;
} else {
this.$message.error(response.message);
.then((response) => {
this.loading = false;
if (response.code === 20000) {
this.dataList = response.data.list || [];
this.pageTotal = response.data.total || 0;
} else {
this.$message.error(response.message);
this.dataList = [];
this.pageTotal = 0;
}
})
.catch(() => {
this.loading = false;
this.dataList = [];
this.pageTotal = 0;
}
})
.catch(() => {
this.loading = false;
this.dataList = [];
this.pageTotal = 0;
});
});
},
confirmSelect() {
if (this.lists == null) {
@ -302,12 +306,12 @@ export default {
},
combine() {
this.loading = true;
addModeldestinyProduct({pId:this.editQuery.id,list:this.lists}).then((response) => {
addModeldestinyProduct({pId: this.editQuery.id, list: this.lists}).then((response) => {
this.loading = false;
if (response.code === 20000) {
this.closeDialog(response.data);
} else {
this.$message.error(response.message);
this.$message.error(response.message);
}
}).catch(() => {
this.loading = false;

Loading…
Cancel
Save