|
@@ -130,11 +130,12 @@ export default {
|
|
|
packagingSpecifications: [],
|
|
packagingSpecifications: [],
|
|
|
}, model);
|
|
}, model);
|
|
|
|
|
|
|
|
- if (typeof this.editModel.packagingSpecifications === 'string') this.editModel.packagingSpecifications = this.editModel.packagingSpecifications.split(',');
|
|
|
|
|
|
|
+ if (typeof this.editModel.packagingSpecifications === 'string') this.editModel.packagingSpecifications = this.editModel.packagingSpecifications.split(',').filter(v => v != null && v !== '');
|
|
|
if (this.editModel.toxicPieces === 0) delete this.editModel.toxicPieces;
|
|
if (this.editModel.toxicPieces === 0) delete this.editModel.toxicPieces;
|
|
|
if (this.editModel.prescriptionUsageCode != null) this.editModel.prescriptionUsageCode = this.editModel.prescriptionUsageCode.toString();
|
|
if (this.editModel.prescriptionUsageCode != null) this.editModel.prescriptionUsageCode = this.editModel.prescriptionUsageCode.toString();
|
|
|
if (this.editModel.selfPackage != null) this.editModel.selfPackage = this.editModel.selfPackage.toString();
|
|
if (this.editModel.selfPackage != null) this.editModel.selfPackage = this.editModel.selfPackage.toString();
|
|
|
- if (typeof this.editModel.decoctionManagerId === 'string') this.editModel.decoctionManagerId = +this.editModel.decoctionManagerId;
|
|
|
|
|
|
|
+ if (this.editModel.selfPackage === '0') /* fuck 默认值 */ delete this.editModel.selfPackage;
|
|
|
|
|
+ if (typeof this.editModel.decoctionManagerId === 'string') this.editModel.decoctionManagerId = this.editModel.decoctionManagerId ? +this.editModel.decoctionManagerId : void 0;
|
|
|
|
|
|
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
lock: true,
|
|
@@ -317,7 +318,7 @@ export default {
|
|
|
<el-table-column label="煎药负责人" prop="decoctionManagerName" align="center"/>
|
|
<el-table-column label="煎药负责人" prop="decoctionManagerName" align="center"/>
|
|
|
<el-table-column label="包装规格" prop="packagingSpecifications" align="center" :show-overflow-tooltip="true">
|
|
<el-table-column label="包装规格" prop="packagingSpecifications" align="center" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- {{ (scope.row.packagingSpecifications || '').split(',').map(v => `${v} ml`).join(' - ') }}
|
|
|
|
|
|
|
+ {{ (scope.row.packagingSpecifications || '').split(',').filter(v => v != null && v !== '').map(v => `${v} ml`).join(' - ') }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" prop="state" align="center">
|
|
<el-table-column label="状态" prop="state" align="center">
|