|
@@ -298,123 +298,125 @@ export default {
|
|
|
:name="item.key"
|
|
|
lazy
|
|
|
>
|
|
|
- <el-super-table
|
|
|
- v-model="materialInfo[item.key]"
|
|
|
- :dict="dict"
|
|
|
- :ref="tabName"
|
|
|
- :columns="columns"
|
|
|
- :size="$attrs.size"
|
|
|
- >
|
|
|
- <template slot="materialName" slot-scope="scope">
|
|
|
- <component
|
|
|
- v-bind="scope.attr"
|
|
|
- v-model="scope.row[scope.item.key]"
|
|
|
- :size="$attrs.size"
|
|
|
- :source.sync="scope.row"
|
|
|
- >
|
|
|
- </component>
|
|
|
- </template>
|
|
|
- <!-- 判断是否禁用 -->
|
|
|
- <template slot="drug" slot-scope="scope">
|
|
|
- <component
|
|
|
- v-bind="scope.attr"
|
|
|
- v-model="scope.row[scope.item.key]"
|
|
|
- :size="$attrs.size"
|
|
|
- :source.sync="scope.row"
|
|
|
- :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in dict.type[scope.attr.dictName]"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ <div style="height: 420px;display:flex">
|
|
|
+ <el-super-table
|
|
|
+ v-model="materialInfo[item.key]"
|
|
|
+ :dict="dict"
|
|
|
+ :ref="tabName"
|
|
|
+ :columns="columns"
|
|
|
+ :size="$attrs.size"
|
|
|
+ >
|
|
|
+ <template slot="materialName" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
+ :size="$attrs.size"
|
|
|
+ :source.sync="scope.row"
|
|
|
>
|
|
|
- </el-option>
|
|
|
- </component>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template slot="registrationNo" slot-scope="scope">
|
|
|
- <component
|
|
|
- v-bind="scope.attr"
|
|
|
- v-model="scope.row[scope.item.key]"
|
|
|
- :size="$attrs.size"
|
|
|
- :source.sync="scope.row"
|
|
|
- :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
- >
|
|
|
- </component>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template slot="medicalDevices" slot-scope="scope">
|
|
|
- <component
|
|
|
- v-bind="scope.attr"
|
|
|
- v-model="scope.row[scope.item.key]"
|
|
|
- :size="$attrs.size"
|
|
|
- :source.sync="scope.row"
|
|
|
- :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in dict.type[scope.attr.dictName]"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ </component>
|
|
|
+ </template>
|
|
|
+ <!-- 判断是否禁用 -->
|
|
|
+ <template slot="drug" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
+ :size="$attrs.size"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in dict.type[scope.attr.dictName]"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </component>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template slot="registrationNo" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
+ :size="$attrs.size"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
>
|
|
|
- </el-option>
|
|
|
- </component>
|
|
|
- </template>
|
|
|
- <template slot="maintenanceType" slot-scope="scope">
|
|
|
- <component
|
|
|
- v-bind="scope.attr"
|
|
|
- v-model="scope.row[scope.item.key]"
|
|
|
- :size="$attrs.size"
|
|
|
- :source.sync="scope.row"
|
|
|
- :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in dict.type[scope.attr.dictName]"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ </component>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template slot="medicalDevices" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
+ :size="$attrs.size"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
>
|
|
|
- </el-option>
|
|
|
- </component>
|
|
|
- </template>
|
|
|
- <template slot="dosageFromName" slot-scope="scope">
|
|
|
- <component
|
|
|
- v-bind="scope.attr"
|
|
|
- v-model="scope.row[scope.item.key]"
|
|
|
- :size="$attrs.size"
|
|
|
- :source.sync="scope.row"
|
|
|
- :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
- >
|
|
|
- </component>
|
|
|
- </template>
|
|
|
-
|
|
|
-
|
|
|
- <el-table-column fixed="right" label="操作" width="120" align="center">
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
+ <el-option
|
|
|
+ v-for="item in dict.type[scope.attr.dictName]"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </component>
|
|
|
+ </template>
|
|
|
+ <template slot="maintenanceType" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
:size="$attrs.size"
|
|
|
- @click="useRowAdd(tabName)"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
>
|
|
|
- 增行
|
|
|
- </el-button>
|
|
|
+ <el-option
|
|
|
+ v-for="item in dict.type[scope.attr.dictName]"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </component>
|
|
|
</template>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
+ <template slot="dosageFromName" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
:size="$attrs.size"
|
|
|
- @click.native.prevent="useRowRemove(tabName, scope)"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ :disabled="!(scope.row.medicineMaterial ==='0') "
|
|
|
>
|
|
|
- 删除
|
|
|
- </el-button>
|
|
|
- <AmendantRecord
|
|
|
- v-if=" tabName ==='materialBasic' && addType === 'edit' && scope.row.id"
|
|
|
- v-model="scope.row"
|
|
|
- ></AmendantRecord>
|
|
|
+ </component>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- </el-super-table>
|
|
|
+
|
|
|
+
|
|
|
+ <el-table-column fixed="right" label="操作" width="120" align="center">
|
|
|
+ <template slot="header" slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ :size="$attrs.size"
|
|
|
+ @click="useRowAdd(tabName)"
|
|
|
+ >
|
|
|
+ 增行
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ :size="$attrs.size"
|
|
|
+ @click.native.prevent="useRowRemove(tabName, scope)"
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
+ <AmendantRecord
|
|
|
+ v-if=" tabName ==='materialBasic' && addType === 'edit' && scope.row.id"
|
|
|
+ v-model="scope.row"
|
|
|
+ ></AmendantRecord>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-super-table>
|
|
|
+ </div>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
|