123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875 |
- <template>
- <div class="BidSystemDeepeningOrderDetail">
- <Toptitle :title="type == 2 ? '深化单编辑' : '深化单详情'">
- <slot name="titleButton">
- <Button
- @click="showSupModal = true"
- v-show="!isChecked"
- type="primary"
- style="margin-right:10px;"
- >项目辅料</Button
- >
- <!-- <Upload style="display: inline"
- name="your_file"
- :show-upload-list="false"
- :headers="headers"
- multiple
- :data="uploadData"
- :before-upload="handleBeforeUpload"
- :on-error="uploadError"
- :on-progress="onProgress"
- :on-success="uploadSuccess"
- :action="$store.state.ip + '/api/deep_img_import'">
- <Button type="primary"
- :disabled="isChecked"
- style="margin-right: 10px">图纸导入</Button>
- </Upload> -->
- <UploadImg
- :data="uploadData"
- :isChecked="!isChecked"
- style="margin-right:10px;vertical-align: top;"
- :action="$store.state.ip + '/api/deep_img_import'"
- :headers="headers"
- ></UploadImg>
- <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" v-show="!isChecked" style="margin-right: 10px"
- >导入</Button
- >
- </Upload>
- <Button
- @click="goback()"
- type="primary"
- ghost
- style="margin-right:10px;"
- >返回</Button
- >
- <!-- <Button
- @click="postData()"
- type="primary"
- :disabled="isChecked"
- 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="handleAddPDT(item, index)"
- :disabled="isChecked"
- size="small"
- style="margin-right: 10px"
- type="primary"
- >新增产品</Button
- >
- <!-- <Button
- @click="handleHiddenCurrencyArea(item, index)"
- ghost
- size="small"
- v-show="!(type != 1 && item.id && !item.isCurrencyArea)"
- type="primary"
- >收缩
- </Button> -->
- <Button
- @click="handleShowCurrencyArea(item, index)"
- 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
- v-show="item.isCurrencyArea"
- :columns="tableColumns"
- max-height="600"
- :data="item.product"
- 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"
- :disabled="row.status == 1"
- @click="handleSet(row, index, 1, item)"
- >深化</a
- >
- <a
- style="margin:0 5px"
- @click="handleSet(row, index, 2, item)"
- >详情</a
- >
- <!-- <a
- style="margin:0 5px"
- :disabled="isChecked"
- @click="handleSet(row, index, 3, 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.sub_state"
- size="small"
- style="width:120px"
- >
- <Option label="已完成" :value="1"></Option>
- <Option label="未完成" :value="0"></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 }}
- </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
- 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"
- :disabled="row.status == 1"
- @click="handleSet(row, index, 1, formData)"
- >深化</a
- >
- <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 }">
- <Select
- v-model="supTableData[index].id"
- @on-change="handlechange"
- 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"
- v-show="$route.query.type != 3"
- @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.left_right_mode"
- placeholder="请选择"
- style="width: 120px"
- size="small"
- >
- <Option :value="1" label="左式" />
- <Option :value="2" label="右式" />
- <Option :value="0" label="无" />
- </Select>
- </FormItem>
- <FormItem label="产品分类">
- <el-cascader
- clearable
- v-model="item.type_id"
- size="small"
- style="width: 120px"
- :show-all-levels="false"
- :options="PDTTypeList"
- :props="{
- expandTrigger: 'hover',
- children: 'child',
- value: 'id',
- label: 'title',
- checkStrictly: true,
- emitPath: false,
- }"
- @change="(e) => hanndleAddPDTTypeChange(item, e)"
- ></el-cascader>
- <!-- <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"
- transfer
- @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">
- <!-- v-show="item.addPDTProcessAttrList.length != 1" -->
- <Icon
- 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>
- </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: [],
- },
- ],
- },
- ],
- tempPDTIndex: 0,
- 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: [],
- },
- ],
- },
- tableColumns: [
- { 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: "left_right_mode",
- align: "center",
- tooltip: true,
- minWidth: 80,
- 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: 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", minWidth: 100 },
- {
- title: "辅料名称",
- key: "title",
- align: "center",
- slot: "combine",
- minWidth: 150,
- },
- { title: "操作", align: "center", slot: "supSet", minWidth: 100 },
- ],
- //是否查看
- 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: "" }],
- warningList: [],
- type: this.$route.query.type,
- currencyTab: "",
- page_index: 1,
- page_size: 10,
- total: 0,
- searchData: {},
- listTableData: [],
- selected: [],
- 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",
- },
- ],
- 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.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.tempPDTIndex, this.oa_id);
- },
- methods: {
- handleSelection(selection) {
- this.selected = selection;
- },
- 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.listTableData = res.data.data;
- 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.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();
- });
- },
- handleCurTabChange(name) {
- this.currencyTab = name;
- if (name == "name2" && this.listTableData.length < 1) {
- this.getListData();
- }
- },
- changePage(e) {
- this.page_index = e;
- this.getListData();
- },
- changeSize(e) {
- this.page_size = e;
- this.getListData();
- },
- 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, curIndex, 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 = [
- { 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: "left_right_mode",
- align: "center",
- tooltip: true,
- minWidth: 80,
- render: (h, params) => {
- return h(
- "span",
- {},
- params.row.left_right_mode == 1
- ? "左式"
- : params.row.left_right_mode == 2
- ? "右式"
- : "无"
- );
- },
- },
- {
- 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);
- }
- });
- });
- element.isCurrencyArea = false;
- // if (index == curIndex) {
- // 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:2
- // },
- // })
- // .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);
- },
- postData() {
- let ip = "order_area_edit";
- // const curObj = this.formData.list.filter((item) => item.isCurrencyArea);
- let curObj;
- //去当前展开项区域
- this.formData.list.forEach((element) => {
- if (element.isCurrencyArea) {
- curObj = element;
- }
- });
- curObj.product.forEach((element) => {
- if (!element.url) {
- element.url = [];
- }
- });
- this.axios
- .post("/api/order_area_product_edit", {
- order_no: this.$route.query.order_no,
- area_id: curObj.id || "",
- type: 2,
- // num:curObj.num,
- // title:curObj.title,
- // unit:curObj.unit,
- // quantity:curObj.quantity,
- // house_type:curObj.house_type,
- product: curObj.product,
- })
- .then((res) => {
- if (res.code == 200) {
- curObj.id = res.data.area_id;
- this.axios
- .post("/api/" + ip, {
- ...this.formData,
- ext: this.supTableData,
- })
- .then((re) => {
- if (re.code == 200) {
- this.$Message.success(re.msg);
- this.goback();
- }
- });
- }
- });
- this.axios({
- method: "post",
- url: "/api/order_area_product_save",
- data: {
- order_no: this.formData.order_no,
- order_area_id: "",
- order_area_product_id: "",
- list: "",
- },
- }).then((res) => {
- this.$Message.success(res.msg);
- });
- },
- handleAddPDT(row, index) {
- this.order_area_id = row.id;
- this.showPDTModal = true;
- this.tempPDTIndex = index;
- // this.tempPDTList = row
- },
- handlechange(val) {
- console.log("val :>> ", val);
- },
- handleHiddenCurrencyArea(item, index) {
- item.isCurrencyArea = false;
- this.$forceUpdate();
- },
- // 展示区域产品
- handleShowCurrencyArea(item, index) {
- const preObj = this.formData.list.filter((item) => item.isCurrencyArea);
- // 判断当前打开是否与上一个是否一致
- if (preObj && preObj.length > 0 && preObj[0].id != item.id) {
- // 1.保存上一个展开的区域及产品
- this.axios
- .post("/api/order_area_product_edit", {
- order_no: this.$route.query.order_no,
- area_id: preObj[0].id || "",
- product: preObj[0].product,
- type: 2,
- })
- .then((result) => {
- if (result.code == 200) {
- preObj[0].id = result.data.area_id;
- // 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 {
- this.formData.list.map((item) => (item.isCurrencyArea = false));
- 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();
- }
- });
- }
- },
- // 1深化 2详情
- handleSet(row, index, type, item) {
- if (type == 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.code == 200) {
- this.$Message.success(res.msg);
- this.initData(
- this.formData.order_no,
- this.tempPDTIndex,
- this.oa_id
- );
- }
- });
- },
- onCancel: () => {},
- });
- } else {
- 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 ? row.id : row.order_area_product_id,
- },
- });
- }
- },
- // 删除工艺属性
- 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) => {
- element[el.e_title] = el.value;
- el.value &&
- (element.measure += `${el.e_title ? el.e_title : 0}${
- element[el.e_title]
- }*`);
- });
- element.measure = element.measure.substring(
- 0,
- element.measure.length - 1
- );
- });
- // this.formData.list[this.tempPDTIndex].product.push(...this.tempPDTList)
- // //开辟新栈空间,更改指针
- // this.formData.list = JSON.parse(JSON.stringify(this.formData.list))
- // this.formData.list[this.tempPDTIndex].product.forEach((el, index) => {
- // el.index = index + 1
- // });
- this.axios({
- method: "post",
- url: "/api/order_area_deep_add",
- data: {
- order_no: this.formData.order_no,
- oa_id: this.$route.query.oa_id,
- order_area_id: this.order_area_id,
- ...this.tempPDTList[0],
- },
- }).then((res) => {
- this.$Message.success(res.msg);
- this.showPDTModal = false;
- this.initData(this.formData.order_no, this.tempPDTIndex, this.oa_id);
- });
- // this.tempPDTList = [
- // {
- // addPDTProcessAttrList:[{}]
- // }
- // ]
- },
- //项目辅料新增
- handleAddSup() {
- this.supTableData.push({ id: "" });
- },
- //项目辅料删除
- 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;
- },
- 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) {
- e &&
- this.axios("/api/basics_product_detail", {
- params: { id: e },
- }).then((res) => {
- if (res.code == 200) {
- if (res.data.measure_id.length > 0) {
- item.tempPDTTypeList = res.data.measure_id;
- item.tempMeasureList = JSON.parse(
- JSON.stringify(this.measureList)
- );
- this.measureList.forEach((el) => {
- item[el.e_title] = "";
- });
- } else {
- item.tempPDTTypeList = [];
- item.tempMeasureList = [];
- }
- }
- });
- // 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 || "上传失败");
- }
- },
- },
- // 监听属性 类似于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 {
- /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: 0 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;
- }
- }
- }
- .addPDTFormModal {
- /deep/ .ivu-modal-body {
- 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;
- }
- .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;
- }
- }
- }
- .footer-center {
- display: flex;
- justify-content: center;
- padding: 10px 0;
- }
- .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;
- }
- /deep/.el-input--small .el-input__inner {
- height: 24px;
- line-height: 24px;
- }
- </style>
|