123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743 |
- <template>
- <el-dialog
- :title="title"
- :visible.sync="showDialog"
- width="80%"
- @close="handleClose"
- :close-on-click-modal="false"
- >
- <span>
- <el-form ref="form" :model="form" label-width="90px">
- <el-row>
- <el-col :span="6">
- <el-form-item label="客户名称" prop="fCorpId">
- <el-select
- v-model="form.fCorpId"
- placeholder="请输入客户名称"
- :clearable="true"
- filterable
- size="mini"
- style="width: 180px"
- :disabled="true"
- >
- <el-option
- v-for="(dict, index) in fMblnoOptions"
- :key="index.fId"
- :label="dict.fName"
- :value="dict.fId"
- />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="业务类型" prop="billType">
- <el-select
- v-model="form.billType"
- placeholder="请选择业务类型"
- :disabled="true"
- size="mini"
- style="width: 180px"
- >
- <el-option
- v-for="(dict, index) in billTypeList"
- :key="index.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="运输方式" prop="transType">
- <el-select
- v-model="form.transType"
- placeholder="请选择运输方式"
- :disabled="true"
- size="mini"
- style="width: 180px"
- >
- <el-option
- v-for="(dict, index) in transTypeList"
- :key="index.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="运输性质" prop="transProp">
- <el-select
- v-model="form.transProp"
- placeholder="请选择运输方式"
- :disabled="true"
- size="mini"
- style="width: 180px"
- >
- <el-option
- v-for="(dict, index) in transPropList"
- :key="index.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="装车地点" prop="tLoadAddr">
- <el-input
- v-model="form.tLoadAddr"
- placeholder="请输入装车地点"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="计划时间" prop="tLoadDate">
- <el-date-picker
- clearable
- size="mini"
- style="width: 180px"
- v-model="form.tLoadDate"
- type="date"
- placeholder="选择计划装车时间"
- :disabled="true"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="联系人" prop="loadAttn">
- <el-input
- v-model="form.tLoadAttn"
- placeholder="请输入装车联系人"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="联系电话" prop="loadAttntel">
- <el-input
- v-model="form.tLoadAttntel"
- placeholder="请输入装车联系电话"
- :disabled="true"
- v-input-limit="0"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="卸车地点" prop="unLoadAddr">
- <el-input
- v-model="form.tUnLoadAddr"
- placeholder="请输入卸车地点"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="计划时间" prop="tUnLoadDate">
- <el-date-picker
- clearable
- size="mini"
- style="width: 180px"
- v-model="form.tUnLoadDate"
- type="date"
- placeholder="选择计划卸车时间"
- :disabled="true"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="联系人" prop="unLoadAttn">
- <el-input
- v-model="form.tUnLoadAttn"
- placeholder="请输入卸车联系人"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="联系电话" prop="unLoadAttnTel">
- <el-input
- v-model="form.tUnLoadAttnTel"
- placeholder="请输入卸车联系电话"
- :disabled="true"
- v-input-limit="0"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="提单号" prop="mblno">
- <el-input
- v-model="form.mblno"
- placeholder="请输入提单号"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="货品名称" prop="goodsId">
- <el-select
- v-model="form.goodsId"
- placeholder="请输入货品名称"
- :disabled="true"
- clearable
- filterable
- size="mini"
- style="width: 180px"
- >
- <el-option
- v-for="(dict, index) in goodsOptions"
- :key="index.fId"
- :label="dict.fName"
- :value="dict.fId"
- />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="计划件数" prop="qtyPlan">
- <el-input
- v-model="form.qtyPlan"
- placeholder="请输入计划件数"
- :disabled="true"
- v-input-limit="2"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="重量(吨)" prop="weightPlan">
- <el-input
- v-model="form.weightPlan"
- placeholder="请输入计划重量"
- :disabled="true"
- v-input-limit="2"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="船名" prop="ysl">
- <el-input
- v-model="form.ysl"
- placeholder="请输入船名"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="航次" prop="voy">
- <el-input
- v-model="form.voy"
- placeholder="请输入航次"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="起运港" prop="polId">
- <el-select
- v-model="form.polId"
- placeholder="请输入起运港"
- :clearable="true"
- filterable
- :disabled="true"
- size="mini"
- style="width: 180px"
- >
- <el-option
- v-for="(dict, index) in polList"
- :key="index.fId"
- :label="dict.fName"
- :value="dict.fId"
- />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="目的港" prop="podId">
- <el-select
- v-model="form.podId"
- placeholder="请输入目的港"
- :clearable="true"
- filterable
- :disabled="true"
- size="mini"
- style="width: 180px"
- >
- <el-option
- v-for="(dict, index) in podList"
- :key="index.fId"
- :label="dict.fName"
- :value="dict.fId"
- />
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="车号" prop="carregNo">
- <el-input
- v-model="form.carregNo"
- placeholder="请输入车号"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="司机" prop="driverName">
- <el-input
- v-model="form.driverName"
- placeholder="请输入司机"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="司机电话" prop="driverTel">
- <el-input
- v-model="form.driverTel"
- placeholder="请输入司机电话"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="箱号" prop="cntrName">
- <el-input
- v-model="form.cntrName"
- placeholder="请输入箱号"
- :disabled="true"
- size="mini"
- style="width: 180px"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="运单号" prop="orderNo">
- <el-input
- v-model="form.orderNo"
- placeholder="请输入运单号"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- disabled
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="起始里程" prop="odometerFrom">
- <el-input
- v-model="form.odometerFrom"
- placeholder="请输入起始里程表读数"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="结束里程" prop="odometerEnd">
- <el-input
- v-model="form.odometerEnd"
- placeholder="请输入结束里程表读数"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="接单时间" prop="acceptDate">
- <el-date-picker
- clearable
- size="mini"
- style="width: 180px"
- v-model="form.acceptDate"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择接单时间"
- :disabled="disabled"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="提箱时间" prop="loadDate">
- <el-date-picker
- clearable
- size="mini"
- style="width: 180px"
- v-model="form.loadDate"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择提箱时间"
- :disabled="disabled"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="装卸货时间" prop="mdLoadDate">
- <el-date-picker
- clearable
- size="mini"
- style="width: 180px"
- v-model="form.mdLoadDate"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择装卸货时间"
- :disabled="disabled"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="还卸柜时间" prop="unLoadDate">
- <el-date-picker
- clearable
- size="mini"
- style="width: 180px"
- v-model="form.unLoadDate"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择还卸柜时间"
- :disabled="disabled"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="回单时间" prop="waybillDate">
- <el-date-picker
- clearable
- size="mini"
- style="width: 180px"
- v-model="form.waybillDate"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择回单时间"
- :disabled="disabled"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="油气费" prop="oilAmt">
- <el-input
- v-model="form.oilAmt"
- placeholder="请输入油气费"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="单趟提成" prop="driverbonus">
- <el-input
- v-model="form.driverbonus"
- placeholder="请输入单趟提成"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="其他费用" prop="costOth">
- <el-input
- v-model="form.costOth"
- placeholder="请输入其他费用"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="花销备注" prop="costRemarks">
- <el-input
- v-model="form.costRemarks"
- placeholder="请输入备注"
- size="mini"
- style="width: 180px"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-if="form.billType == 1">
- <el-col :span="6">
- <el-form-item label="修洗费" prop="costomAmt03">
- <el-input
- v-model="form.costomAmt03"
- placeholder="请输入修洗费"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="吊装费" prop="costomAmt04">
- <el-input
- v-model="form.costomAmt04"
- placeholder="请输入吊装费"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="其他费用" prop="costomAmt02">
- <el-input
- v-model="form.costomAmt02"
- placeholder="请输入其他费用"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="费用备注" prop="costomStr02">
- <el-input
- v-model="form.costomStr02"
- placeholder="请输入备注"
- size="mini"
- style="width: 180px"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-if="form.billType == 2">
- <el-col :span="6">
- <el-form-item label="港杂费" prop="costomAmt05">
- <el-input
- v-model="form.costomAmt05"
- placeholder="请输入港杂费"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="提箱费" prop="costomAmt06">
- <el-input
- v-model="form.costomAmt06"
- placeholder="请输入提箱费"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="其他费用" prop="costomAmt01">
- <el-input
- v-model="form.costomAmt01"
- placeholder="请输入其他费用"
- size="mini"
- style="width: 180px"
- v-input-limit="2"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="费用备注" prop="costomStr01">
- <el-input
- v-model="form.costomStr01"
- placeholder="请输入备注"
- size="mini"
- style="width: 180px"
- :disabled="disabled"
- />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <el-form-item label="备注" prop="acceptRemarks">
- <el-input
- v-model="form.acceptRemarks"
- placeholder="请输入备注"
- size="mini"
- :disabled="disabled"
- type="textarea"
- :rows="2"
- />
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <el-collapse v-model="collapses">
- <el-collapse-item>
- <template slot="title">
- <i class="header-icon el-icon-circle-plus" style="font-size: 16px"
- ><span
- style="font-size: 16px; font-weight: bolder; margin-left: 5px"
- >确认费用</span
- >
- </i>
- </template>
- <div>
- <div
- style="
- display: flex;
- justify-content: space-between;
- margin: 10px 0;
- "
- >
- <div>
- <el-button
- type="primary"
- icon="el-icon-plus"
- size="mini"
- @click="addRelevt4"
- v-hasPermi="['fleet:vehicleStatus:edit']"
- >添加费用</el-button
- >
- <el-button
- type="primary"
- icon="el-icon-plus"
- size="mini"
- @click="addRelevt2"
- v-hasPermi="['fleet:vehicleStatus:edit']"
- >导入费用</el-button
- >
- </div>
- </div>
- </div>
- <el-table :data="chiFeesList" style="width: 100%">
- <el-table-column
- prop="fCorpid"
- label="结算单位"
- align="center"
- width="180"
- >
- <template slot-scope="scope">
- <el-select
- v-model="scope.row.fCorpid"
- placeholder="请输入客户名称"
- :clearable="true"
- filterable
- size="mini"
- style="width: 160px"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- >
- <el-option
- v-for="(dict, index) in allfMblnoOptions"
- :key="index.fId"
- :label="dict.fName"
- :value="dict.fId"
- />
- </el-select>
- </template>
- </el-table-column>
- <el-table-column
- prop="fFeeid"
- label="费用名称"
- align="center"
- width="120"
- >
- <template slot-scope="scope">
- <el-select
- v-model="scope.row.fFeeid"
- filterable
- remote
- placeholder="费用名称"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- >
- <el-option
- v-for="(dict, index) in fWbuOptions"
- :key="index.fId"
- :label="dict.fName"
- :value="dict.fId"
- ></el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column prop="fDc" label="收付" align="center" width="100">
- <template slot-scope="scope">
- <el-select
- v-model="scope.row.fDc"
- placeholder="请选择"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- >
- <el-option label="收" value="D"></el-option>
- <el-option label="付" value="C"></el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column
- prop="fFeeunitid"
- label="计费单位"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-select
- v-model="scope.row.fFeeunitid"
- placeholder="请选择计费单位"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- clearable
- >
- <el-option
- v-for="dict in jFeetunitOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </template>
- </el-table-column>
- <el-table-column
- prop="fBillingQty"
- label="计费数量"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.fBillingQty"
- placeholder="请输入内容"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- @input="total(scope.row)"
- v-input-limit="2"
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- prop="fUnitprice"
- label="单价"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.fUnitprice"
- placeholder="请输入内容"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- @input="total(scope.row)"
- v-input-limit="2"
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- prop="fCurrency"
- label="币种"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.fCurrency"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- placeholder="请输入内容"
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- prop="fExrate"
- label="汇率"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.fExrate"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- placeholder="请输入内容"
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- prop="fAmount"
- label="金额"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.fAmount"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- placeholder="请输入内容"
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- prop="fTaxrate"
- label="税率"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.fTaxrate"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- placeholder="请输入内容"
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column
- prop="remarks"
- label="备注"
- align="center"
- width="180"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.remarks"
- placeholder="请输入内容"
- :disabled="scope.row.fBillstatus > 2 || scope.row.fBillstatus <=6"
- ></el-input>
- </template>
- </el-table-column>
- <el-table-column prop="remarks" label="费用来源" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.actId == 1080">费用确认</span>
- <span v-if="scope.row.actId == 1090">追加费用</span>
- </template>
- </el-table-column>
- <el-table-column
- label="操作"
- align="center"
- class-name="small-padding fixed-width"
- fixed="right"
- width="240px"
- >
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-document-checked"
- :disabled="
- scope.row.fBillstatus == 6 || scope.row.fBillstatus == 3
- "
- @click.native.prevent="addFees(scope.row)"
- >提交</el-button
- >
- <el-button
- size="mini"
- type="text"
- icon="el-icon-refresh"
- :disabled="scope.row.fBillstatus == 3"
- @click.native.prevent="fixFees(scope.row)"
- >变更</el-button
- >
- <el-button
- size="mini"
- type="text"
- icon="el-icon-document-delete"
- :disabled="scope.row.fBillstatus < 6"
- @click.native.prevent="revokeFees(scope.row)"
- >撤销</el-button
- >
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- :disabled="scope.row.fBillstatus == 6"
- @click.native.prevent="
- delFees(scope.$index, chiFeesList, scope.row)
- "
- >删除</el-button
- >
- </template>
- </el-table-column>
- </el-table>
- </el-collapse-item>
- <el-collapse-item>
- <template slot="title">
- <i class="header-icon el-icon-circle-plus" style="font-size: 16px"
- ><span
- style="font-size: 16px; font-weight: bolder; margin-left: 5px"
- >附件上传</span
- >
- </i>
- </template>
- <div>
- <div
- style="
- display: flex;
- justify-content: space-between;
- margin: 10px 0;
- "
- >
- <div>
- <el-button
- type="primary"
- icon="el-icon-plus"
- size="mini"
- @click="addRelevt"
- :disabled="disabled"
- >添加</el-button
- >
- </div>
- </div>
- <el-table
- :data="relevantAttachments"
- tooltip-effect="dark"
- border
- stripe
- style="width: 100%"
- height="150"
- >
- <el-table-column label="序号" type="index" width="80">
- </el-table-column>
- <el-table-column
- prop="attachName"
- header-align="center"
- align="center"
- label="附件名称"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.attachName"
- placeholder="附件名称"
- show-word-limit
- :disabled="disabled"
- />
- </template>
- </el-table-column>
- <el-table-column
- prop="createBy "
- header-align="center"
- align="center"
- label="上传人"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.createBy"
- placeholder="上传人"
- show-word-limit
- :disabled="disabled"
- />
- </template>
- </el-table-column>
- <el-table-column
- prop="createTime"
- header-align="center"
- align="center"
- label="上传时间"
- >
- <template slot-scope="scope">
- <el-date-picker
- v-model="scope.row.createTime"
- type="date"
- disabled
- placeholder="上传时间"
- ></el-date-picker>
- </template>
- </el-table-column>
- <el-table-column
- prop="attachUrl"
- header-align="center"
- align="center"
- label="上传附件"
- >
- <template slot-scope="scope">
- <div style="display: flex; justify-content: center">
- <el-upload
- class="upload-demo"
- :action="uploadImgUrl"
- :on-success="
- (res, file) => {
- handleSucces(scope, res, file);
- }
- "
- :headers="headers"
- :disabled="disabled"
- :show-file-list="false"
- :limit="1"
- >
- <el-button size="small" type="text" :disabled="disabled"
- >点击上传</el-button
- >
- </el-upload>
- <el-button
- size="small"
- type="text"
- @click="checkFile(scope)"
- :disabled="disabled"
- style="margin-left: 10px"
- >查看</el-button
- >
- <el-button
- size="small"
- type="text"
- :disabled="disabled"
- @click="deleteFile(scope)"
- >删除</el-button
- >
- </div>
- </template>
- </el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- label="操作"
- width="130PX"
- >
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click.native.prevent="
- deleteRow(scope.$index, relevantAttachments)
- "
- :disabled="disabled"
- >删除</el-button
- >
- </template>
- </el-table-column>
- </el-table>
- </div>
- </el-collapse-item>
- </el-collapse>
- </span>
- <span slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm('acceptDate')"
- >接 单</el-button
- >
- <el-button type="primary" @click="submitForm('loadDate')"
- >提 箱</el-button
- >
- <el-button type="primary" @click="submitForm('mdLoadDate')"
- >装卸货</el-button
- >
- <el-button type="primary" @click="submitForm('unLoadDate')"
- >还卸柜</el-button
- >
- <el-button type="primary" @click="submitForm('waybillDate')"
- >回 单</el-button
- >
- <el-button type="primary" @click="driversubmitForm"
- >提 交</el-button
- >
- <el-button type="success" @click="submitAllowChanges">修 改</el-button>
- <el-button type="info" @click="submitSave">保 存</el-button>
- <!-- <el-button type="warning" @click="submitRetreat">撤 回</el-button> -->
- <el-button @click="showDialog = false">取 消</el-button>
- </span>
- </el-dialog>
- </template>
- <script>
- import {
- removeFtmsorderbillscars,
- driverSaveFtmsorderbillscars,
- insertDriverFtmsorderbillscars,
- } from "@/api/fleet/ftmsorderbillscars";
- import { getBasicInformation } from "@/api/kaihe/basicdata/container";
- import { listGoods } from "@/api/basicdata/goods";
- import { listCorps } from "@/api/basicdata/corps";
- import { listFees } from "@/api/basicdata/fees";
- import UploadFile from "@/components/Uploadfile";
- import { submit, changeFees ,revokeFees,deleteFees,driverSubmit} from "@/api/track/singleCost";
- import Cookies from "js-cookie";
- import { getToken } from "@/utils/auth";
- export default {
- name: "plans",
- props: {
- addOrUpdateVisible: {
- type: Boolean,
- default: false,
- },
- title: {
- type: String,
- required: "",
- },
- form: Object,
- DList: {
- type: Array,
- default: [],
- },
- CList: {
- type: Array,
- default: [],
- },
- disabled: Boolean,
- relevantAttachments: {
- type: Array,
- default: [],
- },
- feesList: {
- type: Array,
- default:() => [],
- },
- allfMblnoOptions: {
- type: Array,
- default: [],
- },
- },
- components: {
- UploadFile,
- },
- data() {
- return {
- chiFeesList: [],
- // 控制弹出框显示隐藏
- showDialog: false,
- billTypeList: [],
- transTypeList: [],
- transPropList: [],
- goodsLossTypeList: [],
- cntrIdList: [],
- priceTypeList: [],
- userType: null,
- username: null,
- collapses: [],
- fMblnoOptions: [],
- fMblnoOptions2: [],
- cntrId2List: [],
- goodsOptions: [],
- fWbuOptions: [],
- ffeeunitidList: [],
- polList: [],
- podList: [],
- uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
- headers: {
- Authorization: "Bearer " + getToken(),
- },
- jFeetunitOptions: [],
- };
- },
- created() {
- this.getDicts("data_unitfees").then((response) => {
- if (response.data) {
- this.jFeetunitOptions = response.data;
- }
- });
- this.getDicts("data_billType").then((response) => {
- this.billTypeList = response.data;
- });
- this.getDicts("data_transType").then((response) => {
- this.transTypeList = response.data;
- });
- this.getDicts("data_transProp").then((response) => {
- this.transPropList = response.data;
- });
- this.getDicts("data_goodsLossType").then((response) => {
- this.goodsLossTypeList = response.data;
- });
- this.getDicts("data_cntrId").then((response) => {
- response.data.map((e) => (e.noOption = false));
- this.cntrIdList = response.data;
- });
- this.getDicts("data_priceType").then((response) => {
- this.priceTypeList = response.data;
- });
- this.getDicts("data_ffeeunitid").then((response) => {
- this.ffeeunitidList = response.data;
- });
- getBasicInformation({
- fTypes: 1,
- fStatus: "T",
- }).then((response) => {
- this.polList = response;
- this.podList = response;
- });
- listCorps().then((response) => {
- this.fMblnoOptions = response.rows;
- });
- listGoods().then((response) => {
- this.goodsOptions = response.rows;
- });
- listFees().then((response) => {
- this.fWbuOptions = response.rows;
- });
- this.userType = Cookies.get("userType");
- this.username = Cookies.get("userName");
- },
- methods: {
- // 新增附件上传
- addRelevt4() {
- this.chiFeesList.push({
- actId: "1090",
- fCorpid: this.form.fCorpId,
- fFeeid: "",
- fDc: "",
- fFeeunitid: "1",
- fBillingQty: 0,
- fUnitprice: 0,
- fCurrency: "RMB",
- fTaxrate: null,
- fAmount: 0,
- fExrate: 1,
- remarks: "",
- });
- },
- // 新增附件上传
- addRelevt() {
- this.relevantAttachments.push({
- attachUrl: null,
- attachName: null,
- createBy: this.username,
- createTime: Date.parse(new Date()),
- });
- },
- //附件删除
- deleteFile(scope) {
- this.relevantAttachments[scope.$index].attachName = "";
- this.relevantAttachments[scope.$index].attachUrl = "";
- if (this.relevantAttachments[scope.$index].attachUrl === "") {
- this.$message.success("删除成功");
- } else {
- this.$message.error("未知错误,删除失败");
- }
- },
- //附件查看
- checkFile(scope) {
- if (this.relevantAttachments[scope.$index].attachUrl) {
- window.open(this.relevantAttachments[scope.$index].attachUrl);
- } else {
- this.$message.error("请上传附件");
- }
- },
- //附件上传
- handleSucces(scope, res, file) {
- this.relevantAttachments[scope.$index].attachName = res.fileName;
- this.relevantAttachments[scope.$index].attachUrl = res.url;
- if (this.relevantAttachments[scope.$index].attachUrl === "") {
- this.$message.error("上传失败");
- } else {
- this.$message.success("上传成功");
- }
- },
- // 添加行
- addRow(tableData, event) {
- var obj = {};
- tableData.push(obj);
- },
- addDListRow(tableData, event) {
- var obj = {
- fcorpid: this.form.fCorpId,
- fcurrency: "RMB",
- fPid: this.form.id,
- fExrate: "1",
- };
- tableData.push(obj);
- },
- //删除行
- deleteRow(index, rows) {
- rows.splice(index, 1);
- },
- // 上传成功返回数据
- showFile(row) {
- for (let list in this.relevantAttachments) {
- this.$set(this.relevantAttachments[list], "attachUrl", row.url);
- this.$set(this.relevantAttachments[list], "attachName", row.fileName);
- }
- },
- addRelevt2() {
- let arr = this.chiFeesList;
- arr.filter((e) => e.actId == "1080");
- if (arr.length > 0) {
- this.$confirm("已生成费用信息, 是否重新生成?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.chiFeesList = this.chiFeesList.filter(
- (e) => e.actId != "1080"
- );
- this.addRelevt3();
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消",
- });
- });
- } else {
- this.addRelevt3();
- }
- },
- addRelevt3() {
- if (this.form.oilAmt > 0) {
- this.chiFeesList.push({
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 52,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.oilAmt,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.oilAmt,
- fExrate: 1,
- remarks: this.form.costRemarks,
- });
- }
- if (this.form.driverbonus > 0) {
- this.chiFeesList.push({
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 53,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.driverbonus,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.driverbonus,
- fExrate: 1,
- remarks: this.form.costRemarks,
- });
- }
- if (this.form.costOth > 0) {
- this.chiFeesList.push({
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 54,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costOth,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costOth,
- fExrate: 1,
- remarks: this.form.costRemarks,
- });
- }
- if (this.form.costomAmt03 > 0) {
- this.chiFeesList.push(
- {
- actId: "1080",
- fCorpid: this.form.fCorpId,
- fFeeid: 55,
- fDc: "D",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt03,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt03,
- fExrate: 1,
- remarks: this.form.costomStr02,
- },
- {
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 55,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt03,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt03,
- fExrate: 1,
- remarks: this.form.costomStr02,
- }
- );
- }
- if (this.form.costomAmt04 > 0) {
- this.chiFeesList.push(
- {
- actId: "1080",
- fCorpid: this.form.fCorpId,
- fFeeid: 56,
- fDc: "D",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt04,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt04,
- fExrate: 1,
- remarks: this.form.costomStr02,
- },
- {
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 56,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt04,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt04,
- fExrate: 1,
- remarks: this.form.costomStr02,
- }
- );
- }
- if (this.form.costomAmt02 > 0) {
- this.chiFeesList.push(
- {
- actId: "1080",
- fCorpid: this.form.fCorpId,
- fFeeid: 57,
- fDc: "D",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt02,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt02,
- fExrate: 1,
- remarks: this.form.costomStr02,
- },
- {
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 57,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt02,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt02,
- fExrate: 1,
- remarks: this.form.costomStr02,
- }
- );
- }
- if (this.form.costomAmt05 > 0) {
- this.chiFeesList.push(
- {
- actId: "1080",
- fCorpid: this.form.fCorpId,
- fFeeid: 58,
- fDc: "D",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt05,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt05,
- fExrate: 1,
- remarks: this.form.costomStr01,
- },
- {
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 58,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt05,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt05,
- fExrate: 1,
- remarks: this.form.costomStr01,
- }
- );
- }
- if (this.form.costomAmt06 > 0) {
- this.chiFeesList.push(
- {
- actId: "1080",
- fCorpid: this.form.fCorpId,
- fFeeid: 59,
- fDc: "D",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt06,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt06,
- fExrate: 1,
- remarks: this.form.costomStr01,
- },
- {
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 59,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt06,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt06,
- fExrate: 1,
- remarks: this.form.costomStr01,
- }
- );
- }
- if (this.form.costomAmt01 > 0) {
- this.chiFeesList.push(
- {
- actId: "1080",
- fCorpid: this.form.fCorpId,
- fFeeid: 60,
- fDc: "D",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt01,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt01,
- fExrate: 1,
- remarks: this.form.costomStr01,
- },
- {
- actId: "1080",
- fCorpid: this.form.driverUserId,
- fFeeid: 60,
- fDc: "C",
- fFeeunitid: "6",
- fBillingQty: 1,
- fUnitprice: this.form.costomAmt01,
- fCurrency: "RMB",
- fTaxrate: 3,
- fAmount: this.form.costomAmt01,
- fExrate: 1,
- remarks: this.form.costomStr01,
- }
- );
- }
- },
- // 弹出框关闭后触发
- handleClose() {
- // 子组件调用父组件方法,并传递参数
- this.$emit("changeShow", "false");
- this.cntrIdList.forEach((item) => (item.noOption = false));
- this.collapses = [];
- },
- /** 提交按钮 */
- submitForm(butType) {
- this.$refs["form"].validate((valid) => {
- if (valid) {
- if (this.form.costOth > 0 && !this.form.costRemarks) {
- return this.$message.error("请输入花销备注");
- }
- if (this.form.costomAmt02 > 0 && !this.form.costomStr02) {
- return this.$message.error("请输入费用备注");
- }
- if (this.form.costomAmt01 > 0 && !this.form.costomStr01) {
- return this.$message.error("请输入费用备注");
- }
- this.DList.map((e) => {
- return (e.fDc = "D");
- });
- this.CList.map((e) => {
- return (e.fDc = "C");
- });
- let formData = new window.FormData();
- formData.append("cars", JSON.stringify(this.form));
- formData.append("attachs", JSON.stringify(this.relevantAttachments));
- formData.append("operationType", butType);
- insertDriverFtmsorderbillscars(formData).then((response) => {
- if (response.code == 200) {
- this.msgSuccess("提交成功");
- this.$parent.getList();
- }
- });
- }
- });
- },
- //修改
- submitFix() {
- this.$refs["form"].validate((valid) => {
- if (valid) {
- }
- });
- },
- //保存
- submitSave() {
- let formData = new window.FormData();
- formData.append("cars", JSON.stringify(this.form));
- formData.append("attachs", JSON.stringify(this.relevantAttachments));
- formData.append("fees", JSON.stringify(this.chiFeesList));
- formData.append("operationType", "unLoadDate");
- driverSaveFtmsorderbillscars(formData).then((response) => {
- if (response.code == 200) {
- this.msgSuccess("保存成功");
- this.$parent.getList();
- // this.$parent.getSave(response);
- }
- });
- },
- //撤回
- submitRetreat() {},
- //修改
- submitAllowChanges() {
- if (this.form.orderStatus <= 60) {
- this.$emit("fixDisabled", "false");
- this.msgSuccess("允许修改");
- } else {
- this.msgSuccess("不允许修改");
- }
- },
- driversubmitForm(){
- if(this.chiFeesList.length==0){
- return this.$message.error("确认费用不能为空");
- }
- let formData = new window.FormData();
- formData.append("cars", JSON.stringify(this.form));
- formData.append("attachs", JSON.stringify(this.relevantAttachments));
- formData.append("fees", JSON.stringify(this.chiFeesList));
- driverSubmit(formData).then((response) => {
- if (response.code == 200) {
- this.msgSuccess("提交成功");
- this.showDialog=false;
- this.$parent.getList();
- }
- });
- },
- addFees(row) {
- if (row.fBillstatus == 1) {
- row.fBillstatus = 6;
- }
- if (row.fBillstatus == 6) {
- return this.$message.error("已提交,请勿重复提交");
- }
- let formDatae = new window.FormData();
- formDatae.append("status", 6);
- formDatae.append("cars", JSON.stringify(this.form));
- formDatae.append("ftmsorderbillsfees", JSON.stringify(row));
- submit(formDatae).then((response) => {
- if (response.code == 200) {
- this.$message.success("提交成功");
- this.$set(row, "fId", response.data.ftmsorderbillsfeesList.fId);
- this.$set(
- row,
- "fBillstatus",
- response.data.ftmsorderbillsfeesList.fBillstatus
- );
- }
- });
- },
- fixFees(row) {
- if (row.fBillstatus == 0) {
- return this.$message.error("已进行变更,请勿重复点击");
- }
- if (row.fId) {
- changeFees(row.fId).then((response) => {
- if (response.code == 200) {
- this.$message.success("允许修改");
- this.$set(row, "fBillstatus", 1);
- }
- });
- }
- },
- delFees(index, rows, row) {
- if (row.fBillstatus == 2 || row.fBillstatus == 3) {
- deleteFees(row.fId).then((response) => {
- if (response.code == 200) {
- rows.splice(index, 1);
- this.$message.success("删除成功");
- }
- });
- } else if (!row.fBillstatus){
- rows.splice(index, 1);
- this.$message.success("删除成功");
- }else{
- this.$message.error("不允许删除");
- }
- },
- revokeFees(row){
- revokeFees(row.fId).then((response) => {
- if (response.code == 200) {
- this.$message.success("撤销成功");
- this.$set(row, "fBillstatus", 3);
- }
- });
- },
- //单条订单调度提交
- addscarsRow(row) {},
- delscarsRow(index, rows, row) {
- if (row.billStatus != 6 && row.id != null) {
- removeFtmsorderbillscars(row).then((response) => {
- if (response.code == 200) {
- rows.splice(index, 1);
- this.msgSuccess("成功删除");
- }
- });
- } else {
- rows.splice(index, 1);
- }
- },
- revokescarsRow(index, rows, row) {},
- changescarsRow(row) {},
- total(row) {
- console.log(row);
- if (row.fQty && row.fUnitprice) {
- this.$set(row, "fAmount", (row.fQty * row.fUnitprice).toFixed(2));
- } else {
- this.$set(row, "fAmount", 0);
- }
- },
- },
- watch: {
- // 监听 addOrUpdateVisible 改变
- addOrUpdateVisible(oldVal, newVal) {
- this.showDialog = this.addOrUpdateVisible;
- },
- feesList(newVal, oldVal) {
- this.chiFeesList = newVal;
- },
- },
- };
- </script>
|