|
@@ -169,7 +169,7 @@
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="B2C物料" prop="isB2c">
|
|
|
<el-select
|
|
|
- v-model="basicForm.medicineMaterial"
|
|
|
+ v-model="basicForm.isB2c"
|
|
|
placeholder="B2C物料"
|
|
|
clearable
|
|
|
:disabled="disable"
|
|
@@ -255,33 +255,21 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="有效期" prop="usefulLife">
|
|
|
- <el-select
|
|
|
- v-model="basicForm.usefulLife"
|
|
|
- placeholder="有效期"
|
|
|
- clearable
|
|
|
- :disabled="disable"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-input type="number" :disabled="disable" v-model="basicForm.usefulLife"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="有效期单位" prop="expiryUnitId">
|
|
|
+ <el-form-item label="效期单位" prop="expiryUnitId">
|
|
|
<el-select
|
|
|
v-model="basicForm.expiryUnitId"
|
|
|
- placeholder="有效期单位"
|
|
|
+ placeholder="效期单位"
|
|
|
clearable
|
|
|
:disabled="disable"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in options"
|
|
|
+ v-for="item in dict.type.period_unit"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
@@ -298,7 +286,7 @@
|
|
|
:disabled="disable"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in options"
|
|
|
+ v-for="item in dict.type.expiry_date"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
@@ -308,7 +296,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="近效期预警天数" prop="recentWarningPeriod">
|
|
|
- <el-input :disabled="disable" v-model="basicForm.recentWarningPeriod"></el-input>
|
|
|
+ <el-input type="number" :disabled="disable" v-model="basicForm.recentWarningPeriod"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -592,9 +580,23 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="剂型" prop="dosageFrom">
|
|
|
- <el-input :disabled="disable" v-model="basicForm2.dosageFrom">
|
|
|
+ <el-select
|
|
|
+ ref="doses"
|
|
|
+ v-model="basicForm2.dosageFrom"
|
|
|
+ placeholder="剂型"
|
|
|
+ :disabled="disable"
|
|
|
+ @focus="chooseDose"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in doseOptions"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ <!-- <el-input :disabled="disable" v-model="basicForm2.dosageFrom">
|
|
|
<el-button :disabled="disable" slot="append" icon="el-icon-more" @click="test01"></el-button>
|
|
|
- </el-input>
|
|
|
+ </el-input> -->
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -794,6 +796,13 @@
|
|
|
:selectData="selectData8"
|
|
|
:single="true"
|
|
|
/>
|
|
|
+
|
|
|
+ <dose
|
|
|
+ ref="dose"
|
|
|
+ @doSubmit="acceptDose"
|
|
|
+ :selectData="selectData9"
|
|
|
+ :single="true"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -806,17 +815,18 @@ import place from '@/components/PopDialog/place.vue'
|
|
|
import tax from '@/components/PopDialog/tax.vue'
|
|
|
import staff from '@/components/PopDialog/staff.vue'
|
|
|
import serviceline from '@/components/PopDialog/serviceline.vue'
|
|
|
+import dose from '@/components/PopDialog/dose.vue'
|
|
|
import { addReq, getReqDetail, editReq } from '@/api/requisition/basic'
|
|
|
// 调用物料分类详情接口用于数据回显
|
|
|
import { getDetail } from '@/api/classify/basic';
|
|
|
// 生产厂商/代理人调用用于回显
|
|
|
import { getProductFactory } from '@/api/changeApply/basic'
|
|
|
// 计量单位,产地调用用于回显
|
|
|
-import { getUnit, getPlace, getTax, getStaff, getLine} from '@/api/requisition/basic'
|
|
|
+import { getUnit, getPlace, getTax, getStaff, getLine, getDose} from '@/api/requisition/basic'
|
|
|
|
|
|
export default {
|
|
|
name: 'requisition_add',
|
|
|
- dicts: ['sys_storage_condition', 'sys_conditions_carriage', 'sys_medicine', 'medical_instruments', 'curing_type'],
|
|
|
+ dicts: ['sys_storage_condition', 'sys_conditions_carriage', 'sys_medicine', 'medical_instruments', 'curing_type', 'period_unit', 'expiry_date'],
|
|
|
components: {
|
|
|
popDialog,
|
|
|
factory,
|
|
@@ -825,7 +835,8 @@ export default {
|
|
|
place,
|
|
|
tax,
|
|
|
staff,
|
|
|
- serviceline
|
|
|
+ serviceline,
|
|
|
+ dose
|
|
|
},
|
|
|
props: ['pageStu', 'row', 'disable'],
|
|
|
model: {
|
|
@@ -841,6 +852,7 @@ export default {
|
|
|
taxOptions: [],
|
|
|
staffOptions: [],
|
|
|
lineOptions: [],
|
|
|
+ doseOptions: [],
|
|
|
tabValue: 'first',
|
|
|
basicForm: {
|
|
|
billCode: '',
|
|
@@ -944,7 +956,8 @@ export default {
|
|
|
selectData5: [],
|
|
|
selectData6: [],
|
|
|
selectData7: [],
|
|
|
- selectData8: []
|
|
|
+ selectData8: [],
|
|
|
+ selectData9: []
|
|
|
}
|
|
|
},
|
|
|
// watch: {
|
|
@@ -1115,6 +1128,15 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 剂型回显
|
|
|
+ getDoseDetails(id) {
|
|
|
+ getDose({id:id}).then(res => {
|
|
|
+ console.log('剂型', res)
|
|
|
+ if (res.code === 200 ) {
|
|
|
+ this.doseOptions = res.data.tableBody
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 如果是详情进入,则调用详情接口
|
|
|
getDetails(row) {
|
|
|
getReqDetail(row.id).then(res => {
|
|
@@ -1124,10 +1146,16 @@ export default {
|
|
|
if(res.data.unitId) {
|
|
|
this.basicForm.unitId = res.data.unitId.toString()
|
|
|
this.basicForm.manufacturerId = res.data.manufacturerId.toString()
|
|
|
+ this.basicForm.usefulLifeUnitId = res.data.usefulLifeUnitId.toString()
|
|
|
+ this.basicForm.expiryUnitId = res.data.expiryUnitId.toString()
|
|
|
}
|
|
|
if(res.data.sysMaterialMedcineApply) {
|
|
|
this.basicForm2 = res.data.sysMaterialMedcineApply
|
|
|
}
|
|
|
+ // 剂型回显
|
|
|
+ if (res.data.sysMaterialMedcineApply.dosageFrom) {
|
|
|
+ this.getDoseDetails(res.data.sysMaterialMedcineApply.dosageFrom)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1339,6 +1367,17 @@ export default {
|
|
|
this.$refs.lines.blur()
|
|
|
this.$refs.line.init()
|
|
|
},
|
|
|
+ // 选择剂型
|
|
|
+ acceptDose (selections) {
|
|
|
+ this.doseOptions = selections
|
|
|
+ this.basicForm2.dosageFrom = selections[0].id
|
|
|
+ this.getDoseDetails(selections[0].id)
|
|
|
+ },
|
|
|
+ // 业务线显示列表
|
|
|
+ chooseDose () {
|
|
|
+ this.$refs.doses.blur()
|
|
|
+ this.$refs.dose.init()
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|