阳光平台对照主键修改

master
hongtianzai 3 years ago
parent b0114b45bd
commit cc467fc536

@ -58,12 +58,12 @@
>
<el-table-column label="选择" width="50px">
<template slot-scope="scope">
<el-radio :label="scope.row.projectGoodsCode" v-model="selectValue.projectGoodsCode">&nbsp;</el-radio>
<el-radio :label="scope.row.deliveryGoodsId" v-model="selectValue.deliveryGoodsId">&nbsp;</el-radio>
</template>
</el-table-column>
<el-table-column label="ID" prop="deliveryGoodsId"/>
<el-table-column label="产品名称" prop="productName"/>
<el-table-column label="目录编码" prop="projectGoodsCode"/>
<el-table-column label="联采目录编码" prop="projectGoodsCode"/>
<el-table-column label="医保编码" prop="medicalCode"/>
</el-table>
@ -98,7 +98,7 @@ export default {
data(){
return{
selectValue:{
projectGoodsCode:"",
deliveryGoodsId:"",
medicalCode:""
}
}
@ -126,7 +126,7 @@ export default {
},
rowClick(row){
console.log(row);
this.selectValue.projectGoodsCode = row.projectGoodsCode;
this.selectValue.deliveryGoodsId = row.deliveryGoodsId;
this.selectValue.medicalCode = row.medicalCode;
},
selectAction(){

@ -51,9 +51,9 @@
style="width: 100%"
>
<el-table-column label="序号" type="index"/>
<el-table-column label="ID" prop="distributorId"/>
<el-table-column label="企业编码" prop="distributorCode"/>
<el-table-column label="企业名称" prop="distributorName"/>
<el-table-column label="配送企业ID" prop="distributorId"/>
<el-table-column label="配送企业编码" prop="distributorCode"/>
<el-table-column label="配送企业名称" prop="distributorName"/>
<el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true"/>
<el-table-column label="更新时间" align="center" prop="updateTime" :show-overflow-tooltip="true"/>

@ -51,8 +51,8 @@
style="width: 100%"
>
<el-table-column label="序号" type="index"/>
<el-table-column label="ID" prop="deliveryGoodsId"/>
<el-table-column label="目录编码" prop="projectGoodsCode"/>
<el-table-column label="配送目录ID" prop="deliveryGoodsId"/>
<el-table-column label="联采目录编码" prop="projectGoodsCode"/>
<el-table-column label="生产企业" prop="manufactureName"/>
<el-table-column label="配送企业" prop="distributorName"/>
<el-table-column label="产品名称" prop="productName"/>

@ -77,13 +77,13 @@
style="width: 100%"
>
<el-table-column label="产品标识" prop="nameCode"/>
<el-table-column label="产品名称" prop="cpmctymc"/>
<el-table-column label="规格型号" prop="ggxh"/>
<el-table-column label="注册/备案人名称" prop="ylqxzcrbarmc"/>
<el-table-column label="注册/备案证号" prop="zczbhhzbapzbh"/>
<el-table-column label="产品通用名称" prop="cpmctymc"/>
<el-table-column label="规格" prop="ggxh"/>
<el-table-column label="注册人名称" prop="ylqxzcrbarmc"/>
<el-table-column label="注册证号" prop="zczbhhzbapzbh"/>
<!-- <el-table-column label="产品描述" prop="cpms"/>-->
<el-table-column label="产品key" prop="deviceRecordKey"/>
<el-table-column label="阳光编码" prop="projectGoodsCode"/>
<!-- <el-table-column label="产品key" prop="deviceRecordKey"/>-->
<el-table-column label="阳光编码" prop="deliveryGoodsId"/>
<el-table-column label="医保编码" prop="medicalCode"/>
<el-table-column label="操作" fixed="right" width="80">
<template slot-scope="scope">
@ -220,8 +220,8 @@
</el-row>
<el-row :gutter="25">
<el-col :span="12">
<el-form-item label="产品对照码">
<el-input v-model="dialog.productDetail.projectGoodsCode">
<el-form-item label="阳光平台码">
<el-input v-model="dialog.productDetail.deliveryGoodsId">
<el-button style="padding-right:10px" slot="suffix" type="text" @click="select"></el-button>
</el-input>
@ -313,8 +313,8 @@ export default {
},
selectAction(value){
console.log(value);
if(value.projectGoodsCode && value.projectGoodsCode != ''){
this.dialog.productDetail.projectGoodsCode = value.projectGoodsCode;
if(value.deliveryGoodsId && value.deliveryGoodsId != ''){
this.dialog.productDetail.deliveryGoodsId = value.deliveryGoodsId;
}
if(value.medicalCode && value.medicalCode != '')
this.dialog.productDetail.medicalCode = value.medicalCode;
@ -325,7 +325,7 @@ export default {
save(){
let param={
deviceRecordKey: this.dialog.productDetail.deviceRecordKey,
projectGoodsCode: this.dialog.productDetail.projectGoodsCode,
deliveryGoodsId: this.dialog.productDetail.deliveryGoodsId,
medicalCode: this.dialog.productDetail.medicalCode
}
Save(param).then(result => {

@ -84,7 +84,11 @@
<span>{{ getDownloadType(scope.row.downloadType) }}</span>
</template>
</el-table-column>
<el-table-column label="表名" prop="tbName"/>
<el-table-column label="名称" prop="tbName">
<template slot-scope="scope">
<span>{{getTbName(scope.row.tbName)}}</span>
</template>
</el-table-column>
<el-table-column label="日期" prop="actionDate"/>
<el-table-column label="执行行数" prop="totalCount"/>
@ -139,6 +143,7 @@ export default {
return {
typeOptions: [{value: "", label: "全部"}, {value: "error", label: "错误信息"}, {value: "warning",label: "警告信息"}, {value: "info", label: "正常信息"}],
downloadTypeOptions: [{value: "", label: "全部"}, {value: "auto", label: "自动"}, {value: "manual",label: "手动"},{value: "import",label: "导入"}],
tbNameOption:[{value:"udplat_distributor",label:"配送企业"},{value:"udplat_goods",label:"产品目录"},{value:"udplat_hospital",label:"医疗机构"},{value:"udplat_manufacture",label:"生产企业"}],
queryParams: {
page: 1,
limit: 10,
@ -211,6 +216,9 @@ export default {
});
});
},
getTbName(tbName){
return this.selectDictLabel(this.tbNameOption,tbName);
},
downloadAll() {
let _this=this;
this.$confirm("是否重新下载全部的数据?", "提示", {

Loading…
Cancel
Save