|
@@ -6,6 +6,7 @@ import {
|
|
|
editReq,
|
|
|
saveAndToOa,
|
|
|
betchSubmit,
|
|
|
+ classifyDetails,
|
|
|
} from "@/api/requisition/basic";
|
|
|
import { REFER } from "@/components/popover-select/api/index";
|
|
|
export default {
|
|
@@ -115,7 +116,6 @@ export default {
|
|
|
});
|
|
|
|
|
|
if (code == 200) {
|
|
|
- console.log(rows, "rows");
|
|
|
let { id, code, name } = rows[0];
|
|
|
this.params.sysMaterialMedcineItemApply = [
|
|
|
{
|
|
@@ -452,13 +452,28 @@ export default {
|
|
|
open();
|
|
|
},
|
|
|
materialReferenceChange(prop, { source }) {
|
|
|
- console.log(prop, "prop");
|
|
|
- console.log(source, "source");
|
|
|
this.params.sysMaterialApply = {
|
|
|
...this.params.sysMaterialApply,
|
|
|
...source,
|
|
|
};
|
|
|
},
|
|
|
+ // 四级分类带出一二三级分类
|
|
|
+ async classifyNameChange(prop, { source }) {
|
|
|
+ console.log(source, "source");
|
|
|
+ let { classifyId } = source;
|
|
|
+ try {
|
|
|
+ let {
|
|
|
+ code,
|
|
|
+ msg,
|
|
|
+ data: { oneClass, twoClass, threeClass },
|
|
|
+ } = await classifyDetails({ id: classifyId });
|
|
|
+ if (code == 200) {
|
|
|
+ source.oneClass = oneClass;
|
|
|
+ source.twoClass = twoClass;
|
|
|
+ source.threeClass = threeClass;
|
|
|
+ }
|
|
|
+ } catch (error) {}
|
|
|
+ },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {},
|
|
@@ -581,6 +596,19 @@ export default {
|
|
|
</el-button>
|
|
|
</component>
|
|
|
</template>
|
|
|
+ <!-- 四级分类 -->
|
|
|
+ <template slot="classifyName" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
+ :size="$attrs.size"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ :disabled="addType === 'see'"
|
|
|
+ @change="classifyNameChange"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ </component>
|
|
|
+ </template>
|
|
|
<!-- 药品 -->
|
|
|
<template slot="isDrug" slot-scope="scope">
|
|
|
<component
|