| | |
| | | <!-- 页签区域 --> |
| | | <view class="tabs" id="tabs"> |
| | | <view class="tabs"> |
| | | <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">基本信息</view> |
| | | <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">其他信息</view> |
| | | <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">制单信息</view> |
| | | <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0"> |
| | | {{ $t("OA_ErrMsgBackSignBill.tabBasic") == "OA_ErrMsgBackSignBill.tabBasic" ? "基本信息" : $t("OA_ErrMsgBackSignBill.tabBasic") }} |
| | | </view> |
| | | <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1"> |
| | | {{ $t("OA_ErrMsgBackSignBill.tabOther") == "OA_ErrMsgBackSignBill.tabOther" ? "其他信息" : $t("OA_ErrMsgBackSignBill.tabOther") }} |
| | | </view> |
| | | <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2"> |
| | | {{ $t("OA_ErrMsgBackSignBill.tabMaker") == "OA_ErrMsgBackSignBill.tabMaker" ? "制单信息" : $t("OA_ErrMsgBackSignBill.tabMaker") }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- 基本信息 --> |
| | | <template v-if="tabs == 0"> |
| | | <view class="form" :style="{height: containerHeight + 'px',overflow: 'auto' }"> |
| | | <view class="form-item"> |
| | | <view class="title">单据号:</view> |
| | | <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "单据号:" : $t("Gy.HBillNo") }}</view> |
| | | <view class="righton"> |
| | | <input name="HBillNo" disabled v-model="hform.HBillNo" placeholder="请输入单据号" /> |
| | | <input name="HBillNo" disabled v-model="hform.HBillNo" :placeholder="$t('Gy.HBillNo_Placeholder') == 'Gy.HBillNo_Placeholder' ? '请输入单据号' : $t('Gy.HBillNo_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">单据日期:</view> |
| | | <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "单据日期:" : $t("Gy.HDate") }}</view> |
| | | <view class="righton"> |
| | | <input name="HDate" disabled v-model="hform.HDate" placeholder="请选择" /> |
| | | <input name="HDate" disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '请选择' : $t('Gy.HDate_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">签到确认:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HSignNote") == "OA_ErrMsgBackSignBill.HSignNote" ? "签到确认:" : $t("OA_ErrMsgBackSignBill.HSignNote") }}</view> |
| | | <view class="right"> |
| | | <input name="HSignNote" v-model="hform.HSignNote" placeholder="请输入是否签到" /> |
| | | <input name="HSignNote" v-model="hform.HSignNote" :placeholder="$t('OA_ErrMsgBackSignBill.HSignNote_Placeholder') == 'OA_ErrMsgBackSignBill.HSignNote_Placeholder' ? '请输入是否签到' : $t('OA_ErrMsgBackSignBill.HSignNote_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">签到时间:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HSignDate") == "OA_ErrMsgBackSignBill.HSignDate" ? "签到时间:" : $t("OA_ErrMsgBackSignBill.HSignDate") }}</view> |
| | | <view class="righton"> |
| | | <input name="HSignDate" disabled v-model="hform.HSignDate" placeholder="请选择" /> |
| | | <input name="HSignDate" disabled v-model="hform.HSignDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '请选择' : $t('Gy.HDate_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">主题:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HContext") == "OA_ErrMsgBackSignBill.HContext" ? "主题:" : $t("OA_ErrMsgBackSignBill.HContext") }}</view> |
| | | <view class="righton"> |
| | | <input name="HContext" disabled v-model="hform.HContext" placeholder="请输入主题" /> |
| | | <input name="HContext" disabled v-model="hform.HContext" :placeholder="$t('OA_ErrMsgBackSignBill.HContext_Placeholder') == 'OA_ErrMsgBackSignBill.HContext_Placeholder' ? '请输入主题' : $t('OA_ErrMsgBackSignBill.HContext_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item" style="align-items: flex-start;"> |
| | | <view class="title"><text>*</text>详细内容:</view> |
| | | <view class="title"><text>*</text>{{ $t("OA_ErrMsgBackSignBill.HDescription") == "OA_ErrMsgBackSignBill.HDescription" ? "详细内容:" : $t("OA_ErrMsgBackSignBill.HDescription") }}</view> |
| | | <view class="righton" style="min-height: 150rpx;"> |
| | | <textarea name="HDescription" disabled v-model="hform.HDescription" auto-height maxlength="-1" |
| | | placeholder="请输入详细内容"></textarea> |
| | | :placeholder="$t('OA_ErrMsgBackSignBill.HDescription_Placeholder') == 'OA_ErrMsgBackSignBill.HDescription_Placeholder' ? '请输入详细内容' : $t('OA_ErrMsgBackSignBill.HDescription_Placeholder')"></textarea> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">异常类型:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HErrMsgBackTypeName") == "OA_ErrMsgBackSignBill.HErrMsgBackTypeName" ? "异常类型:" : $t("OA_ErrMsgBackSignBill.HErrMsgBackTypeName") }}</view> |
| | | <view class="righton"> |
| | | <uni-combox :candidates="arrayHErrMsgBackTypeName" placeholder="请选择" |
| | | v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled></uni-combox> |
| | | <uni-combox :candidates="arrayHErrMsgBackTypeName" :placeholder="$t('OA_ErrMsgBackSignBill.HErrMsgBackTypeName_Placeholder') == 'OA_ErrMsgBackSignBill.HErrMsgBackTypeName_Placeholder' ? '请选择' : $t('OA_ErrMsgBackSignBill.HErrMsgBackTypeName_Placeholder')" v-model="hform.HErrMsgBackTypeName" @input="HErrMsgBackTypeNameChange" disabled></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">发送部门:</view> |
| | | <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "发送部门:" : $t("Gy.HDeptName") }}</view> |
| | | <view class="righton"> |
| | | <uni-combox :candidates="arrayHDeptName" placeholder="请选择部门" v-model="hform.HDeptName" |
| | | @input="HDeptNameChange" disabled></uni-combox> |
| | | <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '请选择部门' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange" disabled></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">发送人:</view> |
| | | <view class="title">{{ $t("Gy.HSendMan") == "Gy.HSendMan" ? "发送人:" : $t("Gy.HSendMan") }}</view> |
| | | <view class="righton"> |
| | | <uni-combox :candidates="arrayHEmpName" placeholder="请选择发送人" v-model="hform.HSendMan" |
| | | @input="HSendManChange" disabled></uni-combox> |
| | | <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HSendMan_Placeholder') == 'Gy.HSendMan_Placeholder' ? '请选择发送人' : $t('Gy.HSendMan_Placeholder')" v-model="hform.HSendMan" @input="HSendManChange" disabled></uni-combox> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="form-item"> |
| | | <view class="title"><text>*</text>接收人:</view> |
| | | <view class="title"><text>*</text>{{ $t("Gy.HReceiveMan") == "Gy.HReceiveMan" ? "接收人:" : $t("Gy.HReceiveMan") }}</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHEmpName" placeholder="请选择接收人" v-model="hform.HReceiveMan" |
| | | @input="HReceiveManChange"></uni-combox> |
| | | <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HReceiveMan_Placeholder') == 'Gy.HReceiveMan_Placeholder' ? '请选择接收人' : $t('Gy.HReceiveMan_Placeholder')" v-model="hform.HReceiveMan" @input="HReceiveManChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">签到人:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HSignEmpName") == "OA_ErrMsgBackSignBill.HSignEmpName" ? "签到人:" : $t("OA_ErrMsgBackSignBill.HSignEmpName") }}</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHEmpName" placeholder="请选择签到人" v-model="hform.HSignEmpName" |
| | | @input="HSignEmpNameChange"></uni-combox> |
| | | <uni-combox :candidates="arrayHEmpName" :placeholder="$t('OA_ErrMsgBackSignBill.HSignEmpName_Placeholder') == 'OA_ErrMsgBackSignBill.HSignEmpName_Placeholder' ? '请选择签到人' : $t('OA_ErrMsgBackSignBill.HSignEmpName_Placeholder')" v-model="hform.HSignEmpName" @input="HSignEmpNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">相关设备:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HEquipName") == "OA_ErrMsgBackSignBill.HEquipName" ? "相关设备:" : $t("OA_ErrMsgBackSignBill.HEquipName") }}</view> |
| | | <view class="righton"> |
| | | <uni-combox :candidates="arrayHEquipName" placeholder="请选择" v-model="hform.HEquipName" |
| | | @input="HEquipNameChange" disabled></uni-combox> |
| | | <uni-combox :candidates="arrayHEquipName" :placeholder="$t('OA_ErrMsgBackSignBill.HEquipName_Placeholder') == 'OA_ErrMsgBackSignBill.HEquipName_Placeholder' ? '请选择' : $t('OA_ErrMsgBackSignBill.HEquipName_Placeholder')" v-model="hform.HEquipName" @input="HEquipNameChange" disabled></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">相关模具:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HMouldName") == "OA_ErrMsgBackSignBill.HMouldName" ? "相关模具:" : $t("OA_ErrMsgBackSignBill.HMouldName") }}</view> |
| | | <view class="righton"> |
| | | <uni-combox :candidates="arrayHMouldName" placeholder="请选择" v-model="hform.HMouldName" |
| | | @input="HMouldIDNameChange" disabled></uni-combox> |
| | | <uni-combox :candidates="arrayHMouldName" :placeholder="$t('OA_ErrMsgBackSignBill.HMouldName_Placeholder') == 'OA_ErrMsgBackSignBill.HMouldName_Placeholder' ? '请选择' : $t('OA_ErrMsgBackSignBill.HMouldName_Placeholder')" v-model="hform.HMouldName" @input="HMouldIDNameChange" disabled></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">产品名称:</view> |
| | | <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "产品名称:" : $t("Gy.HMaterName") }}</view> |
| | | <view class="righton"> |
| | | <input name="HMaterName" v-model="hform.HMaterName" disabled placeholder="请输入产品名称" /> |
| | | <input name="HMaterName" v-model="hform.HMaterName" disabled :placeholder="$t('Gy.HMaterName_Placeholder') == 'Gy.HMaterName_Placeholder' ? '请输入产品名称' : $t('Gy.HMaterName_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">规格型号:</view> |
| | | <view class="title">{{ $t("Gy.HMaterModel") == "Gy.HMaterModel" ? "规格型号:" : $t("Gy.HMaterModel") }}</view> |
| | | <view class="righton"> |
| | | <input name="HMaterModel" v-model="hform.HMaterModel" disabled placeholder="请输入规格型号" /> |
| | | <input name="HMaterModel" v-model="hform.HMaterModel" disabled :placeholder="$t('Gy.HMaterModel_Placeholder') == 'Gy.HMaterModel_Placeholder' ? '请输入规格型号' : $t('Gy.HMaterModel_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">备注:</view> |
| | | <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "备注:" : $t("Gy.HRemark") }}</view> |
| | | <view class="right" style="min-height: 150rpx;"> |
| | | <input name="HRemark" v-model="hform.HRemark" placeholder="" /> |
| | | <input name="HRemark" v-model="hform.HRemark" :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '' : $t('Gy.HRemark_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <template v-if="tabs == 1"> |
| | | <view class="form"> |
| | | <view class="form-item"> |
| | | <view class="title">接收部门:</view> |
| | | <view class="title">{{ $t("Gy.HReceiveName") == "Gy.HReceiveName" ? "接收部门:" : $t("Gy.HReceiveName") }}</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHDeptName" placeholder="请选择部门" v-model="hform.HReceiveName" |
| | | @input="HRecceiveChange"></uni-combox> |
| | | <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HReceiveName_Placeholder') == 'Gy.HReceiveName_Placeholder' ? '请选择部门' : $t('Gy.HReceiveName_Placeholder')" v-model="hform.HReceiveName" @input="HRecceiveChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">抄送人:</view> |
| | | <view class="title">{{ $t("Gy.HCopyMan") == "Gy.HCopyMan" ? "抄送人:" : $t("Gy.HCopyMan") }}</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHEmpName" placeholder="请选择抄送人" v-model="hform.HCopyMan" |
| | | @input="HCopyManChange" multiple></uni-combox> |
| | | <uni-combox :candidates="arrayHEmpName" :placeholder="$t('Gy.HCopyMan_Placeholder') == 'Gy.HCopyMan_Placeholder' ? '请选择抄送人' : $t('Gy.HCopyMan_Placeholder')" v-model="hform.HCopyMan" @input="HCopyManChange" multiple></uni-combox> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="form-item"> |
| | | <view class="title">紧急程度:</view> |
| | | <view class="title">{{ $t("Gy.HLevel") == "Gy.HLevel" ? "紧急程度:" : $t("Gy.HLevel") }}</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHLevel" placeholder="请选择紧急程度" v-model="hform.HLevel" |
| | | @input="HLevelChange"></uni-combox> |
| | | <uni-combox :candidates="arrayHLevel" :placeholder="$t('Gy.HLevel_Placeholder') == 'Gy.HLevel_Placeholder' ? '请选择紧急程度' : $t('Gy.HLevel_Placeholder')" v-model="hform.HLevel" @input="HLevelChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">单据类型:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HBillTypeName") == "OA_ErrMsgBackSignBill.HBillTypeName" ? "单据类型:" : $t("OA_ErrMsgBackSignBill.HBillTypeName") }}</view> |
| | | <view class="righton"> |
| | | <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" placeholder="请输入单据类型" /> |
| | | <input name="HBillTypeName" disabled v-model="hform.HBillTypeName" :placeholder="$t('OA_ErrMsgBackSignBill.HBillTypeName_Placeholder') == 'OA_ErrMsgBackSignBill.HBillTypeName_Placeholder' ? '请输入单据类型' : $t('OA_ErrMsgBackSignBill.HBillTypeName_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">单据号码:</view> |
| | | <view class="title">{{ $t("OA_ErrMsgBackSignBill.HPlanBillNo") == "OA_ErrMsgBackSignBill.HPlanBillNo" ? "单据号码:" : $t("OA_ErrMsgBackSignBill.HPlanBillNo") }}</view> |
| | | <view class="righton"> |
| | | <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" placeholder="请输入单据号码" /> |
| | | <input name="HPlanBillNo" disabled v-model="hform.HPlanBillNo" :placeholder="$t('OA_ErrMsgBackSignBill.HPlanBillNo_Placeholder') == 'OA_ErrMsgBackSignBill.HPlanBillNo_Placeholder' ? '请输入单据号码' : $t('OA_ErrMsgBackSignBill.HPlanBillNo_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <template v-if="tabs == 2"> |
| | | <view class="form"> |
| | | <view class="form-item"> |
| | | <view class="title">制单人:</view> |
| | | <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}</view> |
| | | <view class="righton"> |
| | | <input v-model="hform.HMaker" disabled /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">制单日期:</view> |
| | | <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "制单日期:" : $t("Gy.HMakeDate") }}</view> |
| | | <view class="righton"> |
| | | <input name="HMakeDate" disabled v-model="hform.HMakeDate" placeholder="" /> |
| | | <input name="HMakeDate" disabled v-model="hform.HMakeDate" :placeholder="$t('Gy.HMakeDate_Placeholder') == 'Gy.HMakeDate_Placeholder' ? '' : $t('Gy.HMakeDate_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">修改人:</view> |
| | | <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "修改人:" : $t("Gy.HUpDater") }}</view> |
| | | <view class="righton"> |
| | | <input v-model="hform.HUpDater" disabled /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">修改日期:</view> |
| | | <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "修改日期:" : $t("Gy.HUpDateDate") }}</view> |
| | | <view class="righton"> |
| | | <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" placeholder="" /> |
| | | <input name="HUpDateDate" disabled v-model="hform.HUpDateDate" :placeholder="$t('Gy.HUpDateDate_Placeholder') == 'Gy.HUpDateDate_Placeholder' ? '' : $t('Gy.HUpDateDate_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">审核人:</view> |
| | | <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "审核人:" : $t("Gy.HChecker") }}</view> |
| | | <view class="righton"> |
| | | <input v-model="hform.HChecker" disabled /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">审核日期:</view> |
| | | <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "审核日期:" : $t("Gy.HCheckDate") }}</view> |
| | | <view class="righton"> |
| | | <input name="HCheckDate" disabled v-model="hform.HCheckDate" placeholder="" /> |
| | | <input name="HCheckDate" disabled v-model="hform.HCheckDate" :placeholder="$t('Gy.HCheckDate_Placeholder') == 'Gy.HCheckDate_Placeholder' ? '' : $t('Gy.HCheckDate_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">作废人:</view> |
| | | <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "作废人:" : $t("Gy.HDeleteMan") }}</view> |
| | | <view class="righton"> |
| | | <input v-model="hform.HDeleteMan" disabled /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">作废日期:</view> |
| | | <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "作废日期:" : $t("Gy.HDeleteDate") }}</view> |
| | | <view class="righton"> |
| | | <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" placeholder="" /> |
| | | <input name="HDeleteDate" disabled v-model="hform.HDeleteDate" :placeholder="$t('Gy.HDeleteDate_Placeholder') == 'Gy.HDeleteDate_Placeholder' ? '' : $t('Gy.HDeleteDate_Placeholder')" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <view class="buttons" id="buttons"> |
| | | <button class="btn-a" size="mini" @tap="submit">提交</button> |
| | | <button class="btn-a" size="mini" @tap="submit">{{ $t("OA_ErrMsgBackSignBill.submit") == "OA_ErrMsgBackSignBill.submit" ? "提交" : $t("OA_ErrMsgBackSignBill.submit") }}</button> |
| | | <view style="flex: 1;"></view> |
| | | <button class="btn-a" size="mini" @tap="addNew">新增</button> |
| | | <button class="btn-c" size="mini" @tap="goBack">退出</button> |
| | | <button class="btn-a" size="mini" @tap="addNew">{{ $t("OA_ErrMsgBackSignBill.addNew") == "OA_ErrMsgBackSignBill.addNew" ? "新增" : $t("OA_ErrMsgBackSignBill.addNew") }}</button> |
| | | <button class="btn-c" size="mini" @tap="goBack">{{ $t("OA_ErrMsgBackSignBill.goBack") == "OA_ErrMsgBackSignBill.goBack" ? "退出" : $t("OA_ErrMsgBackSignBill.goBack") }}</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | OperationType: 1, |
| | | refSav: "", |
| | | |
| | | arrayHLevel: ['普通', '紧急'], |
| | | |
| | | // 人员相关数组 |
| | | arrayHEmpName: [], // 接收人 发送人 处理人 责任人 抄送人 QE责任人 |
| | |
| | | |
| | | |
| | | |
| | | HLevel: '普通', |
| | | HLevel: 'normal', |
| | | HBillTypeName: '', |
| | | HPlanBillNo: '', |
| | | HMaterNumber: '', |
| | | HMaterName: '', |
| | | HMaterModel: '', |
| | | |
| | | // 新添加的字段 |
| | | |
| | | |
| | | HEquipName: '', // 设备 |
| | | HEquipID: '0', // 设备ID |
| | |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | containerHeight: { |
| | | get() { |
| | | return this.btnTop - this.tabsBottom - 5 |
| | | } |
| | | }, |
| | | // 紧急程度选项(多语言) |
| | | arrayHLevel() { |
| | | return [ |
| | | this.$t('OA_ErrMsgBackSignBill.levelNormal') == 'OA_ErrMsgBackSignBill.levelNormal' ? '普通' : this.$t('OA_ErrMsgBackSignBill.levelNormal'), |
| | | this.$t('OA_ErrMsgBackSignBill.levelUrgent') == 'OA_ErrMsgBackSignBill.levelUrgent' ? '紧急' : this.$t('OA_ErrMsgBackSignBill.levelUrgent') |
| | | ]; |
| | | } |
| | | }, |
| | | onLoad(e) { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.$t("OA_ErrMsgBackSignBill.title") == 'OA_ErrMsgBackSignBill.title' ? '异常反馈签到单' : this.$t("OA_ErrMsgBackSignBill.title") |
| | | }) |
| | | this.getListData() |
| | | if (!e.OperationType) { |
| | | this.OperationType = 1 |
| | |
| | | this.getEditData(e.hmainid) |
| | | } else if (this.OperationType == 4) { |
| | | // 浏览 |
| | | } |
| | | }, |
| | | computed: { |
| | | containerHeight: { |
| | | get() { |
| | | return this.btnTop - this.tabsBottom - 5 |
| | | } |
| | | } |
| | | }, |
| | | onReady() { |
| | |
| | | //新增按钮事件 |
| | | addNew() { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '新增后页面数据将消失,确定要新增吗?', |
| | | title: this.$t('OA_ErrMsgBackSignBill.confirmTitle') == 'OA_ErrMsgBackSignBill.confirmTitle' ? '提示' : this.$t('OA_ErrMsgBackSignBill.confirmTitle'), |
| | | content: this.$t('OA_ErrMsgBackSignBill.addConfirm') == 'OA_ErrMsgBackSignBill.addConfirm' ? '新增后页面数据将消失,确定要新增吗?' : this.$t('OA_ErrMsgBackSignBill.addConfirm'), |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.redirectTo({ |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | |
| | | this.$forceUpdate(); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '获取异常反馈类型信息失败', |
| | | title: this.$t('OA_ErrMsgBackSignBill.getErrTypeFailed') == 'OA_ErrMsgBackSignBill.getErrTypeFailed' ? '获取异常反馈类型信息失败' : this.$t('OA_ErrMsgBackSignBill.getErrTypeFailed'), |
| | | icon: 'none' |
| | | }) |
| | | } |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '获取异常反馈类型信息失败', |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | |
| | | //编辑 |
| | | getEditData(HInterID) { |
| | | uni.showLoading({ |
| | | title: '加载中' |
| | | title: this.$t('OA_ErrMsgBackSignBill.loading') == 'OA_ErrMsgBackSignBill.loading' ? '加载中' : this.$t('OA_ErrMsgBackSignBill.loading') |
| | | }); |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/Edit_OA_ErrMsgBackSignBill', |
| | |
| | | uni.hideLoading(); |
| | | console.log('编辑数据:', res); |
| | | if (res.data.code == 1) { |
| | | const data = res.data.data[0]; // 注意这里改为data[0] |
| | | const data = res.data.data[0]; |
| | | this.hform = { |
| | | ...this.hform, // 保留原有的默认值 |
| | | ...this.hform, |
| | | HInterID: data["hmainid"] || '', |
| | | HEntryID: data["HEntryID"] || '', |
| | | HBillNo: data["单据号"] || '', |
| | | HDate: data["日期"] ? dayjs(data["日期"]).format("YYYY-MM-DD") : dayjs( |
| | | new Date()).format("YYYY-MM-DD"), |
| | | HDate: data["日期"] ? dayjs(data["日期"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"), |
| | | |
| | | HErrMsgBackTypeID: data["HErrMsgBackTypeID"] || '0', |
| | | HErrMsgBackTypeName: data["异常类型"] || '', |
| | |
| | | |
| | | HDeptID: data["HDeptID"] || '0', |
| | | HDeptName: data["发送部门"] || '', |
| | | HReceiveID: data["HReceiveID"] || '0', // 新增字段 |
| | | HReceiveID: data["HReceiveID"] || '0', |
| | | HReceiveName: data["接收部门"] || '', |
| | | |
| | | HSendMan: data["发送人"] || '', |
| | |
| | | HEquipID: data["HEquipID"] || '0', |
| | | HEquipName: data["设备名称"] || '', |
| | | |
| | | HMouldID: data["HMouldID"] || '0', // 修正字段名 |
| | | HMouldID: data["HMouldID"] || '0', |
| | | HMouldName: data["模治具名称"] || '', |
| | | |
| | | HSignEmpID: data["HSignEmpID"] || '0', |
| | | HSignEmpName: data["签到人"] || '', |
| | | HSignNote: data["签到确认"] || '', // 新增字段 |
| | | HSignDate: data["签到时间"] ? dayjs(data["签到时间"]).format( |
| | | "YYYY-MM-DD HH:mm:ss") : '', |
| | | |
| | | HSignNote: data["签到确认"] || '', |
| | | HSignDate: data["签到时间"] ? dayjs(data["签到时间"]).format("YYYY-MM-DD HH:mm:ss") : '', |
| | | |
| | | HMainSourceInterID: data["源单ID"] || '0', |
| | | HMainSourceEntryID: data["源单子ID"] || '0', |
| | | HMainSourceBillNo: data["源单单号"] || '', |
| | | HMainSourceBillType: data["源单类型"] || '', |
| | | |
| | | HErrMsgBackBillNo: data["异常反馈单号"] || '', // 新增字段 |
| | | HErrMsgBackInterID: data["异常反馈单主内码"] || '0', // 新增字段 |
| | | HErrMsgBackEntryID: data["异常反馈单子内码"] || '0', // 新增字段 |
| | | HErrMsgBackBillNo: data["异常反馈单号"] || '', |
| | | HErrMsgBackInterID: data["异常反馈单主内码"] || '0', |
| | | HErrMsgBackEntryID: data["异常反馈单子内码"] || '0', |
| | | |
| | | HRemark: data["表头备注"] || '', |
| | | HMaker: data["制单人"] || this.userInfo.Czymc || '', |
| | | HMakeDate: data["制单日期"] ? dayjs(data["制单日期"]).format( |
| | | "YYYY-MM-DD") : dayjs( |
| | | new Date()).format("YYYY-MM-DD"), |
| | | HMakeDate: data["制单日期"] ? dayjs(data["制单日期"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"), |
| | | |
| | | HUpDater: data["修改人"] || this.userInfo.Czymc || '', |
| | | HUpDateDate: data["修改日期"] ? dayjs(data["修改日期"]).format( |
| | | "YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"), |
| | | HUpDateDate: data["修改日期"] ? dayjs(data["修改日期"]).format("YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"), |
| | | |
| | | HChecker: data["审核人"] || '', |
| | | HCheckDate: data["审核日期"] ? dayjs(data["审核日期"]).format( |
| | | "YYYY-MM-DD") : '', |
| | | HCheckDate: data["审核日期"] ? dayjs(data["审核日期"]).format("YYYY-MM-DD") : '', |
| | | |
| | | HDeleteMan: data["作废人"] || '', |
| | | HDeleteDate: data["作废日期"] ? dayjs(data["作废日期"]).format( |
| | | "YYYY-MM-DD") : '', |
| | | HDeleteDate: data["作废日期"] ? dayjs(data["作废日期"]).format("YYYY-MM-DD") : '', |
| | | |
| | | HLevel: data["紧急程度"] || '普通' |
| | | HLevel: data["紧急程度"] || 'normal' |
| | | }; |
| | | |
| | | this.isEdit = true; |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.msg || '获取编辑数据失败', |
| | | title: res.data.msg || this.$t('OA_ErrMsgBackSignBill.getEditFailed'), |
| | | icon: 'none' |
| | | }); |
| | | } |
| | |
| | | uni.hideLoading(); |
| | | console.log('编辑数据请求失败:', res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }); |
| | | } |
| | |
| | | submit() { |
| | | if (!this.hform.HReceiveMan) { |
| | | uni.showToast({ |
| | | title: '请选择接收人', |
| | | title: this.$t('OA_ErrMsgBackSignBill.selectReceiver') == 'OA_ErrMsgBackSignBill.selectReceiver' ? '请选择接收人' : this.$t('OA_ErrMsgBackSignBill.selectReceiver'), |
| | | icon: 'none' |
| | | }) |
| | | } else { |
| | | uni.showLoading({ |
| | | title: '请稍候' |
| | | title: this.$t('OA_ErrMsgBackSignBill.pleaseWait') == 'OA_ErrMsgBackSignBill.pleaseWait' ? '请稍候' : this.$t('OA_ErrMsgBackSignBill.pleaseWait') |
| | | }) |
| | | if (this.OperationType == 1 || this.OperationType == 2 || this.OperationType == 4) { |
| | | this.refSav = "Add"; |
| | |
| | | this.SaveVerify(res.data.HInterID) //审核 |
| | | } else { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: res.data.Message + '。是否继续新增?(点击取消返回上级页面)', |
| | | title: this.$t('OA_ErrMsgBackSignBill.confirmTitle') == 'OA_ErrMsgBackSignBill.confirmTitle' ? '提示' : this.$t('OA_ErrMsgBackSignBill.confirmTitle'), |
| | | content: res.data.Message + (this.$t('OA_ErrMsgBackSignBill.continueAdd') == 'OA_ErrMsgBackSignBill.continueAdd' ? '。是否继续新增?(点击取消返回上级页面)' : this.$t('OA_ErrMsgBackSignBill.continueAdd')), |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | |
| | | data: datas, |
| | | success: (res) => { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: res.data.Message + '。是否继续新增?(点击取消返回上级页面)', |
| | | title: this.$t('OA_ErrMsgBackSignBill.confirmTitle') == 'OA_ErrMsgBackSignBill.confirmTitle' ? '提示' : this.$t('OA_ErrMsgBackSignBill.confirmTitle'), |
| | | content: res.data.Message + (this.$t('OA_ErrMsgBackSignBill.continueAdd') == 'OA_ErrMsgBackSignBill.continueAdd' ? '。是否继续新增?(点击取消返回上级页面)' : this.$t('OA_ErrMsgBackSignBill.continueAdd')), |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | title: this.$t('OA_ErrMsgBackSignBill.requestFailed') == 'OA_ErrMsgBackSignBill.requestFailed' ? '接口请求失败' : this.$t('OA_ErrMsgBackSignBill.requestFailed'), |
| | | icon: 'none' |
| | | }) |
| | | }, |