测试问题修改6
This commit is contained in:
parent
188b5d5f53
commit
74408cbb24
|
|
@ -213,6 +213,9 @@ export default {
|
||||||
firstCheckDate: [
|
firstCheckDate: [
|
||||||
{ required: true, message: "盘点开始时间不能为空", trigger: "change" }
|
{ required: true, message: "盘点开始时间不能为空", trigger: "change" }
|
||||||
],
|
],
|
||||||
|
firstCheckUser: [
|
||||||
|
{ required: true, message: "盘点员不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
secondCheckDate: [
|
secondCheckDate: [
|
||||||
{ required: true, message: "盘点结束时间不能为空", trigger: "change" }
|
{ required: true, message: "盘点结束时间不能为空", trigger: "change" }
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,6 @@
|
||||||
<el-option label="采购入库" :value="1"></el-option>
|
<el-option label="采购入库" :value="1"></el-option>
|
||||||
<el-option label="退料入库" :value="2"></el-option>
|
<el-option label="退料入库" :value="2"></el-option>
|
||||||
<el-option label="调拨入库" :value="3"></el-option>
|
<el-option label="调拨入库" :value="3"></el-option>
|
||||||
<el-option label="即入即出" :value="4"></el-option>
|
|
||||||
<el-option label="超市退单入库" :value="5"></el-option>
|
|
||||||
<el-option label="盘点入库" :value="6"></el-option>
|
|
||||||
<el-option label="期初入库" :value="7"></el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
|
@ -93,10 +89,6 @@
|
||||||
<span v-if="scope.row.intoType==1">采购入库</span>
|
<span v-if="scope.row.intoType==1">采购入库</span>
|
||||||
<span v-if="scope.row.intoType==2">退料入库</span>
|
<span v-if="scope.row.intoType==2">退料入库</span>
|
||||||
<span v-if="scope.row.intoType==3">调拨入库</span>
|
<span v-if="scope.row.intoType==3">调拨入库</span>
|
||||||
<span v-if="scope.row.intoType==4">即入即出</span>
|
|
||||||
<span v-if="scope.row.intoType==5">超市退单入库</span>
|
|
||||||
<span v-if="scope.row.intoType==6">盘点入库</span>
|
|
||||||
<span v-if="scope.row.intoType==7">期初入库</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="质检报告" align="center" prop="" :show-overflow-tooltip="true" width="100">
|
<!-- <el-table-column label="质检报告" align="center" prop="" :show-overflow-tooltip="true" width="100">
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,6 @@
|
||||||
<el-option label="报损出库" :value="2"></el-option>
|
<el-option label="报损出库" :value="2"></el-option>
|
||||||
<el-option label="退货出库" :value="3"></el-option>
|
<el-option label="退货出库" :value="3"></el-option>
|
||||||
<el-option label="调拨出库" :value="4"></el-option>
|
<el-option label="调拨出库" :value="4"></el-option>
|
||||||
<el-option label="即入即出" :value="5"></el-option>
|
|
||||||
<el-option label="超市出库" :value="6"></el-option>
|
|
||||||
<el-option label="盘点出库" :value="7"></el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
|
@ -95,9 +92,6 @@
|
||||||
<span v-if="scope.row.outType==2">报损出库</span>
|
<span v-if="scope.row.outType==2">报损出库</span>
|
||||||
<span v-if="scope.row.outType==3">退货出库</span>
|
<span v-if="scope.row.outType==3">退货出库</span>
|
||||||
<span v-if="scope.row.outType==4">调拨出库</span>
|
<span v-if="scope.row.outType==4">调拨出库</span>
|
||||||
<span v-if="scope.row.outType==5">即入即出</span>
|
|
||||||
<span v-if="scope.row.outType==6">超市出库</span>
|
|
||||||
<span v-if="scope.row.outType==7">盘点出库</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="质检报告" align="center" prop="status" :show-overflow-tooltip="true" width="100">
|
<!-- <el-table-column label="质检报告" align="center" prop="status" :show-overflow-tooltip="true" width="100">
|
||||||
|
|
|
||||||
|
|
@ -50,13 +50,13 @@
|
||||||
<el-table-column label="数据来源" align="center" prop="" :show-overflow-tooltip="true" />
|
<el-table-column label="数据来源" align="center" prop="" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="出入库类型" align="center" prop="outType" :show-overflow-tooltip="true">
|
<el-table-column label="出入库类型" align="center" prop="outType" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.outType==1">领取出库</span>
|
<span v-if="scope.row.recordType==1&&scope.row.outType==1">采购入库</span>
|
||||||
<span v-if="scope.row.outType==2">报损出库</span>
|
<span v-if="scope.row.recordType==1&&scope.row.outType==2">退料入库</span>
|
||||||
<span v-if="scope.row.outType==3">退货出库</span>
|
<span v-if="scope.row.recordType==1&&scope.row.outType==3">调拨入库</span>
|
||||||
<span v-if="scope.row.outType==4">调拨出库</span>
|
<span v-if="scope.row.recordType==2&&scope.row.outType==1">领取出库</span>
|
||||||
<span v-if="scope.row.outType==5">即入即出</span>
|
<span v-if="scope.row.recordType==2&&scope.row.outType==2">报损出库</span>
|
||||||
<span v-if="scope.row.outType==6">超市出库</span>
|
<span v-if="scope.row.recordType==2&&scope.row.outType==3">退货出库</span>
|
||||||
<span v-if="scope.row.outType==7">盘点出库</span>
|
<span v-if="scope.row.recordType==2&&scope.row.outType==4">调拨出库</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="业务单据" align="center" prop="recordId" :show-overflow-tooltip="true" width="180"/>
|
<el-table-column label="业务单据" align="center" prop="recordId" :show-overflow-tooltip="true" width="180"/>
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
<el-table-column label="用户手机号" align="center" prop="telephone" :show-overflow-tooltip="true" width="150"/>
|
<el-table-column label="用户手机号" align="center" prop="telephone" :show-overflow-tooltip="true" width="150"/>
|
||||||
<el-table-column label="营业执照编号" align="center" prop="" :show-overflow-tooltip="true" width="150"/>
|
<el-table-column label="营业执照编号" align="center" prop="" :show-overflow-tooltip="true" width="150"/>
|
||||||
<el-table-column label="食品经营许可证编号" align="center" prop="" :show-overflow-tooltip="true" width="180"/>
|
<el-table-column label="食品经营许可证编号" align="center" prop="" :show-overflow-tooltip="true" width="180"/>
|
||||||
<el-table-column label="供应类别" align="center" prop="" :show-overflow-tooltip="true" width="150"/>
|
<el-table-column label="供应类别" align="center" prop="categoryModelStr" :show-overflow-tooltip="true" width="150"/>
|
||||||
<el-table-column label="地址" align="center" prop="address" :show-overflow-tooltip="true" width="120"/>
|
<el-table-column label="地址" align="center" prop="address" :show-overflow-tooltip="true" width="120"/>
|
||||||
<el-table-column label="状态" align="center" prop="status" :show-overflow-tooltip="true" width="120">
|
<el-table-column label="状态" align="center" prop="status" :show-overflow-tooltip="true" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -253,7 +253,6 @@
|
||||||
<el-input v-model="form.standbyEmail" placeholder="请输入邮箱" maxlength="30" clearable/>
|
<el-input v-model="form.standbyEmail" placeholder="请输入邮箱" maxlength="30" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="企业法人/负责人身份证复印件(正面)" prop="">
|
<el-form-item label="企业法人/负责人身份证复印件(正面)" prop="">
|
||||||
<el-upload
|
<el-upload
|
||||||
|
|
@ -300,7 +299,7 @@
|
||||||
<el-row style="height: 550px;overflow-y: auto;">
|
<el-row style="height: 550px;overflow-y: auto;">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="注册资金(万元)" prop="registFund">
|
<el-form-item label="注册资金(万元)" prop="registFund">
|
||||||
<el-input v-model.number="form.registFund" placeholder="请输入注册资金" maxlength="9" clearable/>
|
<el-input v-model.number="form.registFund" placeholder="请输入注册资金" maxlength="8" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
|
|
@ -314,12 +313,12 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="职工人数" prop="workersNum">
|
<el-form-item label="职工人数" prop="workersNum">
|
||||||
<el-input v-model.number="form.workersNum" placeholder="请输入职工人数" maxlength="9" clearable/>
|
<el-input v-model.number="form.workersNum" placeholder="请输入职工人数" maxlength="8" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="目前服务的客户数量" prop="clientNum">
|
<el-form-item label="目前服务的客户数量" prop="clientNum">
|
||||||
<el-input v-model.number="form.clientNum" placeholder="请输入目前服务的客户数量" maxlength="9" clearable/>
|
<el-input v-model.number="form.clientNum" placeholder="请输入目前服务的客户数量" maxlength="8" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
|
|
@ -364,18 +363,19 @@
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="主要资质" name="qualification">
|
<el-tab-pane label="主要资质" name="qualification">
|
||||||
<el-row style="height: 550px;overflow-y: auto;">
|
<el-row style="height: 550px;overflow-y: auto;">
|
||||||
<div v-for="(item,index) in mainQualificationList" :key="index">
|
|
||||||
|
<div>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div>{{ item.qualificationName }}</div>
|
<div>{{ mainQualificationList[0].qualificationName }}</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="证书编号">
|
<el-form-item label="证书编号">
|
||||||
<el-input v-model="item.qualificationCode" placeholder="请输入供应商全称" maxlength="30" clearable/>
|
<el-input v-model="mainQualificationList[0].qualificationCode" placeholder="请输入证书编号" maxlength="30" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="有效期" prop="">
|
<el-form-item label="有效期" prop="">
|
||||||
<el-date-picker v-model="item.expirationDate"
|
<el-date-picker v-model="mainQualificationList[0].expirationDate"
|
||||||
type="date" align="right" clearable
|
type="date" align="right" clearable
|
||||||
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
||||||
style="width: 100%">
|
style="width: 100%">
|
||||||
|
|
@ -383,18 +383,178 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="item.qualificationName+'照片'" prop="">
|
<el-form-item :label="mainQualificationList[0].qualificationName+'照片'" prop="">
|
||||||
<el-upload
|
<el-upload
|
||||||
:http-request="(obj) => imgUpLoadMain(obj,index)"
|
:http-request="(obj) => imgUpLoadMain0(obj)"
|
||||||
action="#"
|
action="#"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
:show-file-list="true"
|
:show-file-list="true"
|
||||||
:file-list="item.fileList"
|
:file-list="mainQualificationList[0].fileList"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
accept=".png, .jpg, .jpeg"
|
accept=".png, .jpg, .jpeg"
|
||||||
:on-exceed="handleExceed"
|
:on-exceed="handleExceed"
|
||||||
:on-preview="handlePictureCardPreview"
|
:on-preview="handlePictureCardPreview"
|
||||||
:on-remove="handleRemoveMain(index)"
|
:on-remove="handleRemoveMain0"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="el-icon-plus avatar-uploader-icon"
|
||||||
|
></i>
|
||||||
|
</el-upload>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<el-col :span="24">
|
||||||
|
<div>{{ mainQualificationList[1].qualificationName }}</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="证书编号">
|
||||||
|
<el-input v-model="mainQualificationList[1].qualificationCode" placeholder="请输入证书编号" maxlength="30" clearable/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="有效期" prop="">
|
||||||
|
<el-date-picker v-model="mainQualificationList[1].expirationDate"
|
||||||
|
type="date" align="right" clearable
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
||||||
|
style="width: 100%">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="mainQualificationList[1].qualificationName+'照片'" prop="">
|
||||||
|
<el-upload
|
||||||
|
:http-request="(obj) => imgUpLoadMain1(obj)"
|
||||||
|
action="#"
|
||||||
|
:limit="1"
|
||||||
|
:show-file-list="true"
|
||||||
|
:file-list="mainQualificationList[1].fileList"
|
||||||
|
list-type="picture-card"
|
||||||
|
accept=".png, .jpg, .jpeg"
|
||||||
|
:on-exceed="handleExceed"
|
||||||
|
:on-preview="handlePictureCardPreview"
|
||||||
|
:on-remove="handleRemoveMain1"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="el-icon-plus avatar-uploader-icon"
|
||||||
|
></i>
|
||||||
|
</el-upload>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<el-col :span="24">
|
||||||
|
<div>{{ mainQualificationList[2].qualificationName }}</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="证书编号">
|
||||||
|
<el-input v-model="mainQualificationList[2].qualificationCode" placeholder="请输入证书编号" maxlength="30" clearable/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="有效期" prop="">
|
||||||
|
<el-date-picker v-model="mainQualificationList[2].expirationDate"
|
||||||
|
type="date" align="right" clearable
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
||||||
|
style="width: 100%">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="mainQualificationList[2].qualificationName+'照片'" prop="">
|
||||||
|
<el-upload
|
||||||
|
:http-request="(obj) => imgUpLoadMain2(obj)"
|
||||||
|
action="#"
|
||||||
|
:limit="1"
|
||||||
|
:show-file-list="true"
|
||||||
|
:file-list="mainQualificationList[2].fileList"
|
||||||
|
list-type="picture-card"
|
||||||
|
accept=".png, .jpg, .jpeg"
|
||||||
|
:on-exceed="handleExceed"
|
||||||
|
:on-preview="handlePictureCardPreview"
|
||||||
|
:on-remove="handleRemoveMain2"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="el-icon-plus avatar-uploader-icon"
|
||||||
|
></i>
|
||||||
|
</el-upload>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<el-col :span="24">
|
||||||
|
<div>{{ mainQualificationList[3].qualificationName }}</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="证书编号">
|
||||||
|
<el-input v-model="mainQualificationList[3].qualificationCode" placeholder="请输入证书编号" maxlength="30" clearable/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="有效期" prop="">
|
||||||
|
<el-date-picker v-model="mainQualificationList[3].expirationDate"
|
||||||
|
type="date" align="right" clearable
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
||||||
|
style="width: 100%">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="mainQualificationList[3].qualificationName+'照片'" prop="">
|
||||||
|
<el-upload
|
||||||
|
:http-request="(obj) => imgUpLoadMain3(obj)"
|
||||||
|
action="#"
|
||||||
|
:limit="1"
|
||||||
|
:show-file-list="true"
|
||||||
|
:file-list="mainQualificationList[3].fileList"
|
||||||
|
list-type="picture-card"
|
||||||
|
accept=".png, .jpg, .jpeg"
|
||||||
|
:on-exceed="handleExceed"
|
||||||
|
:on-preview="handlePictureCardPreview"
|
||||||
|
:on-remove="handleRemoveMain3"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="el-icon-plus avatar-uploader-icon"
|
||||||
|
></i>
|
||||||
|
</el-upload>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<el-col :span="24">
|
||||||
|
<div>{{ mainQualificationList[4].qualificationName }}</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="证书编号">
|
||||||
|
<el-input v-model="mainQualificationList[4].qualificationCode" placeholder="请输入证书编号" maxlength="30" clearable/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="有效期" prop="">
|
||||||
|
<el-date-picker v-model="mainQualificationList[4].expirationDate"
|
||||||
|
type="date" align="right" clearable
|
||||||
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
||||||
|
style="width: 100%">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item :label="mainQualificationList[4].qualificationName+'照片'" prop="">
|
||||||
|
<el-upload
|
||||||
|
:http-request="(obj) => imgUpLoadMain4(obj)"
|
||||||
|
action="#"
|
||||||
|
:limit="1"
|
||||||
|
:show-file-list="true"
|
||||||
|
:file-list="mainQualificationList[4].fileList"
|
||||||
|
list-type="picture-card"
|
||||||
|
accept=".png, .jpg, .jpeg"
|
||||||
|
:on-exceed="handleExceed"
|
||||||
|
:on-preview="handlePictureCardPreview"
|
||||||
|
:on-remove="handleRemoveMain4"
|
||||||
>
|
>
|
||||||
<i
|
<i
|
||||||
class="el-icon-plus avatar-uploader-icon"
|
class="el-icon-plus avatar-uploader-icon"
|
||||||
|
|
@ -544,41 +704,46 @@ export default {
|
||||||
idCardImgF: [],//身份证反图片
|
idCardImgF: [],//身份证反图片
|
||||||
idCardImgFNameList: [],//身份证反图片
|
idCardImgFNameList: [],//身份证反图片
|
||||||
mainQualificationList:[
|
mainQualificationList:[
|
||||||
// {
|
{
|
||||||
// "qualificationCode": "",
|
"qualificationCode": "",
|
||||||
// "qualificationName": "营业执照",
|
"qualificationName": "营业执照",
|
||||||
// "expirationDate": "",
|
"qualificationType": 1,
|
||||||
// "imgUrl": "",
|
"expirationDate": "",
|
||||||
// "mainFlag": 1,
|
"imgUrl": "",
|
||||||
// },
|
"mainFlag": 1,
|
||||||
// {
|
},
|
||||||
// "qualificationCode": "",
|
{
|
||||||
// "qualificationName": "ISO9001国际质量体系认证",
|
"qualificationCode": "",
|
||||||
// "expirationDate": "",
|
"qualificationName": "ISO9001国际质量体系认证",
|
||||||
// "imgUrl": "",
|
"qualificationType": 2,
|
||||||
// "mainFlag": 1,
|
"expirationDate": "",
|
||||||
// },
|
"imgUrl": "",
|
||||||
// {
|
"mainFlag": 1,
|
||||||
// "qualificationCode": "",
|
},
|
||||||
// "qualificationName": "食品经营许可证",
|
{
|
||||||
// "expirationDate": "",
|
"qualificationCode": "",
|
||||||
// "imgUrl": "",
|
"qualificationName": "食品经营许可证",
|
||||||
// "mainFlag": 1,
|
"qualificationType": 3,
|
||||||
// },
|
"expirationDate": "",
|
||||||
// {
|
"imgUrl": "",
|
||||||
// "qualificationCode": "",
|
"mainFlag": 1,
|
||||||
// "qualificationName": "烟草经营许可证",
|
},
|
||||||
// "expirationDate": "",
|
{
|
||||||
// "imgUrl": "",
|
"qualificationCode": "",
|
||||||
// "mainFlag": 1,
|
"qualificationName": "烟草经营许可证",
|
||||||
// },
|
"qualificationType": 4,
|
||||||
// {
|
"expirationDate": "",
|
||||||
// "qualificationCode": "",
|
"imgUrl": "",
|
||||||
// "qualificationName": "HACCP认证",
|
"mainFlag": 1,
|
||||||
// "expirationDate": "",
|
},
|
||||||
// "imgUrl": "",
|
{
|
||||||
// "mainFlag": 1,
|
"qualificationCode": "",
|
||||||
// }
|
"qualificationName": "HACCP认证",
|
||||||
|
"qualificationType": 5,
|
||||||
|
"expirationDate": "",
|
||||||
|
"imgUrl": "",
|
||||||
|
"mainFlag": 1,
|
||||||
|
}
|
||||||
],
|
],
|
||||||
fileList3:[],
|
fileList3:[],
|
||||||
attachmentList:[],
|
attachmentList:[],
|
||||||
|
|
@ -642,10 +807,18 @@ export default {
|
||||||
"categoryIdList": this.queryParams.categoryIdList,
|
"categoryIdList": this.queryParams.categoryIdList,
|
||||||
"areaIdList": [this.queryParams.areaId],
|
"areaIdList": [this.queryParams.areaId],
|
||||||
"linkman": this.queryParams.linkman,
|
"linkman": this.queryParams.linkman,
|
||||||
"status": this.queryParams.status
|
"status": this.queryParams.status,
|
||||||
|
"isPaging":2
|
||||||
}
|
}
|
||||||
supplierPageApi(param).then(response => {
|
supplierPageApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.categoryModelList&&item.categoryModelList.length>0){
|
||||||
|
let arr = item.categoryModelList.map(item=>item.categoryName)
|
||||||
|
let str= arr.join(",")
|
||||||
|
item.categoryModelStr = str
|
||||||
|
}
|
||||||
|
})
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
@ -668,12 +841,23 @@ export default {
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.attachmentList=[]
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "新增";
|
this.title = "新增";
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.mainQualificationList=[]
|
||||||
|
row.mainQualificationList.forEach(item=>{
|
||||||
|
let obj = Object.assign({},item)
|
||||||
|
if(obj.imgUrl&&obj.imgUrl!=''){
|
||||||
|
this.$set(obj,"fileList",[{url:obj.imgUrl}])
|
||||||
|
}else{
|
||||||
|
this.$set(obj,"fileList",[])
|
||||||
|
}
|
||||||
|
this.mainQualificationList.push(obj)
|
||||||
|
})
|
||||||
if(row.idCardImgZ){
|
if(row.idCardImgZ){
|
||||||
this.fileList1=[{url:row.idCardImgZ}]
|
this.fileList1=[{url:row.idCardImgZ}]
|
||||||
this.idCardImgZ=[row.idCardImgZ]
|
this.idCardImgZ=[row.idCardImgZ]
|
||||||
|
|
@ -689,19 +873,11 @@ export default {
|
||||||
this.idCardImgF=[]
|
this.idCardImgF=[]
|
||||||
}
|
}
|
||||||
this.form = Object.assign({}, row)
|
this.form = Object.assign({}, row)
|
||||||
let arr = ['2']
|
let arr = []
|
||||||
this.form.categoryModelList.forEach(item=>{
|
this.form.categoryModelList.forEach(item=>{
|
||||||
arr.push(item.categoryId)
|
arr.push(item.categoryId)
|
||||||
})
|
})
|
||||||
this.$set(this.form,"categoryIdList",arr)
|
this.$set(this.form,"categoryIdList",arr)
|
||||||
this.form.mainQualificationList.forEach(item=>{
|
|
||||||
if(item.imgUrl&&item.imgUrl!=''){
|
|
||||||
item.fileList = [{url:item.imgUrl}]
|
|
||||||
}else{
|
|
||||||
item.fileList=[]
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.mainQualificationList = this.form.mainQualificationList;
|
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改";
|
this.title = "修改";
|
||||||
},
|
},
|
||||||
|
|
@ -719,6 +895,7 @@ export default {
|
||||||
this.fileList2=[]
|
this.fileList2=[]
|
||||||
this.idCardImgF=[]
|
this.idCardImgF=[]
|
||||||
this.idCardImgFNameList=[]
|
this.idCardImgFNameList=[]
|
||||||
|
this.fileList3=[]
|
||||||
this.mainQualificationList=[
|
this.mainQualificationList=[
|
||||||
{
|
{
|
||||||
"qualificationCode": "",
|
"qualificationCode": "",
|
||||||
|
|
@ -771,14 +948,8 @@ export default {
|
||||||
isShowUpload:false
|
isShowUpload:false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
this.fileList3=[]
|
|
||||||
this.attachmentList=[]
|
this.attachmentList=[]
|
||||||
this.form = {
|
this.form = {};
|
||||||
mainQualificationList:[],
|
|
||||||
otherQualificationList:[],
|
|
||||||
attachmentList:[],
|
|
||||||
deliverVOList:[]
|
|
||||||
};
|
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
|
|
@ -795,7 +966,8 @@ export default {
|
||||||
}else{
|
}else{
|
||||||
this.form.idCardImgF = null
|
this.form.idCardImgF = null
|
||||||
}
|
}
|
||||||
this.form.mainQualificationList = this.mainQualificationList
|
console.log(this.mainQualificationList)
|
||||||
|
this.form.mainQualificationList = this.mainQualificationList;
|
||||||
this.form.attachmentList = this.attachmentList
|
this.form.attachmentList = this.attachmentList
|
||||||
if (this.form.supplierId != undefined) {
|
if (this.form.supplierId != undefined) {
|
||||||
editSupplierApi(this.form).then(response => {
|
editSupplierApi(this.form).then(response => {
|
||||||
|
|
@ -823,6 +995,7 @@ export default {
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
// 图片上传
|
// 图片上传
|
||||||
|
//企业法人/负责人身份证复印件(正面)
|
||||||
imgUpLoad(param, name, index) {
|
imgUpLoad(param, name, index) {
|
||||||
param.type = 'canteen'
|
param.type = 'canteen'
|
||||||
imgUpLoadTwo(param).then((res) => {
|
imgUpLoadTwo(param).then((res) => {
|
||||||
|
|
@ -847,6 +1020,7 @@ export default {
|
||||||
this.idCardImgZ.splice(sum, 1)
|
this.idCardImgZ.splice(sum, 1)
|
||||||
this.idCardImgZNameList.splice(sum, 1)
|
this.idCardImgZNameList.splice(sum, 1)
|
||||||
},
|
},
|
||||||
|
//企业法人/负责人身份证复印件(反面)
|
||||||
imgUpLoad2(param, name, index) {
|
imgUpLoad2(param, name, index) {
|
||||||
param.type = 'canteen'
|
param.type = 'canteen'
|
||||||
imgUpLoadTwo(param).then((res) => {
|
imgUpLoadTwo(param).then((res) => {
|
||||||
|
|
@ -872,12 +1046,12 @@ export default {
|
||||||
this.idCardImgFNameList.splice(sum, 1)
|
this.idCardImgFNameList.splice(sum, 1)
|
||||||
},
|
},
|
||||||
//主要资质
|
//主要资质
|
||||||
imgUpLoadMain(param,index){
|
imgUpLoadMain0(param) {
|
||||||
param.type = 'canteen'
|
param.type = 'canteen'
|
||||||
imgUpLoadTwo(param).then((res) => {
|
imgUpLoadTwo(param).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.mainQualificationList[index].imgUrl = res.data.url;
|
this.mainQualificationList[0].imgUrl = res.data.url;
|
||||||
this.mainQualificationList[index].isShowUpload = true;
|
// this.mainQualificationList[0].isShowUpload = true;
|
||||||
} else {
|
} else {
|
||||||
this.$modal.msgError(res.msg)
|
this.$modal.msgError(res.msg)
|
||||||
}
|
}
|
||||||
|
|
@ -886,12 +1060,75 @@ export default {
|
||||||
this.$modal.msgError(error)
|
this.$modal.msgError(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleExceed(files, fileList){
|
handleRemoveMain0(file, fileList) {
|
||||||
this.$modal.msgError('资质照片最多上传一个')
|
this.mainQualificationList[0].imgUrl=""
|
||||||
},
|
},
|
||||||
handleRemoveMain(index) {
|
imgUpLoadMain1(param) {
|
||||||
this.mainQualificationList[index].imgUrl="";
|
param.type = 'canteen'
|
||||||
this.mainQualificationList[index].isShowUpload = false;
|
imgUpLoadTwo(param).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.mainQualificationList[1].imgUrl = res.data.url;
|
||||||
|
} else {
|
||||||
|
this.$modal.msgError(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.$modal.msgError(error)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleRemoveMain1(file, fileList) {
|
||||||
|
this.mainQualificationList[1].imgUrl=""
|
||||||
|
},
|
||||||
|
imgUpLoadMain2(param) {
|
||||||
|
param.type = 'canteen'
|
||||||
|
imgUpLoadTwo(param).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.mainQualificationList[2].imgUrl = res.data.url;
|
||||||
|
} else {
|
||||||
|
this.$modal.msgError(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.$modal.msgError(error)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleRemoveMain2(file, fileList) {
|
||||||
|
this.mainQualificationList[2].imgUrl=""
|
||||||
|
},
|
||||||
|
imgUpLoadMain3(param) {
|
||||||
|
param.type = 'canteen'
|
||||||
|
imgUpLoadTwo(param).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.mainQualificationList[3].imgUrl = res.data.url;
|
||||||
|
} else {
|
||||||
|
this.$modal.msgError(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.$modal.msgError(error)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleRemoveMain3(file, fileList) {
|
||||||
|
this.mainQualificationList[3].imgUrl=""
|
||||||
|
},
|
||||||
|
imgUpLoadMain4(param) {
|
||||||
|
param.type = 'canteen'
|
||||||
|
imgUpLoadTwo(param).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.mainQualificationList[4].imgUrl = res.data.url;
|
||||||
|
} else {
|
||||||
|
this.$modal.msgError(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.$modal.msgError(error)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleRemoveMain4(file, fileList) {
|
||||||
|
this.mainQualificationList[4].imgUrl=""
|
||||||
|
},
|
||||||
|
handleExceed(files, fileList){
|
||||||
|
this.$modal.msgError('资质照片每项最多上传一个')
|
||||||
},
|
},
|
||||||
|
|
||||||
//附件上传
|
//附件上传
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue