| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785 |
- <template>
- <div v-loading="loading">
- <el-row :gutter="5">
- <el-col :span="24">
- <el-form
- ref="ruleForm"
- :rules="rules"
- :model="ruleForm"
- label-width="150px"
- style="font-size: 14px"
- class="order_form">
- <!-- 工单信息 -->
- <el-row v-if="JSON.stringify(orderTypeData)==='{}'">
- <el-col :span="10">
- <el-form-item label="业务类别" prop="F_Type1">
- <select-order-type
- v-if="OrderDetailFlag"
- :first-order-type="firstOrderTypeParam"
- @post-first-order-type="getFirstOrderType" />
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="工单类别" prop="F_Type2">
- <select-order-type-two
- v-if="OrderDetailFlag"
- :second-order-type="secondOrderTypeParam"
- @post-second-order-type="getSecondOrderType" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="来电人" prop="F_Customer">
- <el-input v-model="ruleForm.F_Customer" placeholder="请输入姓名" />
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="电话" prop="F_Phon">
- <el-input v-model="ruleForm.F_Phon" placeholder="请输入电话" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="性别" prop="F_Sex">
- <el-radio-group v-model="ruleForm.F_Sex">
- <el-radio label="0">男</el-radio>
- <el-radio label="1">女</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="与患者关系" prop="F_Relationship">
- <el-input v-model="ruleForm.F_Relationship" placeholder="请输入与患者关系" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="患者身份证号" prop="F_IDNumber">
- <el-input v-model="ruleForm.F_IDNumber" placeholder="请输入患者身份证号" />
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="患者姓名" prop="F_FullName">
- <el-input v-model="ruleForm.F_FullName" placeholder="请输入患者姓名" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="家庭住址" prop="F_CusAddress">
- <el-input v-model="ruleForm.F_CusAddress" type="textarea" placeholder="请输入家庭住址" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-if="ruleForm.type2Arr[1] == 8009&&iswomanage!=1">
- <el-col :span="24">
- <el-form-item label="预约时间" prop="F_AppointmentTime">
- <el-date-picker
- v-model="ruleForm.F_AppointmentTime"
- style="width: 100%;"
- type="date"
- placeholder="选择预约时间"
- value-format="yyyy-MM-dd" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-if="ruleForm.type2Arr[0] == 8039">
- <el-col :span="12">
- <el-form-item label="地区" prop="F_Address">
- <el-input v-model="ruleForm.F_Address" placeholder="请输入地区" />
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="首次检查医院" prop="F_FirstCheckHospital">
- <el-input v-model="ruleForm.F_FirstCheckHospital" placeholder="请输入首次检查医院" />
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="肺结节大小" prop="F_NoduleSize">
- <el-input v-model="ruleForm.F_NoduleSize" type="number" placeholder="请输入肺结节大小">
- <i slot="suffix" style="font-style:normal;margin-right: 10px;">mm</i>
- </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="首次发现肺结节时间" prop="F_FirstFindTime">
- <el-date-picker
- v-model="ruleForm.F_FirstFindTime"
- style="width: 100%;"
- type="date"
- placeholder="选择日期"
- value-format="yyyy-MM-dd" />
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="紧急程度" prop="F_Urgency">
- <el-radio-group v-model="ruleForm.F_Urgency">
- <el-radio label="0">常规</el-radio>
- <el-radio label="1">紧急</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="工单内容" prop="F_WorkOrderContents">
- <el-input v-model="ruleForm.F_WorkOrderContents" type="textarea" placeholder="请输入工单内容" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="处理意见" prop="F_DealOpinions">
- <el-input v-model="ruleForm.F_DealOpinions" type="textarea" placeholder="请输入处理意见" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-if="ruleForm.type2Arr[0] == 8015||ruleForm.type2Arr[0] == 8023||ruleForm.type2Arr[0] == 8031">
- <el-col :span="12">
- <el-form-item :label="zpdptname" prop="F_ComplaintDept">
- <select-dept-tree :deptparam="deptidArr" @post-deptid="getDeptid" />
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item :label="zppername" prop="F_ComplaintUser">
- <el-select
- v-model="ruleForm.F_ComplaintUser"
- placeholder="请选择人员"
- style="width: 100%;"
- @change="changeRepairman">
- <el-option
- v-for="item in repairman"
- :key="item.usercode"
- :label="item.username"
- :value="item.usercode" />
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-if="ruleForm.type2Arr[0] == 8015&&iswomanage!=1">
- <el-col :span="24">
- <el-form-item label="投诉来源">
- <el-select v-model="ruleForm.F_ComplaintSource" style="width: 100%;">
- <el-option
- v-for="(item,index) in tousuArr"
- :key="index"
- :label="item.F_Name"
- :value="item.F_DictionaryValueId"/>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="处理方式" prop="opt">
- <el-radio-group v-model="ruleForm.opt">
- <el-radio label="1">立即办理</el-radio>
- <!-- <el-radio label="2">提交审核</el-radio> -->
- <el-radio label="3">转派</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-if="ruleForm.opt == '3'">
- <el-col :span="12">
- <el-form-item label="转派部门" prop="clbm">
- <select-dept-tree :deptparam="deptidArr1" @post-deptid="getDeptid1" />
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="接收人" prop="clid">
- <el-select v-model="ruleForm.clid" placeholder="请选择接收人" style="width: 100%;" @change="changeRepairman1">
- <el-option
- v-for="item in repairman1"
- :key="item.usercode"
- :label="item.username"
- :value="item.usercode" />
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :md="24">
- <el-form-item>
- <el-button type="primary" @click="submitForm">提交工单</el-button>
- </el-form-item>
- </el-row>
- </el-form>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import {
- addOrEdittOrder,
- updateWorkOrder,
- GetOrderDetail,
- getTouSuSelect
- } from '@/api/orderManagement/orderList'
- import {
- GetPerson
- } from '@/api/commonAPI'
- export default {
- name: 'AddOrEditInfOrder',
- props: {
- callinNum: {
- type: String,
- default: ''
- },
- wid: {
- type: String,
- default: ''
- },
- iswomanage: {
- type: String,
- default: ''
- },
- rtype: {
- type: String,
- default: ''
- },
- // callid: {
- // type: String,
- // default: ''
- // },
- // rowid: {
- // type: Number,
- // default: 0
- // },
- layerid: {
- type: String,
- default: ''
- },
- orderTypeData: {
- type: Object,
- default() {
- return {}
- }
- },
- personParmsData: {
- type: Object,
- default() {
- return {}
- }
- }
- },
- data() {
- return {
- zpdptname: '',
- zppername: '',
- typeid: 1,
- orderPid: 0,
- callid: window.localStorage.getItem('callidSave'),
- deptidArr: [],
- repairman: [],
- deptidArr1: [],
- repairman1: [],
- tousuArr: [],
- firstOrderTypeParam: {
- typeid: 1,
- name: '',
- pid: 0
- },
- secondOrderTypeParam: {
- typeid: 0,
- name: '',
- pid: 0
- },
- thirdOrderTypeParam: {
- typeid: 0,
- name: '',
- pid: 0
- },
- inServicesParam: {
- id: 0,
- name: ''
- },
- rules: {
- F_Type2: [{
- required: true,
- message: '请选择工单类别',
- trigger: 'blur'
- }],
- F_Customer: [{
- required: true,
- message: '姓名不能为空',
- trigger: 'blur'
- }],
- F_Phon: [{
- required: true,
- message: '手机号不能为空',
- trigger: 'blur'
- },
- {
- pattern: /^((0\d{2,3}-\d{5,8})|(1[345789]\d{9}))$/,
- message: '请输入正确的电话号码或者固话号码',
- trigger: 'blur'
- }],
- F_IDNumber: [{
- required: true,
- message: '请输入身份证号',
- trigger: 'blur'
- },
- {
- pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
- message: '请输入正确的身份证号码',
- trigger: 'blur'
- }],
- F_WorkOrderContents: [{
- required: true,
- message: '请输入工单内容',
- trigger: 'blur'
- }],
- F_FirstCheckHospital: [{
- required: true,
- message: '请输入首次检查医院',
- trigger: 'blur'
- }],
- F_NoduleSize: [{
- required: true,
- message: '请输入肺结核大小',
- trigger: 'blur'
- }],
- F_FirstFindTime: [{
- required: true,
- message: '请选择发现时间',
- trigger: 'change'
- }],
- F_Cathetertype: [{
- required: true,
- message: '请输入置管类型',
- trigger: 'blur'
- }],
- F_Catheterdept: [{
- required: true,
- message: '请输入置管科室',
- trigger: 'blur'
- }],
- F_Cathetertime: [{
- required: true,
- message: '请输入置管时间',
- trigger: 'change'
- }],
- F_BedNum: [{
- required: true,
- message: '请输入床号',
- trigger: 'blur'
- }],
- F_InpatientNum: [{
- required: true,
- message: '请输入住院号',
- trigger: 'blur'
- }],
- F_ComplaintDept: [{
- required: true,
- message: '请选择部门',
- trigger: 'change'
- }],
- F_ComplaintUser: [{
- required: true,
- message: '请选择人员',
- trigger: 'change'
- }],
- clbm: [{
- required: true,
- message: '请选择转派部门',
- trigger: 'change'
- }],
- clid: [{
- required: true,
- message: '请选择接收人',
- trigger: 'change'
- }]
- },
- F_Type2: '',
- ruleForm: {
- F_CallID: '',
- F_ID: '',
- F_Source: '电话', // 业务类别
- F_Type1: '', // 工单类别
- // F_TypeName1: '', // 工单类别
- F_Type2: '', // 工单子类
- // F_TypeName2: '', // 工单子类
- // F_Type3: '', // 工单三类
- // F_TypeName3: '', // 工单三类
- identification: '',
- type2Arr: [],
- F_Customer: '', // 姓名
- F_Sex: '0', // 性别
- F_Phon: '', // 电话
- F_CusAddress: '', // 家庭住址
- F_IdCard: '', // 身份证号
- F_FullName: '',
- F_Relationship: '',
- F_IDNumber: '',
- F_ServiceItems: '', // 服务项目
- F_Address: '', // 地区
- F_FirstCheckHospital: '', // 首次检查医院
- F_NoduleSize: '', // 肺结节大小
- F_FirstFindTime: '', // 首次发现肺结节时间
- F_Urgency: '0', // 紧急程度
- F_Cathetertype: '', // 置管类型
- F_Catheterdept: '', // 置管科室
- F_Cathetertime: '', // 置管时间
- F_AppointmentTime: '', // 预约时间
- F_BedNum: '', // 床号
- F_InpatientNum: '', // 住院号
- opt: '1', // 处理方式
- clbm: '',
- clid: '',
- cont: '',
- F_ComplaintSource: 4010,
- F_ComplaintDept: '',
- F_ComplaintUser: '',
- F_WorkOrderContents: '', // 工单内容
- F_DealOpinions: '' // 处理意见
- },
- loading: false,
- isButton: true
- }
- },
- watch: {
- 'orderTypeData.F_Type2': function() {
- this.ruleForm.type2Arr = this.orderTypeData.type2Arr
- this.ruleForm.F_Type2 = this.orderTypeData.F_Type2
- this.ruleForm.identification = this.orderTypeData.identification
- this.changeName(this.ruleForm.F_Type2)
- }
- },
- created() {
- if (this.callinNum) {
- this.ruleForm.F_Phon = this.callinNum
- }
- if (this.wid && parseInt(this.rtype) === 1000) {
- this.OrderDetail()
- }
- if (this.iswomanage) {
- this.ruleForm.F_ComplaintSource = ''
- this.ruleForm.F_AppointmentTime = ''
- }
- this.gettsSelect()
- },
- methods: {
- changeName(id) {
- const twoTypeInfo = this.$store.getters.workTypeMap[parseInt(id || 0)]
- if (twoTypeInfo && twoTypeInfo.tag) {
- if (twoTypeInfo.tag === 'ywzx_jy') {
- this.zpdptname = '建议部门'
- this.zppername = '建议人'
- }
- if (twoTypeInfo.tag === 'ywzx_ts') {
- this.zpdptname = '投诉部门'
- this.zppername = '投诉人'
- }
- if (twoTypeInfo.tag === 'ywzx_by') {
- this.zpdptname = '表扬部门'
- this.zppername = '表扬人'
- }
- }
- },
- // 获取详情
- OrderDetail() {
- const params = {
- WorkOrderCode: this.wid
- }
- GetOrderDetail(params).then((response) => {
- this.loading = false
- if (response.state.toLowerCase() === 'success') {
- const res = response.data[0]
- if (res) {
- this.rowid = res.F_ID
- this.ruleForm.F_ID = res.F_ID
- this.ruleForm.F_Source = res.F_Source // 业务类别
- this.ruleForm.F_Type1 = res.F_type1 // 工单类别
- this.firstOrderTypeParam.name = res.typename1
- this.$emit('r2type', res.F_type2)
- this.ruleForm.F_Type2 = res.F_type2 // 工单子类
- this.F_Type2 = res.F_type2
- if (res.F_type2) {
- this.ruleForm.type2Arr = this.$store.getters.workTypeMap[parseInt(res.F_type2)].ids.slice(1)
- }
- this.ruleForm.F_Customer = res.F_Customer // 姓名
- this.ruleForm.F_Sex = res.F_Sex.toString() // 性别
- this.ruleForm.F_Phon = res.F_Phon // 电话
- this.ruleForm.F_CusAddress = res.F_CusAddress // 家庭住址
- this.ruleForm.F_IdCard = res.F_IdCard // 身份证号
- this.ruleForm.F_ServiceItems = res.F_ServiceItems // 服务项目
- this.ruleForm.F_Address = res.F_Address // 地区
- this.ruleForm.F_FirstCheckHospital = res.F_FirstCheckHospital // 首次检查医院
- this.ruleForm.F_NoduleSize = res.F_NoduleSize // 肺结节大小
- this.ruleForm.F_FirstFindTime = res.F_FirstFindTime // 首次发现肺结节时间
- this.ruleForm.F_Urgency = res.F_Urgency.toString() // 紧急程度
- this.ruleForm.F_Cathetertype = res.F_Cathetertype // 置管类型
- this.ruleForm.F_Catheterdept = res.F_Catheterdept // 置管科室
- this.ruleForm.F_Cathetertime = res.F_Cathetertime // 置管时间
- this.ruleForm.F_BedNum = res.F_BedNum // 床号
- this.ruleForm.F_InpatientNum = res.F_InpatientNum // 住院号
- if (res.F_DealType === '立即办理') {
- this.ruleForm.opt = '1'
- } else if (res.F_DealType === '提交审核') {
- this.ruleForm.opt = '2'
- } else if (res.F_DealType === '转派') {
- this.ruleForm.opt = '3'
- }
- this.ruleForm.F_WorkOrderContents = res.F_WorkOrderContents // 工单内容
- this.ruleForm.F_DealOpinions = res.F_DealOpinions // 处理意见
- this.ruleForm.F_FullName = res.F_FullName
- this.ruleForm.F_IDNumber = res.F_IDNumber
- this.ruleForm.F_Relationship = res.F_Relationship
- this.changeName(this.ruleForm.type2Arr[0])
- if (res.F_ComplaintDept) {
- this.deptidArr = this.$store.getters.deptmap[parseInt(res.F_ComplaintDept)].ids
- this.getRepairman(res.F_ComplaintDept, 0)
- this.ruleForm.F_ComplaintDept = res.F_ComplaintDept
- this.ruleForm.F_ComplaintUser = res.F_ComplaintUser
- }
- if (res.DealDept) {
- this.deptidArr1 = this.$store.getters.deptmap[parseInt(res.DealDept)].ids
- console.log(this.$store.getters.deptmap[parseInt(res.DealDept)].ids, '00000')
- this.getRepairman1(res.DealDept, 0)
- this.ruleForm.clbm = res.DealDept
- this.ruleForm.clid = res.DealUser
- }
- }
- }
- }).catch(() => {
- })
- },
- submitForm() {
- console.log(this.ruleForm.F_Type2, 'this.ruleForm.F_type2')
- if (!this.ruleForm.F_Type2) {
- this.$message.error('请选择工单类别')
- return
- }
- this.$refs.ruleForm.validate((valid) => {
- if (valid) {
- this.loading = true
- const params = {
- F_CallID: this.ruleForm.F_CallID,
- F_ID: this.ruleForm.F_ID,
- F_ComplaintSource: this.ruleForm.F_ComplaintSource,
- F_Source: this.ruleForm.F_Source, // 业务类别
- F_Type1: this.orderTypeData && this.orderTypeData.F_Type1, // 工单类别
- F_Type2: this.ruleForm.F_Type2, // 工单子类
- // F_Type3: this.ruleForm.F_Type3, // 工单子类
- F_Customer: this.ruleForm.F_Customer, // 姓名
- F_Sex: this.ruleForm.F_Sex, // 性别
- F_Phon: this.ruleForm.F_Phon, // 电话
- F_CusAddress: this.ruleForm.F_CusAddress, // 家庭住址
- F_IdCard: this.ruleForm.F_IdCard, // 身份证号
- F_FullName: this.ruleForm.F_FullName, // 患者姓名
- F_Relationship: this.ruleForm.F_Relationship, // 患者关系
- F_IDNumber: this.ruleForm.F_IDNumber, // 患者身份证
- F_Address: this.ruleForm.F_Address, // 地区
- F_FirstCheckHospital: this.ruleForm.F_FirstCheckHospital, // 首次检查医院
- F_NoduleSize: this.ruleForm.F_NoduleSize, // 肺结节大小
- F_FirstFindTime: this.ruleForm.F_FirstFindTime, // 首次发现肺结节时间
- F_Urgency: this.ruleForm.F_Urgency, // 紧急程度
- F_Cathetertype: this.ruleForm.F_Cathetertype, // 置管类型
- F_Catheterdept: this.ruleForm.F_Catheterdept, // 置管科室
- F_Cathetertime: this.ruleForm.F_Cathetertime, // 置管时间
- F_AppointmentTime: this.ruleForm.F_AppointmentTime, // 预约时间
- F_BedNum: this.ruleForm.F_BedNum, // 床号
- F_InpatientNum: this.ruleForm.F_InpatientNum, // 住院号
- opt: Number(this.ruleForm.opt), // 处理方式
- F_ComplaintDept: this.ruleForm.F_ComplaintDept, // 投诉部门
- F_ComplaintUser: this.ruleForm.F_ComplaintUser, // 投诉人
- clid: this.ruleForm.clid, // 指派人
- clbm: this.ruleForm.clbm, // 指派部门
- F_WorkOrderContents: this.ruleForm.F_WorkOrderContents, // 工单内容
- F_DealOpinions: this.ruleForm.F_DealOpinions // 处理意见
- }
- // 添加
- if (!this.wid) {
- addOrEdittOrder(params)
- .then((response) => {
- this.loading = false
- if (response.state.toLowerCase() === 'success') {
- this.$message({
- message: '恭喜你,添加成功!',
- type: 'success',
- duration: 1000
- })
- this.resetForm()
- this.$parent.$layer.close(this.layerid)
- this.$parent.getList()
- } else {
- this.$message({
- message: '添加失败!',
- type: 'success',
- duration: 1000
- })
- }
- })
- .catch((response) => {
- this.loading = false
- })
- return
- }
- if (this.wid) {
- // 编辑
- params.F_Type2 = this.F_Type2
- updateWorkOrder(params)
- .then((response) => {
- this.loading = false
- if (response.state.toLowerCase() === 'success') {
- this.$message({
- message: '恭喜你,工单信息编辑成功!',
- type: 'success',
- duration: 1000
- })
- this.$parent.$layer.closeAll()
- // this.$parent.$parent.getList()
- }
- })
- .catch(() => {
- this.loading = false
- })
- }
- } else {
- this.$message({
- type: 'error',
- message: '请输入有效的必填项信息!',
- offset: 50,
- duration: 1000
- })
- return false
- }
- })
- },
- getDeptid(data) {
- this.ruleForm.F_ComplaintDept = data[data.length - 1]
- this.getRepairman(data[data.length - 1], 0)
- },
- getRepairman(id, state) {
- return new Promise((resolve) => {
- const params = {
- deptid: id // 字典管理的工单标识
- }
- GetPerson(params).then((res) => {
- if (state === 0) {
- this.repairman = res.rows
- } else if (state === 1) {
- this.assignman = res.rows
- }
- })
- resolve()
- })
- },
- getDeptid1(data) {
- this.ruleForm.clbm = data[data.length - 1]
- this.getRepairman1(data[data.length - 1], 0)
- },
- getRepairman1(id, state) {
- return new Promise((resolve) => {
- const params = {
- deptid: id // 字典管理的工单标识
- }
- GetPerson(params).then((res) => {
- if (state === 0) {
- this.repairman1 = res.rows
- } else if (state === 1) {
- this.assignman1 = res.rows
- }
- })
- resolve()
- })
- },
- changeRepairman(data) {
- },
- changeRepairman1(data) {
- },
- genderParams() {
- this.ruleForm.F_Customer = this.personParmsData.F_Customer // 姓名
- this.ruleForm.F_Phon = this.personParmsData.F_Phon // 电话
- this.ruleForm.F_Sex = this.personParmsData.F_Sex // 性别
- this.ruleForm.F_IdCard = this.personParmsData.F_IdCard // 身份证号
- this.ruleForm.F_CusAddress = this.personParmsData.F_CusAddress // 地址
- },
- // 重置工单
- resetForm() {
- this.ruleForm.F_Source = '' // 业务类别
- // this.ruleForm.F_Type1 = '' // 工单类别
- // this.ruleForm.F_TypeName1 = '' // 工单类别
- // this.ruleForm.F_Type2 = '' // 工单子类
- // this.ruleForm.F_TypeName2 = '' // 工单子类
- // this.ruleForm.F_Type3 = '' // 工单三类
- // this.ruleForm.F_TypeName3 = '' // 工单三类
- this.ruleForm.F_Customer = '' // 姓名
- this.ruleForm.F_Sex = '0' // 性别
- this.ruleForm.F_Phon = '' // 电话
- this.ruleForm.F_CusAddress = '' // 家庭住址
- this.ruleForm.F_IdCard = '' // 身份证号
- this.ruleForm.F_ServiceItems = '' // 服务项目
- this.ruleForm.F_Address = '' // 地区
- this.ruleForm.F_FirstCheckHospital = '' // 首次检查医院
- this.ruleForm.F_NoduleSize = '' // 肺结节大小
- this.ruleForm.F_FirstFindTime = '' // 首次发现肺结节时间
- this.ruleForm.F_Urgency = '0' // 紧急程度
- this.ruleForm.F_Cathetertype = '' // 置管类型
- this.ruleForm.F_Catheterdept = '' // 置管科室
- this.ruleForm.F_Cathetertime = '' // 置管时间
- this.ruleForm.F_BedNum = '' // 床号
- this.ruleForm.F_InpatientNum = '' // 住院号
- this.ruleForm.opt = '' // 处理方式
- this.ruleForm.F_WorkOrderContents = '' // 工单内容
- this.ruleForm.F_DealOpinions = '' // 处理意见
- this.ruleForm.F_Relationship = ''
- this.ruleForm.F_FullName = ''
- this.ruleForm.F_IDNumber = ''
- },
- // 工单类型切换清空
- resetOrderType() {
- this.ruleForm.F_Type3 = '' // 工单三类
- this.ruleForm.F_TypeName3 = '' // 工单三类
- this.ruleForm.F_ServiceItems = '' // 服务项目
- this.ruleForm.F_Address = '' // 地区
- this.ruleForm.F_FirstCheckHospital = '' // 首次检查医院
- this.ruleForm.F_NoduleSize = '' // 肺结节大小
- this.ruleForm.F_FirstFindTime = '' // 首次发现肺结节时间
- this.ruleForm.F_Urgency = '0' // 紧急程度
- this.ruleForm.F_Cathetertype = '' // 置管类型
- this.ruleForm.F_Catheterdept = '' // 置管科室
- this.ruleForm.F_Cathetertime = '' // 置管时间
- this.ruleForm.F_BedNum = '' // 床号
- this.ruleForm.F_InpatientNum = '' // 住院号
- this.ruleForm.F_Relationship = ''
- this.ruleForm.F_FullName = ''
- this.ruleForm.F_IDNumber = ''
- },
- // 投诉来源下拉框数据
- gettsSelect() {
- const params = {
- Flag: 'tsly',
- Name: ''
- }
- getTouSuSelect(params).then(res => {
- this.tousuArr = res.rows
- })
- }
- }
- }
- </script>
- <style rel="stylesheet/scss" lang="scss">
- .order_form {
- .form_select {
- width: 100%;
- }
- .form_date {
- width: 100%;
- }
- }
- </style>
|