| | |
| | | .el-form-item{ |
| | | margin-bottom: 16px; |
| | | } |
| | | .picName{ |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | word-break: break-all; |
| | | width: 120px; |
| | | } |
| | | </style> |
| | | |
| | | <template> |
| | |
| | | <!-- 审核 --> |
| | | <el-dialog |
| | | title="下单审核" |
| | | :visible.sync="dialogVisible0" |
| | | :visible.sync="verifyDialogVisible" |
| | | width="30%" |
| | | :before-close="handleClose"> |
| | | <p style="font-size:16px;color:#333333">委托编号<span style="color:#34BD66">ZTMS2023071001</span>的信息是否通过</p> |
| | | <p style="font-size:16px;color:#333333" v-if="!isPass">委托编号<span style="color:#34BD66">ZTMS2023071001</span>的信息是否通过</p> |
| | | <el-form :label-position="labelPosition" :model="formData" label-width="150px" ref="ruleForm" v-else> |
| | | <el-form-item label="请输入样品库位号:" > |
| | | <el-input v-model="formData.specificationModel" size="small" style="width:60%"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row v-if="!isPass"> |
| | | <el-button @click="handleClose">退 回</el-button> |
| | |
| | | <el-button type="primary" @click="submitForm" :loading="upLoad">确 定</el-button> |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 撤销 --> |
| | | <el-dialog |
| | | title="下单撤销" |
| | | :visible.sync="quashDialogVisible" |
| | | width="30%" |
| | | :before-close="handleClose"> |
| | | <p style="font-size:16px;color:#333333" v-if="!isQuash">委托编号<span style="color:#34BD66">ZTMS2023071001</span>的信息是否撤销</p> |
| | | <el-form :label-position="labelPosition" :model="formData" label-width="150px" ref="ruleForm" v-else> |
| | | <el-form-item label="请输入撤销原因:" > |
| | | <el-input v-model="formData.specificationModel" size="small" style="width:60%"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row v-if="!isQuash"> |
| | | <el-button @click="handleClose">取 消</el-button> |
| | | <el-button type="primary" @click="submitForm" :loading="upLoad">确 定</el-button> |
| | | </el-row> |
| | | <el-row v-else> |
| | | <el-button @click="handleClose">返 回</el-button> |
| | | <el-button type="primary" @click="submitForm" :loading="upLoad">确 定</el-button> |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 下发 --> |
| | | <el-dialog |
| | | title="检验下发" |
| | | :visible.sync="issuedDialogVisible" |
| | | width="30%" |
| | | :before-close="handleClose"> |
| | | <el-form :label-position="labelPosition" :model="formData" label-width="150px" ref="ruleForm"> |
| | | <el-form-item label="约定时间:" > |
| | | <el-date-picker |
| | | style="width:100%" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd" |
| | | v-model="formData.downTime" |
| | | type="date" |
| | | size="small" |
| | | placeholder="选择时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="指派人员:" > |
| | | <el-select v-model="formData.equipmentManager" placeholder="请选择" size="small" style="width:100%"> |
| | | <el-option |
| | | v-for="item in personList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row> |
| | | <el-button @click="handleClose">取 消</el-button> |
| | | <el-button type="primary" @click="submitForm" :loading="upLoad">确 定</el-button> |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="数据查看" |
| | | :visible.sync="dataDialogVisible" |
| | | width="70%" |
| | | :before-close="handleClose"> |
| | | <ValueTable |
| | | ref="ValueTableDataLook" |
| | | :url="$api.deviceScope.selectDeviceParameter" |
| | | :componentData="componentDataDataLook" |
| | | :key="upIndex" style="height: calc(100% - 44px)" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | //是否通过 true是 false不是 |
| | | isPass: true, |
| | | //是否审核通过 true是 false不是 |
| | | isPass: false, |
| | | //是否审核撤销 true是 false不是 |
| | | isQuash:false, |
| | | verifyDialogVisible: false, |
| | | quashDialogVisible:false, |
| | | issuedDialogVisible:false, |
| | | dataDialogVisible:false, |
| | | formData: {}, |
| | | value: '', |
| | | options: [], |
| | | // 人员列表 |
| | | personList:[], |
| | | labelPosition: 'right', |
| | | dialogVisible0: false, |
| | | componentData: { |
| | | entity: { |
| | | deviceStatus: null, |
| | |
| | | requiredAdd:['largeCategory','subclass','deviceName','internalCode','specificationModel','manufacturer'], |
| | | requiredUp:['largeCategory','subclass','deviceName','internalCode','specificationModel','manufacturer'] |
| | | }, |
| | | componentDataDataLook:{ |
| | | entity: { |
| | | orderBy: { |
| | | field: 'id', |
| | | order: 'asc' |
| | | } |
| | | }, |
| | | isIndex: false, |
| | | showSelect: false, |
| | | select: false, |
| | | do: [], |
| | | tagField: { |
| | | deviceStatus: { |
| | | select: [{ |
| | | value: 0, |
| | | type: 'success', |
| | | label: '正常' |
| | | },{ |
| | | value: 1, |
| | | type: 'warning', |
| | | label: '报废' |
| | | },{ |
| | | value: 2, |
| | | type: 'danger', |
| | | label: '保修' |
| | | }] |
| | | } |
| | | }, |
| | | selectField: {}, |
| | | requiredAdd:[], |
| | | requiredUp:[] |
| | | }, |
| | | entityCopy: {}, |
| | | upIndex: 0, |
| | | addDia: true, |
| | | addPower: true, |
| | | //设备类型列表 |
| | | equipmentList:[], |
| | | // 负责人列表 |
| | | responsiblePersonList:[], |
| | | // 授权人列表 |
| | | authorizerList:[], |
| | | // 设备状态列表 |
| | | deviceStatusList:[], |
| | | upLoad:false, |
| | | tabList:[ |
| | | { |
| | |
| | | this.addPower = add |
| | | }, |
| | | handleClose(){ |
| | | this.dialogVisible0 = false; |
| | | this.verifyDialogVisible = false; |
| | | this.quashDialogVisible = false; |
| | | this.issuedDialogVisible = false; |
| | | this.dataDialogVisible = false; |
| | | this.upLoad = false; |
| | | }, |
| | | // 详情 |
| | |
| | | this.formData=this.HaveJson(row); |
| | | }, |
| | | // 数据查看 |
| | | handleDataLook(row){}, |
| | | handleDataLook(row){ |
| | | this.dataDialogVisible = true; |
| | | }, |
| | | // 下载报告 |
| | | download(row){}, |
| | | download(row){ |
| | | |
| | | }, |
| | | // 审核 |
| | | handleVerify(row){ |
| | | this.dialogVisible0 = true; |
| | | this.verifyDialogVisible = true; |
| | | }, |
| | | // 撤销 |
| | | handlEquash(row){}, |
| | | handlEquash(row){ |
| | | this.quashDialogVisible = true; |
| | | }, |
| | | // 下发 |
| | | handleIssued(row){}, |
| | | handleIssued(row){ |
| | | this.issuedDialogVisible = true; |
| | | }, |
| | | submitForm(){ |
| | | this.upLoad = true; |
| | | let authorizedPerson = this.formData.authorizedPerson.length>0?this.formData.authorizedPerson.join(','):'' |