12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850 |
- <template>
- <div class="BidSystemDeepeningOrderDetail">
- <Toptitle title="深化单详情">
- <slot name="titleButton">
- <!-- <Button
- @click="handleFinish()"
- type="primary"
- style="margin-right: 10px"
- >完成</Button
- > -->
- <Upload
- style="display: inline"
- name="your_file"
- :show-upload-list="false"
- :headers="headers"
- :on-error="uploadError"
- :on-success="uploadSuccess"
- :action="$store.state.ip + '/api/order_area_product_import'"
- >
- <Button type="primary" style="margin-right: 10px">导入</Button>
- </Upload>
- <Button
- @click="showSupModal = true"
- type="primary"
- style="margin-right: 10px"
- >项目辅料</Button
- >
- <Button
- @click="handleOpenModal"
- type="primary"
- style="margin-right: 10px"
- >批量下拆单</Button
- >
- <Button
- @click="goback()"
- type="primary"
- ghost
- style="margin-right: 10px"
- >返回</Button
- >
- </slot>
- </Toptitle>
- <Tabs value="name1" @on-click="handleCurTabChange">
- <TabPane
- label="块状形式"
- name="name1"
- style="overflow: hidden; overflow-y: auto"
- >
- <div class="top_search_name1">
- <div>
- <span>订单号:</span
- ><span style="font-weight:bold">{{ formData.order_no }}</span>
- </div>
- <div>
- <span>项目名称:</span
- ><span style="font-weight:bold">{{
- formData.residential_name
- }}</span>
- </div>
- <div>
- <span>客户姓名:</span
- ><span style="font-weight:bold">{{ formData.client_name }}</span>
- </div>
- <div>
- <span>紧急程度:</span
- ><span
- v-for="_item in warningList"
- :key="_item.id"
- v-show="_item.id == formData.warning_state"
- :style="{ color: _item.color }"
- style="font-weight:bold"
- >{{ _item.title }}</span
- >
- </div>
- <div>
- <span>收款:</span
- ><span style="font-weight:bold">{{
- formData.pay_state == 1 ? "已收款" : "未收款"
- }}</span>
- </div>
- <div>
- <span>详细地址:</span
- ><span style="font-weight:bold">{{ formData.address }}</span>
- </div>
- <div>
- <span>手机号:</span
- ><span style="font-weight:bold">{{ formData.mobile }}</span>
- </div>
- <div>
- <span>开始日期:</span
- ><span style="font-weight:bold">{{
- func.replaceDateNoHMS(formData.start_time)
- }}</span>
- </div>
- <div>
- <span>交付日期:</span
- ><span style="font-weight:bold">{{
- func.replaceDateNoHMS(formData.end_time)
- }}</span>
- </div>
- <div>
- <span>业务员:</span>
- <span
- v-for="item in salesmanList"
- :key="item.id"
- v-show="formData.salesman == item.id"
- style="font-weight:bold"
- >{{ item.nickname }}</span
- >
- </div>
- <div>
- <span>订单类型:</span
- ><span style="font-weight:bold">{{
- formData.renovation_type == 1 ? "工装" : "家装"
- }}</span>
- </div>
- <div v-for="item in formData.special" :key="item.id">
- <span>{{ item.key + ":" }}</span>
- <span style="font-weight:bold">{{ item.value }}</span>
- </div>
- <div>
- <span>备注:</span
- ><span style="font-weight:bold">{{ formData.remark }}</span>
- </div>
- </div>
- <div
- class="table-data"
- v-for="(item, index) in formData.list"
- :key="item.id"
- >
- <div class="addBtn">
- <Button
- @click="handleShowCurrencyArea(item, index)"
- ghost
- size="small"
- v-show="type != 1 && item.id && !item.isCurrencyArea"
- type="primary"
- >展示产品
- </Button>
- <Button
- @click="handleOpenModal"
- ghost
- size="small"
- v-show="!(type != 1 && item.id && !item.isCurrencyArea)"
- type="primary"
- >下拆单
- </Button>
- </div>
- <div class="addAreaForm">
- <div class="addFormInfo">
- <div><span>区域编码:</span>{{ item.num }}</div>
- <div><span>区域名称:</span>{{ item.title }}</div>
- <div><span>单位:</span>{{ item.unit }}</div>
- <div><span>工程量:</span>{{ item.quantity }}</div>
- <div><span>户型:</span>{{ item.house_type }}</div>
- <div v-for="ele in item.special" :key="ele.id">
- <span>{{ ele.key }}:</span>{{ ele.value }}
- </div>
- <div><span>备注:</span>{{ item.remark }}</div>
- </div>
- <div class="addAreaTable">
- <Table
- :columns="tableColumns"
- v-show="item.product && item.product.length > 0"
- max-height="500"
- :data="item.product"
- @on-selection-change="handleSelection"
- border
- >
- <template slot="urlSet" slot-scope="{ row }">
- <span
- class="urlSetStyle"
- v-for="(item, index) in row.url"
- :key="index"
- >
- <img
- :src="$store.state.ip + item"
- @click="(e) => handleImgClick(e, row)"
- alt=""
- />
- </span>
- </template>
- <template slot="statusSlot" slot-scope="{ row }">
- {{ row.status == 1 ? "已完成" : "未完成" }}
- </template>
- <template slot="set" slot-scope="{ row, index }">
- <a
- style="margin: 0 5px"
- @click="handleSet(row, index, 2, item)"
- >详情</a
- >
- </template>
- </Table>
- </div>
- </div>
- </div>
- </TabPane>
- <TabPane
- label="列表形式"
- name="name2"
- style="overflow: hidden; overflow-y: auto"
- >
- <div class="top_search">
- <div class="top_search_content">
- <Form
- :model="searchData"
- :label-width="100"
- class="top_search_form"
- >
- <FormItem label="区域编码:">
- <Select
- filterable
- clearable
- v-model="searchData.area_no"
- size="small"
- style="width:120px"
- >
- <Option
- v-for="(_item, _index) in area_no_list"
- :key="_index"
- :label="_item"
- :value="_item"
- ></Option>
- </Select>
- </FormItem>
- <FormItem label="区域名称:">
- <Select
- filterable
- clearable
- v-model="searchData.area_title"
- size="small"
- style="width:120px"
- >
- <Option
- v-for="(_item, _index) in area_title_list"
- :key="_index"
- :label="_item"
- :value="_item"
- ></Option>
- </Select>
- </FormItem>
- <FormItem label="产品名称:">
- <Select
- filterable
- clearable
- v-model="searchData.product_title"
- size="small"
- style="width:120px"
- >
- <Option
- v-for="(_item, _index) in product_title_list"
- :key="_index"
- :label="_item"
- :value="_item"
- ></Option>
- </Select>
- </FormItem>
- <FormItem label="图号:">
- <Select
- filterable
- clearable
- v-model="searchData.url_number"
- size="small"
- style="width:120px"
- >
- <Option
- v-for="(_item, _index) in url_number_list"
- :key="_index"
- :label="_item"
- :value="_item"
- ></Option>
- </Select>
- </FormItem>
- <FormItem label="是否完成:">
- <Select
- clearable
- v-model="searchData.status"
- size="small"
- style="width:120px"
- >
- <Option label="是" :value="1"></Option>
- <Option label="否" :value="0"></Option>
- </Select>
- </FormItem>
- <FormItem label="是否下拆单:">
- <Select
- clearable
- v-model="searchData.sub_state"
- size="small"
- style="width:120px"
- >
- <Option label="是" :value="2"></Option>
- <Option label="否" :value="1"></Option>
- </Select>
- </FormItem>
- <FormItem>
- <Button @click="getListData" type="primary" size="small"
- >搜索</Button
- >
- </FormItem>
- </Form>
- </div>
- <Form :model="formData" :label-width="100" class="top_search_form">
- <FormItem label="订单号:">
- {{ formData.order_no }}
- </FormItem>
- <FormItem label="项目名称:">
- {{ formData.residential_name }}
- </FormItem>
- <FormItem label="客户姓名:">
- {{ formData.client_name }}
- </FormItem>
- <FormItem label="紧急程度:">
- <span
- v-for="_item in warningList"
- :key="_item.id"
- v-show="_item.id == formData.warning_state"
- :style="{ color: _item.color }"
- >{{ _item.title }}
- </span>
- </FormItem>
- <FormItem label="项目定金:">
- {{ formData.front_money }}
- <!-- <RadioGroup v-model="formData.pay_state"
- size="small">
- <Radio :label=0
- :disabled="isChecked">未收款</Radio>
- <Radio :label=1
- :disabled="isChecked">已收款</Radio>
- </RadioGroup> -->
- </FormItem>
- <FormItem label="详细地址:">
- {{ formData.address }}
- </FormItem>
- <FormItem label="手机号:">
- {{ formData.mobile }}
- </FormItem>
- <FormItem label="开始日期:">
- {{
- formData.start_time
- ? func.replaceDateNoHMS(formData.start_time)
- : ""
- }}
- </FormItem>
- <FormItem label="结束日期:">
- {{
- formData.end_time
- ? func.replaceDateNoHMS(formData.end_time)
- : ""
- }}
- </FormItem>
- <FormItem label="业务员:">
- <span
- v-for="_item in salesmanList"
- :key="_item.id"
- v-show="_item.id == formData.salesman"
- :style="{ color: _item.color }"
- >{{ _item.nickname }}
- </span>
- </FormItem>
- <!-- <FormItem label="订单类型:">
- <Select v-model="formData.type"
- :disabled="isChecked"
- size="small"
- style="width:200px">
- <Option label='工装'
- :value=1></Option>
- <Option label='家装'
- :value=2></Option>
- </Select>
- </FormItem> -->
- <FormItem
- v-for="item in formData.special"
- :key="item.id"
- :label="item.key + ':'"
- >
- {{ item.value }}
- </FormItem>
- <FormItem label="备注:">
- {{ formData.remark }}
- </FormItem>
- </Form>
- </div>
- <div>
- <Table
- :columns="listTableColumns"
- :data="listTableData"
- @on-selection-change="handleSelection"
- :max-height="500"
- border
- >
- <template slot="statusSlot" slot-scope="{ row }">
- {{ row.status == 1 ? "已完成" : "未完成" }}
- </template>
- <template slot="set" slot-scope="{ row, index }">
- <a
- style="margin: 0 5px"
- @click="handleSet(row, index, 4, formData)"
- >详情</a
- >
- </template>
- </Table>
- </div>
- <div ref="footercenter" class="footer-center">
- <Page
- :total="total"
- :current.sync="page_index"
- :show-total="true"
- :page-size="page_size"
- :show-sizer="true"
- :show-elevator="true"
- @on-change="changePage"
- @on-page-size-change="changeSize"
- >
- </Page>
- </div>
- </TabPane>
- </Tabs>
- <!-- 项目辅料弹窗 -->
- <Modal title="项目辅料" v-model="showSupModal" :width="400">
- <div>
- <div class="supModalBtn">
- <!-- <Button @click="handleAddSup" type="primary">新增</Button> -->
- </div>
- <Table :columns="supTableColumns" :data="supTableData" border>
- <template slot="combine" slot-scope="{ index }">
- <span
- v-for="_item in combineList"
- :key="_item.id"
- v-show="_item.id == supTableData[index].id"
- >{{ _item.title }}</span
- >
- <!-- <Select
- v-model="supTableData[index].id"
- disabled
- size="small"
- >
- <Option
- v-for="item in combineList"
- :value="item.id"
- :key="item.id"
- :label="item.title"
- ></Option>
- </Select> -->
- </template>
- <!-- <template slot="supSet" slot-scope="{ row, index }">
- <a
- style="margin: 0 5px; color: red"
- @click="handleSupSet(row, index)"
- >删除</a
- >
- </template> -->
- </Table>
- </div>
- <div class="modal-footer" slot="footer">
- <!-- <Button @click="showSupModal = false">取消</Button> -->
- <Button type="primary" @click="showSupModal = false">确认</Button>
- </div>
- </Modal>
- <!-- 新增产品弹窗 -->
- <Modal
- title="新增产品"
- v-model="showPDTModal"
- :mask-closable="false"
- class="addPDTFormModal"
- :width="1000"
- >
- <div
- class="addPDTForm"
- v-for="(item, index) in tempPDTList"
- :key="item.id"
- >
- <Form :label-width="100" :model="item">
- <FormItem label="产品名称:">
- <Input
- type="text"
- size="small"
- placeholder="请输入"
- v-model="item.title"
- style="width: 120px"
- />
- </FormItem>
- <FormItem label="数量">
- <Input
- type="text"
- size="small"
- v-model="item.num"
- placeholder="请输入"
- style="width: 120px"
- />
- </FormItem>
- <FormItem label="图号:">
- <Input
- type="text"
- size="small"
- placeholder="请输入"
- v-model="item.url_number"
- style="width: 120px"
- />
- </FormItem>
- <FormItem label="图纸">
- <div class="product-img">
- <div class="product-add">
- <div
- class="items"
- v-for="(_item, _index) of item.url"
- :key="_index"
- >
- <img
- @click="looks(_item)"
- :src="$store.state.ip + _item"
- alt=""
- />
- <Icon
- size="20"
- @click="delItems(_index, item.url)"
- class="delete-img"
- type="ios-close-circle"
- />
- </div>
- <div class="add-items">
- <div class="_item">
- <Icon size="50" type="ios-add" />
- </div>
- <input
- @change="changeIpt($event, item.url)"
- type="file"
- class="ipt"
- />
- </div>
- </div>
- </div>
- </FormItem>
- <FormItem label="产品分类">
- <Select
- v-model="item.type_id"
- placeholder="请选择"
- style="width: 120px"
- label-in-value
- @on-change="(e) => hanndleAddPDTTypeChange(item, e)"
- size="small"
- >
- <Option
- v-for="item in PDTTypeList"
- :value="item.value"
- :key="item.value"
- >{{ item.label }}</Option
- >
- </Select>
- </FormItem>
- <div
- style="display: contents"
- v-for="el in item.tempPDTTypeList"
- :key="el"
- >
- <FormItem
- :label="_item.title"
- v-for="_item in item.tempMeasureList"
- v-show="el == _item.id"
- :key="_item.id"
- >
- <Input
- type="text"
- size="small"
- v-model="_item.value"
- placeholder="请输入"
- style="width: 120px"
- />
- </FormItem>
- </div>
- <FormItem label="价格:">
- <Input
- type="text"
- size="small"
- v-model="item.price"
- placeholder="请输入备注"
- style="width: 120px"
- />
- </FormItem>
- <FormItem label="备注:">
- <Input
- type="text"
- size="small"
- v-model="item.remark"
- placeholder="请输入备注"
- style="width: 120px"
- />
- </FormItem>
- <FormItem label="工艺属性">
- <Button
- @click="handleProcessAdd(item, index)"
- size="small"
- type="text"
- style="color: #57a3f3"
- >添加属性</Button
- >
- </FormItem>
- </Form>
- <div class="addPDTProcess">
- <div
- v-for="(_item, _index) in item.addPDTProcessAttrList"
- :key="_item.id"
- >
- <span>属性{{ _index + 1 }}</span>
- <Select
- :value="_item.id"
- size="small"
- @on-change="
- (value) => handleAddPDTAttrChange(_item, _index, value)
- "
- style="width: 80px"
- >
- <Option
- v-for="__item in PDTProcessAttrList"
- :key="__item.id"
- :value="__item.id"
- :label="__item.title"
- >
- </Option>
- </Select>
- <Select
- :value="_item.type_id"
- filterable
- clearable
- label-in-value
- @on-change="
- (value) => handleAddPDTAttrDetailChange(_item, _index, value)
- "
- size="small"
- style="width: 80px"
- >
- <Option
- v-for="__item in _item.PDTProcessAttrDetailList"
- :key="__item.id"
- :value="__item.id"
- :label="__item.title"
- />
- </Select>
- <div class="dele_icon">
- <Icon
- v-show="item.addPDTProcessAttrList.length != 1"
- type="ios-trash"
- @click="
- handleAddPDTDetailDele(item.addPDTProcessAttrList, _index)
- "
- />
- </div>
- </div>
- </div>
- <div class="addPDTBtn">
- <Button
- type="primary"
- v-show="false"
- style="margin-right: 10px"
- @click="handleAddPDTCopy(item, index)"
- >复制</Button
- >
- <Button
- type="primary"
- v-show="false"
- style="margin-right: 10px"
- @click="handleAddPDTAdd(index)"
- >添加</Button
- >
- <Button
- type="error"
- v-show="false"
- style="margin-right: 10px"
- @click="handleAddPDTDele(index)"
- >删除</Button
- >
- </div>
- </div>
- <div class="modal-footer" slot="footer">
- <Button @click="showPDTModal = false">取消</Button>
- <Button type="primary" @click="handleAddPDTConfirm">确认</Button>
- </div>
- </Modal>
- <!-- 批量下拆单 -->
- <Modal
- v-model="processModal"
- title="下拆单"
- @on-ok="handleProcess"
- @on-cancel="processModal = false"
- >
- <div>
- <div class="process_modal">
- <span>拆单人员:</span>
- <Select v-model="process_man" style="width: 150px">
- <Option
- v-for="item in processManList"
- :key="item.id"
- :label="item.nickname"
- :value="item.id"
- ></Option>
- </Select>
- </div>
- <div class="process_modal">
- <span>选择时间:</span>
- <DatePicker
- type="date"
- v-model="process_start_time"
- placeholder="年/月/日"
- style="width: 150px"
- ></DatePicker>
- 至
- <DatePicker
- type="date"
- v-model="process_end_time"
- placeholder="年/月/日"
- style="width: 150px"
- ></DatePicker>
- </div>
- </div>
- </Modal>
- </div>
- </template>
- <script>
- // 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
- // 例如:import 《组件名称》 from '《组件路径》';
- import UploadImg from "./uploadImg/index.vue";
- export default {
- name: "",
- components: {
- UploadImg,
- },
- props: {},
- // import引入的组件需要注入到对象中才能使用
- data() {
- // 这里存放数据
- return {
- headers: { Authorization: localStorage.getItem("token") },
- salesmanList: [],
- PDTTypeList: [],
- combineList: [],
- tempPDTList: [
- {
- url: [],
- process_property: "",
- process_properties: [],
- tempPDTTypeList: [],
- measure: "",
- //新增产品工艺属性列表
- addPDTProcessAttrList: [
- {
- showValue: "",
- showId: "",
- PDTProcessAttrDetailList: [],
- },
- ],
- },
- ],
- supTableData: [],
- showPDTModal: false,
- showSupModal: false,
- formData: {
- order_no: "",
- residential_name: "",
- client_name: "",
- address: "",
- mobile: "",
- pay_state: "",
- warning_state: "",
- salesman: "",
- remark: "",
- start_time: "",
- end_time: "",
- type: "",
- //区域列表
- list: [
- {
- areaIndex: 1,
- num: "",
- title: "",
- unit: "",
- quantity: "",
- house_type: "",
- remark: "",
- order_no: "",
- product: [
- // {
- // title:'',
- // num:'',
- // measure:'',
- // process_property:'',
- // url:'',
- // url_number:'',
- // remark:''
- // }
- ],
- },
- // {
- // areaIndex: 2,
- // num: '',
- // title: '',
- // unit: '',
- // quantity: '',
- // house_type: '',
- // remark: '',
- // order_no: '',
- // product: []
- // },
- ],
- },
- tableColumns: [
- { type: "selection", align: "center", minWidth: 60 },
- { title: "序号", key: "index", align: "center", minWidth: 80 },
- { title: "产品名称", key: "title", align: "center", minWidth: 140 },
- { title: "数量", key: "num", align: "center", minWidth: 80 },
- { title: "价格", key: "price", align: "center", minWidth: 80 },
- { title: "规格", key: "measure", align: "center", minWidth: 140 },
- {
- title: "工艺属性",
- key: "process_property",
- align: "center",
- minWidth: 140,
- tooltip: true,
- },
- {
- title: "图纸",
- align: "center",
- key: "url",
- minWidth: 80,
- slot: "urlSet",
- },
- // { title: "左右式", key: "url_number", align: "center", minWidth: 90 },
- { title: "图号", key: "url_number", align: "center", minWidth: 90 },
- // { title: '型号', key: 'model', align: 'center', minWidth: 80 },
- { title: "备注", key: "remark", align: "center", minWidth: 80 },
- {
- title: "状态",
- key: "status",
- align: "center",
- minWidth: 80,
- slot: "statusSlot",
- },
- {
- title: "操作",
- key: "remark",
- align: "center",
- width: "120",
- slot: "set",
- }
- ],
- productDetail: {},
- supTableColumns: [
- { title: "序号", type: "index", align: "center" },
- {
- title: "辅料名称",
- key: "title",
- align: "center",
- slot: "combine",
- minWidth: 60,
- },
- { title: "操作", key: "set", align: "center", slot: "supSet" },
- ],
- listTableColumns: [
- { type: "selection", align: "center", minWidth: 100 },
- { title: "区域编码", key: "area_num", align: "center", minWidth: 100 },
- {
- title: "区域名称",
- key: "area_title",
- align: "center",
- minWidth: 100,
- },
- { title: "单位", key: "area_unit", align: "center", minWidth: 100 },
- {
- title: "工程量",
- key: "area_quantity",
- align: "center",
- minWidth: 100,
- },
- { title: "户型", key: "house_type", align: "center", minWidth: 100 },
- { title: "备注", key: "remark", align: "center", minWidth: 100 },
- { title: "产品名称", key: "title", align: "center", minWidth: 100 },
- { title: "数量", key: "num", align: "center", minWidth: 100 },
- { title: "价格", key: "price", align: "center", minWidth: 100 },
- { title: "规格", key: "measure", align: "center", minWidth: 100 },
- {
- title: "工艺属性",
- key: "process_property",
- align: "center",
- minWidth: 100,
- },
- {
- title: "图纸",
- key: "url",
- align: "center",
- minWidth: 100,
- render: (h, params) => {
- const { row } = params;
- let url = row.url ? row.url : [];
- return h("img", {
- attrs: {
- src: this.$store.state.ip + url[0],
- style:
- "max-width:50px;max-height:50px;position:relative;top:3px;",
- },
- on: {
- click: (e) => {
- // this.axios('/api/orders_img', { params: { id: row.id, type: 1 } }).then(res => {
- // row.imgs = res.data
- let list = [];
- row.url.forEach((el) => {
- list.push({ img_url: el });
- });
- this.$previewImg({
- list,
- baseUrl: this.$store.state.ip,
- baseImgField: "img_url",
- baseTitleField: "",
- });
- // })
- },
- },
- });
- },
- },
- {
- title: "左右式",
- key: "left_right_mode",
- align: "center",
- minWidth: 100,
- render: (h, params) => {
- return h(
- "span",
- {},
- params.row.left_right_mode == 1
- ? "左式"
- : params.row.left_right_mode == 2
- ? "右式"
- : "无"
- );
- },
- },
- { title: "图号", key: "url_number", align: "center", minWidth: 100 },
- { title: "备注", key: "remark", align: "center", minWidth: 100 },
- {
- title: "状态",
- key: "status",
- align: "center",
- minWidth: 80,
- slot: "statusSlot",
- },
- {
- title: "操作",
- key: "remark",
- align: "center",
- width: "120",
- slot: "set",
- },
- ],
- listTableData: [],
- //是否查看
- isChecked: false,
- PDTProcessAttrList: [],
- // 测量字段列表
- measureList: [],
- order_area_id: "",
- uploadData: {
- order_no: this.$route.query.order_no,
- title: "",
- },
- contactSpecValueList: [{ key: "", value: "" }],
- areaSpecValueList: [{ key: "", value: "" }],
- productSpecValueList: [{ key: "", value: "" }],
- processManList: [],
- process_man: "",
- process_start_time: "",
- process_end_time: "",
- warningList: [],
- selected: [],
- processModal: false,
- currencyTab: "",
- type: this.$route.query.type,
- page_index: 1,
- page_size: 10,
- total: 0,
- searchData: {},
- area_no_list: [],
- area_title_list: [],
- product_title_list: [],
- url_number_list: [],
- oa_id: this.$route.query.oa_id || "",
- };
- },
- // 生命周期 - 创建完成(可以访问当前this实例)
- created() {
- //2编辑 3详情 4变更 5变更记录
- this.$route.query.type == 3 ? (this.isChecked = true) : "";
- this.$route.query.order_no
- ? (this.formData.order_no = this.$route.query.order_no)
- : "";
- // 获取工艺属性
- this.axios("/api/basics_properties_index").then((res) => {
- this.PDTProcessAttrList = res.data.data;
- });
- // 获取组合管理
- this.axios("/api/material_combination").then((res) => {
- this.combineList = res.data.data;
- });
- // 获取紧急程度
- this.axios.get("/api/warning_list").then((res) => {
- this.warningList = res.data.data;
- });
- },
- // 生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {
- this.axios("/api/user").then(
- (res) => (
- (this.salesmanList = res.data.data),
- (this.processManList = res.data.data)
- )
- );
- this.axios("/api/parts_product_list").then((res) => {
- this.PDTTypeList = res.data;
- this.PDTTypeList.forEach((el) => {
- el.value = el.id;
- el.label = el.title;
- });
- });
- //获取基础测量字段列表
- this.axios("/api/basics_measure_index").then((res) => {
- this.measureList = res.data.data;
- });
- this.initData(this.formData.order_no, this.oa_id);
- },
- methods: {
- async handleBeforeUpload(row) {
- // row.name
- console.log("row :>> ", row);
- this.uploadData.title = row.name.substring(0, row.name.indexOf("."));
- return true;
- },
- onProgress(e) {
- console.log(e);
- },
- initData(order_no, oa_id) {
- this.axios({
- method: "get",
- url: "/api/order_area_list",
- params: {
- order_no,
- type: 2,
- oa_id,
- },
- }).then((res) => {
- this.formData = res.data;
- this.supTableData = res.data.ext;
- // 产品特殊字段→ 弹窗窗口,table表头
- let arr = [];
- res.data.head[3] &&
- res.data.head[3].length > 0 &&
- res.data.head[3].forEach((item) => {
- arr.push({
- title: item.key,
- key: item.key,
- align: "center",
- minWidth: 80,
- });
- });
- this.tableColumns = [
- { type: "selection", align: "center", minWidth: 60 },
- { title: "序号", key: "index", align: "center", minWidth: 80 },
- {
- title: "产品名称",
- key: "title",
- align: "center",
- tooltip: true,
- minWidth: 100,
- },
- { title: "数量", key: "num", align: "center", minWidth: 80 },
- { title: "价格", key: "price", align: "center", minWidth: 80 },
- {
- title: "规格",
- key: "measure",
- align: "center",
- tooltip: true,
- minWidth: 140,
- },
- {
- title: "工艺属性",
- key: "process_property",
- align: "center",
- tooltip: true,
- minWidth: 120,
- },
- {
- title: "图纸",
- align: "center",
- key: "url",
- minWidth: 100,
- render: (h, params) => {
- const { row } = params;
- let url = row.url ? row.url : [];
- return h("img", {
- attrs: {
- src: this.$store.state.ip + url[0],
- style:
- "max-width:50px;max-height:50px;position:relative;top:3px;",
- },
- on: {
- click: (e) => {
- // this.axios('/api/orders_img', { params: { id: row.id, type: 1 } }).then(res => {
- // row.imgs = res.data
- let list = [];
- row.url.forEach((el) => {
- list.push({ img_url: el });
- });
- this.$previewImg({
- list,
- baseUrl: this.$store.state.ip,
- baseImgField: "img_url",
- baseTitleField: "",
- });
- // })
- },
- },
- });
- },
- },
- {
- title: "图号",
- key: "url_number",
- align: "center",
- tooltip: true,
- minWidth: 80,
- },
- ...arr,
- { title: "备注", key: "remark", align: "center", minWidth: 80 },
- {
- title: "状态",
- key: "status",
- align: "center",
- minWidth: 80,
- slot: "statusSlot",
- },
- {
- title: "操作",
- key: "remark",
- align: "center",
- slot: "set",
- minWidth: 120,
- },
- ];
- // 订单特殊字段
- this.formData.special &&
- this.formData.special.length > 0 &&
- this.formData.special.forEach((element) => {
- this.formData.head[1].forEach((item) => {
- if (element.head_id == item.id) {
- element = Object.assign(element, item);
- this.contactSpecValueList.push(element);
- }
- });
- });
- this.contactForm = this.formData.head[1] ? this.formData.head[1] : [];
- // 区域特殊字段
- this.formData.list.forEach((element, index) => {
- element.special &&
- element.special.length > 0 &&
- element.special.forEach((ele) => {
- this.formData.head[2].forEach((item) => {
- if (ele.head_id == item.id) {
- ele = Object.assign(ele, item);
- }
- });
- });
- // if (index == 0) {
- // element.isCurrencyArea = true;
- // //编辑进入页面是展示第一条区域的产品
- // element.id &&
- // this.axios
- // .get("/api/order_area_list_product", {
- // params: {
- // order_no: this.$route.query.order_no,
- // area_id: element.id,type:1
- // },
- // })
- // .then((res) => {
- // if (res.code == 200) {
- // if (!element.product) {
- // element.product = [];
- // }
- // element.product = res.data;
- // element.product.forEach((pdt, index) => {
- // if (!pdt.url) {
- // pdt.url = [];
- // }
- // pdt.index = index + 1;
- // pdt.special &&
- // pdt.special.length > 0 &&
- // pdt.special.forEach((_pdt) => {
- // this.formData.head[3].forEach((element) => {
- // if (_pdt.head_id == element.id) {
- // _pdt = Object.assign(_pdt, element);
- // pdt[_pdt.key] = _pdt.value;
- // this.productSpecValueList.push(_pdt);
- // }
- // });
- // });
- // });
- // this.$forceUpdate();
- // }
- // });
- // } else {
- // element.isCurrencyArea = false;
- // }
- });
- this.areaSpecValueList = this.formData.head[2]
- ? this.formData.head[2]
- : [];
- this.productSpecValueList = this.formData.head[3]
- ? this.formData.head[3]
- : [];
- });
- },
- goback() {
- this.$router.go(-1);
- },
- handleSelection(selection) {
- this.selected = selection;
- },
- // 1拆单 2详情
- handleSet(row, index, type, item) {
- switch (type) {
- case 1:
- break;
- case 2:
- this.$router.push({
- path: "/cms/BidSystem/DeepeningOrder/edit",
- query: {
- type,
- order_no: this.formData.order_no,
- // order_area_id: item.id,
- order_area_product_id: row.id,
- },
- });
- break;
- case 3:
- this.$Modal.confirm({
- title: "确认删除?",
- content: "此操作确认后不可恢复,请确认!",
- onOk: () => {
- this.axios({
- method: "post",
- url: "/api/order_area_deep_del",
- data: {
- id: row.id,
- },
- }).then((res) => {
- if (res.doce == 200) {
- this.$Message.success(res.msg);
- this.initData(this.formData.order_no, this.oa_id);
- }
- });
- },
- onCancel: () => {},
- });
- break;
- case 4:
- this.$router.push({
- path: "/cms/BidSystem/DeepeningOrder/edit",
- query: {
- type,
- order_no: this.formData.order_no,
- order_area_id: item.id,
- order_area_product_id: row.order_area_product_id,
- },
- });
- break;
- }
- },
- // 删除工艺属性
- handleAddPDTDetailDele(arr, index) {
- arr.splice(index, 1);
- },
- //新增产品复制
- handleAddPDTCopy(item, index) {
- const temp = JSON.parse(JSON.stringify(item));
- this.tempPDTList.splice(index + 1, 0, temp);
- },
- //新增产品添加
- handleAddPDTAdd(index) {
- this.tempPDTList.splice(index + 1, 0, { addPDTProcessAttrList: [] });
- },
- //新增产品删除
- handleAddPDTDele(index) {
- this.tempPDTList.splice(index, 1);
- },
- //新增产品→新增区域确认
- handleAddPDTConfirm() {
- this.tempPDTList.forEach((element) => {
- // element.measure = `${element.length ? element.length : 0}*${element.width ? element.width : 0}*${element.height ? element.height : 0}`
- element.addPDTProcessAttrList.forEach((el, i) => {
- if (i == element.tempMeasureList.length - 1) {
- element.process_property += el.showValue;
- element.process_properties += el.showId;
- } else {
- element.process_property += el.showValue + ",";
- element.process_properties += el.showId + ",";
- }
- });
- element.tempMeasureList.forEach((el, i) => {
- if (i == element.tempMeasureList.length - 1) {
- element.measure += `${el.e_title}${el.value}`;
- } else {
- element.measure += `${el.e_title}${el.value}*`;
- }
- });
- });
- this.axios({
- method: "post",
- url: "/api/order_area_deep_add",
- data: {
- order_no: this.formData.order_no,
- order_area_id: this.order_area_id,
- oa_id: this.$route.query.oa_id,
- ...this.tempPDTList[0],
- },
- }).then((res) => {
- this.$Message.success(res.msg);
- this.showPDTModal = false;
- this.initData(this.formData.order_no, this.oa_id);
- });
- // this.tempPDTList = [
- // {
- // addPDTProcessAttrList:[{}]
- // }
- // ]
- },
- //项目辅料新增
- handleAddSup() {
- this.supTableData.push({ index: "", title: "" });
- // this.supTableData.forEach((element, index) => {
- // element.index = index + 1;
- // });
- },
- //项目辅料删除
- handleSupSet(row, index) {
- this.supTableData.splice(index, 1);
- },
- //添加工艺属性
- handleProcessAdd(item, index) {
- this.tempPDTList[index].addPDTProcessAttrList.push({
- PDTProcessAttrDetailList: [],
- });
- },
- //选择工艺属性
- handleAddPDTAttrChange(item, index, value) {
- this.axios("/api/properties_index", { params: { id: value } }).then(
- (res) => {
- item.PDTProcessAttrDetailList = res.data.data;
- }
- );
- },
- //选择工艺属性细节
- handleAddPDTAttrDetailChange(item, index, value) {
- item.showValue = value.label;
- item.showId = value.value;
- },
- // handleFinish() {
- // if (this.selected.length < 1) {
- // this.$Message.warning("请选择数据");
- // } else {
- // const order_area_product_id = this.selected.map(
- // (item) => item.order_area_product_id || item.id
- // );
- // this.$Modal.confirm({
- // title: "确认完成?",
- // // content: "此操作确认后不可恢复,请确认!",
- // onOk: () => {
- // this.axios({
- // method: "post",
- // url: "/api/order_area_product_status",
- // data: {
- // order_area_product_id,
- // },
- // }).then((res) => {
- // if (res.code == 200) {
- // this.$Message.success(res.msg);
- // this.initData(this.formData.order_no, this.oa_id);
- // this.handleShowCurrencyArea(item,index)
- // this.getListData()
- // }
- // });
- // },
- // onCancel: () => {},
- // });
- // }
- // },
- looks(img) {
- const array = [{ img_url: img }];
- this.$previewImg({
- list: array,
- baseUrl: this.$store.state.ip,
- baseImgField: "img_url",
- baseTitleField: "",
- });
- },
- delItems(n, arr) {
- arr.splice(n, 1);
- },
- changeIpt(e, row) {
- let file = e.target.files[0];
- this.postImg(file, row);
- e.target.value = null;
- },
- postImg(file, row) {
- let formData = new FormData();
- formData.append("file", file);
- this.axios.post("/api/upload_pic", formData).then((res) => {
- row.push(res.data.url);
- });
- },
- // 产品分类选择→对应不同测量字段
- hanndleAddPDTTypeChange(item, e) {
- this.axios("/api/basics_product_index", {
- params: { title: e.label },
- }).then((res) => {
- item.tempPDTTypeList = res.data.data[0].measure_id.split(",");
- item.tempMeasureList = this.measureList;
- this.measureList.forEach((el) => {
- item[el.e_title] = "";
- });
- });
- // basics_measure_index
- },
- handleImgClick(e, row) {
- const list = [{ img_url: e.target.src }];
- this.$previewImg({
- list,
- baseUrl: "",
- baseImgField: "img_url",
- baseTitleField: "",
- });
- },
- uploadError(err) {
- this.$Message.error(err.msg || "上传失败");
- },
- //导入成功
- uploadSuccess(res) {
- if (res.code == 200) {
- this.$Message.success(res.msg || "上传成功");
- // const temp = res.data;
- // let list = [...this.postInfo.children, ...temp];
- } else {
- this.$Message.warning(res.msg || "上传失败");
- }
- },
- handleProcess() {
- const order_area_product_id = this.selected.map(
- (item) => item.order_area_product_id || item.id
- );
- this.axios({
- method: "get",
- url: "/api/order_area_detail_pull",
- params: {
- order_no: this.order_no,
- type: 2,
- sub_state: 2,
- order_area_product_id,
- process_man: this.process_man,
- process_start_time: this.process_start_time
- ? this.func.replaceDateNoHMS(this.process_start_time)
- : "",
- process_end_time: this.process_end_time
- ? this.func.replaceDateNoHMS(this.process_end_time)
- : "",
- },
- }).then((res) => {
- if (res.code == 200) {
- this.$Message.success(res.msg);
- this.getListData();
- this.initData(this.formData.order_no, this.oa_id);
- }
- });
- },
- handleOpenModal() {
- if (this.selected.length < 1) {
- this.$Message.warning("请选择数据");
- } else {
- this.processModal = true;
- }
- },
- handleCurTabChange(name) {
- this.currencyTab = name;
- this.selected = [];
- if (name == "name2" && this.listTableData.length < 1) {
- this.getListData();
- }
- },
- getListData() {
- this.axios
- .get("/api/order_area_detail_list", {
- params: {
- order_no: this.$route.query.order_no,
- ...this.searchData,
- type: 2,
- oa_id: this.oa_id,
- },
- })
- .then((res) => {
- this.area_no_list = res.data.area_no;
- this.area_title_list = res.data.area_title;
- this.product_title_list = res.data.product_title;
- this.url_number_list = res.data.url_number;
- this.listTableData = res.data.data;
- this.listTableData.map((item) => {
- !item.url && (item.url = []);
- res.data.imgs.map((element) => {
- if (item.sign_id == element.sign_id) {
- item.url.push({ img_url: element.img_url });
- }
- });
- });
- this.total = res.data.total;
- this.$forceUpdate();
- });
- },
- changePage(e) {
- this.page_index = e;
- this.getListData();
- },
- changeSize(e) {
- this.page_size = e;
- this.getListData();
- },
- // 展示区域产品
- handleShowCurrencyArea(item, index) {
- const preObj = this.formData.list.filter((item) => item.isCurrencyArea);
- // 判断当前打开是否与上一个是否一致
- if (preObj.length > 0) {
- // 1.1移除上一个展开区域及产品
- this.formData.list.forEach((element) => {
- element.product = [];
- if (element.id == preObj[0].id) {
- element.isCurrencyArea = false;
- }
- });
- // 2.获取当前展开区域及产品
- item.isCurrencyArea = true;
- this.axios
- .get("/api/order_area_list_product", {
- params: {
- order_no: this.$route.query.order_no,
- oa_id: this.$route.query.oa_id,
- area_id: item.id,
- type: 2,
- },
- })
- .then((res) => {
- if (res.code == 200) {
- if (!item.product) {
- item.product = [];
- }
- item.product = res.data;
- item.product.forEach((pdt, index) => {
- pdt.index = index + 1;
- pdt.special &&
- pdt.special.length > 0 &&
- pdt.special.forEach((element) => {
- this.formData.head[3].forEach((item) => {
- if (element.head_id == item.id) {
- element = Object.assign(element, item);
- pdt[element.key] = element.value;
- this.productSpecValueList.push(element);
- }
- });
- });
- });
- this.$forceUpdate();
- }
- });
- } else {
- // 2.获取当前展开区域及产品
- item.isCurrencyArea = true;
- this.axios
- .get("/api/order_area_list_product", {
- params: {
- order_no: this.$route.query.order_no,
- oa_id: this.$route.query.oa_id,
- area_id: item.id,
- type: 2,
- },
- })
- .then((res) => {
- if (res.code == 200) {
- if (!item.product) {
- item.product = [];
- }
- item.product = res.data;
- item.product.forEach((pdt, index) => {
- pdt.index = index + 1;
- pdt.special &&
- pdt.special.length > 0 &&
- pdt.special.forEach((element) => {
- this.formData.head[3].forEach((item) => {
- if (element.head_id == item.id) {
- element = Object.assign(element, item);
- pdt[element.key] = element.value;
- this.productSpecValueList.push(element);
- }
- });
- });
- });
- this.$forceUpdate();
- }
- });
- }
- },
- },
- // 监听属性 类似于data概念
- computed: {},
- // 监控data中的数据变化
- watch: {},
- beforeCreate() {}, // 生命周期 - 创建之前
- beforeMount() {}, // 生命周期 - 挂载之前
- beforeUpdate() {}, // 生命周期 - 更新之前
- updated() {}, // 生命周期 - 更新之后
- beforeDestroy() {}, // 生命周期 - 销毁之前
- destroyed() {}, // 生命周期 - 销毁完成
- activated() {}, // 如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang="scss" scoped>
- .BidSystemDeepeningOrderDetail {
- overflow: hidden;
- overflow-y: auto;
- position: relative;
- top: 20px;
- height: 85%;
- padding-bottom: 20px;
- .top_search_name1 {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- width: 100%;
- padding: 10px 0;
- font-size: 14px;
- div {
- width: 220px;
- padding: 5px;
- span {
- display: inline-block;
- min-width: 40px;
- max-width: 150px;
- text-align: justify;
- text-justify: newspaper;
- word-break: break-all;
- vertical-align: middle;
- }
- }
- .top_search_content {
- display: flex;
- justify-content: space-between;
- }
- .top_search_form {
- // width: 800px;
- // display: flex;
- // justify-content: space-around;
- /deep/ .ivu-form-item {
- display: inline-block;
- width: 300px;
- }
- }
- }
- .top_search {
- padding: 20px 0;
- width: 100%;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- width: 100%;
- padding: 10px 0;
- font-size: 14px;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- width: 100%;
- padding: 10px 0;
- font-size: 14px;
- .top_search_form {
- // width: 800px;
- // display: flex;
- // justify-content: space-around;
- /deep/ .ivu-form-item {
- display: inline-block;
- width: 300px;
- }
- }
- }
- .addAreaForm {
- font-size: 14px;
- .addFormInfo {
- width: 80%;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- padding: 10px 0;
- div {
- width: 200px;
- padding: 10px;
- }
- }
- }
- .table-data {
- position: relative;
- padding: 15px;
- margin: 10px;
- margin-bottom: 30px;
- border-radius: 5px;
- box-shadow: 1px 1px 5px 1px #999;
- .addBtn {
- position: absolute;
- right: 20px;
- top: 20px;
- }
- /deep/ .ivu-form-item {
- display: inline-block;
- width: 220px;
- }
- }
- }
- .footer-center {
- display: flex;
- justify-content: center;
- padding: 10px 0;
- }
- .addPDTFormModal {
- /deep/ .ivu-modal-body {
- height: 400px;
- overflow: hidden;
- overflow-y: auto;
- }
- }
- .addPDTForm {
- position: relative;
- border-bottom: 1px solid #e8eaec;
- padding-bottom: 30px;
- /deep/ .ivu-form-item {
- display: inline-block;
- width: 300px;
- }
- .addPDTBtn {
- position: absolute;
- right: 10px;
- bottom: 25px;
- }
- }
- .addPDTProcess {
- width: 300px;
- padding-bottom: 15px;
- div {
- display: flex;
- justify-content: space-around;
- padding: 5px 0;
- span {
- padding-top: 6px;
- }
- }
- }
- .product-img {
- padding-top: 10px;
- }
- .process_modal {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 10px;
- }
- .product-add {
- display: flex;
- flex-wrap: wrap;
- .ipt {
- position: absolute;
- width: 100%;
- height: 100%;
- opacity: 0;
- cursor: pointer;
- outline: none;
- top: 0;
- left: 0;
- }
- .add-items {
- width: 40px;
- height: 40px;
- border: 1px dotted #e7e7e7;
- border-radius: 5px;
- display: flex;
- justify-content: center;
- align-items: center;
- overflow: hidden;
- position: relative;
- flex-direction: column;
- background: #f4f5f7;
- .item {
- width: 46px;
- height: 46px;
- background: #3764ff;
- opacity: 0.6;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 50%;
- color: #fff;
- }
- }
- .items {
- width: 40px;
- height: 40px;
- margin-bottom: 10px;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #e7e7e7;
- margin-right: 10px;
- border-radius: 5px;
- position: relative;
- img {
- max-width: 40px;
- max-height: 40px;
- }
- }
- }
- .supModalBtn {
- display: flex;
- justify-content: flex-end;
- margin-bottom: 10px;
- }
- .urlSetStyle {
- img {
- max-width: 100px;
- }
- }
- /deep/ .ivu-table-wrapper {
- overflow: visible;
- } //穿透iview
- /deep/.ivu-tabs-nav-scroll {
- display: flex;
- justify-content: center;
- }
- </style>
|