12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241 |
- <template>
- <div>
- <div class="sty">
- <el-page-header @back="goBack" :content="title"> </el-page-header>
- </div>
- <el-divider></el-divider>
- <h3>工程项目信息</h3>
- <el-divider></el-divider>
- <div class="diy-table-1">
- <el-row :gutter="0">
- <el-col :xs="12" :sm="24" :lg="8" class="item">
- <div class="label">
- {{
- detailList.enginOrderType == "HOME"
- ? "工程登录编号"
- : "工程信息编号"
- }}
- </div>
- <div class="value">{{ detailList.refEnginRecordNo }}</div>
- </el-col>
- <!-- <el-col :xs="12" :sm="24" :lg="8" class="item">
- <div class="label">工程信息编号</div>
- <div class="value">{{ detailList.refEnginRecordNo }}</div>
- </el-col> -->
- <el-col :xs="12" :sm="24" :lg="8" class="item">
- <div class="label">项目类别</div>
- <div class="value">{{ detailList.refProjectName }}</div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="8" class="item">
- <div class="label">行业类别</div>
- <div class="value">
- {{ detailList.refTradeCategory }}
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">跨区厂编号</div>
- <div class="value">{{ detailList.refFactoryNo }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">使用单位</div>
- <div class="value">{{ detailList.refUseUnit }}</div>
- </el-col>
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">经销商二级代码</div>
- <div class="value">{{detailList.}}</div>
- </el-col> -->
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">业务员</div>
- <div class="value">{{ detailList.serviceName }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">联系人</div>
- <div class="value">{{ detailList.refLinkman }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">固定电话</div>
- <div class="value">{{ detailList.refTel }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">移动电话</div>
- <div class="value">{{ detailList.refPhone }}</div>
- </el-col>
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">移动电话</div>
- <div class="value">
- <el-input
- :readonly="title == '详情'"
- placeholder="请输入"
- v-model="detailList.refPhone"
- ></el-input>
- </div>
- </el-col> -->
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">押金比例</div>
- <div class="value">{{detailList.}}</div>
- </el-col> -->
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">单据状态</div>
- <div class="value">
- {{
- detailList.examineStatus == "SAVE"
- ? "保存"
- : detailList.examineStatus == "WAIT"
- ? "待审核"
- : detailList.examineStatus == "OK"
- ? "通过"
- : detailList.examineStatus == "FAIL"
- ? "不通过"
- : "关闭"
- }}
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">销售类型</div>
- <div class="value">{{ detailList.saleTypeName }}</div>
- </el-col>
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">不扣押金</div>
- <div class="value">{{ detailList.customerName }}</div>
- </el-col> -->
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">第几次申报</div>
- <div class="value">{{ detailList.refDeclareNo }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">项目类型</div>
- <div class="value">{{ detailList.refProjectType }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">经销商编码</div>
- <div class="value">{{ detailList.customerNumber }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">押金总额</div>
- <div class="value">{{ detailList.depositAmount }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">安装时间</div>
- <div class="value">
- <el-date-picker
- prefix-icon="''"
- placeholder="请选择安装时间"
- :readonly="title == '详情'"
- class="selectStyle"
- v-model="detailList.installDate"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- >
- </el-date-picker>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="16" class="item">
- <div class="label">安装地址</div>
- <div class="value">{{ detailList.refInstallAddress }}</div>
- </el-col>
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">工程订单号</div>
- <div class="value">{{ detailList.customerName }}</div>
- </el-col> -->
- <el-col :xs="24" :sm="24" :lg="16" class="item">
- <div class="label">经销商名称</div>
- <div class="value">{{ detailList.customerName }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="16" class="item">
- <div class="label">项目说明</div>
- <div class="value">{{ detailList.refProjectNote }}</div>
- </el-col>
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">订单日期</div>
- <div class="value">{{ detailList.customerName }}</div>
- </el-col> -->
- <!-- <el-col :xs="24" :sm="24" :lg="16" class="item">
- <div class="label">格力内部备注</div>
- <div class="value">{{ detailList.customerName }}</div>
- </el-col> -->
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">文件编码</div>
- <div class="value">{{ detailList.customerName }}</div>
- </el-col> -->
- <el-col :xs="24" :sm="24" :lg="16" class="item">
- <div class="label">备注</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- :readonly="detailList.examineStatus !== 'WAIT'"
- v-model="detailList.remark"
- placeholder="请输入内容"
- ></el-input>
- </div>
- </el-col>
- <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="16" class="item">
- <div class="label">格力内部备注</div>
- <!-- <div class="value">{{ detailList.geLiInerNote}}</div> -->
- <div class="value">
- <el-input
- :readonly="detailList.examineStatus !== 'WAIT'"
- v-model="detailList.geLiInerNote"
- placeholder="请输入内容"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">提交保证函</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refPromiseProvide"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">跟进函备注</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refFollowAcceptRemark"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">资料提交日期</div>
- <div class="value">{{ detailList.refDatumProvideDate }}</div>
- <!-- <div class="value">
- <el-date-picker
- prefix-icon="''"
- placeholder="请选择安装时间"
- class="selectStyle"
- v-model="detailList.refDatumProvideDate"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- >
- </el-date-picker>
- </div> -->
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">大额工程</div>
- <div class="value">{{ detailList.refIsBigAmounts }}</div>
- <!-- <div class="value">
- <el-select
- v-model="detailList.refIsBigAmounts"
- v
- clearable
- filterable
- >
- <el-option label="是" value="是"> </el-option>
- <el-option label="否" value="否"> </el-option>
- </el-select>
- </div> -->
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">合同变更批复结果</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refContractResult"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">工程机转零售批复结果</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refToRetailResult"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">资料延期批复结果</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refDataDelayResult"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">其他附件批复结果</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refOtherAnnexResult"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">保证函受理状态</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refPromiseAcceptStatus"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">保证函备注</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refPromisePriceRemark"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">附件备注</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refFjShenPiRemark"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">资料状态</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input readonly v-model="detailList.refDatumProvide"></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">资料审核结果</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refDatumAcceptStatus"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">合同变更批复意见</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input readonly v-model="detailList.refContractIdea"></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">工程机转零售批复意见</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input readonly v-model="detailList.refToRetailIdea"></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">资料延期批复意见</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input readonly v-model="detailList.refDataDelayIdea"></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">其他附件审批</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input
- readonly
- v-model="detailList.refOtherAnnexIdea"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">资料审核日期</div>
- <div class="value">{{ detailList.refDatumAcceptDate }}</div>
- <!-- <div class="value">
- <el-date-picker
- readonly
- prefix-icon="''"
- placeholder="请选择安装时间"
- class="selectStyle"
- v-model="detailList.refDatumAcceptDate"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- >
- </el-date-picker>
- </div> -->
- </el-col>
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">寄厂日期</div>
- <div class="value">
- <el-date-picker
- :readonly="title == '详情'"
- class="selectStyle"
- v-model="detailList.sendFactoryDate"
- type="datetime"
- prefix-icon="''"
- placeholder="请选择寄厂日期"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- >
- </el-date-picker>
- </div>
- </el-col> -->
- <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">提货日期</div>
- <div class="value">{{detailList.}}</div>
- </el-col> -->
- </el-row>
- </div>
- <h3>货品信息</h3>
- <el-divider></el-divider>
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="detailList.items"
- element-loading-text="Loading"
- border
- fit
- highlight-current-row
- stripe
- show-summary
- :summary-method="$getSummaries"
- >
- <template v-if="!isCustomer">
- <el-table-column
- align="left"
- label="厂编号"
- prop="factoryNo"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.factoryNo" />
- <span>{{ scope.row.factoryNo }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="物料编码"
- prop="materialNumber"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.materialNumber" />
- <span>{{ scope.row.materialNumber }}</span>
- </template>
- </el-table-column>
- </template>
- <el-table-column
- align="left"
- label="产品编码"
- prop="materialOldNumber"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.materialOldNumber" />
- <span>{{ scope.row.materialOldNumber }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="产品名称"
- prop="materialName"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.materialName" />
- <span>{{ scope.row.materialName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="规格型号"
- prop="specification"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.specification" />
- <span>{{ scope.row.specification }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="单价"
- prop="price"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{ scope.row.price | numToFixed }}
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="数量"
- prop="qty"
- min-width="160"
- show-overflow-tooltip
- />
- <el-table-column
- align="right"
- label="金额"
- prop="totalAmount"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{ scope.row.totalAmount | numToFixed }}
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="押金数量"
- prop="hasSendQty"
- min-width="160"
- show-overflow-tooltip
- />
- <el-table-column
- align="right"
- label="发货数量"
- prop="orderHasSendQty"
- min-width="160"
- show-overflow-tooltip
- />
- <el-table-column
- align="right"
- label="押金金额"
- prop="depositAmount"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{ scope.row.depositAmount | numToFixed }}
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="合同数量"
- prop="contractQty"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <template v-if="detailList.examineStatus !== 'WAIT'">
- {{ scope.row.contractQty }}
- </template>
- <el-input
- v-else
- class="inpt"
- v-model="scope.row.contractQty"
- size="mini"
- clearable
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="合同价格"
- prop="contractPrice"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <template v-if="detailList.examineStatus !== 'WAIT'">
- {{ scope.row.contractPrice }}
- </template>
- <el-input
- v-else
- class="inpt"
- v-model="scope.row.contractPrice"
- size="mini"
- clearable
- ></el-input>
- </template>
- </el-table-column> <el-table-column
- align="right"
- label="合同金额"
- prop="contractAmount"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <template v-if="detailList.examineStatus !== 'WAIT'">
- {{ scope.row.contractAmount }}
- </template>
- <el-input
- v-else
- class="inpt"
- v-model="scope.row.contractAmount"
- size="mini"
- clearable
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="上交资料"
- prop="dataQty"
- min-width="160"
- show-overflow-tooltip
- />
- <el-table-column
- align="right"
- label="收差全额"
- prop="diffAmount"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{ scope.row.diffAmount | numToFixed }}
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <h3 class="gdzl">工程资料</h3>
- <el-button
- :readonly="isDis"
- class="batchDownload"
- type="primary"
- size="small"
- @click="batchDownloadFn"
- >批量下载</el-button
- >
- <el-divider></el-divider>
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="detailList.dataList"
- element-loading-text="Loading"
- border
- fit
- highlight-current-row
- stripe
- >
- <el-table-column
- align="left"
- label="资料描述"
- prop="dataDescribe"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="原文件名"
- prop="fileName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="缩略图"
- prop="fileUrl"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <el-image
- ref="img"
- :src="imageURL + scope.row.fileUrl"
- v-if="checkFileType(scope.row.fileUrl) == 'image'"
- style="width: 120px; height: 120px"
- fit="cover"
- :preview-src-list="[imageURL + scope.row.fileUrl]"
- >
- </el-image>
- <img
- class="file"
- src="@/assets/common/word.png"
- v-if="checkFileType(scope.row.fileUrl) == 'word'"
- />
- <img
- class="file"
- src="@/assets/common/excel.png"
- v-if="checkFileType(scope.row.fileUrl) == 'excel'"
- />
- <img
- class="file"
- src="@/assets/common/ppt.png"
- v-if="checkFileType(scope.row.fileUrl) == 'ppt'"
- />
- <img
- class="file"
- src="@/assets/common/pdf.png"
- v-if="checkFileType(scope.row.fileUrl) == 'pdf'"
- />
- <img
- v-if="checkFileType(scope.row.fileUrl) == 'file'"
- class="file aaa"
- src="@/assets/common/zip.jpeg"
- />
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="下载文件名称"
- prop="fileName"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{ "资料_" + scope.row.fileName }}
- </template>
- </el-table-column>
- <el-table-column
- align="center"
- label="操作"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <el-button
- type="text"
- class="textColor"
- @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)"
- >下载</el-button
- >
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <el-divider></el-divider>
- <div class="diy-table-1">
- <el-row :gutter="0">
- <el-col :xs="12" :sm="12" :lg="12" class="item">
- <div class="label">申请人</div>
- <div class="value">{{ detailList.submitName }}</div>
- </el-col>
- <el-col :xs="12" :sm="12" :lg="12" class="item">
- <div class="label">申请日期</div>
- <div class="value">{{ detailList.submitTime }}</div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item">
- <div class="label">申请退押金</div>
- <div class="value">{{ detailList.applyNote }}</div>
- </el-col>
- </el-row>
- </div>
- <h3>记录</h3>
- <el-divider></el-divider>
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="detailList.checkRecordItems"
- element-loading-text="Loading"
- border
- fit
- highlight-current-row
- stripe
- >
- <el-table-column
- align="left"
- label="申请人"
- prop="submitName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="申请日期"
- prop="submitTime"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="申请说明"
- prop="applyNote"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="验收人"
- prop="checkName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="受理日期"
- prop="checkDate"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="验收说明"
- prop="checkNote"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="审批结果"
- prop="isRefundDeposit"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{ scope.row.isRefundDeposit == false ? "否" : "是" }}
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <h3
- v-if="
- detailList.examineStatus == 'WAIT' ||
- detailList.examineStatus == 'FAIL' ||
- detailList.examineStatus == 'OK'
- "
- >
- 审批
- </h3>
- <el-divider
- v-if="
- detailList.examineStatus == 'WAIT' ||
- detailList.examineStatus == 'FAIL' ||
- detailList.examineStatus == 'OK'
- "
- ></el-divider>
- <div v-if="detailList.examineStatus == 'WAIT'" class="diy-table-1">
- <el-row :gutter="0">
- <el-col :xs="12" :sm="12" :lg="12" class="item">
- <div class="label">验收人</div>
- <div class="value">{{ this.checkBy }}</div>
- </el-col>
- <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
- <div class="label">受理日期</div>
- <div class="value">
- <el-date-picker
- readonly
- prefix-icon="''"
- class="selectStyle"
- type="datetime"
- placeholder="系统自动生成"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- >
- </el-date-picker>
- </div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item">
- <div class="label">是否退押</div>
- <div class="value">
- <el-radio-group v-model="isRefundDeposit">
- <el-radio :label="true">是</el-radio>
- <el-radio :label="false">否</el-radio>
- </el-radio-group>
- </div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item">
- <div class="label">验收说明</div>
- <div class="value">
- <el-input v-model="checkNote" placeholder="请输入内容"></el-input>
- </div>
- </el-col>
- </el-row>
- </div>
- <div
- v-if="
- detailList.examineStatus == 'OK' || detailList.examineStatus == 'FAIL'
- "
- class="diy-table-1"
- >
- <el-row :gutter="0">
- <el-col :xs="12" :sm="12" :lg="12" class="item">
- <div class="label">验收人</div>
- <div class="value">{{ detailList.checkBy }}</div>
- </el-col>
- <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
- <div class="label">受理日期</div>
- <div class="value">
- <el-date-picker
- readonly
- prefix-icon="''"
- class="selectStyle"
- v-model="detailList.checkDate"
- type="datetime"
- placeholder=""
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- >
- </el-date-picker>
- </div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item">
- <div class="label">是否退押</div>
- <div class="value">
- <el-radio-group v-model="detailList.isRefundDeposit">
- <el-radio readonly :label="true">是</el-radio>
- <el-radio readonly :label="false">否</el-radio>
- </el-radio-group>
- </div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
- <div class="label">验收说明</div>
- <div class="value">
- <el-input
- readonly
- v-model="detailList.checkNote"
- placeholder="请输入内容"
- ></el-input>
- </div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
- <div class="label">审批通过后备注</div>
- <div class="value">
- <el-input
- v-model="detailList.examineAfterRemark"
- placeholder="请输入内容"
- ></el-input>
- </div>
- </el-col>
- </el-row>
- </div>
- <br />
- <!-- 按钮 -->
- <!-- detailList.examineStatus != 'OK' || detailList.examineStatus != 'FAIL' -->
- <div class="btn-group clearfix">
- <div class="fl">
- <el-button
- v-if="detailList.examineStatus == 'WAIT'"
- type="primary"
- size="small"
- @click="adoptFn"
- >审批通过</el-button
- >
- <el-button
- v-if="detailList.examineStatus == 'WAIT'"
- type="primary"
- size="small"
- @click="rejectFn"
- >审批驳回</el-button
- >
- <el-button
- v-if="detailList.examineStatus == 'OK'"
- type="primary"
- size="small"
- @click="saveFn"
- >保存</el-button
- >
- </div>
- </div>
- </div>
- </template>
- <script>
- import { downloadFiles } from "@/utils/util";
- import IMAGEUPLOAD from "@/components/Common/image-upload.vue";
- import { getFileUrl } from "@/api/common";
- import { mapGetters } from "vuex";
- import {
- getDepositManageDetail,
- getDepositManageExamine,
- getDepositManageDownZip,
- getDepositManageEdit,
- getCommonFileGetStream,
- } from "@/api/engin_deposit/refund_list";
- export default {
- props: {
- detailId: {
- type: String,
- required: true,
- },
- },
- components: { IMAGEUPLOAD },
- computed: {
- ...mapGetters(["name"]),
- },
- data() {
- return {
- isCustomer: JSON.parse(localStorage.getItem("supply_user")).isCustomer,
- isDis: true,
- imageURL: this.$imageUrl,
- title: "审批",
- imageURL: this.$imageUrl,
- listLoading: false, // 列表加载loading
- dataList: [], // 列表数据
- detailList: {},
- checkBy: "",
- checkDate: "",
- isRefundDeposit: true,
- checkNote: "",
- };
- },
- created() {
- console.log(this.$imageUrl, 8888);
- this.checkBy = this.name;
- this.getData({ id: this.detailId });
- },
- methods: {
- //审批通过后可以编辑
- async saveFn() {
- console.log(this.detailList);
- await getDepositManageEdit(this.detailList);
- this.$message.success("保存成功");
- this.goBack();
- this.$emit("updateList");
- },
- //批量下载
- async batchDownloadFn() {
- downloadFiles("/deposit-manage/downZip", { parentId: this.detailId });
- },
- //下载
- async downLoadFn(v, name) {
- // getCommonFileGetStream({ key: v, fileName: name }).then((res) => {
- // // window.open(res.data);
- // });
- // // window.open(this.imageURL + v);
- downloadFiles("/common/file/getStream", { key: v, fileName: name });
- // await getCommonFileGetStream({ key: v, fileName: name });
- },
- // 检查文件类型
- checkFileType(url) {
- if (!url) return "";
- const fileSuffix = url.substring(url.lastIndexOf(".") + 1);
- if (["jpg", "jpeg", "png"].includes(fileSuffix)) {
- return "image";
- } else if (["doc", "docx", "dot", "wps", "wpt"].includes(fileSuffix)) {
- return "word";
- } else if (["xls", "xlsx", "xlt", "et", "ett"].includes(fileSuffix)) {
- return "excel";
- } else if (
- ["ppt", "pptx", "dps", "dpt", "pot", "pps"].includes(fileSuffix)
- ) {
- return "ppt";
- } else if (["pdf"].includes(fileSuffix)) {
- return "pdf";
- } else if (["zip", "rar", "gz", "apk"].includes(fileSuffix)) {
- return "file";
- } else {
- return "";
- }
- },
- //审批驳回
- async rejectFn() {
- this.$confirm("此操作将审批订单, 是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- if (!this.detailList.installDate) {
- this.$message.error("请选择安装时间");
- return;
- }
- let data = {
- ...this.detailList,
- checkBy: this.checkBy,
- // checkDate: this.checkDate,
- isRefundDeposit: this.isRefundDeposit,
- checkNote: this.checkNote,
- examineResult: 0,
- };
- getDepositManageExamine(data)
- .then((res) => {
- if (!res.data) {
- this.goBack();
- this.$emit("updateList");
- } else {
- this.$confirm("审批成功!是否跳转下一张待审批订单?", "提示", {
- confirmButtonText: "跳转",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$successMsg("进入下一张待审批订单");
- this.detailList = res.data;
- })
- .catch(() => {
- this.goBack();
- this.$emit("updateList");
- });
- }
- })
- .finally((res) => {});
- })
- .catch(() => {});
- // if (!this.detailList.installDate) {
- // this.$message.error("请选择安装时间");
- // return;
- // }
- // let data = {
- // ...this.detailList,
- // checkBy: this.checkBy,
- // // checkDate: this.checkDate,
- // isRefundDeposit: this.isRefundDeposit,
- // checkNote: this.checkNote,
- // examineResult: 0,
- // };
- // await getDepositManageExamine(data);
- // this.$message.success("审批驳回");
- // this.goBack();
- // this.$emit("updateList");
- },
- //审批通过
- async adoptFn() {
- this.$confirm("此操作将审批订单, 是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- if (!this.detailList.installDate) {
- this.$message.error("请选择安装时间");
- return;
- }
- let data = {
- ...this.detailList,
- checkBy: this.checkBy,
- // checkDate: this.checkDate,
- isRefundDeposit: this.isRefundDeposit,
- checkNote: this.checkNote,
- examineResult: 1,
- };
- getDepositManageExamine(data)
- .then((res) => {
- if (!res.data) {
- this.goBack();
- this.$emit("updateList");
- } else {
- this.$confirm("审批成功!是否跳转下一张待审批订单?", "提示", {
- confirmButtonText: "跳转",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$successMsg("进入下一张待审批订单");
- this.detailList = res.data;
- })
- .catch(() => {
- this.goBack();
- this.$emit("updateList");
- });
- }
- })
- .finally((res) => {});
- })
- .catch(() => {});
- // if (!this.detailList.installDate) {
- // this.$message.error("请选择安装时间");
- // return;
- // }
- // let data = {
- // ...this.detailList,
- // checkBy: this.checkBy,
- // // checkDate: this.checkDate,
- // isRefundDeposit: this.isRefundDeposit,
- // checkNote: this.checkNote,
- // examineResult: 1,
- // };
- // await getDepositManageExamine(data);
- // this.$message.success("审批通过");
- // this.goBack();
- // this.$emit("updateList");
- },
- async getData(data) {
- const res = await getDepositManageDetail(data);
- console.log(res);
- if (res.data.dataList.length == 0) {
- this.isDis = true;
- } else {
- this.isDis = false;
- }
- let arr = [];
- res.data.items.forEach((item) => {
- if (Number(item.qty) > 0) {
- arr.push(item);
- }
- // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
- item.sums1 = ["orderHasSendQty", "dataQty", "qty", "hasSendQty",
- "contractQty"];
- item.sums2 = [
- "totalAmount",
- "diffAmount",
- "price",
- "depositAmount",
- "contractPrice",
- "contractAmount",
- ];
- });
- res.data.items = arr;
- this.detailList = res.data;
- if (
- res.data.examineStatus == "SAVE" ||
- res.data.examineStatus == "OK" ||
- res.data.examineStatus == "FAIL"
- ) {
- this.title = "详情";
- }
- },
- goBack() {
- this.$parent.showSurrender = true;
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .inpt {
- ::v-deep .el-input__inner {
- text-align: right;
- }
- }
- .aaa {
- height: 64px;
- width: 64px;
- }
- .dateS {
- .value {
- padding: 0;
- }
- }
- .batchDownload {
- float: right;
- margin-top: 9px;
- }
- .gdzl {
- display: inline-block;
- }
- .dateStyle {
- width: 100%;
- }
- .label {
- width: 150px !important;
- }
- .selectStyle {
- width: 100%;
- }
- </style>
|