添加供应商功能及修改员工头像问题
This commit is contained in:
parent
aa71bf3439
commit
77a0437448
|
|
@ -139,4 +139,5 @@ export const applyObj = {
|
|||
startTime: '有效开始日期',
|
||||
endTime: '有效结束日期',
|
||||
currentAddress: '现住址',
|
||||
headPath: '头像',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -135,14 +135,14 @@ const wrapperCol = reactive({
|
|||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
console.log("🚀 ~ handleDetail ~ record:", record)
|
||||
if(record.applyType == '2'){
|
||||
if(record.modifyStatus){
|
||||
//审核历史
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}else if(record.applyType == '1' || record.applyType == '0'){
|
||||
}else if(!record.modifyStatus){
|
||||
//入驻审核历史
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.editDitail(record);
|
||||
}else{
|
||||
createMessage.error('错误数据,请联系管员');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -394,6 +394,7 @@ const formData = reactive<Record<string, any>>({
|
|||
startTime: '',
|
||||
endTime: '',
|
||||
currentAddress: '',
|
||||
headPath: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 8 } });
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ const { createMessage } = useMessage();
|
|||
const labelCol = { span: 6 }; // 标签宽度
|
||||
const wrapperCol = { span: 18 }; // 控件宽度
|
||||
const isImg = (v_) => {
|
||||
return v_ == 'idCardPositive' || v_ == 'idCardNegative' || v_ == 'healthCertificatePositive' || v_ == 'bankPositive' || v_ == 'bankNegative' || v_ == 'qualification' || v_ == 'noCrimeCertificate'
|
||||
return v_ == 'idCardPositive' || v_ == 'idCardNegative' || v_ == 'healthCertificatePositive' || v_ == 'bankPositive' || v_ == 'bankNegative' || v_ == 'qualification' || v_ == 'noCrimeCertificate'|| v_ == 'headPath'
|
||||
}
|
||||
const provinceOptions = ref({})
|
||||
const formData = reactive<Record<string, any>>({
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ const { createMessage } = useMessage();
|
|||
const labelCol = { span: 4 }; // 标签宽度
|
||||
const wrapperCol = { span: 18 }; // 控件宽度
|
||||
const isImg = (v_) => {
|
||||
return v_ == 'idCardPositive' || v_ == 'idCardNegative' || v_ == 'healthCertificatePositive' || v_ == 'bankPositive' || v_ == 'bankNegative' || v_ == 'qualification' || v_ == 'noCrimeCertificate'
|
||||
return v_ == 'idCardPositive' || v_ == 'idCardNegative' || v_ == 'healthCertificatePositive' || v_ == 'bankPositive' || v_ == 'bankNegative' || v_ == 'qualification' || v_ == 'noCrimeCertificate'|| v_ == 'headPath'
|
||||
}
|
||||
const provinceOptions = ref({})
|
||||
const formData = reactive<Record<string, any>>({
|
||||
|
|
@ -189,6 +189,7 @@ const fieldMap = {
|
|||
startTime: 'startTime',
|
||||
endTime: 'endTime',
|
||||
currentAddress: 'currentAddress',
|
||||
headPath: 'headPath',
|
||||
};
|
||||
|
||||
async function show(record) {
|
||||
|
|
|
|||
|
|
@ -24,24 +24,24 @@ export const columns: BasicColumn[] = [
|
|||
dataIndex: 'specificationModel',
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
title: '一级分类',
|
||||
align: "center",
|
||||
dataIndex: 'categoryId_dictText',
|
||||
width:'100px'
|
||||
},
|
||||
{
|
||||
title: '二级分类',
|
||||
align: "center",
|
||||
dataIndex: 'typeId_dictText',
|
||||
width:'100px'
|
||||
},
|
||||
{
|
||||
title: '三级分类',
|
||||
align: "center",
|
||||
dataIndex: 'medicationId_dictText',
|
||||
width:'100px'
|
||||
},
|
||||
// {
|
||||
// title: '一级分类',
|
||||
// align: "center",
|
||||
// dataIndex: 'categoryId_dictText',
|
||||
// width:'100px'
|
||||
// },
|
||||
// {
|
||||
// title: '二级分类',
|
||||
// align: "center",
|
||||
// dataIndex: 'typeId_dictText',
|
||||
// width:'100px'
|
||||
// },
|
||||
// {
|
||||
// title: '三级分类',
|
||||
// align: "center",
|
||||
// dataIndex: 'medicationId_dictText',
|
||||
// width:'100px'
|
||||
// },
|
||||
{
|
||||
title: '品牌型号',
|
||||
align: "center",
|
||||
|
|
@ -52,7 +52,6 @@ export const columns: BasicColumn[] = [
|
|||
title: '生产厂家',
|
||||
align: "center",
|
||||
dataIndex: 'manufacturer',
|
||||
width:'100px'
|
||||
},
|
||||
// {
|
||||
// title: '物料标签',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol"
|
||||
:wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="5">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="keyWord">
|
||||
<template #label><span title="物料信息">物料信息</span></template>
|
||||
<j-input placeholder="请输入物料名称/拼音/编码" v-model:value="queryParam.keyWord" allow-clear
|
||||
|
|
@ -13,14 +13,13 @@
|
|||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="5">
|
||||
<!-- <a-col :lg="5">
|
||||
<a-form-item name="categoryId">
|
||||
<template #label><span title="一级分类">一级分类</span></template>
|
||||
<j-dict-select-tag v-model:value="queryParam.categoryId"
|
||||
:dictCode="`nu_config_material_category,category_name,id,del_flag = 0 and iz_enabled = 'Y' order by sort asc`"
|
||||
placeholder="请选择一级分类" allowClear :ignoreDisabled="true"
|
||||
@select="handleSearch({ 'levle': 1, 'key': queryParam.categoryId }, false)" />
|
||||
<!-- <span v-else>请选择源平台</span> -->
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
|
|
@ -42,35 +41,17 @@
|
|||
placeholder="请选择三级分类" allowClear :ignoreDisabled="true"
|
||||
@select="handleSearch({ 'levle': 3, 'categoryId': queryParam.categoryId, 'typeId': queryParam.typeId, 'key': queryParam.medicationId }, false)" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<!-- <a-col :lg="5">
|
||||
<a-form-item name="materialName">
|
||||
<template #label><span title="物料名称">物料名称</span></template>
|
||||
<j-input placeholder="请输入物料名称" v-model:value="queryParam.materialName" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="5">
|
||||
<a-form-item name="materialNo">
|
||||
<template #label><span title="物料编码">物料编码</span></template>
|
||||
<j-input placeholder="请输入物料编码" v-model:value="queryParam.materialNo" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="5">
|
||||
<a-form-item name="pinyin">
|
||||
<template #label><span title="拼音检索">拼音检索</span></template>
|
||||
<j-input placeholder="请输入拼音" v-model:value="queryParam.pinyin" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :lg="4">
|
||||
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="izEnabled">
|
||||
<template #label><span title="是否启用">是否启用</span></template>
|
||||
<j-dict-select-tag type='list' placeholder="请选择是否启用" v-model:value="queryParam.izEnabled"
|
||||
dictCode="iz_enabled" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="2">
|
||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||
<a-col :span="12">
|
||||
<span style="float: right; overflow: hidden" class="table-page-search-submitButtons">
|
||||
<a-col :lg="6">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="物料编码" v-bind="validateInfos.materialNo" id="ConfigMaterialInfoForm-materialNo" name="materialNo">
|
||||
<a-input v-model:value="formData.materialNo" placeholder="请输入物料编码" maxlength="20" ></a-input>
|
||||
<a-input v-model:value="formData.materialNo" :placeholder="disabled?'':`请输入物料编码`" maxlength="20" ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
|
|
@ -33,29 +33,14 @@
|
|||
<a-input v-model:value="formData.specificationModel" placeholder="请输入规格型号" maxlength="20" ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- <a-col :span="8">
|
||||
<a-form-item label="销售单价" v-bind="validateInfos.salesUnitPrice" id="ConfigMaterialInfoForm-salesUnitPrice" name="salesUnitPrice">
|
||||
<a-input v-model:value="formData.salesUnitPrice" placeholder="请输入销售单价" maxlength="10" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8" hidden>
|
||||
<a-form-item label="多单位开关" v-bind="validateInfos.multiUnitSwitch" id="ConfigMaterialInfoForm-multiUnitSwitch" name="multiUnitSwitch">
|
||||
<j-dict-select-tag type='radio' v-model:value="formData.multiUnitSwitch" dictCode="multiUnitSwitch" placeholder="请选择多单位开关" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="采购单位" v-bind="validateInfos.multiUnitType" id="ConfigMaterialInfoForm-multiUnitType" name="multiUnitType">
|
||||
<j-dict-select-tag type='radio' v-model:value="formData.multiUnitType" dictCode="multiUnitType" placeholder="请选择多单位默认采购" />
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :span="8" >
|
||||
<a-form-item label="品牌型号" v-bind="validateInfos.brandType" id="ConfigMaterialInfoForm-brandType" name="brandType">
|
||||
<a-input v-model:value="formData.brandType" maxlength="100" placeholder="请输入品牌型号" style="width: 100%" />
|
||||
<a-input v-model:value="formData.brandType" maxlength="100" :placeholder="disabled?'':`请输入品牌型号`" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8" >
|
||||
<a-form-item label="生产厂家" v-bind="validateInfos.manufacturer" id="ConfigMaterialInfoForm-manufacturer" name="manufacturer">
|
||||
<a-input v-model:value="formData.manufacturer" maxlength="100" placeholder="请输入生产厂家" style="width: 100%" />
|
||||
<a-input v-model:value="formData.manufacturer" maxlength="100" :placeholder="disabled?'':`请输入生产厂家`" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
|
|
@ -63,84 +48,6 @@
|
|||
<j-dict-select-tag type='radio' v-model:value="formData.izEnabled" dictCode="iz_enabled" placeholder="请选择是否启用" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- <a-col :span="8">
|
||||
<a-form-item label="一级单位" v-bind="validateInfos.oneUnit" id="ConfigMaterialInfoForm-oneUnit" name="oneUnit">
|
||||
<a-input v-model:value="formData.oneUnit" placeholder="请输入一级单位" maxlength="10" ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="一级单位兑换比例" v-bind="validateInfos.oneUnitProportion" id="ConfigMaterialInfoForm-oneUnitProportion" name="oneUnitProportion">
|
||||
<a-input-number v-model:value="formData.oneUnitProportion" maxlength="10" placeholder="请输入一级单位兑换比例" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="一级单位价格" v-bind="validateInfos.oneUnitPrice" id="ConfigMaterialInfoForm-oneUnitPrice" name="oneUnitPrice">
|
||||
<a-input-number v-model:value="formData.oneUnitPrice" maxlength="10" placeholder="请输入一级单位价格" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="二级单位" v-bind="validateInfos.twoUnit" id="ConfigMaterialInfoForm-twoUnit" name="twoUnit">
|
||||
<a-input v-model:value="formData.twoUnit" placeholder="请输入二级单位" maxlength="10" ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="二级单位兑换比例" v-bind="validateInfos.twoUnitProportion" id="ConfigMaterialInfoForm-twoUnitProportion" name="twoUnitProportion">
|
||||
<a-input-number v-model:value="formData.twoUnitProportion" maxlength="10" placeholder="请输入二级单位兑换比例" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="二级单位价格" v-bind="validateInfos.twoUnitPrice" id="ConfigMaterialInfoForm-twoUnitPrice" name="twoUnitPrice">
|
||||
<a-input-number v-model:value="formData.twoUnitPrice" maxlength="10" placeholder="请输入二级单位价格" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24" v-if="getRemark()">
|
||||
<span style="color: red !important;margin-left: 10%;height: 36px;display: block;"> {{getRemark()}}</span>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="三级单位" v-bind="validateInfos.materialUnits" id="ConfigMaterialInfoForm-materialUnits" name="materialUnits">
|
||||
<a-input v-model:value="formData.materialUnits" placeholder="请输入物料单位" maxlength="10" ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8" >
|
||||
<a-form-item label="三级单位兑换比例" v-bind="validateInfos.sdwdhbl" id="ConfigMaterialInfoForm-sdwdhbl" name="sdwdhbl">
|
||||
<a-input-number v-model:value="formData.sdwdhbl" maxlength="10" readonly placeholder="请输入二级单位兑换比例" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="三级单位价格" v-bind="validateInfos.referenceUnitPrice" id="ConfigMaterialInfoForm-referenceUnitPrice" name="referenceUnitPrice">
|
||||
<a-input v-model:value="formData.referenceUnitPrice" placeholder="请输入参考单价" maxlength="10" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8" >
|
||||
<a-form-item label="物料上限" v-bind="validateInfos.upperLimit" id="ConfigMaterialInfoForm-upperLimit" name="upperLimit">
|
||||
<a-input v-model:value="formData.upperLimit" maxlength="10" placeholder="请输入物料上限" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8" >
|
||||
<a-form-item label="物料下限" v-bind="validateInfos.lowerLimit" id="ConfigMaterialInfoForm-lowerLimit" name="lowerLimit">
|
||||
<a-input v-model:value="formData.lowerLimit" maxlength="10" placeholder="请输入物料下限" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<!-- <a-col :span="8">
|
||||
<a-form-item label="物料标签" v-bind="validateInfos.tagType" id="ConfigMaterialInfoForm-tagType" name="izEnabled">
|
||||
<j-dict-select-tag type='list' v-model:value="formData.tagType" dictCode="wl_tag_type" placeholder="请选择物料标签" />
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<!-- <a-col :span="8">
|
||||
<a-form-item label="是否医保报销" v-bind="validateInfos.izYbbx" id="ConfigMaterialInfoForm-izYbbx" name="izYbbx">
|
||||
<j-dict-select-tag type='list' v-model:value="formData.izYbbx" dictCode="yn" placeholder="请选择医保报销" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="是否机构优惠" v-bind="validateInfos.izJgyh" id="ConfigMaterialInfoForm-izJgyh" name="izEnabled">
|
||||
<j-dict-select-tag type='list' v-model:value="formData.izJgyh" dictCode="yn" placeholder="请选择机构优惠" />
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<!-- <a-col :span="24">
|
||||
<a-form-item label="供应商" v-bind="validateInfos.suppliers" id="ConfigMaterialInfoForm-suppliers" name="suppliers" :labelCol="labelCol3" :wrapperCol="wrapperCol3">
|
||||
<j-select-multiple placeholder="请选择供应商" v-model:value="formData.suppliers" dictCode="nu_config_suppliers_info,suppliers_name,id,del_flag = 0" />
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :span="8">
|
||||
<a-form-item label="物料图片" v-bind="validateInfos.materialImg" id="ConfigMaterialInfoForm-materialImg" name="materialImg">
|
||||
<j-image-upload :fileMax="1" bizPath="wlpicPath" :value="formData.materialImg?formData.materialImg:(opeMediaAddress + defaultPrePic)" ></j-image-upload>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ export const columns: BasicColumn[] = [
|
|||
}
|
||||
},
|
||||
// {
|
||||
// title: '资质照片',
|
||||
// title: '营业执照',
|
||||
// align: "center",
|
||||
// dataIndex: 'imgPath',
|
||||
// // customRender: render.renderImage,
|
||||
|
|
@ -96,6 +96,6 @@ export const superQuerySchema = {
|
|||
supplyState: {title: '供应状态',order: 5,view: 'list', type: 'string',dictCode: 'supply_status',},
|
||||
openingBank: {title: '开户行',order: 6,view: 'text', type: 'string',},
|
||||
openingBankNo: {title: '开户行账号',order: 7,view: 'text', type: 'string',},
|
||||
imgPath: {title: '资质照片',order: 8,view: 'image', type: 'string',},
|
||||
imgPath: {title: '营业执照',order: 8,view: 'image', type: 'string',},
|
||||
createTime: {title: '创建日期',order: 9,view: 'datetime', type: 'string',},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -90,9 +90,9 @@ import { defHttp } from '/@/utils/http/axios';
|
|||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys,selectedRows }] = tableContext;
|
||||
const labelCol = reactive({
|
||||
xs:24,
|
||||
sm:8,
|
||||
xl:8,
|
||||
xxl:8
|
||||
sm:6,
|
||||
xl:6,
|
||||
xxl:6
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
|
|
@ -135,7 +135,7 @@ async function handleWlType(record) {
|
|||
searchQuery();
|
||||
}, 1000);
|
||||
return defHttp.post({
|
||||
url: '/invoicing/configSuppliersInfo/updateWlType',
|
||||
url: '/invoicing/configSuppliersInfo/cooperationSupp',
|
||||
params,
|
||||
timeout: 100000
|
||||
}).then((res) => {
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@ export const columns: BasicColumn[] = [
|
|||
width: 200
|
||||
},
|
||||
{
|
||||
title: '销售单价',
|
||||
title: '采购单价',
|
||||
align: "center",
|
||||
dataIndex: 'salesUnitPrice',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: '销售单位',
|
||||
title: '采购单位',
|
||||
align: "center",
|
||||
dataIndex: 'salesUnit',
|
||||
width: 100
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export const columns: BasicColumn[] = [
|
|||
// dataIndex: 'wechartId'
|
||||
// },
|
||||
// {
|
||||
// title: '资质照片',
|
||||
// title: '营业执照',
|
||||
// align:"center",
|
||||
// dataIndex: 'imgPath',
|
||||
// customRender:render.renderImage,
|
||||
|
|
@ -203,7 +203,7 @@ export const formSchema: FormSchema[] = [
|
|||
// component: 'Input',
|
||||
// },
|
||||
{
|
||||
label: '资质照片',
|
||||
label: '营业执照',
|
||||
field: 'imgPath',
|
||||
component: 'JImageUpload',
|
||||
componentProps:{
|
||||
|
|
@ -230,7 +230,7 @@ export const superQuerySchema = {
|
|||
openingBank: {title: '开户行',order: 6,view: 'text', type: 'string',},
|
||||
openingBankNo: {title: '开户行账号',order: 7,view: 'text', type: 'string',},
|
||||
wechartId: {title: '微信账号',order: 8,view: 'text', type: 'string',},
|
||||
imgPath: {title: '资质照片',order: 9,view: 'image', type: 'string',},
|
||||
imgPath: {title: '营业执照',order: 9,view: 'image', type: 'string',},
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="资质照片" v-bind="validateInfos.imgPath" id="ConfigSuppliersInfoForm-imgPath" name="imgPath">
|
||||
<a-form-item label="营业执照" v-bind="validateInfos.imgPath" id="ConfigSuppliersInfoForm-imgPath" name="imgPath">
|
||||
<j-image-upload :fileMax="1" v-model:value="formData.imgPath" v-if="formData.sourceType == '1'" ></j-image-upload>
|
||||
<j-image-upload v-if="formData.sourceType == '2'" :fileMax="1" :value="opeMediaAddress + formData.imgPath"
|
||||
disabled></j-image-upload>
|
||||
|
|
|
|||
Loading…
Reference in New Issue