提交 3290ba97 编写于 作者: qian.jie's avatar qian.jie

Merge branch 'release' of...

Merge branch 'release' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into feature/jq
...@@ -1741,13 +1741,19 @@ export default { ...@@ -1741,13 +1741,19 @@ export default {
if (option == "edit" || option == "storageEdit") { if (option == "edit" || option == "storageEdit") {
notifyData.notifyId = this.formData.notifyId; notifyData.notifyId = this.formData.notifyId;
} }
// 中医项目
const projectType = vm.getUrlSearch(window.location.href, "projectType");
console.log('--projectType', projectType);
if(projectType == 5){
projectModel.projectType = 5;
}
let postData = { let postData = {
projectModel: JSON.stringify(projectModel), projectModel: JSON.stringify(projectModel),
attachmentModel: JSON.stringify(attachmentModel), attachmentModel: JSON.stringify(attachmentModel),
attachmentPDFModel: JSON.stringify(attachmentPDFModel), attachmentPDFModel: JSON.stringify(attachmentPDFModel),
notifyData: JSON.stringify(notifyData) notifyData: JSON.stringify(notifyData)
}; };
//console.log(postData); console.log('JSON.stringify(projectModel)', projectModel, attachmentModel, attachmentPDFModel, notifyData);
openLoading(vm); openLoading(vm);
vm.POST("portal/portalInfo/insertOrUpdate", postData).then(res => { vm.POST("portal/portalInfo/insertOrUpdate", postData).then(res => {
closeLoading(vm); closeLoading(vm);
......
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
<el-dialog <el-dialog
title="请选择项目类型" title="请选择项目类型"
:visible.sync="centerDialogVisible" :visible.sync="centerDialogVisible"
width="600px" width="750px"
:close-on-click-modal="false" :close-on-click-modal="false"
@close="handleTypeClose" @close="handleTypeClose"
center center
...@@ -675,14 +675,16 @@ export default { ...@@ -675,14 +675,16 @@ export default {
}, },
//改变状态 //改变状态
changeStatus(row, type) { changeStatus(row, type) {
console.log('--row', row);
let projectId = row.id; let projectId = row.id;
let level = row.level; let level = row.level;
if (type === 0) { if (type === 0) {
this.updateItemManager(this.formInline); this.updateItemManager(this.formInline);
//编辑 //编辑
if (row.projectType === 1) { if (row.projectType === 1 || row.projectType === 5 ) {
this.$router.push( this.$router.push(
"edit-manager?projectType=1&projectId=" + "edit-manager?projectType=" + row.projectType +"&projectId=" +
projectId + projectId +
"&level=" + "&level=" +
level + level +
......
...@@ -148,6 +148,7 @@ ...@@ -148,6 +148,7 @@
size="small" size="small"
:disabled="isEdit && isProject" :disabled="isEdit && isProject"
@change="getContract" @change="getContract"
@clear="projectClear"
clearable clearable
filterable> filterable>
<el-option <el-option
...@@ -1188,6 +1189,7 @@ ...@@ -1188,6 +1189,7 @@
getContractList(projectId || 0).then(res => { getContractList(projectId || 0).then(res => {
if(res.code == '000000') { if(res.code == '000000') {
this.contractList = res.data; this.contractList = res.data;
console.log(this.contractList, 'this.contractList');
} }
}) })
}, },
...@@ -1200,8 +1202,14 @@ ...@@ -1200,8 +1202,14 @@
}) })
}, },
getContract(projectId) { getContract(projectId) {
this.formData3.contractId = '';
this.contractList = [];
this.getContractList(projectId); this.getContractList(projectId);
}, },
projectClear() {
this.formData3.contractId = '';
this.contractList = [];
},
// 获取业务类型 // 获取业务类型
// getBusinessCategory(){ // getBusinessCategory(){
// getBusinessCategory().then((res) => { // getBusinessCategory().then((res) => {
...@@ -1260,8 +1268,9 @@ ...@@ -1260,8 +1268,9 @@
const { goodsInfo, medicalService, buyLimitDtoList, hasRepoFlag} = res.data; const { goodsInfo, medicalService, buyLimitDtoList, hasRepoFlag} = res.data;
const { goodsName, goodsDescription, goodsType, expressLimitFlag,goodsHeaderImages=[], goodsVideoList=[], contractId, cooperationProjectId } = goodsInfo; const { goodsName, goodsDescription, goodsType, expressLimitFlag,goodsHeaderImages=[], goodsVideoList=[], contractId, cooperationProjectId } = goodsInfo;
this.isProject = cooperationProjectId; this.isProject = Boolean(cooperationProjectId);
this.isContract = contractId; if(this.isProject) {this.getContractList(cooperationProjectId) }
this.isContract = Boolean(contractId);
this.formData = {...this.formData, ...goodsInfo}; this.formData = {...this.formData, ...goodsInfo};
this.formData2 = medicalService; this.formData2 = medicalService;
this.formData = { ...this.formData, ...this.formData2 }; this.formData = { ...this.formData, ...this.formData2 };
...@@ -1320,8 +1329,9 @@ ...@@ -1320,8 +1329,9 @@
const { goodsName, goodsDescription, goodsType,expressLimitFlag, goodsHeaderImages=[], goodsVideoList=[],contractId, cooperationProjectId } = goodsList[0]; const { goodsName, goodsDescription, goodsType,expressLimitFlag, goodsHeaderImages=[], goodsVideoList=[],contractId, cooperationProjectId } = goodsList[0];
const goodDet = goodsList[0]; const goodDet = goodsList[0];
goodDet.otc1 = goodDet.otc ? '1' : '0'; goodDet.otc1 = goodDet.otc ? '1' : '0';
this.isProject = cooperationProjectId; this.isProject = Boolean(cooperationProjectId);
this.isContract = contractId; if(this.isProject) {this.getContractList(cooperationProjectId)}
this.isContract = Boolean(contractId);
this.formData1 = goodDet; this.formData1 = goodDet;
if (this.formData1.goodsType == 340) { if (this.formData1.goodsType == 340) {
this.showTcm = true; this.showTcm = true;
...@@ -1374,7 +1384,6 @@ ...@@ -1374,7 +1384,6 @@
}; };
this.barAndGoodsFlag = this.formData1.medicalCategoryId ? true : false; this.barAndGoodsFlag = this.formData1.medicalCategoryId ? true : false;
} }
console.log(this.formData);
}, },
getImges(d,type){ getImges(d,type){
let a = []; let a = [];
......
...@@ -66,7 +66,7 @@ const form = { ...@@ -66,7 +66,7 @@ const form = {
mostCount: -1, mostCount: -1,
incrType: 1, incrType: 1,
saleType: 1, saleType: 1,
minWhole: 0, minWhole: 1,
expressLimitFlag: 0, //是否支持退货退款 expressLimitFlag: 0, //是否支持退货退款
}; };
......
...@@ -116,7 +116,7 @@ const rules = { ...@@ -116,7 +116,7 @@ const rules = {
const rules3 = { const rules3 = {
goodsName: [ goodsName: [
{ required: true, message: "请输入商品名称", trigger: "submit" }, { required: true, message: "请输入商品名称", trigger: "submit" },
{ validator: checkProjectStr, trigger: "submit" }, // { validator: checkProjectStr, trigger: "submit" },
], ],
goodsDescription: [ goodsDescription: [
{ required: true, message: "请输入商品介绍", trigger: "submit" }, { required: true, message: "请输入商品介绍", trigger: "submit" },
......
...@@ -851,7 +851,8 @@ ...@@ -851,7 +851,8 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="资质信息" class="required-label" v-if="formData.storeType < 3"> <el-form-item label="资质信息" class="required-label" v-if="formData.storeType < 3">
<div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '1'; })).length > 0 || formData.storeType == 2"> <!-- <div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '1'; })).length > 0 || formData.storeType == 2"> -->
<div v-if="imgUrlP7Show || formData.storeType == 2">
<p v-if="certifyValidDtoList(7)" class="red">{{certifyValidDtoList(7)}}</p> <p v-if="certifyValidDtoList(7)" class="red">{{certifyValidDtoList(7)}}</p>
<p class="tips">药品经营许可证</p> <p class="tips">药品经营许可证</p>
<el-form-item prop="imgUrlP7"> <el-form-item prop="imgUrlP7">
...@@ -950,7 +951,8 @@ ...@@ -950,7 +951,8 @@
<!-- </el-date-picker>--> <!-- </el-date-picker>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </div>--> <!-- </div>-->
<div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '3'; })).length > 0"> <!-- <div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '3'; })).length > 0"> -->
<div v-if="imgUrlP9Show">
<p v-if="certifyValidDtoList(9)" class="red">{{certifyValidDtoList(9)}}</p> <p v-if="certifyValidDtoList(9)" class="red">{{certifyValidDtoList(9)}}</p>
<p class="tips">食品经营(流通)许可证</p> <p class="tips">食品经营(流通)许可证</p>
<el-form-item prop="imgUrlP9"> <el-form-item prop="imgUrlP9">
...@@ -999,7 +1001,8 @@ ...@@ -999,7 +1001,8 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</div> </div>
<div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '2'; })).length > 0"> <!-- <div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '2'; })).length > 0"> -->
<div v-if="imgUrlP10Show">
<p v-if="certifyValidDtoList(10)" class="red">{{certifyValidDtoList(10)}}</p> <p v-if="certifyValidDtoList(10)" class="red">{{certifyValidDtoList(10)}}</p>
<p class="tips">医疗器械经营许可证</p> <p class="tips">医疗器械经营许可证</p>
<el-form-item prop="imgUrlP10"> <el-form-item prop="imgUrlP10">
...@@ -1048,7 +1051,8 @@ ...@@ -1048,7 +1051,8 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</div> </div>
<div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '2' && String(i).charAt(3) == '3'; })).length > 0"> <!-- <div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '2' && String(i).charAt(3) == '3'; })).length > 0"> -->
<div v-if="imgUrlP13Show">
<p class="tips">医疗器械网络销售备案</p> <p class="tips">医疗器械网络销售备案</p>
<el-form-item prop="imgUrlP13"> <el-form-item prop="imgUrlP13">
<el-upload <el-upload
...@@ -1096,7 +1100,8 @@ ...@@ -1096,7 +1100,8 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</div> </div>
<div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '2' && String(i).charAt(3) == '2'; })).length > 0"> <!-- <div v-if="controlLicense.filter((i => { return String(i).charAt(0) == '2' && String(i).charAt(3) == '2'; })).length > 0"> -->
<div v-if="imgUrlP11Show">
<p v-if="certifyValidDtoList(11)" class="red">{{certifyValidDtoList(11)}}</p> <p v-if="certifyValidDtoList(11)" class="red">{{certifyValidDtoList(11)}}</p>
<p class="tips">二类医疗器械经营备案凭证</p> <p class="tips">二类医疗器械经营备案凭证</p>
<el-form-item prop="imgUrlP11"> <el-form-item prop="imgUrlP11">
...@@ -1699,6 +1704,21 @@ export default { ...@@ -1699,6 +1704,21 @@ export default {
computed: { computed: {
certifyStatusColor () { certifyStatusColor () {
return `certifyStatusColor${this.certifyStatus}`; return `certifyStatusColor${this.certifyStatus}`;
},
imgUrlP7Show(){
return this.controlLicense.filter((i => { return String(i).charAt(0) == '1'; })).length > 0
},
imgUrlP9Show(){
return this.controlLicense.filter((i => { return String(i).charAt(0) == '3'; })).length > 0
},
imgUrlP10Show(){
return this.controlLicense.filter((i => { return String(i).charAt(0) == '2'; })).length > 0
},
imgUrlP11Show(){
return this.controlLicense.filter((i => { return String(i).charAt(0) == '2' && String(i).charAt(3) == '2'; })).length > 0
},
imgUrlP13Show(){
return this.controlLicense.filter((i => { return String(i).charAt(0) == '2' && String(i).charAt(3) == '3'; })).length > 0
} }
}, },
watch: { watch: {
...@@ -1914,6 +1934,47 @@ export default { ...@@ -1914,6 +1934,47 @@ export default {
}); });
}, },
completeWholeForm() { completeWholeForm() {
console.log(this.controlLicense,this.formData);
if(!this.imgUrlP7Show){
this.formData.imgUrlP7 = ''
this.formData.certifyReq.certifyLicenseImgList.forEach((v,i)=>{
if(v.imageType == 7) {
this.formData.certifyReq.certifyLicenseImgList.splice(i,1)
}
})
}
if(!this.imgUrlP9Show){
this.formData.imgUrlP9 = ''
this.formData.certifyReq.certifyLicenseImgList.forEach((v,i)=>{
if(v.imageType == 9) {
this.formData.certifyReq.certifyLicenseImgList.splice(i,1)
}
})
}
if(!this.imgUrlP10Show){
this.formData.imgUrlP10 = ''
this.formData.certifyReq.certifyLicenseImgList.forEach((v,i)=>{
if(v.imageType == 10) {
this.formData.certifyReq.certifyLicenseImgList.splice(i,1)
}
})
}
if(!this.imgUrlP11Show){
this.formData.imgUrlP11 = ''
this.formData.certifyReq.certifyLicenseImgList.forEach((v,i)=>{
if(v.imageType == 11) {
this.formData.certifyReq.certifyLicenseImgList.splice(i,1)
}
})
}
if(!this.imgUrlP13Show){
this.formData.imgUrlP13 = ''
this.formData.certifyReq.certifyLicenseImgList.forEach((v,i)=>{
if(v.imageType == 13) {
this.formData.certifyReq.certifyLicenseImgList.splice(i,1)
}
})
}
let flag = this.submitForm(); let flag = this.submitForm();
if (flag && this.certifyStatus == 3) { if (flag && this.certifyStatus == 3) {
this.$confirm('您的店铺已经审核通过,重新提交后需要重新审核。', '确认重新提交店铺信息吗?', { this.$confirm('您的店铺已经审核通过,重新提交后需要重新审核。', '确认重新提交店铺信息吗?', {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册