1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954 |
- <template>
- <div>
- <div class="sty">
- <el-page-header :content="title" @back="goBack" />
- </div>
- <el-divider />
- <h3>工程项目信息</h3>
- <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">
- <CopyButton :copy-text="detailList.refEnginRecordNo" />
- {{ 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.refProjectCategory }}</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
- v-model="detailList.installDate"
- prefix-icon="''"
- placeholder="请选择安装时间"
- :readonly="title == '详情'"
- class="selectStyle"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- />
- </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.refBillsExpireDate }}
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">实际使用单位</div>
- <div class="value">
- <el-input v-model="detailList.realUseUnit" :readonly="isCustomer" placeholder="实际使用单位" />
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">实际安装地址</div>
- <div class="value">
- <el-input v-model="detailList.realInstallAddress" :readonly="isCustomer" placeholder="实际使用单位" />
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">项目编号</div>
- <div class="value">
- {{ detailList.refProjectNo }}
- </div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="8" class="item">
- <div class="label">购买单位</div>
- <div class="value">
- <el-input v-model="detailList.refBuyUnitName" :readonly="isCustomer" placeholder="请输入购买单位" />
- </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.customerName }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="24" class="item">
- <div class="label">项目说明</div>
- <div class="value">{{ detailList.refProjectNote }}</div>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="24" class="item">
- <div class="label">备注</div>
- <!-- <div class="value">{{ detailList.remark }}</div> -->
- <div class="value">
- <el-input v-model="detailList.remark" placeholder="请输入内容" />
- </div>
- </el-col>
- <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="24" class="item">
- <div class="label">格力内部备注</div>
- <!-- <div class="value">{{ detailList.geLiInerNote}}</div> -->
- <div class="value">
- <el-input v-model="detailList.geLiInerNote" placeholder="请输入格力内部备注" />
- </div>
- </el-col>
- <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="24" class="item">
- <div class="label">格力内部资料备注</div>
- <div class="value">
- <el-input v-model="detailList.geLiInnerDataNote" placeholder="请输入格力内部资料备注" />
- </div>
- </el-col>
- <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="24" class="item">
- <div class="label">订单格力内部备注</div>
- <div class="value">{{ detailList.orderGeLiInnerNote }}</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 v-model="detailList.refPromiseProvide" readonly />
- </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 v-model="detailList.refFollowAcceptRemark" readonly />
- </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 v-model="detailList.refContractResult" readonly />
- </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 v-model="detailList.refToRetailResult" readonly />
- </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 v-model="detailList.refDataDelayResult" readonly />
- </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 v-model="detailList.refOtherAnnexResult" readonly />
- </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 v-model="detailList.refPromiseAcceptStatus" readonly />
- </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 v-model="detailList.refPromisePriceRemark" readonly />
- </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 v-model="detailList.refFjShenPiRemark" readonly />
- </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 v-model="detailList.refDatumProvide" readonly />
- </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 v-model="detailList.refDatumAcceptStatus" readonly />
- </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 v-model="detailList.refContractIdea" readonly />
- </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 v-model="detailList.refToRetailIdea" readonly />
- </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 v-model="detailList.refDataDelayIdea" readonly />
- </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 v-model="detailList.refOtherAnnexIdea" readonly />
- </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 />
- <!-- 列表 -->
- <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"
- >
- <el-table-column
- fixed="left"
- label="操作"
- width="100"
- >
- <template slot-scope="scope">
- <el-button
- v-if="scope.row.isCustom && !scope.row.isSource"
- type="text"
- size="mini"
- @click="()=>{
- detailList.items.splice(scope.$index,1)
- }"
- >删除</el-button>
- </template>
- </el-table-column>
- <template v-if="!isCustomer">
- <el-table-column align="left" label="厂编号" prop="factoryNo" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.factoryNo" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <CopyButton :copy-text="scope.row.factoryNo" />
- <span>{{ scope.row.factoryNo }}</span>
- </template>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="物料编码"
- prop="materialNumber"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.materialNumber" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <CopyButton :copy-text="scope.row.materialNumber" />
- <span>{{ scope.row.materialNumber }}</span>
- </template>
- </template>
- </el-table-column>
- </template>
- <el-table-column
- align="left"
- label="产品编码"
- prop="materialOldNumber"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.materialOldNumber" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <CopyButton :copy-text="scope.row.materialOldNumber" />
- <span>{{ scope.row.materialOldNumber }}</span>
- </template>
- </template>
- </el-table-column>
- <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.materialName" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <CopyButton :copy-text="scope.row.materialName" />
- <span>{{ scope.row.materialName }}</span>
- </template>
- </template>
- </el-table-column>
- <el-table-column align="left" label="规格型号" prop="specification" min-width="300" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.specification" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <CopyButton :copy-text="scope.row.specification" />
- <span>{{ scope.row.specification }}</span>
- </template>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="实装规格型号"
- prop="depositSpecification"
- min-width="300"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <!-- <div
- v-if="title=='详情' && detailList.examineStatus !== 'OK'"
- :class="setColour(scope.row,'specification', 'realSpecification', 'depositSpecification')"
- >
- {{ scope.row.depositSpecification }}
- </div> -->
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.depositSpecification" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <el-input
- v-model="scope.row.depositSpecification"
- :class="setColour(scope.row, 'specification', 'realSpecification', 'depositSpecification')"
- size="mini"
- readonly
- @click.native="getRealMaterData(scope.$index)"
- />
- </template>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="实装物料编号"
- prop="depositMaterialNumber"
- min-width="150"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <!-- <div
- v-if="title=='详情'&& detailList.examineStatus !== 'OK'"
- :class="setColour(scope.row,'materialNumber', 'realMaterialNumber', 'depositMaterialNumber')"
- >
- {{ scope.row.depositMaterialNumber }}
- </div> -->
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.depositMaterialNumber" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <el-input
- v-model="scope.row.depositMaterialNumber"
- :class="setColour(scope.row, 'materialNumber', 'realMaterialNumber', 'depositMaterialNumber')"
- size="mini"
- readonly
- @click.native="getRealMaterData(scope.$index)"
- />
- </template>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="实装厂产品编码"
- prop="depositMaterialOldNumber"
- min-width="200"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <!-- <div
- v-if="title=='详情'&& detailList.examineStatus !== 'OK'"
- :class="setColour(scope.row,'materialOldNumber', 'realMaterialOldNumber', 'depositMaterialOldNumber')"
- >
- {{ scope.row.depositMaterialOldNumber }}
- </div> -->
- <template v-if="scope.row.isCustom">
- <el-input v-model="scope.row.depositMaterialOldNumber" size="mini" placeholder="请输入" />
- </template>
- <template v-else>
- <el-input
- v-model="scope.row.depositMaterialOldNumber"
- :class="
- setColour(scope.row, 'materialOldNumber', 'realMaterialOldNumber', 'depositMaterialOldNumber')
- "
- size="mini"
- readonly
- @click.native="getRealMaterData(scope.$index)"
- />
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="单价" prop="price" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.price" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.price | numToFixed }}
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="数量" prop="qty" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.qty" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.qty }}
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="金额" prop="totalAmount" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.totalAmount" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.totalAmount | numToFixed }}
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="销售数量" prop="salesQty" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.salesQty" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.salesQty }}
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="销售金额" prop="salesAmount" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.salesAmount" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.salesAmount | numToFixed }}
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="押金数量" prop="hasSendQty" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.hasSendQty" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.hasSendQty }}
- </template>
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="发货数量"
- prop="orderHasSendQty"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.orderHasSendQty" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.orderHasSendQty }}
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="押金金额" prop="depositAmount" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.depositAmount" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.depositAmount | numToFixed }}
- </template>
- </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="scope.row.isCustom">
- <el-input v-model.number="scope.row.contractQty" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- <el-input
- v-if="title !== '详情'"
- v-model.number="scope.row.contractQty"
- class="inpt"
- size="mini"
- clearable
- />
- <div v-else>
- {{ scope.row.contractQty }}
- </div>
- </template>
- </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="scope.row.isCustom">
- <el-input v-model.number="scope.row.contractPrice" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- <el-input
- v-if="title !== '详情'"
- v-model.number="scope.row.contractPrice"
- class="inpt"
- size="mini"
- clearable
- />
- <div v-else>
- {{ scope.row.contractPrice }}
- </div>
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="合同金额" prop="contractAmount" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <div>
- {{ comTotal(scope.row.contractQty, scope.row.contractPrice) }}
- </div>
- </template>
- </el-table-column>
- <el-table-column align="right" label="上交资料数量" prop="dataQty" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.dataQty" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- <el-input
- v-if="title !== '详情'"
- v-model.number.trim="scope.row.dataQty"
- class="inpt"
- size="mini"
- @blur="setDataQty($event, scope.row)"
- />
- <div v-else>
- {{ scope.row.dataQty }}
- </div>
- </template>
- </template>
- </el-table-column>
- <el-table-column align="right" label="收差金额" prop="diffAmount" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.diffAmount" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.diffAmount | numToFixed }}
- </template>
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="收差政策价格"
- prop="diffPolicyPrice"
- min-width="200"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <template v-if="scope.row.isCustom">
- <el-input v-model.number="scope.row.diffPolicyPrice" size="mini" type="number" placeholder="请输入" />
- </template>
- <template v-else>
- {{ scope.row.diffPolicyPrice | numToFixed }}
- </template>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div v-if="!isCustomer && title != '详情'" style="margin: 20px 0">
- <el-button type="primary" size="small" @click="addBlankLine">添加空白行</el-button>
- </div>
- </div>
- <h3>押金货品信息</h3>
- <el-divider />
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="detailList.collectList"
- element-loading-text="Loading"
- border
- fit
- highlight-current-row
- stripe
- show-summary
- :summary-method="$getSummaries"
- >
- <el-table-column
- align="left"
- label="工程登录单号"
- prop="refEnginRecordNo"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.refEnginRecordNo" />
- <span>{{ scope.row.refEnginRecordNo }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="规格型号" prop="specification" min-width="130" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.specification" />
- <span>{{ scope.row.specification }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="基本单位编码" prop="unit" min-width="130" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.unit" />
- <span>{{ scope.row.unit }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="现金钱包"
- prop="customerWalletName"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.customerWalletName" />
- <span>{{ scope.row.customerWalletName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="现金钱包编码"
- prop="customerWalletNumber"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.customerWalletNumber" />
- <span>{{ scope.row.customerWalletNumber }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="金蝶物料类型名称"
- prop="k3CategoryName"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.k3CategoryName" />
- <span>{{ scope.row.k3CategoryName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="金蝶物料类型编码"
- prop="k3CategoryNumber"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.k3CategoryNumber" />
- <span>{{ scope.row.k3CategoryNumber }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="金蝶物料名称" prop="materialName" min-width="130" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.materialName" />
- <span>{{ scope.row.materialName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="金蝶物料编码"
- prop="materialNumber"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.materialNumber" />
- <span>{{ scope.row.materialNumber }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="金蝶物料旧编码"
- prop="materialOldNumber"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copy-text="scope.row.materialOldNumber" />
- <span>{{ scope.row.materialOldNumber }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="已发押金数量" prop="hasSendQty" min-width="130" show-overflow-tooltip />
- <el-table-column align="left" label="单价" prop="price" min-width="130" show-overflow-tooltip>
- <template slot-scope="scope">
- {{ scope.row.price | numToFixed }}
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="已退押金金额"
- prop="refundDepositAmount"
- min-width="130"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{ scope.row.refundDepositAmount | numToFixed }}
- </template>
- </el-table-column>
- <el-table-column align="left" label="押金金额" prop="depositAmount" min-width="130" show-overflow-tooltip>
- <template slot-scope="scope">
- {{ scope.row.depositAmount | numToFixed }}
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <h3 class="gdzl">工程资料</h3>
- <!-- <el-button :readonly="isDis" class="batchDownload" type="primary" size="small" @click="batchDownloadFn"-->
- <!-- >批量下载</el-button-->
- <!-- >-->
- <el-divider />
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="original"
- 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 align="left" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip />
- <el-table-column align="left" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <el-image
- v-if="checkFileType(scope.row.fileUrl) == 'image'"
- ref="img"
- :src="imageURL + scope.row.fileUrl"
- style="width: 120px; height: 120px"
- fit="cover"
- :preview-src-list="[imageURL + scope.row.fileUrl]"
- />
- <img v-if="checkFileType(scope.row.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
- <img v-if="checkFileType(scope.row.fileUrl) == 'excel'" class="file" src="@/assets/common/excel.png">
- <img v-if="checkFileType(scope.row.fileUrl) == 'ppt'" class="file" src="@/assets/common/ppt.png">
- <img v-if="checkFileType(scope.row.fileUrl) == 'pdf'" class="file" src="@/assets/common/pdf.png">
- <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 />
- <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">
- <div class="flex">
- <div>
- {{ detailList.submitName }}
- </div>
- <el-button :readonly="isDis" type="primary" size="mini" @click="batchDownloadFn">批量下载</el-button>
- </div>
- </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 />
- <!-- 列表 -->
- <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 align="left" label="申请日期" prop="submitTime" min-width="160" show-overflow-tooltip />
- <el-table-column align="left" label="申请说明" prop="applyNote" min-width="160" show-overflow-tooltip />
- <el-table-column align="left" label="验收人" prop="checkName" min-width="160" show-overflow-tooltip />
- <el-table-column align="left" label="受理日期" prop="checkDate" min-width="160" show-overflow-tooltip />
- <el-table-column align="left" label="验收说明" prop="checkNote" min-width="160" show-overflow-tooltip />
- <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'
- "
- />
- <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"
- />
- </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="请输入内容" />
- </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
- v-model="detailList.checkDate"
- readonly
- prefix-icon="''"
- class="selectStyle"
- type="datetime"
- placeholder=""
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- />
- </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 v-model="detailList.checkNote" readonly placeholder="请输入内容" />
- </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="请输入内容" />
- </div>
- </el-col>
- </el-row>
- </div>
- <div>
- <div
- v-if="
- detailList.dataState == 'AMEND' || detailList.dataState == 'WAIT_REVIEW' || detailList.dataState == 'REVIEW'
- "
- >
- <h3 class="gdzl">补充资料</h3>
- <el-divider />
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="amendData"
- 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 align="left" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip />
- <el-table-column align="left" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <el-image
- v-if="checkFileType(scope.row.fileUrl) == 'image'"
- ref="img"
- :src="imageURL + scope.row.fileUrl"
- style="width: 120px; height: 120px"
- fit="cover"
- :preview-src-list="[imageURL + scope.row.fileUrl]"
- />
- <img v-if="checkFileType(scope.row.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
- <img
- v-if="checkFileType(scope.row.fileUrl) == 'excel'"
- class="file"
- src="@/assets/common/excel.png"
- >
- <img v-if="checkFileType(scope.row.fileUrl) == 'ppt'" class="file" src="@/assets/common/ppt.png">
- <img v-if="checkFileType(scope.row.fileUrl) == 'pdf'" class="file" src="@/assets/common/pdf.png">
- <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 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.amendBy }}
- </div>
- </el-col>
- <el-col :xs="12" :sm="12" :lg="12" class="item">
- <div class="label">上传时间</div>
- <div class="value">
- {{ detailList.amendTime }}
- </div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item">
- <div class="label">补充说明</div>
- <div class="value">
- {{ detailList.amendRemark }}
- </div>
- </el-col>
- </el-row>
- </div>
- </div>
- </div>
- <div v-if="(detailList.dataState == 'REVIEW' || detailList.dataState == 'AMEND') && isCustomer">
- <h3 class="gdzl">复核</h3>
- <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.reviewBy }}
- </div>
- </el-col>
- <el-col :xs="12" :sm="12" :lg="12" class="item">
- <div class="label">复核时间</div>
- <div class="value">
- {{ detailList.reviewTime }}
- </div>
- </el-col>
- <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
- <div class="label">复核说明</div>
- <div class="value">
- {{ detailList.reviewRemark }}
- </div>
- </el-col>
- </el-row>
- </div>
- </div>
- </div>
- <br>
- <!-- 按钮 -->
- <!-- detailList.examineStatus != 'OK' || detailList.examineStatus != 'FAIL' -->
- <div class="btn-group clearfix">
- <div class="fl">
- <!-- <el-button type="primary" size="small" @click="handleEdit">保存</el-button> -->
- <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="title == '详情'" type="primary" size="small" @click="saveFn">保存</el-button>
- </div>
- </div>
- <el-dialog title="添加产品" append-to-body :visible.sync="isSetMaterial" width="80%">
- <el-form ref="goodsScreenForm" :model="goodsScreenForm" size="small" label-position="left">
- <el-row :gutter="20">
- <el-col :xs="12" :sm="6" :lg="6">
- <el-form-item prop="proNum">
- <el-input v-model="goodsScreenForm.proNum" placeholder="请输入物料编码" />
- </el-form-item>
- </el-col>
- <el-col :xs="12" :sm="6" :lg="6">
- <el-form-item prop="proName">
- <el-input v-model="goodsScreenForm.proName" placeholder="请输入产品名称" />
- </el-form-item>
- </el-col>
- <el-col :xs="12" :sm="6" :lg="6">
- <el-form-item prop="proModel">
- <el-input v-model="goodsScreenForm.proModel" placeholder="请输入产品型号" />
- </el-form-item>
- </el-col>
- <el-col :xs="12" :sm="6" :lg="6">
- <el-form-item prop="price1" style="display: flex">
- <el-input v-model="goodsScreenForm.price1" placeholder="请输入价格" style="width: 46%" />
- <span> - </span>
- <el-input v-model="goodsScreenForm.price2" placeholder="请输入价格" style="width: 46%" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="24" class="tr">
- <el-form-item label="">
- <el-button size="small" @click="resetGoodsScreenForm">清空</el-button>
- <el-button size="small" type="primary" @click="submitGoodsScreenForm">搜索</el-button>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <div>
- <el-table :data="leftGoodsList" element-loading-text="Loading" border fit stripe height="400">
- <el-table-column align="center" width="55">
- <template slot-scope="scope">
- <el-radio v-model="currentRadio" :label="scope.row.id">{{ '' }}</el-radio>
- </template>
- </el-table-column>
- <el-table-column align="center" label="销售类型" prop="saleName" min-width="100" show-overflow-tooltip />
- <el-table-column align="center" label="物料编码" prop="number" min-width="100" show-overflow-tooltip />
- <el-table-column
- align="center"
- label="产品编码"
- prop="materialOldNumber"
- min-width="100"
- show-overflow-tooltip
- />
- <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip />
- <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip />
- <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip />
- </el-table>
- <div class="pagination clearfix" style="margin-top: 10px">
- <div class="fr">
- <el-pagination
- :current-page="currentPage"
- :page-size="10"
- background
- layout="prev, pager, next"
- :total="listTotal"
- @current-change="handleTableCurrentChange"
- />
- </div>
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="closeDialog">取 消</el-button>
- <el-button type="primary" @click="submitPushGoods">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import imageUpload from '@/components/Common/image-upload.vue'
- import { downloadFiles } from '@/utils/util'
- import { mapGetters } from 'vuex'
- import {
- getDepositManageDetail,
- getDepositManageExamine,
- editManageExamine,
- getDepositManageEdit
- } from '@/api/engin_deposit/refund_list'
- import { getRetailProductList } from '@/api/supply/engin'
- import { computeDiff } from '@/api/engin_deposit.js'
- export default {
- components: { imageUpload },
- props: {
- detailId: {
- type: String,
- required: true
- }
- },
- computed: {
- ...mapGetters(['name']),
- comTotal() {
- return (qty, price) => {
- return Number(qty) * Number(price)
- }
- },
- setColour() {
- return (row, oldValue, newValue, mostNewValue) => {
- let myCalss = ''
- if (row[newValue] !== row[oldValue]) {
- myCalss = 'input'
- }
- if (row[mostNewValue] !== row[newValue]) {
- myCalss = 'input2'
- }
- console.log(row, 9999, myCalss)
- return myCalss
- }
- }
- },
- data() {
- return {
- isCustomer: JSON.parse(localStorage.getItem('supply_user')).isCustomer,
- isDis: true,
- imageURL: this.$imageUrl,
- title: '审批',
- listLoading: false, // 列表加载loading
- dataList: [], // 列表数据
- detailList: {},
- checkBy: '',
- checkDate: '',
- isRefundDeposit: true,
- baseURL: '',
- fileList: [],
- checkNote: '',
- restrictFilename: ['结算单', '合同', '明细表', '审核表', '收据', '发票', '照片', '相片'],
- datTate: new Date(),
- amendData: [],
- original: [],
- goodsScreenForm: {
- proNum: '',
- proName: '',
- proModel: '',
- price1: '',
- price2: ''
- },
- isSetMaterial: false,
- currentRadio: '',
- currentId: '',
- leftGoodsList: [],
- listTotal: 0,
- currentPage: 1
- }
- },
- watch: {
- 'detailList.items': {
- handler(newValue, oldValue) {
- if (newValue && newValue.length) {
- newValue.forEach((item, index) => {
- item.contractAmount = Number(item.contractQty) * Number(item.contractPrice)
- })
- }
- this.detailList.items = newValue
- },
- immediate: true,
- deep: true
- }
- },
- 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 ''
- }
- },
- // 计算收差金额
- setDataQty(e, row) {
- // eslint-disable-next-line no-return-assign
- if (!row.dataQty) return (row.dataQty = 0)
- row.saleTypeId = this.detailList.saleTypeId
- computeDiff(row).then(res => {
- row.diffAmount = res.data.diffAmount
- row.diffPolicyPrice = res.data.diffPolicyPrice
- // this.$successMsg('已计算收差金额')
- })
- },
- // 审批驳回
- async rejectFn() {
- this.$confirm('此操作将驳回订单, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- if (this.isCustomer) {
- for (let i = 0; i < this.detailList.items.length; i++) {
- this.detailList.items[i].contractAmount =
- this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
- if (this.detailList.items[i].contractAmount == null) {
- return this.$errorMsg('合同单价、合同数量不能为空')
- }
- }
- }
- // this.detailList.items.map(e=>{
- // e.contractAmount = e.contractQty * e.contractPrice
- // if (!e.contractAmount) {
- // return this.$errorMsg('合同单价、合同数量不能为空')
- // }
- // })
- const data = {
- ...this.detailList,
- checkBy: this.checkBy,
- // checkDate: this.checkDate,
- isRefundDeposit: this.isRefundDeposit,
- checkNote: this.checkNote,
- examineResult: 0
- }
- if (!this.detailList.items.every(e => e.dataQty)) {
- this.$confirm(`上交资料数量为0,是否继续提交`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- 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(() => {
- })
- } else {
- 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
- }
- if (this.isCustomer) {
- for (let i = 0; i < this.detailList.items.length; i++) {
- this.detailList.items[i].contractAmount =
- this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
- if (this.detailList.items[i].contractAmount == null) {
- return this.$errorMsg('合同单价、合同数量不能为空')
- }
- }
- }
- const data = {
- ...this.detailList,
- checkBy: this.checkBy,
- // checkDate: this.checkDate,
- isRefundDeposit: this.isRefundDeposit,
- checkNote: this.checkNote,
- examineResult: 1
- }
- if (!this.detailList.items.every(e => e.dataQty)) {
- this.$confirm(`上交资料数量为0,是否继续提交`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- getDepositManageExamine(data)
- .then(res => {
- if (!res.data) {
- this.goBack()
- this.$emit('updateList')
- } else {
- this.$confirm('审批成功!是否跳转下一张待审批订单?', '提示', {
- confirmButtonText: '跳转',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- this.$successMsg('进入下一张待审批订单')
- this.amendData = res.data.dataList.filter(k => k.dataPosition == 'AMEND')
- this.original = res.data.dataList.filter(k => k.dataPosition != 'AMEND')
- this.detailList = res.data
- })
- .catch(() => {
- this.goBack()
- this.$emit('updateList')
- })
- }
- })
- .finally(res => {
- })
- })
- .catch(() => {
- })
- } else {
- getDepositManageExamine(data)
- .then(res => {
- if (!res.data) {
- this.goBack()
- this.$emit('updateList')
- } else {
- this.$confirm('审批成功!是否跳转下一张待审批订单?', '提示', {
- confirmButtonText: '跳转',
- cancelButtonText: '取消',
- type: 'warning'
- })
- .then(() => {
- this.$successMsg('进入下一张待审批订单')
- this.amendData = res.data.dataList.filter(k => k.dataPosition == 'AMEND')
- this.original = res.data.dataList.filter(k => k.dataPosition != 'AMEND')
- 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");
- },
- handleEdit() {
- const data = {
- ...this.detailList,
- checkBy: this.checkBy,
- // checkDate: this.checkDate,
- isRefundDeposit: this.isRefundDeposit,
- checkNote: this.checkNote,
- examineResult: 1
- }
- editManageExamine(data).then(res => {
- this.$successMsg('编辑成功')
- 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
- }
- const 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',
- 'comTotal',
- 'contractAmount'
- ]
- })
- res.data.collectList.forEach(item => {
- // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
- item.sums1 = ['orderHasSendQty', 'dataQty', 'hasSendQty']
- item.sums2 = ['price', 'refundDepositAmount', 'depositAmount']
- })
- if (res.data.examineStatus == 'SAVE' || res.data.examineStatus == 'OK' || res.data.examineStatus == 'FAIL') {
- this.title = '详情'
- }
- res.data.items = arr
- this.amendData = res.data.dataList.filter(k => k.dataPosition == 'AMEND')
- this.original = res.data.dataList.filter(k => k.dataPosition != 'AMEND')
- res.data.realUseUnit = res.data.realUseUnit || res.data.refUseUnit
- res.data.realInstallAddress = res.data.realInstallAddress || res.data.refInstallAddress
- this.detailList = res.data
- },
- goBack() {
- this.$emit('setShowPage', 0)
- },
- getRealMaterData(id) {
- this.currentId = id
- this.isSetMaterial = true
- this.getGoodsList()
- },
- // 获取商品列表
- getGoodsList() {
- getRetailProductList({
- pageNum: this.currentPage,
- pageSize: 10,
- saleId: this.detailList.saleTypeId,
- billType: 'HOME',
- materialCode: this.goodsScreenForm.proNum,
- materialName: this.goodsScreenForm.proName,
- specification: this.goodsScreenForm.proModel,
- price1: this.goodsScreenForm.price1,
- price2: this.goodsScreenForm.price2,
- refEnginRecordNo: '',
- customerId: ''
- }).then(res => {
- this.leftGoodsList = res.data.records
- this.listTotal = res.data.total
- })
- },
- submitPushGoods() {
- // realMaterialId
- // 实装金蝶物料id
- // realMaterialName
- // 实装金蝶物料名称
- // realMaterialNumber
- // 实装金蝶物料编码
- // realMaterialOldNumber
- // 实装金蝶物料旧编码
- // realSpecification
- // 实装规格型号
- const currentData = this.leftGoodsList.find(e => e.id === this.currentRadio)
- this.$set(this.detailList.items[this.currentId], 'depositMaterialId', currentData.materialId)
- this.$set(this.detailList.items[this.currentId], 'depositMaterialName', currentData.materialName)
- this.$set(this.detailList.items[this.currentId], 'depositMaterialNumber', currentData.materialNumber)
- this.$set(this.detailList.items[this.currentId], 'depositMaterialOldNumber', currentData.materialOldNumber)
- this.$set(this.detailList.items[this.currentId], 'depositSpecification', currentData.specification)
- this.isSetMaterial = false
- },
- // 关闭 弹窗
- closeDialog() {
- this.isSetMaterial = false
- },
- // 更改列表当前页
- handleTableCurrentChange(val) {
- this.currentPage = val
- this.getGoodsList()
- },
- // 重置筛选表单
- resetGoodsScreenForm() {
- this.$refs.goodsScreenForm.resetFields()
- this.currentRadio = ''
- this.currentPage = 1
- this.getGoodsList()
- },
- // 提交筛选表单
- submitGoodsScreenForm() {
- this.currentPage = 1
- this.getGoodsList()
- },
- addBlankLine() {
- this.detailList.items.push({
- id: null,
- parentId: this.detailId,
- refEnginRecordNo: this.detailList.refEnginRecordNo,
- specialItemNo: null,
- specialItemNoNumber: null,
- factoryNo: null,
- factoryNoNumber: null,
- specialNo: null,
- specialNoNumber: null,
- billNo: null,
- billNoNumber: null,
- materialId: null,
- materialName: null,
- materialNumber: null,
- materialOldNumber: null,
- specification: null,
- unit: null,
- k3CategoryId: null,
- k3CategoryNumber: null,
- k3CategoryName: null,
- enginPrice: null,
- enginTotality: null,
- enginNum: null,
- price: null,
- qty: null,
- totalAmount: null,
- customerWalletId: null,
- customerWalletNumber: null,
- customerWalletName: null,
- tax: null,
- remark: null,
- hasSendQty: null,
- depositAmount: null,
- dataQty: null,
- diffPolicyPrice: null,
- diffPrice: null,
- diffAmount: null,
- realMaterialId: null,
- realMaterialName: null,
- realMaterialNumber: null,
- realMaterialOldNumber: null,
- realSpecification: null,
- contractQty: null,
- contractPrice: null,
- contractAmount: null,
- mailFactoryDate: null,
- mailFactoryYear: null,
- confirmDate: null,
- settlementNo: null,
- settlementDate: null,
- inFactoryDate: null,
- inFactoryType: null,
- salesQty: null,
- salesAmount: null,
- createBy: null,
- createTime: null,
- depositMaterialId: null,
- depositMaterialName: null,
- depositMaterialNumber: null,
- depositMaterialOldNumber: null,
- depositSpecification: null,
- orderHasSendQty: null,
- saleTypeId: null,
- sums1: [],
- sums2: [],
- isCustom: true,
- isSource: false
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- ::v-deep .input .el-input__inner,
- .input {
- color: blue !important;
- }
- ::v-deep .input2 .el-input__inner,
- .input2 {
- color: #f00 !important;
- }
- .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%;
- }
- .flex {
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- </style>
|