版本更新
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="app-container" v-loading="pageLoading" loading-text="审批中。。。">
|
||||
<el-row :gutter="10" class="mb8" v-if="viewStatus">
|
||||
<el-col :span="1.5">
|
||||
<el-button v-if="viewStatus != 'view'" plain type="primary" icon="Edit" @click="handelApply"
|
||||
@@ -150,437 +150,439 @@
|
||||
<el-form :model="form" :rules="tableRules" ref="formRef" :disabled="viewStatus == 'apply'">
|
||||
<!-- @cell-mouse-enter="handleMouseEnter" -->
|
||||
<!-- v-click-outside-row="handleClickOutside" @row-click="handleRowClick" 点击行以外的部分自动保存 -->
|
||||
<el-table
|
||||
row-key="rowKey"
|
||||
v-loading="loading"
|
||||
:data="form.purchaseinventoryList"
|
||||
@selection-change="handleSelectionChange"
|
||||
ref="tableRef"
|
||||
@cell-mouse-leave="handleMouseLeave"
|
||||
>
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column label="项目" align="center" key="name" prop="name" width="200" fixed>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.name`"
|
||||
:rules="tableRules.name"
|
||||
>
|
||||
<el-input
|
||||
v-if="viewStatus == 'view'"
|
||||
v-model="scope.row.name"
|
||||
placeholder=""
|
||||
disabled
|
||||
/>
|
||||
<PopoverList
|
||||
v-else
|
||||
@search="handleSearch"
|
||||
:width="1000"
|
||||
:modelValue="scope.row.name"
|
||||
>
|
||||
<template #popover-content="{}">
|
||||
<MedicineList
|
||||
@selectRow="(row) => selectRow(row, scope.$index)"
|
||||
:searchKey="medicineSearchKey"
|
||||
:itemType="itemType"
|
||||
/>
|
||||
</template>
|
||||
</PopoverList>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="规格"
|
||||
align="center"
|
||||
key="statusEnum_enumText"
|
||||
prop="statusEnum_enumText"
|
||||
width="150"
|
||||
<el-scrollbar height="calc(100vh - 500px)">
|
||||
<el-table
|
||||
row-key="rowKey"
|
||||
v-loading="loading"
|
||||
:data="form.purchaseinventoryList"
|
||||
@selection-change="handleSelectionChange"
|
||||
ref="tableRef"
|
||||
@cell-mouse-leave="handleMouseLeave"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.volume`"
|
||||
:rules="tableRules.volume"
|
||||
>
|
||||
<el-input v-model="scope.row.volume" placeholder="" disabled />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="厂家/产地"
|
||||
align="center"
|
||||
key="manufacturer"
|
||||
prop="manufacturer"
|
||||
:show-overflow-tooltip="true"
|
||||
width="160"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.manufacturer`"
|
||||
:rules="tableRules.manufacturer"
|
||||
>
|
||||
<el-input v-model="scope.row.manufacturer" placeholder="" disabled />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="仓库"
|
||||
align="center"
|
||||
key="purposeLocationId"
|
||||
prop="purposeLocationId"
|
||||
:show-overflow-tooltip="true"
|
||||
width="180"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.purposeLocationId`"
|
||||
:rules="tableRules.purposeLocationId"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-select
|
||||
v-model="scope.row.purposeLocationId"
|
||||
placeholder="请选择仓库"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
clearable
|
||||
:disabled="viewStatus == 'view'"
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in locationList"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@click="handleLocationClick(item, scope.row, scope.$index)"
|
||||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="采购数量"
|
||||
align="center"
|
||||
key="itemQuantity"
|
||||
prop="itemQuantity"
|
||||
width="120"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.itemQuantity`"
|
||||
:rules="tableRules.itemQuantity"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-input
|
||||
:disabled="viewStatus == 'view'"
|
||||
v-model="scope.row.itemQuantity"
|
||||
placeholder=""
|
||||
@blur="handleTotalPrice(scope.$index)"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="计量单位"
|
||||
align="center"
|
||||
key="unitCode"
|
||||
prop="unitCode"
|
||||
:show-overflow-tooltip="true"
|
||||
width="90"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.unitCode`"
|
||||
:rules="tableRules.unitCode"
|
||||
>
|
||||
<!-- :disabled="data.isEdit" -->
|
||||
<div class="select_wrapper_div">
|
||||
<el-select
|
||||
v-model="scope.row.unitCode"
|
||||
placeholder=" "
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
:clearable="false"
|
||||
:disabled="viewStatus == 'view'"
|
||||
@change="(value) => handleUnitCodeChange(scope.row, scope.$index, value)"
|
||||
>
|
||||
<template v-if="scope.row.unitList && scope.row.partPercent > 1">
|
||||
<el-option
|
||||
:label="scope.row.unitList.unitCode_dictText"
|
||||
:value="scope.row.unitList.unitCode"
|
||||
/>
|
||||
<el-option
|
||||
:label="scope.row.unitList.minUnitCode_dictText"
|
||||
:value="scope.row.unitList.minUnitCode"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="scope.row.unitList && scope.row.partPercent == 1">
|
||||
<el-option
|
||||
:label="scope.row.unitList.unitCode_dictText"
|
||||
:value="scope.row.unitList.unitCode"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="!scope.row.unitList">
|
||||
<el-option
|
||||
:label="scope.row.unitCode_dictText"
|
||||
:value="scope.row.unitCode"
|
||||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="药品追溯码"
|
||||
align="center"
|
||||
key="traceNo"
|
||||
prop="traceNo"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
:content="formatContent(scope.row.traceNo)"
|
||||
placement="top"
|
||||
popper-class="custom-tooltip"
|
||||
>
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column label="项目" align="center" key="name" prop="name" width="200" fixed>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.traceNo`"
|
||||
:rules="tableRules.traceNo"
|
||||
:prop="`purchaseinventoryList.${scope.$index}.name`"
|
||||
:rules="tableRules.name"
|
||||
>
|
||||
<el-input
|
||||
:disabled="viewStatus == 'view'"
|
||||
v-model="scope.row.traceNo"
|
||||
@change="(value) => handleTraceNoInput(value, scope.row)"
|
||||
v-if="viewStatus == 'view'"
|
||||
v-model="scope.row.name"
|
||||
placeholder=""
|
||||
:id="'traceNo' + `${scope.$index}`"
|
||||
disabled
|
||||
/>
|
||||
<PopoverList
|
||||
v-else
|
||||
@search="handleSearch"
|
||||
:width="1000"
|
||||
:modelValue="scope.row.name"
|
||||
>
|
||||
<template #popover-content="{}">
|
||||
<MedicineList
|
||||
@selectRow="(row) => selectRow(row, scope.$index)"
|
||||
:searchKey="medicineSearchKey"
|
||||
:itemType="itemType"
|
||||
/>
|
||||
</template>
|
||||
</PopoverList>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="规格"
|
||||
align="center"
|
||||
key="statusEnum_enumText"
|
||||
prop="statusEnum_enumText"
|
||||
width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.volume`"
|
||||
:rules="tableRules.volume"
|
||||
>
|
||||
<el-input v-model="scope.row.volume" placeholder="" disabled />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="厂家/产地"
|
||||
align="center"
|
||||
key="manufacturer"
|
||||
prop="manufacturer"
|
||||
:show-overflow-tooltip="true"
|
||||
width="160"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.manufacturer`"
|
||||
:rules="tableRules.manufacturer"
|
||||
>
|
||||
<el-input v-model="scope.row.manufacturer" placeholder="" disabled />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="仓库"
|
||||
align="center"
|
||||
key="purposeLocationId"
|
||||
prop="purposeLocationId"
|
||||
:show-overflow-tooltip="true"
|
||||
width="180"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.purposeLocationId`"
|
||||
:rules="tableRules.purposeLocationId"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-select
|
||||
v-model="scope.row.purposeLocationId"
|
||||
placeholder="请选择仓库"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
clearable
|
||||
:disabled="viewStatus == 'view'"
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in locationList"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@click="handleLocationClick(item, scope.row, scope.$index)"
|
||||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="采购数量"
|
||||
align="center"
|
||||
key="itemQuantity"
|
||||
prop="itemQuantity"
|
||||
width="120"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.itemQuantity`"
|
||||
:rules="tableRules.itemQuantity"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-input
|
||||
:disabled="viewStatus == 'view'"
|
||||
v-model="scope.row.itemQuantity"
|
||||
placeholder=""
|
||||
@blur="handleTotalPrice(scope.$index)"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="计量单位"
|
||||
align="center"
|
||||
key="unitCode"
|
||||
prop="unitCode"
|
||||
:show-overflow-tooltip="true"
|
||||
width="90"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.unitCode`"
|
||||
:rules="tableRules.unitCode"
|
||||
>
|
||||
<!-- :disabled="data.isEdit" -->
|
||||
<div class="select_wrapper_div">
|
||||
<el-select
|
||||
v-model="scope.row.unitCode"
|
||||
placeholder=" "
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
:clearable="false"
|
||||
:disabled="viewStatus == 'view'"
|
||||
@change="(value) => handleUnitCodeChange(scope.row, scope.$index, value)"
|
||||
>
|
||||
<template v-if="scope.row.unitList && scope.row.partPercent > 1">
|
||||
<el-option
|
||||
:label="scope.row.unitList.unitCode_dictText"
|
||||
:value="scope.row.unitList.unitCode"
|
||||
/>
|
||||
<el-option
|
||||
:label="scope.row.unitList.minUnitCode_dictText"
|
||||
:value="scope.row.unitList.minUnitCode"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="scope.row.unitList && scope.row.partPercent == 1">
|
||||
<el-option
|
||||
:label="scope.row.unitList.unitCode_dictText"
|
||||
:value="scope.row.unitList.unitCode"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="!scope.row.unitList">
|
||||
<el-option
|
||||
:label="scope.row.unitCode_dictText"
|
||||
:value="scope.row.unitCode"
|
||||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="药品追溯码"
|
||||
align="center"
|
||||
key="traceNo"
|
||||
prop="traceNo"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
:content="formatContent(scope.row.traceNo)"
|
||||
placement="top"
|
||||
popper-class="custom-tooltip"
|
||||
>
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.traceNo`"
|
||||
:rules="tableRules.traceNo"
|
||||
>
|
||||
<el-input
|
||||
:disabled="viewStatus == 'view'"
|
||||
v-model="scope.row.traceNo"
|
||||
@change="(value) => handleTraceNoInput(value, scope.row)"
|
||||
placeholder=""
|
||||
:id="'traceNo' + `${scope.$index}`"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="追溯码包装"
|
||||
align="center"
|
||||
key="packagingLevels"
|
||||
prop="packagingLevels"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.packagingLevels`"
|
||||
:rules="tableRules.packagingLevels"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.packagingLevels"
|
||||
placeholder=""
|
||||
:disabled="viewStatus == 'view'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="追溯码包装"
|
||||
align="center"
|
||||
key="packagingLevels"
|
||||
prop="packagingLevels"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.packagingLevels`"
|
||||
:rules="tableRules.packagingLevels"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.packagingLevels"
|
||||
placeholder=""
|
||||
:disabled="viewStatus == 'view'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="采购单价(包装单位) "
|
||||
align="center"
|
||||
key="price"
|
||||
prop="price"
|
||||
width="160"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.price`"
|
||||
:rules="tableRules.price"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-input
|
||||
v-model="scope.row.price"
|
||||
placeholder=""
|
||||
@blur="handleTotalPrice(scope.$index)"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
:disabled="viewStatus == 'view'"
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="采购单价(包装单位) "
|
||||
align="center"
|
||||
key="price"
|
||||
prop="price"
|
||||
width="160"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.price`"
|
||||
:rules="tableRules.price"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-input
|
||||
v-model="scope.row.price"
|
||||
placeholder=""
|
||||
@blur="handleTotalPrice(scope.$index)"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
:disabled="viewStatus == 'view'"
|
||||
>
|
||||
<template #suffix>元</template>
|
||||
</el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="合计金额 "
|
||||
align="center"
|
||||
key="totalPrice"
|
||||
prop="totalPrice"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item :prop="`purchaseinventoryList.${scope.$index}.totalPrice`">
|
||||
<el-input disabled v-model="scope.row.totalPrice" placeholder="">
|
||||
<template #suffix>元</template>
|
||||
</el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="合计金额 "
|
||||
align="center"
|
||||
key="totalPrice"
|
||||
prop="totalPrice"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item :prop="`purchaseinventoryList.${scope.$index}.totalPrice`">
|
||||
<el-input disabled v-model="scope.row.totalPrice" placeholder="">
|
||||
<template #suffix>元</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="产品批号"
|
||||
align="center"
|
||||
key="lotNumber"
|
||||
prop="lotNumber"
|
||||
width="160"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.lotNumber`"
|
||||
:rules="tableRules.lotNumber"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.lotNumber"
|
||||
placeholder=""
|
||||
maxlength="100"
|
||||
:disabled="viewStatus == 'view'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="生产日期"
|
||||
align="center"
|
||||
key="startTime"
|
||||
prop="startTime"
|
||||
width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.startTime`"
|
||||
:rules="tableRules.startTime"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="scope.row.startTime"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
:disabled="viewStatus == 'view'"
|
||||
@change="changeValStart($event, scope.$index)"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="有效期至"
|
||||
align="center"
|
||||
key="endTime"
|
||||
prop="endTime"
|
||||
width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.endTime`"
|
||||
:rules="tableRules.endTime"
|
||||
>
|
||||
<el-date-picker
|
||||
:disabled="viewStatus == 'view'"
|
||||
v-model="scope.row.endTime"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
@change="changeValEnd($event, scope.$index)"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="发票号 "
|
||||
align="center"
|
||||
key="invoiceNo"
|
||||
prop="invoiceNo"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.invoiceNo`"
|
||||
:rules="tableRules.invoiceNo"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.invoiceNo"
|
||||
placeholder=""
|
||||
:disabled="viewStatus == 'view'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="备注" align="center" key="remake" prop="remake" width="130">
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.remake`"
|
||||
:rules="tableRules.remake"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.remake"
|
||||
placeholder=""
|
||||
:disabled="viewStatus == 'view'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="货位"
|
||||
align="center"
|
||||
key="locationStoreName"
|
||||
prop="locationStoreName"
|
||||
width="180"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.locationStoreName`"
|
||||
:rules="tableRules.locationStoreName"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-select
|
||||
v-model="scope.row.locationStoreName"
|
||||
placeholder="请选择货位"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
clearable
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="产品批号"
|
||||
align="center"
|
||||
key="lotNumber"
|
||||
prop="lotNumber"
|
||||
width="160"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.lotNumber`"
|
||||
:rules="tableRules.lotNumber"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.lotNumber"
|
||||
placeholder=""
|
||||
maxlength="100"
|
||||
:disabled="viewStatus == 'view'"
|
||||
>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="总库存数量"
|
||||
align="center"
|
||||
key="quantity"
|
||||
prop="quantity"
|
||||
width="120"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.quantity`"
|
||||
:rules="tableRules.quantity"
|
||||
>
|
||||
<el-input v-model="scope.row.quantity" placeholder="" disabled />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="!viewStatus"
|
||||
label="操作"
|
||||
align="center"
|
||||
width="80"
|
||||
class-name="small-padding fixed-width"
|
||||
fixed="right"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
@click="handleScan(scope.row, scope.$index)"
|
||||
>扫码</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="生产日期"
|
||||
align="center"
|
||||
key="startTime"
|
||||
prop="startTime"
|
||||
width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.startTime`"
|
||||
:rules="tableRules.startTime"
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="scope.row.startTime"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
:disabled="viewStatus == 'view'"
|
||||
@change="changeValStart($event, scope.$index)"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="有效期至"
|
||||
align="center"
|
||||
key="endTime"
|
||||
prop="endTime"
|
||||
width="150"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.endTime`"
|
||||
:rules="tableRules.endTime"
|
||||
>
|
||||
<el-date-picker
|
||||
:disabled="viewStatus == 'view'"
|
||||
v-model="scope.row.endTime"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
@change="changeValEnd($event, scope.$index)"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="发票号 "
|
||||
align="center"
|
||||
key="invoiceNo"
|
||||
prop="invoiceNo"
|
||||
width="130"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.invoiceNo`"
|
||||
:rules="tableRules.invoiceNo"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.invoiceNo"
|
||||
placeholder=""
|
||||
:disabled="viewStatus == 'view'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="备注" align="center" key="remake" prop="remake" width="130">
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.remake`"
|
||||
:rules="tableRules.remake"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.remake"
|
||||
placeholder=""
|
||||
:disabled="viewStatus == 'view'"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="货位"
|
||||
align="center"
|
||||
key="locationStoreName"
|
||||
prop="locationStoreName"
|
||||
width="180"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.locationStoreName`"
|
||||
:rules="tableRules.locationStoreName"
|
||||
>
|
||||
<div class="select_wrapper_div">
|
||||
<el-select
|
||||
v-model="scope.row.locationStoreName"
|
||||
placeholder="请选择货位"
|
||||
:class="{ 'error-border': scope.row.error }"
|
||||
clearable
|
||||
:disabled="viewStatus == 'view'"
|
||||
>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="总库存数量"
|
||||
align="center"
|
||||
key="quantity"
|
||||
prop="quantity"
|
||||
width="120"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-form-item
|
||||
:prop="`purchaseinventoryList.${scope.$index}.quantity`"
|
||||
:rules="tableRules.quantity"
|
||||
>
|
||||
<el-input v-model="scope.row.quantity" placeholder="" disabled />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="!viewStatus"
|
||||
label="操作"
|
||||
align="center"
|
||||
width="80"
|
||||
class-name="small-padding fixed-width"
|
||||
fixed="right"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
@click="handleScan(scope.row, scope.$index)"
|
||||
>扫码</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-scrollbar>
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
@@ -682,6 +684,7 @@ const ypName = ref('');
|
||||
const rowIndex = ref(-1);
|
||||
const totalAmount = ref(0);
|
||||
const editData = ref({});
|
||||
const pageLoading = ref(false);
|
||||
const form = reactive({
|
||||
purchaseinventoryList: [],
|
||||
});
|
||||
@@ -1310,7 +1313,7 @@ function handlePrint() {
|
||||
}, 0);
|
||||
result.push({
|
||||
supplierName: supplierName,
|
||||
totalAmount: totalAmount,
|
||||
totalAmount: totalAmount.toFixed(2),
|
||||
...receiptHeaderForm,
|
||||
purchaseinventoryList: form.purchaseinventoryList,
|
||||
});
|
||||
@@ -1498,18 +1501,24 @@ function handleReject() {
|
||||
});
|
||||
}
|
||||
function handelApply() {
|
||||
purchaseInventoryApproved(route.query.supplyBusNo).then((res) => {
|
||||
if (res.code == 200) {
|
||||
proxy.$modal.msgSuccess('操作成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentData();
|
||||
// 跳转到审核页面
|
||||
router.replace({
|
||||
path: '/aaaa/medicationmanagement/billapproval',
|
||||
query: { type: 'purchaseDocument' },
|
||||
});
|
||||
}
|
||||
});
|
||||
pageLoading.value = true;
|
||||
purchaseInventoryApproved(route.query.supplyBusNo)
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
pageLoading.value = false;
|
||||
proxy.$modal.msgSuccess('操作成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentData();
|
||||
// 跳转到审核页面
|
||||
router.replace({
|
||||
path: '/aaaa/medicationmanagement/billapproval',
|
||||
query: { type: 'purchaseDocument' },
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
pageLoading.value = false;
|
||||
});
|
||||
}
|
||||
function toLastView(visitedViews, view) {
|
||||
const latestView = visitedViews.slice(-1)[0];
|
||||
@@ -1602,4 +1611,4 @@ getPurchaseinventoryTypeList();
|
||||
.error-border {
|
||||
border: 1px solid red;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user