物资入院审核问题

dev2.0.1
anthonywj 1 year ago
parent c209a83db6
commit ddfcaa3758

@ -11,7 +11,7 @@ ENV = 'production'
# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_SPMS_SERVER/'
# 平潭 # 平潭
VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/'
# 文明懂 # 文明懂
# VUE_APP_BASE_API = 'http://192.168.0.62:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://192.168.0.62:9150/UDI_SPMS_SERVER/'
@ -23,8 +23,7 @@ VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://121.36.152.129:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://121.36.152.129:9150/UDI_SPMS_SERVER/'
# 长泰医院 # 长泰医院
# VUE_APP_BASE_API = 'http://139.159.247.26:9150/UDI_SPMS_SERVER/' VUE_APP_BASE_API = 'http://139.159.247.26:9150/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://192.168.0.139:9150/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://dm.xmglxp.com:8081/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://dm.xmglxp.com:8081/UDI_SPMS_SERVER/'
@ -47,14 +46,16 @@ VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/'
# 东山 # 东山
# VUE_APP_BASE_API = 'http://116.204.108.228:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://116.204.108.228:9150/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://192.168.0.247:9150/UDI_SPMS_SERVER/'
# 应用访问路径 例如使用前缀 /admin/ # 应用访问路径 例如使用前缀 /admin/
# 域名 # 域名
# VUE_APP_CONTEXT_PATH = '/' VUE_APP_CONTEXT_PATH = '/'
# 其他 # 其他
VUE_APP_CONTEXT_PATH = '/UDI_SPMS_CLIENT/' # VUE_APP_CONTEXT_PATH = '/UDI_SPMS_CLIENT/'
# 监控地址 # 监控地址
VUE_APP_MONITRO_ADMIN = '/admin/login' VUE_APP_MONITRO_ADMIN = '/admin/login'

@ -139,6 +139,7 @@
</div> </div>
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border <el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border
highlight-current-row> highlight-current-row>
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>

@ -1,135 +1,250 @@
<template> <template>
<el-card class="el-card"> <el-card class="el-card">
<el-form :model="newProductData" size="mini" label-width="150px"> <el-form :model="newProductData" size="mini" label-width="150px">
<div style="margin-bottom: 20px"> <div style="margin-bottom: 20px">
<el-row> <!-- <el-row>-->
<el-col :span="12" class="el-col"> <!-- <el-col :span="12" class="el-col">-->
<el-form-item label="第三方系统:"> <!-- <el-form-item label="第三方系统:">-->
<el-select <!-- <el-select-->
style="width: 90%" <!-- style="width: 90%"-->
v-model="newProductData.thirdSysFk" placeholder="请选择第三方系统" <!-- v-model="newProductData.thirdSysFk" placeholder="请选择第三方系统"-->
> <!-- >-->
<el-option <!-- <el-option-->
v-for="item in thirdSys" <!-- v-for="item in thirdSys"-->
:key="item.value" <!-- :key="item.value"-->
:label="item.thirdName" <!-- :label="item.thirdName"-->
:value="item.thirdId"> <!-- :value="item.thirdId">-->
<span style="float: left">{{ item.thirdName }}</span> <!-- <span style="float: left">{{ item.thirdName }}</span>-->
<span style="float: right; color: #8492a6; font-size: 13px">{{ <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{-->
item.thirdId <!-- item.thirdId-->
}}</span> <!-- }}</span>-->
</el-option> <!-- </el-option>-->
</el-select> <!-- </el-select>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
</el-row> <!-- </el-row>-->
<el-row> <el-row>
<el-col :span="12" class="el-col"> <!-- <el-col :span="12" class="el-col">-->
<el-form-item label="产品编码:"> <!-- <el-form-item label="产品编码:">-->
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.code"></el-input> <!-- <el-input style="width: 90%" size="small" placeholder="请输入内容"-->
</el-form-item> <!-- v-model.trim="newProductData.code"></el-input>-->
</el-col> <!-- </el-form-item>-->
<el-col :span="12" class="el-col"> <!-- </el-col>-->
<el-form-item label="产品名称:"> <el-col :span="12" class="el-col">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.name"></el-input> <el-form-item label="产品名称:">
</el-form-item> <el-input style="width: 90%" size="small" placeholder="请输入内容"
</el-col> v-model.trim="newProductData.name"></el-input>
</el-row> </el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="规格型号:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.spec"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="计量单位:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.measname"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="生产企业:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.manufactory"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="注册证号:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.registerNo"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="医疗器械注册人:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.ylqxzcrbarmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="注册人英文名称:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.ylqxzcrbarywmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="产品类别:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.cplb"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="分类编码:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.flbm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="商品条码:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.sptm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="医保编码:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.ybbm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="统一社会信用号:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.tyshxydm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="器械类别:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.qxlb"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="产品价格:">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.price"></el-input>
</el-form-item>
</el-col>
<el-row>
<el-col :span="12" class="el-col">
<el-form-item label="规格型号:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.spec"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="计量单位:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.measname"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-col :span="12" v-if="productRemarkSet.remarkEnable1">
<el-col :span="12" class="el-col"> <el-form-item :label="productRemarkSet.remarkTitle1+':'">
<el-form-item label="生产企业:"> <el-input
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.manufactory"></el-input> style="width: 90%"
</el-form-item> size="small"
</el-col> splaceholder="请输入内容"
<el-col :span="12" class="el-col"> v-model="newProductData.basicPrductRemak1"
<el-form-item label="注册证号:"> ></el-input>
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.registerNo"></el-input> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12" v-if="productRemarkSet.remarkEnable2">
</el-row> <el-form-item :label="productRemarkSet.remarkTitle2+':'">
<el-input
style="width: 90%"
size="small"
splaceholder="请输入内容"
v-model="newProductData.basicPrductRemak2"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable3">
<el-form-item :label="productRemarkSet.remarkTitle3+':'">
<el-input
style="width: 90%"
size="small"
splaceholder="请输入内容"
v-model="newProductData.basicPrductRemak3"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable4">
<el-form-item :label="productRemarkSet.remarkTitle4+':'">
<el-input
style="width: 90%"
size="small"
splaceholder="请输入内容"
v-model="newProductData.basicPrductRemak4"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable5">
<el-form-item :label="productRemarkSet.remarkTitle5+':'">
<el-input
style="width: 90%"
size="small"
splaceholder="请输入内容"
v-model="newProductData.basicPrductRemak5"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable6">
<el-form-item :label="productRemarkSet.remarkTitle6+':'">
<el-select
v-model="newProductData.basicPrductRemak6"
placeholder="请选择"
clearable
style="width: 90%"
>
<el-option label="扣费" value="1"></el-option>
<el-option label="不扣费" value="0"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable7">
<el-form-item :label="productRemarkSet.remarkTitle7+':'">
<el-select
v-model="newProductData.basicPrductRemak7"
filterable
remote
clearable="true"
reserve-keyword
placeholder="请选择物资类别"
:remote-method="findThrTypeMethod"
style="width: 90%"
>
<el-option
v-for="item in thrTypeOptions"
:key="item.code"
:label="item.name"
:value="item.code"
>
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable8">
<el-form-item :label="productRemarkSet.remarkTitle8+':'">
<el-select
v-model="newProductData.basicPrductRemak8"
filterable
remote
clearable="true"
reserve-keyword
placeholder="请选择物价类别"
:remote-method="findHsflMethod"
style="width: 90%"
>
<el-option
v-for="item in hsflOptions"
:key="item.hsbm"
:label="item.hsmc"
:value="item.hsbm"
>
<span style="float: left">{{ item.hsmc }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.hsbm }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="23" class="el-col" style="margin-top: 12px">
<el-form-item label="产品描述:">
<el-input style="width: 100%" type="textarea" size="mini" rows="4" placeholder="请输入内容"
v-model.trim="newProductData.cpms"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<el-row> <div style='text-align: center; margin-bottom: 10px;'>
<el-col :span="12" class="el-col"> <el-button type="primary" @click="saveNewProduct"></el-button>
<el-form-item label="医疗器械注册人:"> <el-button type="primary" @click="closeAddDialog"></el-button>
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.ylqxzcrbarmc"></el-input> </div>
</el-form-item> </el-form>
</el-col> </el-card>
<el-col :span="12" class="el-col">
<el-form-item label="注册人英文名称:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.ylqxzcrbarywmc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" class="el-col">
<el-form-item label="产品类别:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.cplb"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="分类编码:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.flbm"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" class="el-col">
<el-form-item label="商品条码:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.sptm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="医保编码:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.ybbm"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" class="el-col">
<el-form-item label="统一社会信用号:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.tyshxydm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="器械类别:">
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.qxlb"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="23" class="el-col" style="margin-top: 12px">
<el-form-item label="产品描述:">
<el-input style="width: 100%" type="textarea" size="mini" rows="4" placeholder="请输入内容" v-model.trim="newProductData.cpms"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<div style='text-align: center; margin-bottom: 10px;'>
<el-button type="primary" @click="saveNewProduct"></el-button>
<el-button type="primary" @click="closeAddDialog"></el-button>
</div>
</el-form>
</el-card>
</template> </template>
<script> <script>
@ -138,124 +253,178 @@ import {saveNewProduct} from "@/api/thrsys/thrProducts";
import {getBasicThirdSys} from "@/api/basic/basicThirdSys"; import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
import {addProduct} from "@/api/thrsys/thrProductsAdd"; import {addProduct} from "@/api/thrsys/thrProductsAdd";
import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl";
import {finProductSet} from "@/api/param/systemParamConfig";
export default { export default {
name: "ThrProductsAdd", name: "ThrProductsAdd",
props: { props: {
newType: { newType: {
type: Object, type: Object,
required: true, required: true,
},
closeAddDialog: {
type: Function,
required: true,
},
}, },
data() { closeAddDialog: {
return { type: Function,
newProductData: { required: true,
name: '',
code: null,
registerNo: null,
manufactory: null,
spec: null,
measname: null,
ylqxzcrbarmc: null,
ylqxzcrbarywmc: null,
cplb: null,
flbm: null,
sptm: null,
ybbm: null,
tyshxydm: null,
qxlb: null,
cplx: null,
cpms: null,
thirdSysFk: null,
cpdls: null
},
thirdSys: [],
}
}, },
methods: { },
saveNewProduct() { data() {
this.addProductVisible = false; return {
if (this.$isBlank(this.newProductData.thirdSysFk)) { newProductData: {
this.$message.warning("第三方系统不能为空!"); name: '',
return; code: null,
} registerNo: null,
if (this.$isBlank(this.newProductData.code)) { manufactory: null,
this.$message.warning("产品编码为空!"); spec: null,
return; measname: null,
} ylqxzcrbarmc: null,
if (this.$isBlank(this.newProductData.name)) { ylqxzcrbarywmc: null,
this.$message.warning("产品名称不能为空!"); cplb: null,
return; flbm: null,
} sptm: null,
ybbm: null,
tyshxydm: null,
qxlb: null,
cplx: null,
cpms: null,
thirdSysFk: null,
cpdls: null
},
thirdSys: [],
hsflOptions: [],
thrTypeOptions: [],
productRemarkSet: {
remarkTitle1: "备注字段1",
remarkTitle2: "备注字段2",
remarkTitle3: "备注字段3",
remarkTitle4: "备注字段4",
remarkTitle5: "备注字段5",
remarkTitle6: "备注字段6",
remarkTitle7: "备注字段7",
remarkTitle8: "备注字段8",
},
}
},
methods: {
saveNewProduct() {
this.addProductVisible = false;
// if (this.$isBlank(this.newProductData.thirdSysFk)) {
// this.$message.warning("");
// return;
// }
// if (this.$isBlank(this.newProductData.code)) {
// this.$message.warning("");
// return;
// }
if (this.$isBlank(this.newProductData.name)) {
this.$message.warning("产品名称不能为空!");
return;
}
if (this.$isBlank(this.newProductData.spec)) { if (this.$isBlank(this.newProductData.spec)) {
this.$message.warning("规格型号不能为空"); this.$message.warning("规格型号不能为空");
return; return;
} }
if (this.$isBlank(this.newProductData.measname)) { if (this.$isBlank(this.newProductData.measname)) {
this.$message.warning("计量单位不能为空!"); this.$message.warning("计量单位不能为空!");
return; return;
} }
if (this.$isBlank(this.newProductData.manufactory)) { if (this.$isBlank(this.newProductData.manufactory)) {
this.$message.warning("生产企业不能为空!"); this.$message.warning("生产企业不能为空!");
return; return;
} }
if (this.$isBlank(this.newProductData.registerNo)) { if (this.$isBlank(this.newProductData.registerNo)) {
this.$message.warning("注册证号不能为空!"); this.$message.warning("注册证号不能为空!");
return; return;
} }
if (this.newType == 1) { if (this.newType == 1) {
saveNewProduct(this.newProductData).then((res) => { saveNewProduct(this.newProductData).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
this.$message.success("添加成功"); this.$message.success("添加成功");
// //
this.$emit("closeAddDialog", true); this.$emit("closeAddDialog", true);
this.closeAddDialog(); this.closeAddDialog();
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
}).catch((error) => { }).catch((error) => {
this.$message.error(error.message); this.$message.error(error.message);
}) })
} else if (this.newType == 2) { } else if (this.newType == 2) {
addProduct(this.newProductData).then((res) => { addProduct(this.newProductData).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
this.$message.success("添加成功"); this.$message.success("添加成功");
// //
this.closeAddDialog(true); this.closeAddDialog(true);
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
}).catch((error) => { }).catch((error) => {
this.$message.error(error.message); this.$message.error(error.message);
}) })
} }
},
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.list = [];
});
},
}, },
created() { getBasicThirdSys() {
this.getBasicThirdSys(); let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.list = [];
});
},
findHsflMethod(query) {
this.hsflOptions = [];
let cQuery = {
key: query,
page: 1,
limit: 20
};
getHslbs(cQuery)
.then((response) => {
this.loading = false;
this.hsflOptions = response.data.list || [];
})
.catch(() => {
this.loading = false;
});
},
findThrTypeMethod(query) {
this.thrTypeOptions = [];
let cQuery = {
key: query,
page: 1,
limit: 20
};
getThrProductType(cQuery)
.then((response) => {
this.loading = false;
this.thrTypeOptions = response.data.list || [];
})
.catch(() => {
this.loading = false;
});
},
findBasicProductSet() {
finProductSet().then((response) => {
if (response.code == 20000) {
this.productRemarkSet = response.data;
}
});
}, },
},
created() {
this.findBasicProductSet();
this.getBasicThirdSys();
},
} }
</script> </script>

@ -164,12 +164,13 @@
@click="addDiProductVisible = true" @click="addDiProductVisible = true"
>选入DI信息</el-button >选入DI信息</el-button
> >
<!-- <el-button--> <el-button
<!-- type="primary"--> type="primary"
<!-- icon="el-icon-plus"--> icon="el-icon-plus"
<!-- @click="addProductVisible = true"--> @click="addProductVisible = true"
<!-- >添加院内字典</el-button--> >添加院内字典
<!-- >--> </el-button
>
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>

@ -1,146 +1,204 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<div v-if="!isImport" style="margin-bottom: 20px"> <div v-if="!isImport" style="margin-bottom: 20px">
<el-form :model="data" size="mini" label-width="150px"> <el-form :model="data" size="mini" label-width="150px">
<el-row v-if="data.isAudit!=null && data.isAudit==2" type="flex" justify="end"> <el-row v-if="data.isAudit!=null && data.isAudit==2" type="flex" justify="end">
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;margin-top: -10px"> <el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;margin-top: -10px">
<el-button type="primary" @click="checkPass(2)"></el-button> <el-button type="primary" @click="checkPass(2)"></el-button>
<el-button type="primary" @click="checkPass(3)"></el-button> <el-button type="primary" @click="checkPass(3)"></el-button>
</el-button-group> </el-button-group>
</el-row> </el-row>
<div style="margin-bottom: 20px"> <div style="margin-bottom: 20px">
<el-row> <el-row>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item label="产品编码:"> <el-form-item label="产品编码:">
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model="data.code"></el-input> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
</el-form-item> v-model="data.code"></el-input>
</el-col> </el-form-item>
<el-col :span="12" class="el-col"> </el-col>
<el-form-item label="物资名称:"> <el-col :span="12" class="el-col">
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.name"></el-input> <el-form-item label="物资名称:">
</el-form-item> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
</el-col> v-model.trim="data.name"></el-input>
</el-row> </el-form-item>
</el-col>
<el-row> <el-col :span="12" class="el-col">
<el-col :span="12" class="el-col"> <el-form-item label="规格型号:">
<el-form-item label="规格型号:"> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.spec"></el-input> v-model.trim="data.spec"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item label="计量单位:"> <el-form-item label="计量单位:">
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.measname"></el-input> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
</el-form-item> v-model.trim="data.measname"></el-input>
</el-col> </el-form-item>
</el-row> </el-col>
<el-col :span="12" class="el-col">
<el-row> <el-form-item label="生产企业:">
<el-col :span="12" class="el-col"> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
<el-form-item label="生产企业:"> v-model.trim="data.manufactory"></el-input>
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.manufactory"></el-input> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12" class="el-col">
<el-col :span="12" class="el-col"> <el-form-item label="注册证号:">
<el-form-item label="注册证号:"> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.registerNo"></el-input> v-model.trim="data.registerNo"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col :span="12" class="el-col">
<el-form-item label="医疗器械注册人:">
<el-row> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
<el-col :span="12" class="el-col"> v-model.trim="data.ylqxzcrbarmc"></el-input>
<el-form-item label="医疗器械注册人:"> </el-form-item>
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.ylqxzcrbarmc"></el-input> </el-col>
</el-form-item> <el-col :span="12" class="el-col">
</el-col> <el-form-item label="注册人英文名称:">
<el-col :span="12" class="el-col"> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
<el-form-item label="注册人英文名称:"> v-model.trim="data.ylqxzcrbarywmc"></el-input>
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.ylqxzcrbarywmc"></el-input> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12" class="el-col">
</el-row> <el-form-item label="产品类别:">
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
<el-row> v-model.trim="data.cplb"></el-input>
<el-col :span="12" class="el-col"> </el-form-item>
<el-form-item label="产品类别:"> </el-col>
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.cplb"></el-input> <el-col :span="12" class="el-col">
</el-form-item> <el-form-item label="分类编码:">
</el-col> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
<el-col :span="12" class="el-col"> v-model.trim="data.flbm"></el-input>
<el-form-item label="分类编码:"> </el-form-item>
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.flbm"></el-input> </el-col>
</el-form-item> <el-col :span="12" class="el-col">
</el-col> <el-form-item label="商品条码:">
</el-row> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
v-model.trim="data.sptm"></el-input>
<el-row> </el-form-item>
<el-col :span="12" class="el-col"> </el-col>
<el-form-item label="商品条码:"> <el-col :span="12" class="el-col">
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.sptm"></el-input> <el-form-item label="医保编码:">
</el-form-item> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
</el-col> v-model.trim="data.ybbm"></el-input>
<el-col :span="12" class="el-col"> </el-form-item>
<el-form-item label="医保编码:"> </el-col>
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.ybbm"></el-input> <el-col :span="12" class="el-col">
</el-form-item> <el-form-item label="统一社会信用号:">
</el-col> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
</el-row> v-model.trim="data.tyshxydm"></el-input>
</el-form-item>
<el-row> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item label="统一社会信用号:"> <el-form-item label="器械类别:">
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.tyshxydm"></el-input> <el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容"
</el-form-item> v-model.trim="data.qxlb"></el-input>
</el-col> </el-form-item>
<el-col :span="12" class="el-col"> </el-col>
<el-form-item label="器械类别:"> <el-col :span="12">
<el-input style="width: 90%" size="small" :disabled="true" placeholder="请输入内容" v-model.trim="data.qxlb"></el-input> <el-form-item label="产品价格:">
</el-form-item> <el-input style="width: 90%" size="small" :disabled="true" splaceholder="请输入内容" type="number"
</el-col> step="0.01"
</el-row> v-model="data.price"></el-input>
</el-form-item>
</el-col>
<el-row v-if="data.isAudit==2"> <el-col :span="12" v-if="productRemarkSet.remarkEnable1">
<el-col :span="12"> <el-form-item :label="productRemarkSet.remarkTitle1 ">
<el-form-item label="审核意见:"> <el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
<el-input style="width: 90%" size="small" splaceholder="请输入审核意见" v-model="remark"></el-input> v-model="data.basicPrductRemak1"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col" >
<el-form-item label="产品描述:"> <el-col :span="12" v-if="productRemarkSet.remarkEnable2">
<el-input style="width: 90%" :disabled="true" type="textarea" size="small" rows="1" placeholder="请输入内容" v-model.trim="data.cpms"></el-input> <el-form-item :label="productRemarkSet.remarkTitle2 ">
</el-form-item> <el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
</el-col> v-model="data.basicPrductRemak2"></el-input>
</el-row> </el-form-item>
</div> </el-col>
</el-form> <el-col :span="12" v-if="productRemarkSet.remarkEnable3">
</div> <el-form-item :label="productRemarkSet.remarkTitle3 ">
</el-card> <el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
</div> v-model="data.basicPrductRemak3"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable4">
<el-form-item :label="productRemarkSet.remarkTitle4 ">
<el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
v-model="data.basicPrductRemak4"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable5">
<el-form-item :label="productRemarkSet.remarkTitle5 ">
<el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
v-model="data.basicPrductRemak5"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable6">
<el-form-item :label="productRemarkSet.remarkTitle6 ">
<el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
v-model="data.basicPrductRemak6"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable7">
<el-form-item :label="productRemarkSet.remarkTitle7 ">
<el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
v-model="data.basicPrductRemak7"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable8">
<el-form-item :label="productRemarkSet.remarkTitle8">
<el-input style="width: 90%" size="small" splaceholder="请输入内容" :disabled="true"
v-model="data.basicPrductRemak8"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="data.isAudit==2">
<el-col :span="12">
<el-form-item label="审核意见:">
<el-input style="width: 90%" size="small" splaceholder="请输入审核意见" v-model="remark"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="产品描述:">
<el-input style="width: 90%" :disabled="true" type="textarea" size="small" rows="1"
placeholder="请输入内容" v-model.trim="data.cpms"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
</el-form>
</div>
</el-card>
</div>
</template> </template>
<script> <script>
import { updateDiProduct } from '@/api/supplier/supProductsAddDi' import {updateDiProduct} from '@/api/supplier/supProductsAddDi'
import {finProductSet} from "@/api/param/systemParamConfig";
export default { export default {
name: "ThrProductsDetail", name: "ThrProductsDetail",
props: { props: {
data: { data: {
type: Object, type: Object,
required: true, required: true,
}, },
close:{ close: {
type:Function, type: Function,
required: true, required: true,
},
}, },
},
data() { data() {
return { return {
remark:"", remark: "",
productRemarkSet: {}
} }
}, },
methods: { methods: {
@ -163,10 +221,20 @@ export default {
this.$message.error(error.message) this.$message.error(error.message)
}) })
}, },
findBasicProductSet() {
finProductSet().then((response) => {
if (response.code == 20000) {
this.productRemarkSet = response.data
} else {
//
}
})
},
}, },
created() {
this.findBasicProductSet()
}
} }
</script> </script>

@ -1,122 +1,125 @@
<template> <template>
<el-form :model="newProductData" label-width="120px"> <el-form :model="newProductData" label-width="120px">
<el-row type="flex"> <!-- <el-row>-->
<el-col :span="11" type="flex"> <!-- <el-col :span="11">-->
<el-form-item label="第三方系统" prop="thirdSysFk"> <!-- <el-form-item label="第三方系统" prop="thirdSysFk">-->
<el-select <!-- <el-select-->
style="width: 90%" <!-- style="width: 90%"-->
v-model="newProductData.thirdSysFk" placeholder="请选择第三方系统" <!-- v-model="newProductData.thirdSysFk" placeholder="请选择第三方系统"-->
> <!-- >-->
<el-option <!-- <el-option-->
v-for="item in thirdSys" <!-- v-for="item in thirdSys"-->
:key="item.value" <!-- :key="item.value"-->
:label="item.thirdName" <!-- :label="item.thirdName"-->
:value="item.thirdId"> <!-- :value="item.thirdId">-->
<span style="float: left">{{ item.thirdName }}</span> <!-- <span style="float: left">{{ item.thirdName }}</span>-->
<span style="float: right; color: #8492a6; font-size: 13px">{{ <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{-->
item.thirdId <!-- item.thirdId-->
}}</span> <!-- }}</span>-->
</el-option> <!-- </el-option>-->
</el-select> <!-- </el-select>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
</el-row> <!-- </el-row>-->
<el-row type="flex"> <el-row>
<el-col :span="11" type="flex"> <el-col :span="11">
<el-form-item label="产品编码:" prop="code"> <el-form-item label="产品编码:" prop="code">
<el-input style="width: 90%" size="small" placeholder="请输入产品编码" v-model.trim="newProductData.code"></el-input></el-form-item> <el-input style="width: 90%" size="small" placeholder="请输入产品编码" v-model.trim="newProductData.code"></el-input>
</el-col> </el-form-item>
<el-col :span="11" type="flex"> </el-col>
<el-form-item label="物资名称:" prop="name"> <el-col :span="11">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入物资名称" v-model.trim="newProductData.name"></el-input> <el-form-item label="物资名称:" prop="name">
</el-form-item> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入物资名称"
</el-col> v-model.trim="newProductData.name"></el-input>
</el-row> </el-form-item>
<el-row type="flex"> </el-col>
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="规格型号:" prop="spec"> <el-form-item label="规格型号:" prop="spec">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入规格型号" v-model.trim="newProductData.spec"></el-input> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入规格型号"
</el-form-item> v-model.trim="newProductData.spec"></el-input>
</el-col> </el-form-item>
<el-col :span="11" class="el-col"> </el-col>
<el-form-item label="计量单位:" prop="measname"> <el-col :span="11" class="el-col">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入计量单位" v-model.trim="newProductData.measname"></el-input> <el-form-item label="计量单位:" prop="measname">
</el-form-item> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入计量单位"
</el-col> v-model.trim="newProductData.measname"></el-input>
</el-row> </el-form-item>
<el-row type="flex"> </el-col>
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="生产企业:" prop="manufactory"> <el-form-item label="生产企业:" prop="manufactory">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入生产企业" v-model.trim="newProductData.manufactory"></el-input> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入生产企业"
</el-form-item> v-model.trim="newProductData.manufactory"></el-input>
</el-col> </el-form-item>
<el-col :span="11" class="el-col"> </el-col>
<el-form-item label="注册证号:" prop="registerNo"> <el-col :span="11" class="el-col">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入注册证号" v-model.trim="newProductData.registerNo"></el-input> <el-form-item label="注册证号:" prop="registerNo">
</el-form-item> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入注册证号"
</el-col> v-model.trim="newProductData.registerNo"></el-input>
</el-row> </el-form-item>
<el-row type="flex"> </el-col>
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="医疗器械注册人:" prop="ylqxzcrbarmc"> <el-form-item label="医疗器械注册人:" prop="ylqxzcrbarmc">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入医疗器械注册人" v-model.trim="newProductData.ylqxzcrbarmc"></el-input> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入医疗器械注册人"
</el-form-item> v-model.trim="newProductData.ylqxzcrbarmc"></el-input>
</el-col> </el-form-item>
<el-col :span="11" class="el-col"> </el-col>
<el-form-item label="注册人英文名称:" prop="ylqxzcrbarywmc"> <el-col :span="11" class="el-col">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入注册人英文名称" v-model.trim="newProductData.ylqxzcrbarywmc"></el-input> <el-form-item label="注册人英文名称:" prop="ylqxzcrbarywmc">
</el-form-item> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入注册人英文名称"
</el-col> v-model.trim="newProductData.ylqxzcrbarywmc"></el-input>
</el-row> </el-form-item>
<el-row type="flex"> </el-col>
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="产品类别:" prop="cplb"> <el-form-item label="产品类别:" prop="cplb">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入产品类别" v-model.trim="newProductData.cplb"></el-input> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入产品类别"
</el-form-item> v-model.trim="newProductData.cplb"></el-input>
</el-col> </el-form-item>
<el-col :span="11" class="el-col"> </el-col>
<el-form-item label="分类编码:" prop="flbm"> <el-col :span="11" class="el-col">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入分类编码" v-model.trim="newProductData.flbm"></el-input> <el-form-item label="分类编码:" prop="flbm">
</el-form-item> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入分类编码"
</el-col> v-model.trim="newProductData.flbm"></el-input>
</el-row> </el-form-item>
<el-row type="flex"> </el-col>
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="商品条码:" prop="sptm"> <el-form-item label="商品条码:" prop="sptm">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入商品条码" v-model.trim="newProductData.sptm"></el-input> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入商品条码"
</el-form-item> v-model.trim="newProductData.sptm"></el-input>
</el-col> </el-form-item>
<el-col :span="11" class="el-col"> </el-col>
<el-form-item label="医保编码:" prop="ybbm"> <el-col :span="11" class="el-col">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入医保编码" v-model.trim="newProductData.ybbm"></el-input> <el-form-item label="医保编码:" prop="ybbm">
</el-form-item> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入医保编码"
</el-col> v-model.trim="newProductData.ybbm"></el-input>
</el-row> </el-form-item>
<el-row type="flex"> </el-col>
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="统一社会信用号:" prop="tyshxydm"> <el-form-item label="统一社会信用号:" prop="tyshxydm">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入统一社会信用号" v-model.trim="newProductData.tyshxydm"></el-input> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入统一社会信用号"
</el-form-item> v-model.trim="newProductData.tyshxydm"></el-input>
</el-col> </el-form-item>
<el-col :span="11" class="el-col"> </el-col>
<el-form-item label="器械类别:" prop="qxlb"> <el-col :span="11" class="el-col">
<el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入器械类别" v-model.trim="newProductData.qxlb"></el-input> <el-form-item label="器械类别:" prop="qxlb">
</el-form-item> <el-input style="width: 90%" size="small" maxlength="30" placeholder="请输入器械类别"
</el-col> v-model.trim="newProductData.qxlb"></el-input>
</el-row> </el-form-item>
</el-col>
</el-row>
<el-row type="flex"> <el-row>
<el-col :span="23" class="el-col"> <el-col :span="23" class="el-col">
<el-form-item label="产品描述:" prop="cpms"> <el-form-item label="产品描述:" prop="cpms">
<el-input style="width: 92%" type="textarea" size="mini" rows="3" placeholder="请输入产品描述" v-model.trim="newProductData.cpms"></el-input> <el-input style="width: 92%" type="textarea" size="mini" rows="3" placeholder="请输入产品描述"
</el-form-item> v-model.trim="newProductData.cpms"></el-input>
</el-col> </el-form-item>
</el-row> </el-col>
<div style='text-align: center; margin-bottom: 10px;'> </el-row>
<el-button type="primary" @click="saveNewProduct"></el-button> <div style='text-align: center; margin-bottom: 10px;'>
<el-button type="primary" @click="closeAddDialog"></el-button> <el-button type="primary" @click="saveNewProduct"></el-button>
</div> <el-button type="primary" @click="closeAddDialog"></el-button>
</el-form> </div>
</el-form>
</template> </template>
<script> <script>
@ -127,122 +130,122 @@ import {getBasicThirdSys} from "@/api/thrsys/basicThirdSys";
import {addProduct} from "@/api/thrsys/thrProductsAdd"; import {addProduct} from "@/api/thrsys/thrProductsAdd";
export default { export default {
name: "ThrProductsAdd", name: "ThrProductsAdd",
props: { props: {
newType: { newType: {
type: Object, type: Object,
required: true, required: true,
},
closeAddDialog: {
type: Function,
required: true,
},
}, },
data() { closeAddDialog: {
return { type: Function,
newProductData: { required: true,
name: '',
code: null,
registerNo: null,
manufactory: null,
spec: null,
measname: null,
ylqxzcrbarmc: null,
ylqxzcrbarywmc: null,
cplb: null,
flbm: null,
sptm: null,
ybbm: null,
tyshxydm: null,
qxlb: null,
cplx:null,
cpms: null,
thirdSysFk: null,
cpdls: null
},
thirdSys: [],
}
}, },
methods: { },
saveNewProduct() { data() {
this.addProductVisible = false; return {
if (this.$isBlank(this.newProductData.thirdSysFk)) { newProductData: {
this.$message.warning("第三方系统不能为空!"); name: '',
return; code: null,
} registerNo: null,
if (this.$isBlank(this.newProductData.code)) { manufactory: null,
this.$message.warning("产品编码为空!"); spec: null,
return; measname: null,
} ylqxzcrbarmc: null,
if (this.$isBlank(this.newProductData.name)) { ylqxzcrbarywmc: null,
this.$message.warning("物资名称不能为空!"); cplb: null,
return; flbm: null,
} sptm: null,
ybbm: null,
tyshxydm: null,
qxlb: null,
cplx: null,
cpms: null,
thirdSysFk: null,
cpdls: null
},
thirdSys: [],
}
},
methods: {
saveNewProduct() {
this.addProductVisible = false;
if (this.$isBlank(this.newProductData.thirdSysFk)) {
this.$message.warning("第三方系统不能为空!");
return;
}
if (this.$isBlank(this.newProductData.code)) {
this.$message.warning("产品编码为空!");
return;
}
if (this.$isBlank(this.newProductData.name)) {
this.$message.warning("物资名称不能为空!");
return;
}
if (this.$isBlank(this.newProductData.spec)) { if (this.$isBlank(this.newProductData.spec)) {
this.$message.warning("规格型号不能为空"); this.$message.warning("规格型号不能为空");
return; return;
} }
if (this.$isBlank(this.newProductData.measname)) { if (this.$isBlank(this.newProductData.measname)) {
this.$message.warning("计量单位不能为空!"); this.$message.warning("计量单位不能为空!");
return; return;
} }
if (this.$isBlank(this.newProductData.manufactory)) { if (this.$isBlank(this.newProductData.manufactory)) {
this.$message.warning("生产企业不能为空!"); this.$message.warning("生产企业不能为空!");
return; return;
} }
if (this.$isBlank(this.newProductData.registerNo)) { if (this.$isBlank(this.newProductData.registerNo)) {
this.$message.warning("注册证号不能为空!"); this.$message.warning("注册证号不能为空!");
return; return;
} }
if (this.newType == 1) { if (this.newType == 1) {
saveNewProduct(this.newProductData).then((res) => { saveNewProduct(this.newProductData).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
this.$message.success("添加成功"); this.$message.success("添加成功");
// //
this.$emit("closeAddDialog", true); this.$emit("closeAddDialog", true);
this.closeAddDialog(); this.closeAddDialog();
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
}).catch((error) => { }).catch((error) => {
// this.$message.error(error.message); // this.$message.error(error.message);
}) })
} else if (this.newType == 2) { } else if (this.newType == 2) {
addProduct(this.newProductData).then((res) => { addProduct(this.newProductData).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
this.$message.success("添加成功"); this.$message.success("添加成功");
// //
this.closeAddDialog(true); this.closeAddDialog(true);
}else { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
}).catch((error) => { }).catch((error) => {
// this.$message.error(error.message); // this.$message.error(error.message);
}) })
} }
},
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.list = [];
});
},
}, },
created() { getBasicThirdSys() {
this.getBasicThirdSys(); let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.list = [];
});
}, },
},
created() {
this.getBasicThirdSys();
},
} }
</script> </script>

Loading…
Cancel
Save