12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487 |
- <template>
- <view class="page-container uni-column">
- <view class="tab-container">
- <view v-for="(item, index) in processInspectionTypeList" :key="index"
- :class="{ 'tab-item': true, 'active': isActived === item }">
- <text @click="selectedStatus(item)">{{ item.label }}</text>
- </view>
- </view>
- <!-- 交检 -->
- <view v-if="isActived.label == '交检' " style="margin-bottom: 130rpx;margin-top: 16px;">
- <view class="carrier-info uni-column">
- <view class="carrier-code uni-row">
- <text>箱号</text>
- <text
- style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].carrierCode}}</text>
- <text style="margin-left: 150px;color: aquamarine">交检</text>
- </view>
- <view class="info-row uni-row">
- <view class="label">图号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].drawingNumber }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">批次号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].lotCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">工艺版本</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].technologyVersion }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">产品描述</view>
- <view class="value">
- {{inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')]. productDescription }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">当前工序</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].processAlias }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">操作者</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].nickName }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">设备</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].equipmentDetailCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">检查载具</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].inspectionCarrierCode }}
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="drawing-btn"
- @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')])">
- 图纸信息</view>
- </view>
- </view>
- <!-- 废品信息 -->
- <view class="title unfit-title uni-row">
- <text>检查信息</text>
- </view>
- <view class="unfit-container">
- <view class="unfit-item-container uni-column"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].processInspectionDetails"
- :key="index">
- <view class="resu uni-row">
- <view class="label">检查标准</view>
- <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">检查结果</view>
- <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">超差范围</view>
- <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
- </view>
- <view class="resu uni-row">
- <view :class="!editable() ? 'label' : ''">检查量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.examiningNum" />
- <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
- <view :class="!editable() ? 'label' : ''">不良品量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.disqualificationNum" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
- </view>
- </view>
- </view>
- <!-- 拍照上传部分 -->
- <view class="title unfit-title uni-row">
- <text>拍照上传</text>
- </view>
- <view class=" uni-row" style="padding: 24rpx;
- margin: 0 16rpx;
- background-color: #ffffff;
- border-radius: 12rpx;">
- <uni-file-picker
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].processInspectionPictureList"
- :readonly="true" return-type="array" :image-styles="imageStyles" file-mediatype="image"
- class="my-files"></uni-file-picker>
- </view>
- <!-- 咨询部分 -->
- <view class="title unfit-title uni-row">
- <text>咨询</text>
- </view>
- <view class="consultation-container uni-column">
- <view class="consultation-item-container"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].dayworkItemConsults"
- :key="index">
- <view class="question uni-column">
- <view class="label uni-row">
- <text>问题描述</text>
- <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
- {{ selectText(item) }}</text>
- </view>
- <view class="content">{{ item.content }}</view>
- </view>
- </view>
- </view>
- <!-- 报工部分 -->
- <view class="daywork-container">
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">交检状态</view>
- <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].inspectionStatus"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">放行状态</view>
- <uni-data-checkbox :disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].status"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="remark uni-row">
- <view class="label">备注</view>
- <textarea v-if="editable()"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].remark" />
- <view v-else class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].remark }}
- </view>
- </view>
- </view>
- </view>
- <!-- 巡检 -->
- <view v-if="isActived.label == '巡检' " style="margin-bottom: 130rpx;margin-top: 16px;">
- <view class="carrier-info uni-column">
- <view class="carrier-code uni-row">
- <text>箱号</text>
- <text
- style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].carrierCode}}</text>
- <text style="margin-left: 150px;color: aquamarine">巡检</text>
- </view>
- <view class="info-row uni-row">
- <view class="label">图号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].drawingNumber }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">批次号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].lotCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">工艺版本</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].technologyVersion }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">产品描述</view>
- <view class="value">
- {{inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')]. productDescription }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">当前工序</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].processAlias }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">操作者</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].nickName }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">设备</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].equipmentDetailCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">检查载具</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].inspectionCarrierCode }}
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="drawing-btn"
- @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')])">
- 图纸信息</view>
- </view>
- </view>
- <!-- 废品信息 -->
- <view class="title unfit-title uni-row">
- <text>检查信息</text>
- </view>
- <view class="unfit-container">
- <view class="unfit-item-container uni-column"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].processInspectionDetails"
- :key="index">
- <view class="resu uni-row">
- <view class="label">检查标准</view>
- <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">检查结果</view>
- <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">超差范围</view>
- <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
- </view>
- <view class="resu uni-row">
- <view :class="!editable() ? 'label' : ''">检查量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.examiningNum" />
- <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
- <view :class="!editable() ? 'label' : ''">不良品量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.disqualificationNum" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
- </view>
- </view>
- </view>
- <!-- 拍照上传部分 -->
- <view class="title unfit-title uni-row">
- <text>拍照上传</text>
- </view>
- <view class=" uni-row" style="padding: 24rpx;
- margin: 0 16rpx;
- background-color: #ffffff;
- border-radius: 12rpx;">
- <uni-file-picker
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].processInspectionPictureList"
- :readonly="true" return-type="array" :image-styles="imageStyles" file-mediatype="image"
- class="my-files"></uni-file-picker>
- </view>
- <!-- 咨询部分 -->
- <view class="title unfit-title uni-row">
- <text>咨询</text>
- </view>
- <view class="consultation-container uni-column">
- <view class="consultation-item-container"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].dayworkItemConsults"
- :key="index">
- <view class="question uni-column">
- <view class="label uni-row">
- <text>问题描述</text>
- <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
- {{ selectText(item) }}</text>
- </view>
- <view class="content">{{ item.content }}</view>
- </view>
- </view>
- </view>
- <!-- 报工部分 -->
- <view class="daywork-container">
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">巡检状态</view>
- <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].inspectionStatus"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">放行状态</view>
- <uni-data-checkbox :disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].status"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="remark uni-row">
- <view class="label">备注</view>
- <textarea v-if="editable()"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].remark" />
- <view v-else class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].remark }}
- </view>
- </view>
- </view>
- </view>
- <!-- 仪器室 -->
- <view v-if="isActived.label == '仪器室' " style="margin-bottom: 130rpx;margin-top: 16px;">
- <view class="carrier-info uni-column">
- <view class="carrier-code uni-row">
- <text>箱号</text>
- <text
- style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].carrierCode}}</text>
- <text style="margin-left: 150px;color: aquamarine">仪器室</text>
- </view>
- <view class="info-row uni-row">
- <view class="label">图号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].drawingNumber }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">批次号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].lotCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">工艺版本</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].technologyVersion }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">产品描述</view>
- <view class="value">
- {{inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')]. productDescription }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">当前工序</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].processAlias }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">操作者</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].nickName }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">设备</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].equipmentDetailCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">检查载具</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].inspectionCarrierCode }}
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="drawing-btn"
- @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')])">
- 图纸信息</view>
- </view>
- </view>
- <!-- 废品信息 -->
- <view class="title unfit-title uni-row">
- <text>检查信息</text>
- </view>
- <view class="unfit-container">
- <view class="unfit-item-container uni-column"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].processInspectionDetails"
- :key="index">
- <view class="resu uni-row">
- <view class="label">检查标准</view>
- <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">检查结果</view>
- <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">超差范围</view>
- <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
- </view>
- <view class="resu uni-row">
- <view :class="!editable() ? 'label' : ''">检查量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.examiningNum" />
- <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
- <view :class="!editable() ? 'label' : ''">不良品量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.disqualificationNum" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
- </view>
- </view>
- </view>
- <!-- 拍照上传部分 -->
- <view class="title unfit-title uni-row">
- <text>拍照上传</text>
- </view>
- <view class=" uni-row" style="padding: 24rpx;
- margin: 0 16rpx;
- background-color: #ffffff;
- border-radius: 12rpx;">
- <uni-file-picker
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].processInspectionPictureList"
- :readonly="true" return-type="array" :image-styles="imageStyles" file-mediatype="image"
- class="my-files"></uni-file-picker>
- </view>
- <!-- 咨询部分 -->
- <view class="title unfit-title uni-row">
- <text>咨询</text>
- </view>
- <view class="consultation-container uni-column">
- <view class="consultation-item-container"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].dayworkItemConsults"
- :key="index">
- <view class="question uni-column">
- <view class="label uni-row">
- <text>问题描述</text>
- <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
- {{ selectText(item) }}</text>
- </view>
- <view class="content">{{ item.content }}</view>
- </view>
- </view>
- </view>
- <!-- 报工部分 -->
- <view class="daywork-container">
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; width: 170rpx;">仪器室检状态</view>
- <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].inspectionStatus"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">放行状态</view>
- <uni-data-checkbox :disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].status"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="remark uni-row">
- <view class="label">备注</view>
- <textarea v-if="editable()"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].remark" />
- <view v-else class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].remark }}
- </view>
- </view>
- </view>
- </view>
- <!-- 外协检 -->
- <view v-if="isActived.label == '外协检查' " style="margin-bottom: 130rpx;margin-top: 16px;">
- <view class="carrier-info uni-column">
- <view class="carrier-code uni-row">
- <text>箱号</text>
- <text
- style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].carrierCode}}</text>
- <text style="margin-left: 150px;color: aquamarine">外协检</text>
- </view>
- <view class="info-row uni-row">
- <view class="label">图号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].drawingNumber }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">批次号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].lotCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">工艺版本</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].technologyVersion }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">产品描述</view>
- <view class="value">
- {{inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')]. productDescription }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">当前工序</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].processAlias }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">检查载具</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].inspectionCarrierCode }}
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="drawing-btn"
- @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')])">
- 图纸信息</view>
- </view>
- </view>
- <!-- 废品信息 -->
- <view class="title unfit-title uni-row">
- <text>检查信息</text>
- </view>
- <view class="unfit-container">
- <view class="unfit-item-container uni-column"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].processInspectionDetails"
- :key="index">
- <view class="resu uni-row">
- <view class="label">检查标准</view>
- <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">检查结果</view>
- <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">超差范围</view>
- <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
- </view>
- <view class="resu uni-row">
- <view :class="!editable() ? 'label' : ''">检查量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.examiningNum" />
- <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
- <view :class="!editable() ? 'label' : ''">不良品量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.disqualificationNum" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
- <view :class="!editable() ? 'label' : ''">废品量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.rejectNum" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.rejectNum }}</view>
- </view>
- </view>
- </view>
- <!-- 拍照上传部分 -->
- <view class="title unfit-title uni-row">
- <text>拍照上传</text>
- </view>
- <view class=" uni-row" style="padding: 24rpx;
- margin: 0 16rpx;
- background-color: #ffffff;
- border-radius: 12rpx;">
- <uni-file-picker
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].processInspectionPictureList"
- :readonly="true" return-type="array" :image-styles="imageStyles" file-mediatype="image"
- class="my-files"></uni-file-picker>
- </view>
- <!-- 咨询部分 -->
- <view class="title unfit-title uni-row">
- <text>咨询</text>
- </view>
- <view class="consultation-container uni-column">
- <view class="consultation-item-container"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].dayworkItemConsults"
- :key="index">
- <view class="question uni-column">
- <view class="label uni-row">
- <text>问题描述</text>
- <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
- {{ selectText(item) }}</text>
- </view>
- <view class="content">{{ item.content }}</view>
- </view>
- </view>
- </view>
- <!-- 报工部分 -->
- <view class="daywork-container">
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; width: 170rpx;">外协检状态</view>
- <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].inspectionStatus"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">放行状态</view>
- <uni-data-checkbox :disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].status"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="remark uni-row">
- <view class="label">备注</view>
- <textarea v-if="editable()"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].remark" />
- <view v-else class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].remark }}
- </view>
- </view>
- </view>
- </view>
- <!-- 出厂检 -->
- <view v-if="isActived.label == '出厂检' " style="margin-bottom: 130rpx;margin-top: 16px;">
- <view class="carrier-info uni-column">
- <view class="carrier-code uni-row">
- <text>箱号</text>
- <text
- style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].carrierCode}}</text>
- <text style="margin-left: 150px;color: aquamarine">出厂检</text>
- </view>
- <view class="info-row uni-row">
- <view class="label">图号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].drawingNumber }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">批次号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].lotCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">工艺版本</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].technologyVersion }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">产品描述</view>
- <view class="value">
- {{inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')]. productDescription }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">当前工序</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].processAlias }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">检查载具</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].inspectionCarrierCode }}
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="drawing-btn"
- @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')])">
- 图纸信息</view>
- </view>
- </view>
- <!-- 废品信息 -->
- <view class="title unfit-title uni-row">
- <text>检查信息</text>
- </view>
- <view class="unfit-container">
- <view class="unfit-item-container uni-column"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].processInspectionDetails"
- :key="index">
- <view class="resu uni-row">
- <view class="label">检查标准</view>
- <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">检查结果</view>
- <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">超差范围</view>
- <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
- </view>
- <view class="resu uni-row">
- <view :class="!editable() ? 'label' : ''">检查量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.examiningNum" />
- <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
- <view :class="!editable() ? 'label' : ''">不良品量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.disqualificationNum" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
- </view>
- </view>
- </view>
- <!-- 拍照上传部分 -->
- <view class="title unfit-title uni-row">
- <text>拍照上传</text>
- </view>
- <view class=" uni-row" style="padding: 24rpx;
- margin: 0 16rpx;
- background-color: #ffffff;
- border-radius: 12rpx;">
- <uni-file-picker
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].processInspectionPictureList"
- :readonly="true" return-type="array" :image-styles="imageStyles" file-mediatype="image"
- class="my-files"></uni-file-picker>
- </view>
- <!-- 咨询部分 -->
- <view class="title unfit-title uni-row">
- <text>咨询</text>
- </view>
- <view class="consultation-container uni-column">
- <view class="consultation-item-container"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].dayworkItemConsults"
- :key="index">
- <view class="question uni-column">
- <view class="label uni-row">
- <text>问题描述</text>
- <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
- {{ selectText(item) }}</text>
- </view>
- <view class="content">{{ item.content }}</view>
- </view>
- </view>
- </view>
- <!-- 报工部分 -->
- <view class="daywork-container">
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; width: 170rpx;">出厂检状态</view>
- <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].inspectionStatus"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">放行状态</view>
- <uni-data-checkbox :disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].status"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="remark uni-row">
- <view class="label">备注</view>
- <textarea v-if="editable()"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].remark" />
- <view v-else class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].remark }}
- </view>
- </view>
- </view>
- </view>
- <!-- 首件检 -->
- <view v-if="isActived.label == '首件检' " style="margin-bottom: 130rpx;margin-top: 16px;">
- <view class="carrier-info uni-column">
- <view class="carrier-code uni-row">
- <text>箱号</text>
- <text
- style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].carrierCode}}</text>
- <text style="margin-left: 150px;color: aquamarine">首件检</text>
- </view>
- <view class="info-row uni-row">
- <view class="label">图号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].drawingNumber }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">批次号</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].lotCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">工艺版本</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].technologyVersion }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">产品描述</view>
- <view class="value">
- {{inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')]. productDescription }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">当前工序</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].processAlias }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">操作者</view>
- <view class="value">
- {{inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].nickName }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">设备</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].equipmentDetailCode }}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="label">检查载具</view>
- <view class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].inspectionCarrierCode }}
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
- </view>
- </view>
- <view class="info-row uni-row">
- <view class="drawing-btn"
- @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')])">
- 图纸信息</view>
- </view>
- </view>
- <!-- 废品信息 -->
- <view class="title unfit-title uni-row">
- <text>检查信息</text>
- </view>
- <view class="unfit-container">
- <view class="unfit-item-container uni-column"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].processInspectionDetails"
- :key="index">
- <view class="resu uni-row">
- <view class="label">检查标准</view>
- <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">检查结果</view>
- <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
- </view>
- <view class="resu uni-row">
- <view class="label">超差范围</view>
- <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
- </view>
- <view class="resu uni-row">
- <view :class="!editable() ? 'label' : ''">检查量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.examiningNum" />
- <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
- <view :class="!editable() ? 'label' : ''">不良品量</view>
- <input v-if="editable()" class="number" type="number" v-model="item.disqualificationNum" />
- <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
- </view>
- </view>
- </view>
- <!-- 拍照上传部分 -->
- <view class="title unfit-title uni-row">
- <text>拍照上传</text>
- </view>
- <view class=" uni-row" style="padding: 24rpx;
- margin: 0 16rpx;
- background-color: #ffffff;
- border-radius: 12rpx;">
- <uni-file-picker
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].processInspectionPictureList"
- :readonly="true" return-type="array" :image-styles="imageStyles" file-mediatype="image"
- class="my-files"></uni-file-picker>
- </view>
- <!-- 咨询部分 -->
- <view class="title unfit-title uni-row">
- <text>咨询</text>
- </view>
- <view class="consultation-container uni-column">
- <view class="consultation-item-container"
- v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].dayworkItemConsults"
- :key="index">
- <view class="question uni-column">
- <view class="label uni-row">
- <text>问题描述</text>
- <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
- {{ selectText(item) }}</text>
- </view>
- <view class="content">{{ item.content }}</view>
- </view>
- </view>
- </view>
- <!-- 报工部分 -->
- <view class="daywork-container">
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; width: 170rpx;">首件检状态</view>
- <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].inspectionStatus"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="result uni-row">
- <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">放行状态</view>
- <uni-data-checkbox :disabled="true" style="margin-top: 20rpx;"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].status"
- :localdata="range"></uni-data-checkbox>
- </view>
- <view class="remark uni-row">
- <view class="label">备注</view>
- <textarea v-if="editable()"
- v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].remark" />
- <view v-else class="value">
- {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].remark }}
- </view>
- </view>
- </view>
- </view>
- <view class="bottom uni-row">
- <button class="start-batch-btn" style="margin-right: 10rpx;" type="primary"
- @click="handleConfirm">确定领取</button>
- </view>
- </view>
- </template>
- <script setup>
- import {
- ref,
- onMounted,
- getCurrentInstance
- } from 'vue'
- import {
- onLoad,
- onReady,
- onUnload,
- onShow
- } from '@dcloudio/uni-app'
- import {
- store
- } from '@/store/index.js'
- import {
- unbindInspectionCarrier,
- getInspectionInfoByInspectionCarrierCode
- } from '@/api/business/processInspection.js'
- const lot = ref({})
- const isEventTriggered = ref(false); // 创建一个标志位
- const unfitInfos = ref([]) //废品信息
- const consultations = ref([]) //咨询信息
- // 创建一个引用来存储最后一次请求的时间戳
- const lastRequestTimestamp = ref(0);
- const processInspecion = ref({
- remark: "",
- rejectNum: 0,
- examiningNum: 0,
- status: 0,
- })
- const urlList = JSON.parse(uni.getStorageSync('baseUrl'))
- const webHost = ref(urlList.baseUrl)
- const inspectionList = ref([])
- const processInspectionTypeList = ref([])
- const isActived = ref(null)
- const initStatus = ref(0)
- const carrierCode = ref(null)
- const editable = () => {
- return false
- }
- const imageStyles = {
- width: 60,
- height: 60
- }
- const consul = [{
- value: 0,
- text: "待确认",
- type: "color: #fcab53"
- }, {
- value: 2,
- text: "合格",
- type: "color: #55ff7f"
- }, {
- value: 1,
- text: "不合格",
- type: "color: #ff0c2c"
- }]
- const range = [{
- value: 0,
- text: "待确认",
- type: "color: #fcab53"
- }, {
- value: 1,
- text: "合格",
- type: "color: #55ff7f"
- }, {
- value: 2,
- text: "不合格",
- type: "color: #ff0c2c"
- }]
- /***************************** 页面生命周期函数 *****************************/
- function init() {
- const instance = getCurrentInstance().proxy
- const eventChannel = instance.getOpenerEventChannel();
- eventChannel.on('inspecionCarrierCode', function(data) {
- if (data && data.carrierCode) {
- carrierCode.value = data.carrierCode;
- getInspectionInfoByInspectionCarrierCode({
- carrierCode: carrierCode.value
- }).then(res => {
- processInspectionTypeList.value = res.data.map(v => {
- if (v.type === "deliveryInspection") {
- return {
- id: v.id,
- text: v.type,
- label: '交检'
- };
- } else if (v.type === "firstArticleInspection") {
- return {
- id: v.id,
- text: v.type,
- label: '首件检'
- };
- } else if (v.type === "patrolInspection") {
- return {
- id: v.id,
- text: v.type,
- label: '巡检'
- };
- } else if (v.type === "outsourcedInspector") {
- return {
- id: v.id,
- text: v.type,
- label: '外协检查'
- };
- } else if (v.type === "factoryInspection") {
- return {
- id: v.id,
- text: v.type,
- label: '出厂检'
- };
- } else {
- return {
- id: v.id,
- text: v.type,
- label: '仪器室'
- };
- }
- });
- res.data.forEach(item => {
- item.processInspectionPictureList.forEach(i => {
- i.url = webHost.value + i.url
- })
- })
- console.log(res.data)
- inspectionList.value = res.data
- isActived.value = processInspectionTypeList.value[0]
- console.log(processInspectionTypeList.value)
- })
- }
- })
- }
- onShow(() => {
- init()
- })
- /***************************** 定义了一些方法 *****************************/
- //咨询文本
- function selectText(item) {
- // for (var i = 0; i < consul.length; i++) {
- // if (item.status == consul[i].value) {
- // return consul[i].text
- // }
- // }
- if (item.consultResultId == 0) {
- return '待确认'
- } else {
- return item.result
- }
- }
- //确定领取
- function handleConfirm() {
- unbindInspectionCarrier({
- carrierCode: carrierCode.value
- }).then(res => {
- if (res.code == 200) {
- let pages = getCurrentPages();
- let index = 0
- for (let i = 0; i < pages.length; i++) {
- if (pages[i].$page.fullPath == "/pages/dashboard/index") {
- index = pages.length - i - 1;
- }
- }
- console.log("index", index);
- uni.navigateBack({
- delta: index
- });
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- duration: 2000
- })
- }
- })
- }
- //图纸
- function handleDrawingMenu(data) {
- console.log(data)
- // 对 technologicalProcessDetailId 进行URL编码
- var encodedId = encodeURIComponent(data.productId);
- var enTechnologicalProcessId = encodeURIComponent(data.technologicalProcessId);
- var enprocessCode = encodeURIComponent(data.processCodeLabel);
- var encodeCode = encodeURIComponent(data.lotCode);
- var enProcessAlias = encodeURIComponent(data.processAlias);
- var enIsWasteRecycling = encodeURIComponent(data.isWasteRecycling);
- var enIsAmend = encodeURIComponent(data.isAmend);
- // 构建查询参数字符串
- var queryParam =
- `param1=${encodedId}¶m2=${encodeCode}¶m3=${enprocessCode}¶m4=${enTechnologicalProcessId}¶m5=${enProcessAlias}¶m6=${enIsWasteRecycling}¶m7=${enIsAmend}`;
- // 使用模板字符串构建完整的URL
- var navigateUrl = `/pages/drawingMenu/index?${queryParam}`;
- // 导航到指定页面
- uni.navigateTo({
- url: navigateUrl
- });
- }
- function selectedStatus(item) {
- isActived.value = item
- }
- //咨询样式
- function selectType(item) {
- for (var i = 0; i < consul.length; i++) {
- if (item.status == consul[i].value) {
- return consul[i].type
- }
- }
- }
- </script>
- <style lang="scss">
- .page-container {
- // height: 100%;
- background-color: #ececec;
- font-size: 28rpx;
- >.title {
- font-weight: 700;
- margin: 24rpx 16rpx;
- }
- }
- // .tab-container {
- // display: flex;
- // flex-direction: row;
- // height: 32px;
- // background-color: #ffffff;
- // margin-bottom: 16rpx;
- // .tab-item {
- // display: flex;
- // flex-direction: row;
- // flex: 1;
- // font-size: 14px;
- // color: #666;
- // align-items: center;
- // justify-content: center;
- // }
- // }
- .tab-container {
- position: fixed;
- /* 固定定位 */
- top: 44px;
- /* 距离顶部0,即页面顶部 */
- left: 0;
- /* 距离左侧0,即页面左侧 */
- right: 0;
- /* 宽度充满整个页面宽度 */
- display: flex;
- flex-direction: row;
- height: 32px;
- background-color: #ffffff;
- z-index: 999;
- /* 确保.tab-container在页面最上层 */
- padding: 8rpx 0;
- /* 根据需要添加一些内边距 */
- box-sizing: border-box;
- /* 边框计算在宽度内 */
- }
- .tab-item {
- display: flex;
- flex-direction: row;
- flex: 1;
- font-size: 14px;
- color: #666;
- align-items: center;
- justify-content: center;
- }
- .carrier-info {
- margin: 32rpx 16rpx 0 16rpx;
- padding: 24rpx;
- background-color: #ffffff;
- border-radius: 8rpx;
- .carrier-code {
- font-size: 32rpx;
- font-weight: 700;
- }
- .info-row {
- margin-top: 16rpx;
- color: #767676;
- .label {
- width: 160rpx;
- }
- .drawing-btn {
- padding: 12rpx 32rpx;
- background-color: #0055ff;
- color: #ffffff;
- border-radius: 12rpx;
- margin-left: auto;
- font-size: 28rpx;
- }
- .value {
- flex: 1;
- textarea {
- flex: 1;
- border: 1px solid #888888;
- box-sizing: border-box;
- padding: 16rpx;
- }
- }
- }
- }
- .unfit-title {
- margin-bottom: 24rpx;
- justify-content: space-between;
- align-items: center;
- margin: 24rpx 16rpx;
- text {
- font-size: 28rpx;
- font-weight: 700;
- }
- .add-btn {
- padding: 12rpx 32rpx;
- background-color: #a4adb3;
- color: #ffffff;
- border-radius: 12rpx;
- font-size: 24rpx;
- }
- }
- .unfit-container {
- padding: 24rpx;
- margin: 0 16rpx;
- background-color: #ffffff;
- border-radius: 12rpx;
- .unfit-item-container {
- position: relative;
- >* {
- margin-bottom: 24rpx;
- }
- .title {
- font-weight: 700;
- justify-content: space-between;
- align-items: center;
- image {
- width: 40rpx;
- height: 40rpx;
- }
- }
- .standard {}
- .resu {
- width: 100%;
- align-items: center;
- input {
- margin-left: 20rpx;
- width: 200rpx;
- height: 56rpx;
- flex: 1;
- border: 1px solid #9f9f9f;
- font-size: 28rpx;
- }
- }
- .result {
- align-items: center;
- border-bottom: 1px solid #9f9f9f;
- padding-bottom: 32rpx;
- .label {
- flex: 1;
- }
- input {
- width: 280rpx;
- height: 56rpx;
- border: 1px solid #9f9f9f;
- font-size: 28rpx;
- &.number {
- width: 104rpx;
- text-align: center;
- }
- }
- }
- }
- .unfit-item-container:last-child {
- .result {
- border-bottom: none;
- padding-bottom: 0;
- }
- }
- }
- .consultation-container {
- margin: 0 16rpx;
- padding: 24rpx;
- background-color: #ffffff;
- border-radius: 8rpx;
- .consultation-item-container {
- margin-bottom: 24rpx;
- border-bottom: 2px solid #888888;
- padding-bottom: 24rpx;
- }
- .consultation-item-container:last-child {
- margin-bottom: 0;
- border-bottom: 0;
- padding-bottom: 0;
- }
- .question,
- .answer {
- .label {
- justify-content: space-between;
- margin-bottom: 16rpx;
- font-weight: 700;
- }
- .content {
- line-height: 40rpx;
- }
- }
- .answer {
- margin-top: 24rpx;
- }
- }
- .daywork-container {
- margin-top: 24rpx;
- padding: 24rpx;
- background-color: #ffffff;
- border: 1px solid #bcbcbc;
- .result {
- align-items: center;
- .label {
- width: 112rpx;
- }
- input {
- flex: 1;
- height: 56rpx;
- border: 1px solid #9f9f9f;
- font-size: 28rpx;
- text-align: center;
- }
- }
- .remark {
- margin-top: 24rpx;
- .label {
- width: 112rpx;
- }
- textarea {
- flex: 1;
- border: 1px solid #9f9f9f;
- height: 168rpx;
- }
- }
- .btns-container {
- margin-top: 24rpx;
- .finished-btn {
- display: flex;
- flex: 1;
- height: 80rpx;
- background-color: #fc6565;
- color: #ffffff;
- text-align: center;
- justify-content: center;
- align-items: center;
- border-radius: 8rpx;
- }
- .question-btn {
- width: 80rpx;
- align-items: flex-end;
- image {
- width: 48rpx;
- height: 48rpx;
- }
- text {
- font-size: 24rpx;
- }
- }
- }
- }
- .active {
- color: rgba(25, 137, 250, 1);
- border-bottom: solid 1rpx #0055ff;
- font-weight: 700;
- }
- .bottom {
- height: 10%;
- position: fixed;
- right: 0;
- bottom: 0;
- left: 0;
- height: 100rpx;
- border-top: 1px solid #999999;
- padding: 16rpx 32rpx;
- align-items: center;
- background-color: #fff;
- justify-content: space-evenly;
- .start-batch-btn {
- flex: 1;
- height: 80rpx;
- line-height: 80rpx;
- border-radius: 8rpx;
- color: #FFFFFF;
- font-size: 28rpx;
- }
- .view-end-btn {
- flex: 1;
- height: 80rpx;
- line-height: 80rpx;
- border-radius: 8rpx;
- color: #FFFFFF;
- font-size: 28rpx;
- }
- }
- .my-files {
- display: flex;
- justify-content: center;
- :deep(.uni-file-picker__container) {
- flex-direction: row;
- }
- }
- </style>
|