123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709 |
- <!-- 物料信息基础档案——详情 -->
- <template>
- <el-drawer
- :show-close="false"
- size="100%"
- :visible.sync="visible"
- append-to-body
- destroy-on-close
- @close="onHide"
- @open="onOpen"
- >
- <div class="material-details" v-loading="loading">
- <!-- 操作栏 -->
- <el-card>
- <!-- 基本信息栏 -->
- <div style="display: flex; justify-content: end">
- <div v-if="activeMainTab == 'material'">
- <!-- 基本信息修改状态下—— 保存、保存新增、更新导入、取消 -->
- <el-row
- v-if="updateButtonGroup || maintainNewVersion"
- :gutter="10"
- class="mb10"
- type="flex"
- justify="end"
- >
- <el-col :span="1.5">
- <el-button-group>
- <el-button
- :size="size"
- @click="handleSave"
- v-hasPermi="[
- 'system:material:add',
- `${maintainNewVersion ? '' : 'system:material:versions'}`,
- ]"
- >
- 保存
- </el-button>
- </el-button-group>
- </el-col>
- <el-col :span="1.5">
- <el-button-group>
- <el-button :size="size" @click="handleCancel">取消</el-button>
- </el-button-group>
- </el-col>
- </el-row>
- <el-row v-else :gutter="10" class="mb10" type="flex" justify="end">
- <!-- 新增、修改、删除、复制 -->
- <el-col :span="1.5">
- <el-button-group>
- <el-button :size="size" @click="handleBasicEdit"
- >修改</el-button
- >
- </el-button-group>
- </el-col>
- <!-- 查询、刷新、过滤 -->
- <el-col :span="1.5">
- <el-button-group>
- <el-button :size="size" @click="handleRefresh"
- >刷新</el-button
- >
- </el-button-group>
- </el-col>
- <!-- 维护物料类别 -->
- <el-col :span="1.5">
- <whlbButton :data="selectData" :size="size"></whlbButton>
- </el-col>
- <!-- 启用 -->
- <el-col :span="1.5">
- <is-using
- :size="size"
- :select-data="basicData.value"
- @success="handleRefresh"
- ></is-using>
- </el-col>
- <!-- 维护新版本 -->
- <!-- <el-col :span="1.5">
- <el-button-group>
- <el-button
- :size="size"
- @click="handleNewVersion"
- v-hasPermi="['system:material:versions']"
- >维护新版本
- </el-button>
- </el-button-group>
- </el-col> -->
- </el-row>
- </div>
- <!-- 其他标签页操作 修改、删除 -->
- <el-row
- :gutter="10"
- class="mb10"
- v-show="activeMainTab != 'material'"
- type="flex"
- justify="end"
- >
- <el-col :span="1.5">
- <el-button-group>
- <el-button :size="size" @click="handleOtherEdit('table')"
- >修改</el-button
- >
- <el-button
- :size="size"
- v-show="activeMainTab != 'material_finance'"
- @click="handleOtherDel"
- >删除</el-button
- >
- </el-button-group>
- <el-button-group>
- <el-button :size="size" @click="handleOtherListRefresh"
- >刷新</el-button
- >
- </el-button-group>
- </el-col>
- </el-row>
- <!-- 返回 切换 附件管理 -->
- <el-row type="flex" justify="space-between">
- <el-col :span="6">
- <!-- :disabled="headerParam.isEdit" -->
- <el-button
- :size="size"
- @click="handleBack"
- :disabled="updateButtonGroup"
- >返回</el-button
- >
- </el-col>
- <el-col :span="6" style="text-align: right"> </el-col>
- </el-row>
- </div>
- <div class="md-content" :key="basicData.value.id">
- <el-form
- :inline="true"
- label-position="right"
- :model="basicData.value"
- >
- <el-form-item label="物料编码">
- <el-input
- v-model="basicData.value.code"
- readonly
- size="mini"
- ></el-input>
- </el-form-item>
- <el-form-item label="物料名称">
- <el-input
- v-model="basicData.value.name"
- readonly
- size="mini"
- ></el-input>
- </el-form-item>
- <el-form-item label="英文名称">
- <el-input
- v-model="basicData.value.enName"
- readonly
- size="mini"
- ></el-input>
- </el-form-item>
- </el-form>
- <dr-tabs :tabList="detailsTabs" :handleTabClick="handleMainTabClick">
- <template #tabContent>
- <div class="md-basic" :key="count">
- <!-- 主信息 -->
- <div class="md-main">
- <!-- 基本信息展示表单 -->
- <el-form
- v-if="activeMainTab == 'material'"
- :inline="true"
- label-position="right"
- :model="basicData.value"
- :key="basicData.value.id"
- ref="basicMessageRef"
- :rules="rules"
- >
- <el-row :gutter="10">
- <el-col
- :span="6"
- v-for="f in basicData.form"
- style="text-align: right"
- >
- <template v-if="f.show">
- <!-- 多选框 -->
- <el-form-item
- v-if="f.attribute == 'checkbox'"
- style="text-align: left"
- :prop="f.prop"
- :key="f.required"
- >
- <el-checkbox
- :label="f.name"
- name="type"
- v-model="basicData.value[f.prop]"
- true-label="0"
- false-label="2"
- :disabled="handleJudge(f)"
- size="mini"
- >
- </el-checkbox>
- </el-form-item>
- <!-- 下拉框 -->
- <el-form-item
- v-else-if="f.attribute == 'select'"
- :id="
- updateButtonGroup && f.apiUrl ? 'selected' : ''
- "
- :prop="f.apiUrl ? `${f.prop}Name` : f.prop"
- :key="f.required"
- :rules="[
- {
- required: f.required,
- message: `请选择${f.name}`,
- trigger: 'change',
- },
- ]"
- >
- <template slot="label">
- <el-tooltip
- class="item"
- effect="dark"
- placement="top-start"
- :disabled="f.name.length < 10"
- >
- <!-- <span :class="(f.apiUrl && f.required) ? 'redSpan': ''">{{ f.name }}</span> -->
- <span>{{ f.name }}</span>
- <div slot="content">
- <p>{{ f.name }}</p>
- </div>
- </el-tooltip>
- </template>
- <!-- 参照 -->
- <el-select
- v-if="f.apiUrl"
- v-model="basicData.value[`${f.prop}Name`]"
- placeholder="请选择"
- size="mini"
- :key="basicData.value[f.prop]"
- :disabled="handleJudge(f)"
- @focus="
- f.apiUrl &&
- handleQueryMore(f, '', {
- name: 'basicData',
- prop: f.prop,
- })
- "
- >
- <div slot="empty"></div>
- </el-select>
- <!-- 字典 -->
- <el-select
- v-if="f.dictId"
- v-model="basicData.value[f.prop]"
- placeholder="请选择"
- size="mini"
- :key="basicData.value[f.prop]"
- :disabled="handleJudge(f)"
- >
- <el-option
- v-if="f.dictId"
- v-for="d in f.dictValue"
- :key="d.dictValue"
- :label="d.dictLabel"
- :value="d.dictValue"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <!-- 图片 -->
- <el-form-item
- v-else-if="f.attribute == 'image'"
- :label="f.name"
- @clicks="handleUpImage"
- >
- <el-image
- :src="basicData.value[f.prop]"
- fit="contain"
- ></el-image>
- <!-- <img :src="basicData.value[f.prop]" @clicks="handleUpImage" alt="加载失败"> -->
- </el-form-item>
- <!--attribute 文本 数字 文本域 为null -->
- <el-form-item v-else :prop="f.prop" :key="f.required">
- <template slot="label">
- <el-tooltip
- class="item"
- effect="dark"
- placement="top-start"
- :disabled="f.name.length < 10"
- >
- <span>{{ f.name }}</span>
- <div slot="content">
- <p>{{ f.name }}</p>
- </div>
- </el-tooltip>
- </template>
- <el-input
- size="mini"
- v-model="basicData.value[f.prop]"
- :type="f.attribute || 'text'"
- :readonly="handleJudge(f)"
- :rows="1"
- :maxlength="judgeMaxLength(f.prop)"
- ></el-input>
- </el-form-item>
- </template>
- </el-col>
- </el-row>
- </el-form>
- <!-- 其他展示为列表 -->
- <el-table
- v-else
- border
- :data="mainMsg.value"
- @cell-dblclick="handleMaindbClick"
- @selection-change="handleMainChange"
- >
- <el-table-column type="selection" width="55" />
- <el-table-column
- type="index"
- v-if="mainMsg.form.length"
- label="序号"
- width="55"
- align="center"
- />
- <el-table-column
- v-for="m in mainMsg.form"
- v-if="m.show"
- :label="m.name"
- align="center"
- :prop="m.attribute == 'select' ? `${m.prop}Name` : m.prop"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{
- m.attribute == "select"
- ? scope.row[`${m.prop}Name`]
- : m.attribute == "checkbox"
- ? scope.row[m.prop] == "0"
- ? "√"
- : ""
- : scope.row[m.prop]
- }}
- </template>
- </el-table-column>
- </el-table>
- </div>
- <!-- 副信息 -->
- <div class="md-vice">
- <dr-tabs
- v-if="activeMainTab == 'material'"
- :tabList="basicMessage"
- :handleTabClick="handleViceTabClick"
- >
- <template #tabContent>
- <el-form
- v-if="activeViceTab == 'material_medcine'"
- :inline="true"
- label-position="right"
- ref="medcineRef"
- :model="medcineData.value"
- class="md-vice-content"
- :rules="medcineRules"
- :key="medcineData.value.id"
- >
- <el-row :gutter="10">
- <el-col
- :span="6"
- v-for="m in medcineData.form"
- style="text-align: right"
- >
- <!-- 需要根据基本信息中的是否医药物料字段判断是否可以填写 -->
- <template v-if="m.show">
- <!-- 多选框 -->
- <el-form-item
- v-if="m.attribute == 'checkbox'"
- :prop="m.prop"
- >
- <el-checkbox
- :label="m.name"
- name="type"
- v-model="medcineData.value[m.prop]"
- size="mini"
- :disabled="
- !(
- updateButtonGroup &&
- m.edit &&
- basicData.value.isMedicine == '0'
- )
- "
- true-label="0"
- false-label="2"
- >
- </el-checkbox>
- </el-form-item>
- <!-- 下拉框 -->
- <el-form-item
- v-else-if="m.attribute == 'select'"
- :label="m.name"
- :prop="m.apiUrl ? `${m.prop}Name` : m.prop"
- :rules="[
- {
- required: m.required,
- message: `请选择${m.name}`,
- trigger: 'change',
- },
- ]"
- >
- <!-- 参照弹窗 -->
- <el-select
- v-if="m.apiUrl"
- v-model="medcineData.value[`${m.prop}Name`]"
- placeholder="请选择"
- :key="medcineData.value[m.prop]"
- size="mini"
- :disabled="
- !(
- updateButtonGroup &&
- m.edit &&
- basicData.value.isMedicine == '0'
- )
- "
- @focus="
- m.apiUrl &&
- handleQueryMore(m, '', {
- name: 'medcineData',
- prop: m.prop,
- })
- "
- >
- <div slot="empty"></div>
- </el-select>
- <!-- 下拉选择 -->
- <el-select
- v-if="m.dictId"
- v-model="medcineData.value[m.prop]"
- placeholder="请选择"
- :key="medcineData.value[m.prop]"
- size="mini"
- :disabled="
- !(
- updateButtonGroup &&
- m.edit &&
- basicData.value.isMedicine == '0'
- )
- "
- @focus="
- m.apiUrl &&
- handleQueryMore(m, '', {
- name: 'medcineData',
- prop: m.prop,
- })
- "
- >
- <el-option
- v-if="m.dictId"
- v-for="d in m.dictValue"
- :key="d.dictValue"
- :label="d.dictLabel"
- :value="d.dictValue"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <!-- 图片 -->
- <el-form-item
- v-else-if="m.attribute == 'image'"
- :label="m.name"
- >
- <el-image
- :src="medcineData.value[m.prop]"
- fit="contain"
- >
- </el-image>
- </el-form-item>
- <!-- 文本、数字、textarae -->
- <el-form-item v-else :label="m.name">
- <el-input
- size="mini"
- v-model="medcineData.value[m.prop]"
- :type="m.attribute || 'text'"
- :rows="1"
- :readonly="
- !(
- updateButtonGroup &&
- m.edit &&
- basicData.value.isMedicine == '0'
- )
- "
- >
- </el-input>
- </el-form-item>
- </template>
- </el-col>
- </el-row>
- </el-form>
- <!-- 其他展示为列表 -->
- <!-- 辅计量 -->
- <el-table
- border
- v-else-if="activeViceTab == 'material_unit'"
- :data="unitDetails.value"
- class="material-table"
- >
- <el-table-column
- type="index"
- v-if="unitDetails.form.length"
- label="序号"
- width="55"
- align="center"
- />
- <el-table-column
- v-for="v in unitDetails.form"
- v-if="v.show"
- :label="v.name"
- align="center"
- :prop="
- v.attribute == 'select' ? `${v.prop}Name` : v.prop
- "
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{
- v.attribute == "select"
- ? scope.row[`${v.prop}Name`]
- : v.attribute == "checkbox"
- ? scope.row[v.prop] == "0"
- ? "√"
- : ""
- : scope.row[v.prop]
- }}
- </template>
- </el-table-column>
- </el-table>
- <!-- 辅助属性 -->
- <el-table
- border
- v-else-if="activeViceTab == 'material_property'"
- :data="propertyDetail.value"
- class="material-table"
- >
- <el-table-column
- type="index"
- v-if="propertyDetail.form.length"
- label="序号"
- width="55"
- align="center"
- />
- <el-table-column
- v-for="v in propertyDetail.form"
- v-if="v.show"
- :label="v.name"
- align="center"
- :prop="
- v.attribute == 'select' ? `${v.prop}Name` : v.prop
- "
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- {{
- v.attribute == "select"
- ? scope.row[`${v.prop}Name`]
- : v.attribute == "checkbox"
- ? scope.row[v.prop] == "0"
- ? "√"
- : ""
- : scope.row[v.prop]
- }}
- </template>
- </el-table-column>
- </el-table>
- </template>
- </dr-tabs>
- </div>
- <!-- 基本信息 - 审计信息 -->
- <div class="md-auditInfo" v-if="activeMainTab == 'material'">
- <el-divider content-position="left">审计信息</el-divider>
- <el-form
- :inline="true"
- label-position="right"
- :model="basicData.value"
- >
- <el-form-item label="创建人">
- <el-input
- v-model="basicData.value.createByName"
- size="mini"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="创建时间">
- <el-input
- v-model="basicData.value.createTime"
- size="mini"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="最后修改人">
- <el-input
- v-model="basicData.value.updateByName"
- size="mini"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="最后修改时间">
- <el-input
- v-model="basicData.value.updateTime"
- size="mini"
- readonly
- ></el-input>
- </el-form-item>
- </el-form>
- </div>
- </div>
- </template>
- </dr-tabs>
- </div>
- </el-card>
- <!-- 操作提示弹窗 -->
- <el-dialog
- title="操作提示"
- :visible.sync="optionDialog.show"
- width="30%"
- center
- append-to-body
- >
- <span>是否确认{{ optionDialog.op }}?</span>
- <span slot="footer">
- <el-button type="primary" @click="handleComfirmOption('cancal')"
- >确 定</el-button
- >
- <el-button @click="handleOptionCancal">取 消</el-button>
- </span>
- </el-dialog>
- <!-- 其他页签的操作 -->
- <el-dialog
- :title="otherDeatils.title"
- :visible.sync="otherDeatils.show"
- show-close
- width="70%"
- :before-close="handleCloseOtherDetails"
- :close-on-press-escape="false"
- :close-on-click-modal="false"
- class="otherDialog"
- append-to-body
- >
- <div v-loading="otherDeatils.loading">
- <!-- 其他标签页操作 修改、删除 -->
- <el-row :gutter="10" class="mb10" type="flex" justify="end">
- <el-col :span="1.5" v-if="!otherDeatils.isEdit">
- <el-button-group>
- <el-button :size="size" @click="handleOtherEdit('form')"
- >修改</el-button
- >
- </el-button-group>
- <el-button-group>
- <el-button :size="size" @click="handleOtherRefresh"
- >刷新</el-button
- >
- </el-button-group>
- </el-col>
- <el-col :span="1.5" v-else>
- <el-button-group>
- <el-button :size="size" @click="handleOtherSave"
- >保存</el-button
- >
- <el-button :size="size" @click="handleOtherCancel"
- >取消</el-button
- >
- </el-button-group>
- </el-col>
- </el-row>
- <el-collapse v-model="collapseActive" @change="handleCollapseChange">
- <el-collapse-item title="物料基本信息" name="basic">
- <el-form
- :inline="true"
- label-position="right"
- :model="basicData.value"
- >
- <el-form-item label="物料编码">
- <el-input
- v-model="basicData.value.code"
- :size="size"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="物料名称">
- <el-input
- v-model="basicData.value.name"
- :size="size"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="英文名称">
- <el-input
- v-model="basicData.value.enName"
- :size="size"
- readonly
- ></el-input>
- </el-form-item>
- </el-form>
- </el-collapse-item>
- <el-collapse-item :title="otherDeatils.title" :name="activeMainTab">
- <div class="od-msg">
- <!-- 展示表单 -->
- <el-form
- :inline="true"
- label-position="right"
- :key="refer"
- :size="size"
- :hide-required-asterisk="true"
- :model="otherDeatils.value"
- >
- <el-row :gutter="10">
- <el-col
- :span="8"
- v-for="f in otherDeatils.form"
- style="text-align: right"
- >
- <template v-if="f.show">
- <!-- 多选框 -->
- <el-form-item
- v-if="f.attribute == 'checkbox'"
- style="text-align: left"
- class="od-msg-checkedbx"
- >
- <el-checkbox
- :label="f.name"
- name="type"
- v-model="otherDeatils.value[f.prop]"
- true-label="0"
- false-label="2"
- :disabled="!(otherDeatils.isEdit && f.edit)"
- >
- </el-checkbox>
- </el-form-item>
- <!-- 下拉框 - 弹窗参照 -->
- <el-form-item
- v-else-if="f.attribute == 'select'"
- :label="f.name"
- >
- <el-select
- v-if="f.apiUrl"
- v-model="otherDeatils.value[`${f.prop}Name`]"
- placeholder="请选择"
- :key="otherDeatils.value[f.prop]"
- :disabled="!(otherDeatils.isEdit && f.edit)"
- @focus="
- f.apiUrl &&
- handleQueryMore(f, '', {
- name: 'otherDeatils',
- prop: f.prop,
- })
- "
- >
- <div slot="empty"></div>
- </el-select>
- <!-- 字典-下拉 -->
- <el-select
- v-if="f.dictId"
- v-model="otherDeatils.value[f.prop]"
- placeholder="请选择"
- :key="otherDeatils.value[f.prop]"
- :disabled="!(otherDeatils.isEdit && f.edit)"
- >
- <el-option
- v-if="f.dictId"
- v-for="d in f.dictValue"
- :key="d.dictValue"
- :label="d.dictLabel"
- :value="d.dictValue"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- v-else-if="f.attribute == 'image'"
- :label="f.name"
- >
- <el-image
- :src="otherDeatils.value[f.prop]"
- fit="contain"
- >
- </el-image>
- </el-form-item>
- <!--attribute 文本 数字 文本域 为null -->
- <el-form-item v-else :label="f.name">
- <el-input
- :size="size"
- v-model="otherDeatils.value[f.prop]"
- :type="f.attribute || 'text'"
- :readonly="!(otherDeatils.isEdit && f.edit)"
- >
- </el-input>
- </el-form-item>
- </template>
- </el-col>
- </el-row>
- </el-form>
- </div>
- </el-collapse-item>
- <el-collapse-item title="审计信息" name="auditInfo">
- <!-- 基本信息 - 审计信息 -->
- <div class="md-auditInfo">
- <el-form
- :size="size"
- :inline="true"
- label-position="right"
- :model="basicData.value"
- >
- <el-form-item label="创建人">
- <el-input
- v-model="basicData.value.createByName"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="创建时间">
- <el-input
- v-model="basicData.value.createTime"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="最后修改人">
- <el-input
- v-model="basicData.value.updateByName"
- readonly
- ></el-input>
- </el-form-item>
- <el-form-item label="最后修改时间">
- <el-input
- v-model="basicData.value.updateTime"
- readonly
- ></el-input>
- </el-form-item>
- </el-form>
- </div>
- </el-collapse-item>
- </el-collapse>
- </div>
- </el-dialog>
- <!-- 参照弹窗 -->
- <el-dialog
- :title="MoreDataDialog.msg.name"
- :visible.sync="MoreDataDialog.show"
- width="70%"
- custom-class="MoreDataDialog"
- :close-on-press-escape="false"
- :close-on-click-modal="false"
- :before-close="handleCloseRefer"
- append-to-body
- >
- <div>
- <el-row :gutter="20">
- <el-col :span="6">
- <el-input
- v-model="MoreDataDialog.key"
- placeholder="过滤"
- :size="size"
- clearable
- @clear="handleClear"
- @keyup.enter.native="handleFilterRefer"
- />
- </el-col>
- <el-col :span="6">
- <el-button
- type="primary"
- :size="size"
- @click.stop="handleFilterRefer"
- >搜索</el-button
- >
- </el-col>
- </el-row>
- <!-- 树形 -->
- <el-tree
- v-if="MoreDataDialog.type == 'tree'"
- v-loading="MoreDataDialog.loading"
- :key="refer"
- node-key="id"
- class="referTree"
- :data="MoreDataDialog.list"
- @node-click="handleNodeClick"
- :props="
- MoreDataDialog.msg.apiUrl == 'queryMedcineItemDrug' ||
- MoreDataDialog.msg.apiUrl == 'queryMaterialClassify'
- ? drugProps
- : defaultProps
- "
- >
- </el-tree>
- <!-- queryMedcineItemDrug -->
- <!-- 列表 -->
- <div v-else>
- <el-table
- :data="MoreDataDialog.list"
- v-loading="MoreDataDialog.loading"
- style="width: 100%"
- @row-click="handleCurentRow"
- @row-dblclick="handleDbClick"
- highlight-current-row
- >
- <el-table-column
- type="index"
- label="序号"
- width="55"
- align="center"
- />
- <el-table-column
- v-for="m in MoreDataDialog.form"
- v-if="m.show"
- :prop="m.prop"
- :label="m.name"
- />
- </el-table>
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="queryParams.pageNum"
- :page-sizes="[10, 20, 50, 100]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="queryParams.total"
- >
- </el-pagination>
- </div>
- <!-- 按钮 -->
- <el-row class="more-button">
- <el-button
- round
- :size="size"
- type="primary"
- @click="handleConfirmRefer"
- >确认</el-button
- >
- <el-button round :size="size" @click="handleConcalRefer"
- >取消</el-button
- >
- </el-row>
- </div>
- </el-dialog>
- </div>
- </el-drawer>
- </template>
- <script>
- import detailsTabs from "../config/detailsTabs";
- import materialApi from "@/api/material/basic";
- import { getDicts as getDicts } from "@/api/system/dict/data";
- import arrayUtils from "../tools/arrayUtils";
- import { initRules, initParams } from "./init/index";
- import { getDetail } from "@/api/classify/basic";
- export default {
- name: "material-details",
- // dicts: [],
- props: {
- selectData: {
- type: Array,
- required: true,
- },
- },
- components: {
- drTabs: () => import("../components/dr-tabs.vue"),
- IsUsing: () => import("./isUsing/index.vue"),
- whlbButton: () => import("./wei-hu-lei-bie/index.vue"),
- },
- data() {
- return {
- visible: false,
- size: "mini",
- count: 1,
- refer: 1,
- loading: false,
- rules: {},
- medcineRules: {},
- // 维护新版本
- maintainNewVersion: false,
- // 详情固定标签页
- detailsTabs,
- defaultProps: {
- children: "childrens",
- label: "name",
- },
- drugProps: {
- children: "childrens",
- label: function (data, node) {
- return data.code + " " + data.name;
- },
- // 'name'
- },
- // 标签页当前激活状态
- activeMainTab: "material",
- activeViceTab: "material_medcine",
- materialId: this.$route.params.id,
- collapseActive: ["basic", ""],
- // 修改按钮 是否激活
- updateButtonGroup: false,
- // 基本信息下的页签
- basicMessage: [
- {
- label: "医药行业",
- code: "material_medcine",
- isShow: true,
- },
- {
- label: "辅计量管理",
- code: "material_unit",
- isShow: true,
- },
- {
- label: "辅助属性",
- code: "material_property",
- isShow: true,
- },
- ],
- // 基本信息
- basicData: {
- value: {},
- form: [],
- },
- // 医药行业
- medcineData: {
- value: {},
- form: [],
- },
- // 辅助属性
- propertyDetail: {
- value: [],
- form: [],
- },
- // 辅计量管理
- unitDetails: {
- value: [],
- form: [],
- },
- // 主标签信息
- mainMsg: {
- form: [],
- value: [],
- checkedList: [],
- },
- // 副信息
- viceMsg: {
- form: [],
- value: [],
- },
- // 操作弹窗
- optionDialog: {
- show: false,
- op: "",
- },
- // 其他页签操作弹窗
- otherDeatils: {
- loading: false,
- show: false,
- title: "",
- // 查询关键字-物料id
- queryKey: "",
- isEdit: false,
- // 详情表头
- from: [],
- // 详情值
- value: {},
- },
- // 编辑-更多数据展示弹窗_ 参照
- MoreDataDialog: {
- loading: false,
- show: false,
- // 查询关键字
- key: "",
- // 需要查看参照的表单头信息
- msg: "",
- type: "table",
- // 查询出的参照数据
- list: [],
- // 查询出的参照表头
- form: [],
- // 选中的参照数据
- value: "",
- // 参照最后应该赋值的地方
- target: {
- name: "",
- prop: "",
- },
- },
- // 参照分页参数
- queryParams: {
- pageNum: 1,
- total: 0,
- pageSize: 10,
- },
- };
- },
- computed: {
- innerValue: {
- get() {
- return this.$props.selectData[0];
- },
- set(value) {
- this.materialId = value.id;
- },
- },
- },
- methods: {
- setVisible(prop) {
- this.visible = prop;
- },
- onHide() {
- this.medcineData.value = initParams(this.medcineData.form, "prop");
- this.basicData.value = initParams(this.basicData.form, "prop");
- this.activeMainTab = "material";
- this.activeViceTab = "material_medcine";
- this.$emit("success");
- },
- onOpen() {
- this.materialId = this.$props.selectData[0].id;
- this.handleRest();
- },
- judgeMaxLength(prop) {
- // 规格
- if (prop === "specification") {
- return 150;
- }
- return Infinity;
- },
- // 判断效期管理
- handleJudge(attribute) {
- // 维护新版本才能修改:批号及库存状态管理(isInventoryStatus)、
- if (attribute.prop == "isInventoryStatus") {
- return !(this.maintainNewVersion && attribute.edit);
- }
- // 序列号管理(serialNoManager):维护新版本 && 批号及库存状态管理
- else if (attribute.prop == "serialNoManager") {
- if (this.basicData.value["isInventoryStatus"] == "2")
- this.basicData.value["serialNoManager"] = "2";
- return !(
- this.maintainNewVersion &&
- attribute.edit &&
- this.basicData.value["isInventoryStatus"] == "0"
- );
- }
- // 批号及库存状态管理(isInventoryStatus) 控制 效期管理是否展示(expiryDateManagerment)
- else if (attribute.prop == "expiryDateManagerment") {
- if (this.basicData.value["isInventoryStatus"] == "2")
- this.basicData.value["expiryDateManagerment"] = "2";
- return !(
- this.updateButtonGroup &&
- attribute.edit &&
- this.basicData.value["isInventoryStatus"] == "0"
- );
- }
- // 效期管理(expiryDateManagerment):控制一下几个是否可编辑
- // expiryUnitId 效期单位 usefulLife 有效期 usefulLifeUnitId 有效期至单位
- else if (
- attribute.prop == "expiryUnitId" ||
- attribute.prop == "usefulLife" ||
- attribute.prop == "usefulLifeUnitId" ||
- attribute.prop == "recentWarningPeriod"
- ) {
- if (this.basicData.value["expiryDateManagerment"] == "2") {
- this.basicData.value["expiryUnitId"] = "";
- this.basicData.value["usefulLife"] = "";
- this.basicData.value["usefulLifeUnitId"] = "";
- this.basicData.value["recentWarningPeriod"] = "";
- }
- return !(
- this.updateButtonGroup &&
- attribute.edit &&
- this.basicData.value["expiryDateManagerment"] == "0"
- );
- }
- // 默认采购组织:purchasingOrganization 业务部门:businessDepartment
- else if (attribute.prop == "businessDepartment") {
- return !(
- this.updateButtonGroup &&
- attribute.edit &&
- this.basicData.value["purchasingOrganization"]
- );
- } else {
- // 其他属性是否可编辑
- return !(this.updateButtonGroup && attribute.edit);
- }
- },
- // 返回
- handleBack() {
- this.visible = false;
- // this.$store.dispatch("tagsView/delView", this.$route);
- // this.$router.go(-1);
- },
- // 切换主信息标签
- handleMainTabClick(e) {
- this.activeMainTab = detailsTabs[e.index].code;
- this.collapseActive.splice(1, 1, this.activeMainTab);
- console.log(this.collapseActive, "this.collapseActive");
- this.handleOtherListRefresh();
- },
- // 切换副表信息
- handleViceTabClick(e) {
- this.activeViceTab = this.basicMessage[e.index].code;
- switch (this.activeViceTab) {
- // 医药行业
- case "material_medcine":
- this.getTagList("material_medcine", (form) => {
- this.medcineData.form = [...form];
- this.medcineData.value = initParams(this.medcineData.form, "prop");
- this.medcineRules = initRules(form);
- this.getMedcineDetails(this.materialId, "material_medcine");
- });
- break;
- // 辅计量管理
- case "material_unit":
- this.getTagList("material_unit", (form) => {
- console.log(form, "form");
- this.unitDetails.form = form;
- this.getUnitList(this.materialId);
- });
- break;
- // 辅助属性
- case "material_property":
- this.getTagList("material_property", (form) => {
- this.propertyDetail.form = form;
- this.getPropertyList(this.materialId);
- });
- break;
- default:
- break;
- }
- },
- // 主标签页 列表双击
- handleMaindbClick(e) {
- this.otherDeatils.queryKey = e.id;
- this.otherDeatils.show = true;
- let activeTab = this.detailsTabs.filter(
- (item) => item.code == this.activeMainTab
- )[0];
- this.otherDeatils.title = activeTab.label;
- this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
- },
- // 主页签 列表数据选择
- handleMainChange(e) {
- this.mainMsg.checkedList = e;
- },
- // 上传图片
- handleUpImage() {},
- // 编辑状态下,参照弹窗显示查询数据
- handleQueryMore(msg, val, target) {
- this.MoreDataDialog.loading = true;
- let _this = this;
- console.log("编辑状态下,弹窗显示查询数据", msg, "val", val, target);
- this.MoreDataDialog.show = true;
- this.MoreDataDialog.msg = msg;
- this.MoreDataDialog.target = target;
- let par = { param: this.MoreDataDialog.key };
- this[target.name].form.map((t) => {
- if (t.relevance && t.relevance != "") {
- let reList = t.relevance.split(",");
- console.log(reList, "reList-------------------");
- reList.forEach((i) => {
- par[i] = this.basicData.value[i];
- });
- console.log(par, "par/////////////////////////");
- }
- });
- this.getExecuteMethods(msg.apiUrl, par, (data) => {
- _this.MoreDataDialog.type = data.type;
- if (data.type == "tree") {
- _this.MoreDataDialog.list = arrayUtils.filterTreeData(data.tableBody);
- } else {
- _this.MoreDataDialog.list = data.tableBody;
- _this.MoreDataDialog.form = data.tableHeader;
- }
- this.refer++;
- // this.count++;
- });
- },
- // 参照改变分页大小
- handleSizeChange(e) {
- this.queryParams.pageSize = e;
- this.handleQueryMore(
- this.MoreDataDialog.msg,
- this.MoreDataDialog.key,
- this.MoreDataDialog.target
- );
- },
- // 参照改变当前页
- handleCurrentChange(e) {
- this.queryParams.pageNum = e;
- this.handleQueryMore(
- this.MoreDataDialog.msg,
- this.MoreDataDialog.key,
- this.MoreDataDialog.target
- );
- },
- // 根据apiUrl获取对应参照的值
- getExecuteMethods(methodName, param, cb) {
- let page = {
- pageSize: this.queryParams.pageSize,
- pageNum: this.queryParams.pageNum,
- };
- let params = { ...param };
- // 业务部门需要 依据默认采购组组织查询
- if (methodName == "queryOperatingDepptTree") {
- params["puOrgId"] = this.basicData.value["purchasingOrganization"];
- }
- materialApi.executeMethods(methodName, params, page).then((res) => {
- this.MoreDataDialog.loading = false;
- if (res.code == 200) {
- this.queryParams.total = res.data.total;
- cb(res.data);
- }
- });
- },
- // 获取物料基本信息详细信息
- async getMaterialDetails(id, templateCode) {
- let _this = this;
- await materialApi.materialDetails(id, templateCode).then((res) => {
- this.loading = false;
- console.log(res, "物料基本信息");
- let { code, data } = res;
- if (code == 200) {
- _this.basicData.value = { ..._this.basicData.value, ...data.data };
- for (const key in data.data) {
- _this.basicData.value[key] =
- typeof data.data[key] === "number"
- ? String(data.data[key])
- : data.data[key];
- }
- // _this.handleAddReferLabel('basicData');
- this.count++;
- }
- });
- },
- // 查询财务信息列表
- async getFinanceList(materialId) {
- try {
- this.loading = true;
- let { code, data } = await materialApi.financeList({ materialId });
- if (code == 200) {
- this.mainMsg.value = data.tableBody.rows;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- // 查询计划信息列表
- async getPlanList(materialId) {
- try {
- this.loading = true;
- let { code, data } = await materialApi.planList({ materialId });
- if (code == 200) {
- this.mainMsg.value = data.tableBody.rows;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- // 查询成本信息列表
- async getCostList(materialId) {
- try {
- this.loading = true;
- let { code, data } = await materialApi.costList({ materialId });
- if (code == 200) {
- this.mainMsg.value = data.tableBody.rows;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- // 查询利润中心列表
- async getCenterList(materialId) {
- try {
- this.loading = true;
- let { code, data } = await materialApi.centerList({ materialId });
- if (code == 200) {
- this.mainMsg.value = data.tableBody.rows;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- // 查询采购中心列表
- async getPurchaseList(materialId) {
- try {
- this.loading = true;
- let { code, data } = await materialApi.purchaseList({ materialId });
- if (code == 200) {
- this.mainMsg.value = data.tableBody.rows;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- // 获取库存信息列表
- async getInventoryList(materialId) {
- try {
- this.loading = true;
- let { code, data } = await materialApi.inventoryList({ materialId });
- if (code == 200) {
- this.mainMsg.value = data.tableBody.rows;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- // 查询其他标签页列表详情
- getOtherListDetails(type, id) {
- console.log(type, id, "查询其他标签页列表详情");
- this.otherDeatils.form = this.mainMsg.form;
- console.log(this.otherDeatils.form, "this.otherDeatils.form");
- switch (type) {
- // 财物信息
- case "material_finance":
- this.getFinanceDetails(id);
- break;
- // 利润中心信息
- case "profit_center":
- this.getCenterDetails(id);
- break;
- // 采购信息
- case "material_purchase":
- this.getPurchaseDetails(id);
- break;
- // 库存信息
- case "material_inventory":
- this.getInventoryDetails(id);
- break;
- // 计划信息
- case "material_plan":
- this.getPlanDetails(id);
- break;
- // 成本信息
- case "material_cost":
- this.getCostDetails(id);
- break;
- default:
- break;
- }
- },
- // 查询财务信息详情
- async getFinanceDetails(id) {
- try {
- this.otherDeatils.loading = true;
- let { code, data } = await materialApi.financeDetails(id);
- if (code == 200) {
- this.otherDeatils.value = data.data;
- }
- } catch (error) {
- } finally {
- setTimeout(() => {
- this.otherDeatils.loading = false;
- }, 200);
- }
- },
- // 获取利润中心详情
- async getCenterDetails(id) {
- try {
- this.otherDeatils.loading = true;
- let { code, data } = await materialApi.centerDetails(id);
- if (code == 200) {
- this.otherDeatils.value = data.data;
- }
- } catch (error) {
- } finally {
- setTimeout(() => {
- this.otherDeatils.loading = false;
- }, 200);
- }
- },
- // 获取采购详细信息详情
- async getPurchaseDetails(id) {
- try {
- this.otherDeatils.loading = true;
- let { code, data } = await materialApi.purchaseDetails(id);
- if (code == 200) {
- this.otherDeatils.value = data.data;
- }
- } catch (error) {
- } finally {
- setTimeout(() => {
- this.otherDeatils.loading = false;
- }, 200);
- }
- },
- // 获取成本信息详情
- async getCostDetails(id) {
- try {
- this.otherDeatils.loading = true;
- let { code, data } = await materialApi.costDetails(id);
- if (code == 200) {
- this.otherDeatils.value = data.data;
- }
- } catch (error) {
- } finally {
- setTimeout(() => {
- this.otherDeatils.loading = false;
- }, 200);
- }
- },
- // 获取计划信息详情
- async getPlanDetails(id) {
- try {
- this.otherDeatils.loading = true;
- let { code, data } = await materialApi.planDetails(id);
- if (code == 200) {
- this.otherDeatils.value = data.data;
- }
- } catch (error) {
- } finally {
- setTimeout(() => {
- this.otherDeatils.loading = false;
- }, 200);
- }
- },
- //
- async getInventoryDetails(id) {
- try {
- this.otherDeatils.loading = true;
- let { code, data } = await materialApi.inventoryDetails(id);
- if (code == 200) {
- this.otherDeatils.value = data.data;
- }
- } catch (error) {
- } finally {
- setTimeout(() => {
- this.otherDeatils.loading = false;
- }, 200);
- }
- },
- /* 二级标签页 */
- // 根据物料id获取医药行业信息详细信息
- async getMedcineDetails(id) {
- let _this = this;
- console.log(id);
- await materialApi.medcineDetailsInfo(id).then((res) => {
- this.loading = false;
- console.log(res, "医药行业");
- let { code, data } = res;
- if (code == 200) {
- _this.medcineData.value = data.data || {};
- // this.medcineData.form = data.form;
- // _this.handleAddReferLabel('medcineData');
- console.log(" _this.medcineData", _this.medcineData, res);
- this.count++;
- }
- });
- },
- // 获取物料辅助属性详细信息+表单列段属性
- getPropertyDetails(id) {
- materialApi.propertyDetails(id).then((res) => {
- console.log(res, "物料辅助属性详细信息");
- if (res.code == 200) {
- this.propertyDetail.value = res.data.data || [];
- }
- });
- },
- // 查询物料辅助属性列表+表头字段
- getPropertyList(materialId) {
- materialApi.propertyList({ materialId }).then((res) => {
- console.log(res, "料辅助属性列表");
- if (res.code == 200) {
- this.propertyDetail.value = res.data.data || [];
- }
- });
- },
- //获取辅助计量单位基本信息+表单列段属性
- getUnitDetails(materialId) {
- materialApi.unitDetails(materialId).then((res) => {
- console.log(res, "辅助计量单位基本信息");
- if (res.code == 200) {
- this.unitDetails.value = res.data.tableBody.rows || [];
- }
- });
- },
- //获取辅计量管理列表信息
- getUnitList(materialId) {
- materialApi.unitList({ materialId }).then((res) => {
- console.log(res, "辅计量管理列表信息");
- if (res.code == 200) {
- this.unitDetails.value = res.data.tableBody.rows || [];
- }
- });
- },
- // 获取物料列表表头
- async getTagList(templateCode, cb) {
- let dictIdList = [];
- try {
- let { code, data } = await materialApi.tagList({ templateCode });
- if (code == 200) {
- dictIdList = _.cloneDeep(data);
- let promiseArray = data.map((item, index) => {
- return new Promise((resolve, reject) => {
- if (item.dictId && item.dictId != "") {
- getDicts(item.dictId).then((dict) => {
- if (dict.data) {
- dictIdList[index]["dictValue"] = dict.data;
- resolve();
- }
- });
- } else {
- resolve();
- }
- });
- });
- Promise.all(promiseArray)
- .then(async () => {
- return cb(dictIdList);
- })
- .catch(() => {
- console.log("promise.all执行失败");
- });
- }
- } catch (error) {
- } finally {
- }
- // await materialApi.tagList({ templateCode }).then(async (res) => {
- // console.log(res, `获取${templateCode}表头`);
- // let dictIdList = [];
- // if (res.code == 200) {
- // res.data.map(async (item) => {
- // // 查字典
- // if (item.dictId && item.dictId != "") {
- // // 通过接口获取有dict的对应的数据
- // await getDicts(item.dictId).then((dict) => {
- // if (dict.data) {
- // item["dictValue"] = dict.data;
- // }
- // });
- // }
- // });
- // return cb(res.data);
- },
- // 新增
- handleInster() {
- this.$notify.warning({
- message: "物料只能通过申请审批增加,不能在节点直接录入!",
- });
- },
- // 除基本信息之后的修改
- handleOtherEdit(type) {
- // debugger
- console.log("除基本信息之后的修改", type);
- if ("table" === type) {
- if (this.mainMsg.checkedList.length == 1) {
- this.otherDeatils.show = true;
- this.otherDeatils.isEdit = true;
- let activeTab = this.detailsTabs.filter(
- (item) => item.code == this.activeMainTab
- )[0];
- this.otherDeatils.title = activeTab.label;
- this.otherDeatils.queryKey = this.mainMsg.checkedList[0].id;
- console.log(this.otherDeatils, "this.otherDeatils");
- // 查询其他标签页列表详情
- this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
- } else {
- this.$notify.warning({
- message: "修改请选择单个数据!",
- });
- }
- } else if ("form" === type) {
- if (this.otherDeatils.queryKey) {
- this.otherDeatils.show = true;
- this.otherDeatils.isEdit = true;
- let activeTab = this.detailsTabs.filter(
- (item) => item.code == this.activeMainTab
- )[0];
- this.otherDeatils.title = activeTab.label;
- // 查询其他标签页列表详情
- this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
- }
- }
- },
- // 其他标签详情弹窗-刷新
- handleOtherRefresh() {
- this.getOtherListDetails(this.activeMainTab, this.otherDeatils.queryKey);
- },
- // 其他标签详情弹窗-删除
- handleOtherDel() {
- let ids = this.mainMsg.checkedList.map((i) => i.id);
- console.log(`${this.activeMainTab}其他标签详情弹窗-删除---id合集`, ids);
- if (ids.length) {
- switch (this.activeMainTab) {
- // 财物信息
- case "material_finance":
- this.handleDelFinance(ids);
- break;
- // 利润中心信息
- case "profit_center":
- this.handledDelCenter(ids);
- break;
- // 采购信息
- case "material_purchase":
- this.handledelPurchase(ids);
- break;
- // 库存信息
- case "material_inventory":
- this.handleDelInventory(ids);
- break;
- // 计划信息
- case "material_plan":
- this.handleDelPlan(ids);
- break;
- // 成本信息
- case "material_cost":
- this.handleDelCost(ids);
- default:
- break;
- }
- } else {
- this.$notify.warning({
- message: "请选择需要删除的数据!",
- });
- }
- },
- // 其他标签页刷新
- async handleOtherListRefresh() {
- switch (this.activeMainTab) {
- // 基本信息
- case "material":
- await this.getTagList("material", async (form) => {
- // this.basicData.form = [...form];
- this.basicData.form = [...form];
- this.rules = initRules(form);
- this.basicData.value = initParams(this.basicData.form, "prop");
- await this.getMaterialDetails(this.materialId, "material");
- });
- break;
- // 财物信息
- case "material_finance":
- await this.getTagList("material_finance", async (form) => {
- this.mainMsg.form = [...form];
- await this.getFinanceList(this.materialId);
- });
- break;
- // 利润中心信息
- case "profit_center":
- await this.getTagList("profit_center", async (form) => {
- this.mainMsg.form = [...form];
- await this.getCenterList(this.materialId);
- });
- break;
- // 采购信息
- case "material_purchase":
- await this.getTagList("material_purchase", async (form) => {
- this.mainMsg.form = [...form];
- await this.getPurchaseList(this.materialId);
- });
- break;
- // 库存信息
- case "material_inventory":
- await this.getTagList("material_inventory", async (form) => {
- this.mainMsg.form = [...form];
- await this.getInventoryList(this.materialId);
- });
- break;
- // 计划信息
- case "material_plan":
- await this.getTagList("material_plan", async (form) => {
- this.mainMsg.form = [...form];
- await this.getPlanList(this.materialId);
- });
- break;
- // 成本信息
- case "material_cost":
- await this.getTagList("material_cost", async (form) => {
- this.mainMsg.form = [...form];
- await this.getCostList(this.materialId);
- });
- break;
- default:
- break;
- }
- },
- // 修改
- handleBasicEdit() {
- this.updateButtonGroup = true;
- // this.count++;
- //需要禁止点击其他标签
- // this.detailsTabs = this.detailsTabs.map(item => {
- // item['disabled'] = true;
- // return item
- // })
- console.log(this.detailsTabs, "this.detailsTabs ");
- },
- // 刷新
- handleRefresh() {
- this.$refs.basicMessageRef && this.$refs.basicMessageRef.clearValidate();
- this.$refs.medcineRef && this.$refs.medcineRef.clearValidate();
- this.handleRest();
- },
- // 维护新版本
- handleNewVersion() {
- let _this = this;
- let data = {
- // 物料编码
- code: this.basicData.value.code,
- };
- materialApi.versions(data).then((res) => {
- if (res.code == 200) {
- _this.maintainNewVersion = res.data.result;
- // 维护版本消息展示 by shiy 2023/05/31
- if (!res.data.result) {
- this.$notify.warning({
- message: res.data.msg,
- });
- }
- }
- });
- },
- // 维护物料保存
- handleSaveNewVersion(cb) {
- let data = {
- // 物料编码
- materialCode: this.basicData.value.code,
- //序列号管理; 2= 否,0= 是
- serialNoManager: this.basicData.value.serialNoManager,
- // 批号及库存状态管理;2=否,0=是
- isInventoryStatus: this.basicData.value.isInventoryStatus,
- };
- materialApi
- .saveVersions(data)
- .then((res) => {
- console.log(res, "维护物料保存");
- if (res.code == 200) {
- cb();
- }
- })
- .catch((error) => {
- this.loading = false;
- });
- },
- // 取消保存
- handleCancel() {
- console.log("取消保存");
- this.optionDialog.op = "取消";
- this.optionDialog.show = true;
- },
- // 保存修改
- handleSave() {
- console.log("保存修改");
- this.loading = true;
- // 普通保存修改
- this.updateButtonGroup &&
- this.handleSaveMaterial(() => {
- this.updateButtonGroup = false;
- this.handleRefresh();
- });
- // 维护新版本保存修改
- this.maintainNewVersion &&
- this.handleSaveNewVersion(() => {
- this.maintainNewVersion = false;
- this.handleRefresh();
- });
- },
- // 其他标签页弹窗取消操作
- handleOtherCancel() {
- this.optionDialog.show = true;
- this.optionDialog.op = "修改";
- },
- // 其他标签页弹窗保存
- async handleOtherSave() {
- let data = this.otherDeatils.value;
- console.log(data, "params");
- switch (this.activeMainTab) {
- // 财物信息
- case "material_finance":
- await this.handleSaveFinance(data);
- break;
- // 利润中心信息
- case "profit_center":
- await this.handleSaveCenter(data);
- break;
- // 采购信息
- case "material_purchase":
- await this.handleSavePurchase(data);
- break;
- // 库存信息
- case "material_inventory":
- await this.handleSaveInventoryEdit(data);
- break;
- // 计划信息
- case "material_plan":
- await this.handleSavePlan(data);
- break;
- // 成本信息
- case "material_cost":
- await this.handleSaveCost(data);
- break;
- default:
- break;
- }
- // this.handleOtherRefresh();
- },
- // 其他页签详情弹窗关闭事件
- handleCloseOtherDetails(done) {
- // 处于编辑状态
- if (this.otherDeatils.isEdit) {
- this.$notify.warning({
- message: "请先退出编辑操作",
- });
- } else {
- this.handleOtherListRefresh();
- done();
- }
- },
- // 折叠菜单改变
- handleCollapseChange(val) {
- console.log(val, "折叠菜单改变");
- },
- // 确认弹窗操作
- async handleComfirmOption() {
- console.log("确认弹窗操作");
- this.optionDialog.show = false;
- // 取消基本信息修改
- if (this.updateButtonGroup) {
- this.updateButtonGroup = false;
- // this.handleRest();
- await this.getMaterialDetails(this.materialId, "material");
- await this.getMedcineDetails(this.materialId, "material_medcine");
- this.$refs.basicMessageRef.clearValidate();
- this.$refs.medcineRef.clearValidate();
- }
- // 取消其他主页签详情弹窗修改
- if (this.otherDeatils.isEdit) {
- this.otherDeatils.isEdit = false;
- this.handleOtherRefresh();
- }
- // 取消维护新版本修改
- if (this.maintainNewVersion) {
- console.log("取消维护新版本修改");
- this.maintainNewVersion = false;
- this.handleRefresh();
- }
- },
- handleClear() {
- this.MoreDataDialog.key = "";
- this.handleFilterRefer();
- },
- // 参照弹窗过滤
- handleFilterRefer() {
- // this.MoreDataDialog.key =
- console.log(
- this.MoreDataDialog.key,
- "查询关键字",
- this.MoreDataDialog.target
- );
- this.handleQueryMore(
- this.MoreDataDialog.msg,
- this.MoreDataDialog.key,
- this.MoreDataDialog.target
- );
- },
- // 操作提示弹窗关闭
- handleOptionCancal() {
- this.optionDialog.show = false;
- this.otherDeatils.isEdit = true;
- },
- // 树形节点选择
- handleNodeClick(e) {
- console.log(e, "树形节点选择", this.MoreDataDialog.target);
- // let node = { ...e, name: e.label }
- this.MoreDataDialog.value = e;
- },
- // 修改-更多数据表格——选择行
- handleCurentRow(row) {
- console.log(row, "修改-更多数据表格——选择行");
- this.MoreDataDialog.value = row;
- },
- handleDbClick(row) {
- this.MoreDataDialog.value = row;
- this.handleConfirmRefer();
- },
- // 参照弹窗确认
- handleConfirmRefer() {
- let _this = this;
- console.log(
- "确认参照弹窗",
- `{this.${this.MoreDataDialog.target.name}:${this.MoreDataDialog.value.id}}`
- );
- let confirm = true;
- if (this.MoreDataDialog.target.name == "basicData") {
- // 四级分类
- if (this.MoreDataDialog.target.prop == "classifyId") {
- if (this.MoreDataDialog.value.childrens.length > 0) {
- return this.$modal.notifyWarning("请选择最末级!");
- }
- }
- // 基本信息
- this.basicData.value[this.MoreDataDialog.target.prop] =
- this.MoreDataDialog.value.id;
- this.basicData.value[`${this.MoreDataDialog.target.prop}Name`] =
- this.MoreDataDialog.value.name;
- console.log(
- this.MoreDataDialog.target.prop,
- "props-----------------",
- this.MoreDataDialog.value
- );
- console.log(
- this.basicData.value[`${this.MoreDataDialog.target.prop}`],
- "值",
- this.basicData.value[`${this.MoreDataDialog.target.prop}Name`],
- "//////////基本信息///////////"
- );
- // 默认采购组织:purchasingOrganization 业务部门:businessDepartment
- if (this.MoreDataDialog.target.prop == "purchasingOrganization") {
- this.basicData.value["businessDepartment"] = "";
- this.basicData.value["businessDepartmentName"] = "";
- }
- // 物料税类materialRate
- if (this.MoreDataDialog.target.prop == "materialRate") {
- this.basicData.value["rateCode"] = this.MoreDataDialog.value.code;
- }
- } else if (this.MoreDataDialog.target.name == "medcineData") {
- // 医药信息
- this.medcineData.value[this.MoreDataDialog.target.prop] =
- this.MoreDataDialog.value.id;
- this.medcineData.value[`${this.MoreDataDialog.target.prop}Name`] =
- this.MoreDataDialog.value.name;
- console.log(
- this.MoreDataDialog.target.prop,
- "props-----------------",
- this.MoreDataDialog.value
- );
- console.log(
- this.medcineData.value[`${this.MoreDataDialog.target.prop}Name`],
- "//////医药信息//////////"
- );
- } else if (this.MoreDataDialog.target.name == "otherDeatils") {
- // 其他页签
- this.otherDeatils.value[this.MoreDataDialog.target.prop] =
- this.MoreDataDialog.value.id;
- this.otherDeatils.value[`${this.MoreDataDialog.target.prop}Name`] =
- this.MoreDataDialog.value.name;
- console.log(
- this.otherDeatils.value[`${this.MoreDataDialog.target.prop}Name`],
- "/////////其他页签///////"
- );
- }
- if (confirm) {
- // this.count++;
- this.refer++;
- this.MoreDataDialog.show = false;
- this.MoreDataDialog.key = "";
- this.MoreDataDialog.value = {};
- }
- },
- // 取消-关闭参照弹窗
- handleConcalRefer() {
- this.MoreDataDialog.show = false;
- this.MoreDataDialog.key = "";
- },
- // 关闭参照弹窗前
- handleCloseRefer(done) {
- this.MoreDataDialog.key = "";
- done();
- },
- // 删除利润中心信息
- handledDelCenter(ids) {
- console.log("删除利润中心信息");
- materialApi.delCenter(ids).then((res) => {
- if (res.code == 200) {
- this.handleOtherListRefresh();
- }
- });
- },
- // 删除库存信息
- handleDelInventory(ids) {
- console.log("删除库存信息");
- materialApi.delInventory(ids).then((res) => {
- if (res.code == 200) {
- this.handleOtherListRefresh();
- }
- });
- },
- // 删除成本信息
- handleDelCost(ids) {
- console.log("删除成本信息");
- materialApi.delCost(ids).then((res) => {
- if (res.code == 200) {
- this.handleOtherListRefresh();
- }
- });
- },
- // 删除计划信息
- handleDelPlan(ids) {
- console.log("删除计划信息");
- materialApi.delPlan(ids).then((res) => {
- if (res.code == 200) {
- this.handleOtherListRefresh();
- }
- });
- },
- // 删除财物信息
- handleDelFinance(ids) {
- console.log("删除财物信息");
- materialApi.delFinance(ids).then((res) => {
- if (res.code == 200) {
- this.handleOtherListRefresh();
- }
- });
- },
- // 删除采购信息
- handledelPurchase(ids) {
- console.log("删除采购信息");
- materialApi.delPurchase(ids).then((res) => {
- if (res.code == 200) {
- this.handleOtherListRefresh();
- }
- });
- },
- // 保存物料以及相关页签
- handleSaveMaterial(cb) {
- let param = {
- ...this.basicData.value,
- materialMedcine: this.medcineData.value,
- materialMedcineItem: {},
- };
- // diCode
- param.diCode = param.diCode && param.diCode.replace(/ /g, "");
- console.log(param, "保存物料以及相关页签param");
- materialApi
- .insertMaterialInfo(param)
- .then((res) => {
- console.log(res, "保存物料以及相关页签");
- if (res.code == 200) cb();
- })
- .catch((error) => {
- this.loading = false;
- });
- },
- // 保存财务信息——单个数据
- async handleSaveFinance(data) {
- console.log(data, "保存财务信息——单个数据");
- try {
- this.otherDeatils.loading = true;
- let { code, msg } = await materialApi.financeEdit(data);
- if (code == 200) {
- this.otherDeatils.isEdit = false;
- this.handleOtherRefresh();
- this.$notify.success({
- message: msg,
- });
- }
- } catch (error) {
- } finally {
- this.otherDeatils.loading = false;
- }
- // this.otherDeatils.loading = true;
- // materialApi.financeEdit(data).then(res => {
- // if (res.code == 200) {
- // this.otherDeatils.isEdit = false;
- // this.handleOtherRefresh();
- // }
- // this.otherDeatils.loading = false;
- // })
- },
- // 保存利润中心信息
- async handleSaveCenter(data) {
- console.log(data, "保存利润中心信息");
- try {
- this.otherDeatils.loading = true;
- let { code, msg } = await materialApi.centerEdit(data);
- if (code == 200) {
- this.otherDeatils.isEdit = false;
- this.handleOtherRefresh();
- this.$notify.success({
- message: msg,
- });
- }
- } catch (error) {
- } finally {
- this.otherDeatils.loading = false;
- }
- // materialApi.centerEdit(data).then(res => {
- // if (res.code == 200) {
- // this.otherDeatils.isEdit = false;
- // this.handleOtherRefresh();
- // }
- // })
- },
- // 保存采购信息
- async handleSavePurchase(data) {
- console.log(data, "保存采购信息");
- try {
- this.otherDeatils.loading = true;
- let { code, msg } = await materialApi.purchaseEdit(data);
- if (code == 200) {
- this.otherDeatils.isEdit = false;
- this.handleOtherRefresh();
- this.$notify.success({
- message: msg,
- });
- }
- } catch (error) {
- } finally {
- this.otherDeatils.loading = false;
- }
- // materialApi.purchaseEdit(data).then(res => {
- // if (res.code == 200) {
- // this.otherDeatils.isEdit = false;
- // this.handleOtherRefresh();
- // }
- // })
- },
- // 保存库存信息
- async handleSaveInventoryEdit(data) {
- console.log(data, "保存库存信息");
- try {
- this.otherDeatils.loading = true;
- let { code, msg } = await materialApi.inventoryEdit(data);
- if (code == 200) {
- this.otherDeatils.isEdit = false;
- this.handleOtherRefresh();
- this.$notify.success({
- message: msg,
- });
- }
- } catch (error) {
- } finally {
- this.otherDeatils.loading = false;
- }
- // materialApi.inventoryEdit(data).then(res => {
- // if (res.code == 200) {
- // this.otherDeatils.isEdit = false;
- // this.handleOtherRefresh();
- // }
- // })
- },
- // 保存计划信息
- async handleSavePlan(data) {
- console.log(data, "保存计划信息");
- try {
- this.otherDeatils.loading = true;
- let { code, msg } = await materialApi.planEdit(data);
- if (code == 200) {
- this.otherDeatils.isEdit = false;
- this.handleOtherRefresh();
- this.$notify.success({
- message: msg,
- });
- }
- } catch (error) {
- } finally {
- this.otherDeatils.loading = false;
- }
- // materialApi.planEdit(data).then(res => {
- // if (res.code == 200) {
- // this.otherDeatils.isEdit = false;
- // this.handleOtherRefresh();
- // }
- // })
- },
- // 保存成本信息
- async handleSaveCost(data) {
- console.log(data, "保存成本信息");
- try {
- this.otherDeatils.loading = true;
- let { code, msg } = await materialApi.costEdit(data);
- if (code == 200) {
- this.otherDeatils.isEdit = false;
- this.handleOtherRefresh();
- this.$notify.success({
- message: msg,
- });
- }
- } catch (error) {
- } finally {
- this.otherDeatils.loading = false;
- }
- // materialApi.costEdit(data).then(res => {
- // if (res.code == 200) {
- // this.otherDeatils.isEdit = false;
- // this.handleOtherRefresh();
- // }
- // })
- },
- judgeIsRequriedByProps(message) {
- // condiition:条件,tergetNames:目标porps数组,formName:表单,formRef:表单ref名,
- this[message.formName].form.forEach((formItem) => {
- let target = message.tergetNames.filter((t) => t === formItem.prop);
- if (target && target.length) {
- formItem.required = message.condiition ? false : true;
- }
- });
- this.rules = initRules(this[message.formName].form);
- this.$nextTick(() => {
- message.condiition &&
- this.$refs[message.formRef].clearValidate(message.tergetNames);
- });
- },
- // 重新加载
- async handleRest() {
- this.loading = true;
- // 基本信息
- await this.getTagList("material", async (form) => {
- this.basicData.form = [...form];
- this.rules = initRules(form);
- this.basicData.value = initParams(this.basicData.form, "prop");
- await this.getMaterialDetails(this.materialId, "material");
- });
- // 医疗行业
- await this.getTagList("material_medcine", async (form) => {
- this.medcineData.form = [...form];
- this.medcineData.value = initParams(this.medcineData.form, "prop");
- this.medcineRules = initRules(form);
- await this.getMedcineDetails(this.materialId, "material_medcine");
- });
- },
- },
- watch: {
- // 监听主标签修改标识,控制其他标签是否禁止点击
- updateButtonGroup: function (nVal, oVal) {
- console.log(nVal, "nVal", oVal, "oVal");
- this.detailsTabs = this.detailsTabs.map((item) => {
- item["disabled"] = nVal;
- return item;
- });
- },
- maintainNewVersion: function (nVal, oVal) {
- console.log(nVal, "nVal", oVal, "oVal");
- this.detailsTabs = this.detailsTabs.map((item) => {
- item["disabled"] = nVal;
- return item;
- });
- },
- "basicData.value.isMedicine": {
- handler(nVal, oVal) {
- this.basicData.form = this.basicData.form.map((formItem) => {
- if (formItem.prop === "productionPermit") {
- formItem.required = nVal == "0" ? true : false;
- }
- return formItem;
- });
- },
- deep: true,
- },
- // 物料分类改变同时改变一二三级分类
- "basicData.value.classifyId": {
- async handler(nVal, oVal) {
- if (nVal !== oVal) {
- try {
- let { code, data } = await getDetail(nVal);
- if (code == 200) {
- let { oneClass, twoClass, threeClass } = data;
- this.basicData.value["oneClass"] = oneClass;
- this.basicData.value["twoClass"] = twoClass;
- this.basicData.value["threeClass"] = threeClass;
- }
- } catch (error) {}
- }
- },
- deep: true,
- },
- // 效期管理 expiryDateManagerment 控制 expiryUnitId 效期单位 usefulLife 有效期 usefulLifeUnitId 有效期至单位 必填
- "basicData.value.expiryDateManagerment": {
- handler(nVal, oVal) {
- this.judgeIsRequriedByProps({
- condiition: nVal === "2",
- tergetNames: [
- "expiryUnitId",
- "usefulLife",
- "usefulLifeUnitId",
- "recentWarningPeriod",
- ],
- formName: "basicData",
- formRef: "basicMessageRef",
- });
- },
- deep: true,
- },
- },
- created() {
- // 基本信息
- // this.handleRest();
- // if (window.name === "") {
- // this.$route.query.isEdit && this.handleBasicEdit();
- // } else {
- // console.log("页面被刷新");
- // }
- },
- };
- </script>
- <style lang="scss" scoped>
- .material-details {
- padding: 12px;
- height: 100%;
- // height: calc(100vh - 158px);
- box-sizing: border-box;
- .el-card__body {
- height: calc(100vh - 40px);
- // height: 100%;
- box-sizing: border-box;
- padding: 12px;
- overflow-y: auto;
- overflow-x: auto;
- .el-select {
- width: 100%;
- }
- }
- .md-content {
- // height: calc(100vh - 200px);
- box-sizing: border-box;
- .md-basic {
- overflow: auto;
- .md-main {
- margin-bottom: 10px;
- .el-form {
- max-height: 430px;
- overflow-y: auto;
- overflow-x: hidden;
- .redSpan::before {
- content: "* ";
- color: red;
- }
- .el-checkbox {
- padding: 0 58%;
- }
- }
- }
- .md-vice-content {
- height: 140px;
- overflow-y: auto;
- overflow-x: hidden;
- }
- }
- .md-auditInfo {
- .el-divider--horizontal {
- margin: 20px 0px 15px;
- }
- }
- }
- }
- </style>
- <style scoped>
- >>> .el-drawer__header {
- display: none;
- }
- >>> .el-dialog__header {
- background-color: rgb(244, 244, 244);
- }
- >>> .MoreDataDialog .el-table__body-wrapper {
- height: 300px;
- overflow-y: auto;
- overflow-x: hidden;
- }
- >>> .MoreDataDialog .more-button {
- margin-top: 10px;
- text-align: right;
- }
- >>> .MoreDataDialog .referTree {
- height: 390px;
- overflow-x: hidden;
- overflow-y: auto;
- }
- >>> .MoreDataDialog .el-table {
- margin-top: 10px;
- }
- >>> .MoreDataDialog .el-pagination {
- text-align: right;
- margin-top: 5px;
- }
- >>> .MoreDataDialog .el-dialog__body {
- height: 500px;
- padding: 20px 15px;
- }
- .md-content >>> .el-form-item,
- .otherDialog >>> .el-form-item {
- margin-bottom: 0px;
- }
- .otherDialog >>> .el-collapse-item__content {
- padding-bottom: 12px;
- }
- .otherDialog >>> .el-checkbox {
- width: 100%;
- padding: 0 10%;
- }
- .otherDialog >>> .el-dialog__body {
- padding: 12px 20px;
- height: 80%;
- overflow: auto;
- }
- .otherDialog >>> .od-msg {
- max-height: 220px;
- box-sizing: border-box;
- overflow-y: auto;
- overflow-x: hidden;
- }
- .md-content >>> .el-tabs--border-card > .el-tabs__content {
- padding-bottom: 8px;
- }
- .md-content .md-auditInfo >>> .el-form-item {
- margin-bottom: 0px;
- }
- .md-main >>> .el-form-item,
- .md-vice >>> .el-form-item,
- .od-msg >>> .el-form-item {
- width: 100%;
- box-sizing: border-box;
- }
- .md-main >>> .el-form-item__label,
- .md-vice >>> .el-form-item__label,
- .od-msg >>> .el-form-item__label {
- width: 40%;
- }
- .od-msg >>> .el-checkbox__input {
- width: 15%;
- }
- .md-main >>> .el-form-item__content,
- .md-vice >>> .el-form-item__content,
- .od-msg >>> .el-form-item__content {
- width: 60%;
- box-sizing: border-box;
- height: 36px;
- }
- .od-msg >>> .el-checkbox__label {
- width: 85%;
- box-sizing: border-box;
- font-size: 12px;
- }
- .od-msg-checkedbx >>> .el-form-item__content {
- width: 80%;
- box-sizing: border-box;
- }
- .od-msg-checkedbx >>> .el-checkbox {
- width: 75%;
- box-sizing: border-box;
- }
- .md-content >>> .el-form-item__label,
- .otherDialog >>> .el-form-item__label,
- .od-msg >>> .el-form-item__label,
- .od-msg >>> .el-checkbox__label {
- font-weight: normal;
- /* text-align: left;
- width: 28%; */
- white-space: nowrap;
- /* IE6 需要定义宽度 */
- overflow: hidden;
- -o-text-overflow: ellipsis;
- /* Opera */
- text-overflow: ellipsis;
- /* IE, Safari (WebKit) */
- /* -moz-binding: url('ellipsis.xml#ellipsis'); */
- /* Firefox */
- }
- .otherDialog >>> .el-form-item__label {
- font-size: 12px;
- }
- .md-main >>> .material-table {
- height: 100%;
- }
- .md-vice >>> .material-table {
- height: 140px;
- overflow-y: auto;
- overflow-x: auto;
- }
- >>> .referTree {
- margin-top: 10px;
- }
- </style>
|