|
@@ -7,6 +7,7 @@ import {
|
|
|
saveAndToOa,
|
|
|
betchSubmit,
|
|
|
classifyDetails,
|
|
|
+ getDiCode,
|
|
|
} from "@/api/requisition/basic";
|
|
|
import { REFER } from "@/components/popover-select/api/index";
|
|
|
export default {
|
|
@@ -524,6 +525,23 @@ export default {
|
|
|
sysMaterialApply.recentWarningPeriod = "";
|
|
|
}
|
|
|
},
|
|
|
+ async changeDiCode(prop) {
|
|
|
+ console.log(prop, "prop");
|
|
|
+ try {
|
|
|
+ let { code, data } = await getDiCode(prop);
|
|
|
+ let { sysMaterialApply, sysMaterialMedcineApply } = this.params;
|
|
|
+ if (code == 200) {
|
|
|
+ if (data.length) {
|
|
|
+ sysMaterialApply.name = data[0].cpmctymc;
|
|
|
+ sysMaterialApply.model = data[0].ggxh;
|
|
|
+ sysMaterialApply.registrant = data[0].ylqxzcrbarmc;
|
|
|
+ sysMaterialApply.minPackQty = data[0].zxxsdyzsydydsl;
|
|
|
+ sysMaterialApply.manufacturersMaterialCode = data[0].cphhhbh;
|
|
|
+ sysMaterialMedcineApply.registrationNo = data[0].zczbhhzbapzbh;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (error) {}
|
|
|
+ },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {},
|
|
@@ -831,7 +849,7 @@ export default {
|
|
|
</template>
|
|
|
|
|
|
<!-- DI -->
|
|
|
- <!-- <template slot="diCode" slot-scope="scope">
|
|
|
+ <template slot="diCode" slot-scope="scope">
|
|
|
<component
|
|
|
v-bind="scope.attr"
|
|
|
v-model="scope.row[scope.item.key]"
|
|
@@ -839,8 +857,9 @@ export default {
|
|
|
:source.sync="scope.row"
|
|
|
:disabled="addType === 'see'"
|
|
|
style="width: 100%"
|
|
|
+ @change="changeDiCode"
|
|
|
></component>
|
|
|
- </template> -->
|
|
|
+ </template>
|
|
|
</component>
|
|
|
|
|
|
<!-- -->
|