Commit fbd12a95 authored by 罗成兵's avatar 罗成兵

bug完善

parent caed2e8c
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => { this.$api.fyManage.fetchFYLoginUser(par).then(({data}) => {
// window.sessionStorage.setItem('menuList', JSON.stringify(data.menuList)); // window.sessionStorage.setItem('menuList', JSON.stringify(data.menuList));
window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo)); window.sessionStorage.setItem('userInfo', JSON.stringify(data.userInfo));
window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList)) window.sessionStorage.setItem('allEnum', JSON.stringify(data.enumValueList));
window.sessionStorage.setItem('unitInfo', JSON.stringify(data.unitInfo));
this.setInitMenuInfo() this.setInitMenuInfo()
this.showChildren = true this.showChildren = true
}) })
......
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
<img class="title_img" src="../../../../../static/images/user_info_index.png"> <img class="title_img" src="../../../../../static/images/user_info_index.png">
<span class="title_font">女方信息</span> <span class="title_font">女方信息</span>
</div> </div>
<a-button slot="extra">身份证识别</a-button> <a-button slot="extra" class="ant-table-btn">身份证识别</a-button>
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="姓名" prop="womanName"> <a-form-model-item label="姓名" prop="womanName">
<a-input placeholder="请输入姓名" v-model="formData.womanName"></a-input> <a-input placeholder="请输入姓名" :disabled="disabled" v-model="formData.womanName"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="证件类型" prop="womenCertificateType"> <a-form-model-item label="证件类型" prop="womenCertificateType">
<a-select v-model="formData.womenCertificateType" placeholder="请选择"> <a-select v-model="formData.womenCertificateType" placeholder="请选择" :disabled="disabled">
<a-select-option v-for="item in certificateTypeList" <a-select-option v-for="item in certificateTypeList"
:key="item.enumValue" :value="item.enumValue" :key="item.enumValue" :value="item.enumValue"
> >
...@@ -38,12 +38,12 @@ ...@@ -38,12 +38,12 @@
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="证件号码" prop="womenIdCard"> <a-form-model-item label="证件号码" prop="womenIdCard">
<a-input placeholder="请输入证件号码" v-model="formData.womenIdCard"></a-input> <a-input placeholder="请输入证件号码" v-model="formData.womenIdCard" :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="是否曾经怀孕" prop="oncePregnant"> <a-form-model-item label="是否曾经怀孕" prop="oncePregnant">
<a-radio-group v-model="formData.oncePregnant" @change="onChangePregnant"> <a-radio-group v-model="formData.oncePregnant" @change="onChangePregnant" :disabled="disabled">
<a-radio :value="1"> <a-radio :value="1">
</a-radio> </a-radio>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="孕次" prop="pregnantNum" v-if="formData.oncePregnant==1"> <a-form-model-item label="孕次" prop="pregnantNum" v-if="formData.oncePregnant==1">
<a-input v-toInt placeholder="请输入" v-model="formData.pregnantNum"></a-input> <a-input v-toInt placeholder="请输入" v-model="formData.pregnantNum" :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
...@@ -65,16 +65,16 @@ ...@@ -65,16 +65,16 @@
<img class="title_img" src="../../../../../static/images/user_info_index.png"> <img class="title_img" src="../../../../../static/images/user_info_index.png">
<span class="title_font">男方信息</span> <span class="title_font">男方信息</span>
</div> </div>
<a-button slot="extra">身份证识别</a-button> <a-button slot="extra" class="ant-table-btn">身份证识别</a-button>
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="姓名" prop="manName"> <a-form-model-item label="姓名" prop="manName">
<a-input placeholder="请输入姓名" v-model="formData.manName"></a-input> <a-input placeholder="请输入姓名" v-model="formData.manName" :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="证件类型" prop="menCertificateType"> <a-form-model-item label="证件类型" prop="menCertificateType">
<a-select v-model="formData.menCertificateType" placeholder="请选择"> <a-select v-model="formData.menCertificateType" placeholder="请选择" :disabled="disabled">
<a-select-option v-for="item in certificateTypeList" <a-select-option v-for="item in certificateTypeList"
:key="item.enumValue" :value="item.enumValue" :key="item.enumValue" :value="item.enumValue"
> >
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="证件号码" prop="menIdCard"> <a-form-model-item label="证件号码" prop="menIdCard">
<a-input placeholder="请输入证件号码" v-model="formData.menIdCard"></a-input> <a-input placeholder="请输入证件号码" v-model="formData.menIdCard" :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="联系电话" prop="telephone" :labelCol="{span: 3}" <a-form-model-item label="联系电话" prop="telephone" :labelCol="{span: 3}"
:wrapperCol="{span: 8}"> :wrapperCol="{span: 8}">
<a-input placeholder="请输入联系电话" v-model="formData.telephone"></a-input> <a-input placeholder="请输入联系电话" v-model="formData.telephone" :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
<!--<a-input placeholder="请输入现住地址" v-model="formData.presentCode"></a-input>--> <!--<a-input placeholder="请输入现住地址" v-model="formData.presentCode"></a-input>-->
<a-cascader v-model="formData.presentCode" <a-cascader v-model="formData.presentCode"
change-on-select change-on-select
:disabled="disabled"
:options="areaInfo" :options="areaInfo"
:fieldNames="fieldNames" :fieldNames="fieldNames"
:load-data="loadAreaData" :load-data="loadAreaData"
...@@ -120,7 +121,7 @@ ...@@ -120,7 +121,7 @@
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="详细地址" prop="nowAddress" :labelCol="{span: 3}" <a-form-model-item label="详细地址" prop="nowAddress" :labelCol="{span: 3}"
:wrapperCol="{span: 20}"> :wrapperCol="{span: 20}">
<a-input placeholder="请输入详细地址" v-model="formData.nowAddress"></a-input> <a-input placeholder="请输入详细地址" v-model="formData.nowAddress" :disabled="disabled"></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
...@@ -136,7 +137,7 @@ ...@@ -136,7 +137,7 @@
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="签署日期" prop="parentDate"> <a-form-model-item label="签署日期" prop="parentDate">
<a-date-picker v-model="formData.parentDate" format="YYYY-MM-DD" <a-date-picker v-model="formData.parentDate" format="YYYY-MM-DD" :disabled="disabled"
style="width: 100%"/> style="width: 100%"/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -179,7 +180,6 @@ ...@@ -179,7 +180,6 @@
<div class="divider_my"><span class="midText">发放信息</span></div> <div class="divider_my"><span class="midText">发放信息</span></div>
</div> </div>
<div style="clear: both"></div> <div style="clear: both"></div>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="发放日期" prop="provideDate"> <a-form-model-item label="发放日期" prop="provideDate">
<a-date-picker v-model="formData.provideDate" format="YYYY-MM-DD" style="width: 100%"/> <a-date-picker v-model="formData.provideDate" format="YYYY-MM-DD" style="width: 100%"/>
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
</a-col> </a-col>
<a-col :span="21" :offset="3"> <a-col :span="21" :offset="3">
<a-form-model-item :wrapperCol="{span: 23}"> <a-form-model-item :wrapperCol="{span: 23}">
<a-button type="primary" @click="openStockModel" style="margin-bottom: 10px">请选择要发放的叶酸种类 <a-button type="primary" @click="openStockModel">请选择要发放的叶酸种类
</a-button> </a-button>
<a-table :dataSource="formData.provideRecordList" rowKey="id" :pagination="false" <a-table :dataSource="formData.provideRecordList" rowKey="id" :pagination="false"
class="table_input tab_error" class="table_input tab_error"
...@@ -291,11 +291,12 @@ ...@@ -291,11 +291,12 @@
nowAddress: undefined, nowAddress: undefined,
signedMode: '2', signedMode: '2',
parentDate: undefined, parentDate: undefined,
provideDate: undefined, provideDate: moment(new Date()).format('yyyy-MM-DD'),
provideDoctorId: undefined, provideDoctorId: undefined,
provideRecordList: [], provideRecordList: [],
remarks: undefined, remarks: undefined,
}, },
disabled:false,
formRules: { formRules: {
womanName: [ womanName: [
{required: true, message: '请输入姓名'} {required: true, message: '请输入姓名'}
...@@ -346,11 +347,17 @@ ...@@ -346,11 +347,17 @@
sendNumber: [ sendNumber: [
{required: true, message: '请输入发放数量'}, {required: true, message: '请输入发放数量'},
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback, prod) => {
let index;
for (let key in prod) {
let keyArr = key.split(".");
index = Number(keyArr[1]);
}
if (value == '' || value == undefined) { if (value == '' || value == undefined) {
callback() callback()
} }
if (value <= recordInfo.number) { let number = this.formData.provideRecordList[index].number
if (value <= number) {
callback() callback()
} else { } else {
callback(new Error('超出当前库存!')); callback(new Error('超出当前库存!'));
...@@ -381,12 +388,13 @@ ...@@ -381,12 +388,13 @@
} }
}, },
created() { created() {
this.routerParams = this.$route.query this.routerParams = this.$route.query;
this.certificateTypeList = getEnumByFlag('folacin_resident_info_certificate_type') this.certificateTypeList = getEnumByFlag('folacin_resident_info_certificate_type')
this.signedModeList = getEnumByFlag('folacin_resident_info_signed_mode') this.signedModeList = getEnumByFlag('folacin_resident_info_signed_mode')
this.getBookHtmlContent() this.getBookHtmlContent()
this.getAllDoctorList() this.getAllDoctorList()
if (this.routerParams.routerFlag == 'update') {//从申请过来的发放 if (this.routerParams.routerFlag == 'update') {//从申请过来的发放
this.disabled=true;
this.getStockListDetail() this.getStockListDetail()
} else {//由新增过来的发放 } else {//由新增过来的发放
this.initLoadAreaData() this.initLoadAreaData()
......
...@@ -30,9 +30,13 @@ ...@@ -30,9 +30,13 @@
</template> </template>
<template slot="action" slot-scope="record"> <template slot="action" slot-scope="record">
<!--<a-button type="link" size="small" @click="openChildModal(record)">人工发放</a-button>--> <!--<a-button type="link" size="small" @click="openChildModal(record)">人工发放</a-button>-->
<a-button type="link" size="small" @click="toDetail(record)">查看</a-button> <a-button class="ant-table-btn" size="small" @click="toDetail(record)">查看</a-button>
<a-button type="link" v-if="record.source===1&&record.isSigned===2" size="small" <a-button class="ant-table-btn" v-if="record.source===1&&record.isSigned===2" size="small"
@click="uploadConsentInfo(record)">上传线下同意书 style="margin-left: 10px"
@click="uploadConsentInfo(record)">签署知情同意书
</a-button>
<a-button class="ant-table-btn" v-else size="small" style="margin-left: 10px"
@click="showConsentInfo(record)">已签知情同意书
</a-button> </a-button>
</template> </template>
</a-table> </a-table>
...@@ -66,8 +70,25 @@ ...@@ -66,8 +70,25 @@
<br> <br>
</div> </div>
</a-modal> </a-modal>
<a-modal :visible="previewVisible" :footer="null" @cancel="previewVisible=false"> <a-modal title="查看知情同意书" :visible="showVisible" @cancel="showVisible = false" @ok="onsubmit"
<img alt="example" style="width: 100%" :src="imageUrl"/> loading="true"
:maskClosable="false"
width="600px">
<div v-if="currentRow.source==1">
<img style="width: 100%" :src="consentUrl" height="100%"/>
</div>
<div v-else>
<div style="float: right;white-space:pre;text-indent:2em">
<div v-html="consentInfo" style="white-space:pre">
</div>
<div style="float: right">
<div style="height: 60px">签名: <img style="width:200px;height: 40px;" :src="applySignUrl" height="100%"/></div>
<div>签署日期:{{currentRow.parentDate}}</div>
<br><br>
</div>
</div>
</div>
</a-modal> </a-modal>
<a-pagination <a-pagination
v-if="pagination.total > 0" v-if="pagination.total > 0"
...@@ -130,9 +151,9 @@ ...@@ -130,9 +151,9 @@
}, },
{ {
title: '操作', title: '操作',
fixed:'right', fixed: 'right',
align: 'left', align: 'left',
width: "200px", width: "240px",
scopedSlots: {customRender: 'action'}, scopedSlots: {customRender: 'action'},
}, },
] ]
...@@ -140,7 +161,6 @@ ...@@ -140,7 +161,6 @@
components: {}, components: {},
data() { data() {
return { return {
// 搜索框对象 // 搜索框对象
searchForm: { searchForm: {
womenIdCard: undefined womenIdCard: undefined
...@@ -155,8 +175,11 @@ ...@@ -155,8 +175,11 @@
tableData: [], tableData: [],
loading: false, loading: false,
visible: false, visible: false,
showVisible: false,
previewVisible: false, previewVisible: false,
imageUrl: "", consentUrl: "",
applySignUrl:"",
consentInfo: "",
headers: { headers: {
Authorization: sessionStorage.getItem("token") Authorization: sessionStorage.getItem("token")
}, },
...@@ -165,7 +188,8 @@ ...@@ -165,7 +188,8 @@
formData: { formData: {
consentId: "", consentId: "",
id: "" id: ""
} },
currentRow: {},
} }
}, },
created() { created() {
...@@ -224,20 +248,35 @@ ...@@ -224,20 +248,35 @@
this.formData.id = row.id; this.formData.id = row.id;
this.visible = true; this.visible = true;
}, },
showConsentInfo(row) {
this.currentRow = row;
this.showVisible = true;
this.$api.folviteDistributionManage.fetchFolviteDistributionDetail({residentId: row.id}).then(({data = [], code}) => {
this.consentUrl = data.consentUrl;
this.applySignUrl = data.applySignUrl;
})
if (row.source == 2) {
this.$api.common.fetchConsentInfo().then(({data}) => {
if (this.$api.utils.isNoBlank(data)) {
this.consentInfo = data.content;
}
})
}
},
handleChange(info) { handleChange(info) {
let fileList = [...info.fileList]; let fileList = [...info.fileList];
fileList = fileList.slice(-1); fileList = fileList.slice(-1);
fileList = fileList.map(file => { fileList = fileList.map(file => {
if (file.response) { if (file.response) {
this.imageUrl = file.response.data.trueDownloadUrl; this.consentUrl = file.response.data.trueDownloadUrl;
this.formData.consentId = file.response.data.id; this.formData.consentId = file.response.data.id;
} }
return file; return file;
}); });
this.fileList = fileList; this.fileList = fileList;
}, },
preview(val){ preview(val) {
window.open(val.response.data.trueDownloadUrl) window.open(val.response.data.trueDownloadUrl)
}, },
onsubmit() { onsubmit() {
if (this.$api.utils.isBlank(this.formData.consentId)) { if (this.$api.utils.isBlank(this.formData.consentId)) {
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
sendUnitId: undefined, sendUnitId: undefined,
sendUnitName: undefined, sendUnitName: undefined,
receiveUnitId: undefined, receiveUnitId: undefined,
sendDate: undefined, sendDate: moment(new Date()).format('yyyy-MM-DD'),
sendContact: undefined, sendContact: undefined,
sendPhone: undefined, sendPhone: undefined,
receivePhone: undefined, receivePhone: undefined,
......
...@@ -65,8 +65,10 @@ ...@@ -65,8 +65,10 @@
</a-popover> </a-popover>
</div> </div>
<div style="margin-top: 16px;margin-bottom: 10px"> <div style="margin-top: 16px;margin-bottom: 10px">
<a-button type="primary" class="search_btn btn_space" @click="openModal">库存录入</a-button> <a-button type="primary" class="search_btn btn_space " @click="openModal" v-if="unitInfo.level==3">库存录入
</a-button>
<a-button type="primary" class="search_btn btn_space" :disabled="selectedRowKeys.length <= 0" <a-button type="primary" class="search_btn btn_space" :disabled="selectedRowKeys.length <= 0"
v-if="unitInfo.level==3||unitInfo.level==4"
@click="toAdd">调拨分配 @click="toAdd">调拨分配
</a-button> </a-button>
<a-button type="primary" class="search_btn btn_space">导出Excel</a-button> <a-button type="primary" class="search_btn btn_space">导出Excel</a-button>
...@@ -159,7 +161,7 @@ ...@@ -159,7 +161,7 @@
}, },
{ {
title: '操作', title: '操作',
fixed:"right", fixed: "right",
align: 'center', align: 'center',
scopedSlots: {customRender: 'action'}, scopedSlots: {customRender: 'action'},
}, },
...@@ -189,7 +191,8 @@ ...@@ -189,7 +191,8 @@
selectedRowKeys: [], selectedRowKeys: [],
selectedVisible: false, selectedVisible: false,
selectedRowList: [], selectedRowList: [],
routerParams: {} routerParams: {},
unitInfo: JSON.parse(sessionStorage.getItem("unitInfo"))
} }
}, },
created() { created() {
...@@ -304,7 +307,7 @@ ...@@ -304,7 +307,7 @@
this.$router.push({path: '/inStock/addMaterialDistribution', query: {selected: this.selectedRowKeys}}) this.$router.push({path: '/inStock/addMaterialDistribution', query: {selected: this.selectedRowKeys}})
}, },
toDetail(record) { toDetail(record) {
this.$router.push({path: '/inStock/inStockManageDetail', query: {id:record.id}}) this.$router.push({path: '/inStock/inStockManageDetail', query: {id: record.id}})
} }
}, },
} }
......
...@@ -61,9 +61,10 @@ ...@@ -61,9 +61,10 @@
:labelCol="{span: 3}" :labelCol="{span: 3}"
:wrapperCol="{span: 20}"> :wrapperCol="{span: 20}">
<a-textarea <a-textarea
placeholder="请输入备注,100字以内"
:rows="6" :rows="6"
v-model="formData.remarks" :maxLength="100"
placeholder="请输入备注"></a-textarea> v-model="formData.remarks"></a-textarea>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
......
...@@ -296,4 +296,9 @@ ant-pagination-item:focus, .ant-pagination-item:hover { ...@@ -296,4 +296,9 @@ ant-pagination-item:focus, .ant-pagination-item:hover {
line-height: 24px; line-height: 24px;
transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%);
} }
.ant-table-btn{
color: #FF4D80;
border: 1px solid #FF4D80;
}
//--------------------------------------------------------- //---------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment