12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- var template = ''
- $.ajax('../../../component/statistics/LascCervicalPreliminaryScreenEntity/index.html', {
- data: {},
- dataType: 'html',
- cache: false,
- timeout: 60000,
- async: false,
- error: function (res) {},
- success: function (res) {
- template = res
- }
- })
- Vue.component('lasc-cervical-preliminary-screen-entity', {
- template: template,
- props: ['data'],
- data: function () {
- return {
- readonlyTwo: 1,
- readonly: true,
- isShowPicker: false,
- columns: [],
- pickType: '',
- curItem: '',
- isShowDatePicker: false,
- activeDateField: '',
- date: '',
- minDate: moment().add(-100, 'year').toDate(),
- form: {
- screenId: '', //两癌筛查id
- preliminaryScreenResults: '', //
- preliminaryScreenOrg: docInfo.hospitalName, //检查机构
- preliminaryScreenUser: docInfo.name, //检查人员
- preliminaryScreenTime: '' //检查时间
- }
- }
- },
- methods: {},
- mounted() {
- var vm = this
- if (this.readonly && !this.form.preliminaryScreenOrg) {
- this.form = {
- screenId: '', //两癌筛查id
- preliminaryScreenResults: '', //
- preliminaryScreenOrg: '', //检查机构
- preliminaryScreenUser: '', //检查人员
- preliminaryScreenTime: '' //检查时间
- }
- } else {
- this.form = _.assign(this.form, this.data.value)
- this.form.screenId = this.data.value[0] && this.data.value[0].screenId
- }
- httpRequest
- .get('doctor/twoCancers/getPreliminaryScreenResults', {
- data: {
- screenId: this.form.screenId
- }
- })
- .then(function (ress) {
- vm.form.preliminaryScreenResults = ress.data || '1'
- })
- }
- })
|