| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613 | <template>  <div class="borderless">    <div class="customer-head">      <div class="customer-back">        <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"          @click="backToList">返回列表        </el-button>        <div class="upper_right_button">          <!--          <el-button type="success"-->          <!--                     size="small"-->          <!--                     class="el-button--small-yh "-->          <!--                     :loading="buttonLoading"-->          <!--                     :disabled="!form.id || viewDisabled"-->          <!--                     @click.stop="mainCheck">-->          <!--            请核-->          <!--          </el-button>-->          <!--          <el-dropdown style="padding: 0 8px;line-height: 0">-->          <!--            <el-button-->          <!--              type="success"-->          <!--              :loading="buttonLoading"-->          <!--              :disabled="!form.id || viewDisabled"-->          <!--              size="small"-->          <!--            >-->          <!--              业务处理<i class="el-icon-arrow-down el-icon--right"></i>-->          <!--            </el-button>-->          <!--            <el-dropdown-menu slot="dropdown">-->          <!--              <el-dropdown-item-->          <!--                :loading="buttonLoading"-->          <!--                :disabled="!form.id"-->          <!--                @click.native="createData()">创建单据-->          <!--              </el-dropdown-item>-->          <!--              <el-dropdown-item-->          <!--                :loading="buttonLoading"-->          <!--                :disabled="!form.id"-->          <!--                @click.native="copyData()">复制单据-->          <!--              </el-dropdown-item>-->          <!--            </el-dropdown-menu>-->          <!--          </el-dropdown>-->          <el-button type="primary" size="small" :disabled="buttonLoading" @click="postMessage">发送消息          </el-button>          <el-button type="primary" :loading="buttonLoading" @click.stop="editMainProject" size="small">保存数据          </el-button>        </div>      </div>    </div>    <div class="customer-main">      <trade-card title="基础信息">        <avue-form class="trading-form" ref="form" v-model="form" :option="option">          <template slot="corpId">            <crop-select v-model="form.corpId" corpType="KG" :disabled="viewDisabled" style="width: 100%"></crop-select>          </template>          <template slot="corpAttn">            <el-select v-model="form.corpAttn" :disabled="viewDisabled" icon="el-icon-edit" remote filterable clearable              :remote-method="corpAttnRemoteMethod">              <el-option v-for="item in corpAttnDic" :key="item.value" :label="item.realName" :value="item.realName">              </el-option>            </el-select>          </template>          <template slot="salesName">            <el-select v-model="form.salesName" :disabled="viewDisabled" remote filterable clearable              :remote-method="salesNameRemoteMethod">              <el-option v-for="item in salesNameDic" :key="item.value" :label="item.realName" :value="item.realName">              </el-option>            </el-select>          </template>          <template slot="sourceBusiness">            <el-select v-model="form.sourceBusiness" :disabled="viewDisabled" filterable clearable>              <el-option v-for="(item, index) in sourceBusinessDic" :key="index" :label="item.dictValue"                :value="item.dictValue">              </el-option>            </el-select>          </template>          <template slot="remark">            <el-input type="textarea" v-model="form.remark" size="small" rows="6" autocomplete="off" placeholder="">            </el-input>          </template>        </avue-form>      </trade-card>      <containerTitle title="明细列表"></containerTitle>      <basic-container>        <avue-crud ref="crud" :data="data" :option="optionTable" :table-loading="loading" v-model="optionFrom"          @row-del="rowDel" @row-save="rowSave" @row-update="rowUpdate" @size-change="sizeChange"          @current-change="currentChange" @selection-change="selectionChange" @search-change="searchChange"          @saveColumn="saveColumn" @resetColumn="resetColumn">          <template slot="menuLeft">            <el-tabs v-model="activeName" @tab-click="handleClick">              <el-tab-pane label="原始数据" name="first" :key="'first'">              </el-tab-pane>              <el-tab-pane label="追加" name="second" :key="'second'">              </el-tab-pane>              <el-tab-pane label="退款" name="three" :key="'three'">              </el-tab-pane>            </el-tabs>            <el-button type="primary" size="small" icon="el-icon-plus" :disabled="viewDisabled"              @click="serviceDialog = true">录入明细            </el-button>          </template>          <!--            <el-button type="info"-->          <!--                       size="small"-->          <!--                       v-if="false"-->          <!--                       :disabled="crudSelection == 0"-->          <!--                       @click.stop="beforePleaseCheck()">请 核-->          <!--            </el-button>-->          <!--          </template>-->          <template slot-scope="{row,index}" slot="menu">            <el-button v-if="row.status !== 5" type="text" size="small" @click="beforeCloseAccount(row)">结算</el-button>            <el-button v-if="row.status === 5" type="text" size="small" :disabled="viewDisabled"              @click="cancelCloseAccount(row)">取消结算</el-button>            <el-button :disabled="row.taskStatus != 10" type="text" size="small" @click="dispatch(row, index)">派工            </el-button>            <el-button type="text" size="small" @click="rowCellTwo(row, index)"              :disabled="row.strStatus == '结算完成' || viewDisabled">{{ row.$cellEdit ? '修改完成' : '修改' }}</el-button>            <el-button type="text" size="small" @click="rowDel(row, index)"              :disabled="row.strStatus == '结算完成' || viewDisabled">删除</el-button>          </template>          <template slot="userid" slot-scope="{row,index}">            <user-select v-if="row.$cellEdit" v-model="row.userName" @value="(values) => value(values, row)"              :configuration="UConfiguration">            </user-select>            <span v-else>{{ row.userName }}</span>          </template>          <template slot="frequency" slot-scope="{ row }">            <el-select v-if="row.$cellEdit" size="small" v-model="row.frequency" placeholder="请选择"              @change="frequencyChange(row)" clearable>              <el-option v-for="item in frequencyList" :key="item.id" :label="item.dictValue" :value="item.dictKey">              </el-option>            </el-select>            <span v-else>{{ row.frequency | frequencyFormat(frequencyList) }}</span>          </template>          <template slot="second" slot-scope="{ row }">            <el-select v-if="row.$cellEdit && row.frequency == 4" size="small" v-model="row.second" placeholder="请选择"              clearable>              <el-option v-for="item in secondList" :key="item.id" :label="item.dictValue" :value="item.dictKey">              </el-option>            </el-select>            <span v-else>{{ row.frequency == 4 ? row.second : '-' }}</span>          </template>          <template slot="amount" slot-scope="{ row }">            <el-input v-if="row.$cellEdit" v-model="row.amount" placeholder="请输入" size="small"              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'              @change="totalChange(row, '金额')"></el-input>            <span v-else>{{ row.amount }}</span>          </template>          <template slot="serviceCharge" slot-scope="{ row }">            <el-input v-if="row.$cellEdit" v-model="row.serviceCharge" placeholder="请输入" size="small"              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'              @input="costCount(row)" @change="totalChange(row, '服务')"></el-input>            <span v-else>{{ row.serviceCharge }}</span>          </template>          <template slot="matMoney" slot-scope="{ row }">            <el-input v-if="row.$cellEdit" v-model="row.matMoney" placeholder="请输入" size="small"              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'              @input="costCount(row)" @change="totalChange(row, '代垫')"></el-input>            <span v-else>{{ row.matMoney }}</span>          </template>          <template slot="taskStatus" slot-scope="{ row }">            <span v-if="row.taskStatus == 10">暂存</span>            <span v-if="row.taskStatus == 20">进行中</span>            <span v-if="row.taskStatus == 30">完成</span>          </template>          <template slot="otheramt" slot-scope="{ row }">            <el-input v-if="row.$cellEdit" v-model="row.otheramt" placeholder="请输入" size="small"              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'              @input="costCount(row)"></el-input>            <span v-else>{{ row.otheramt }}</span>          </template>        </avue-crud>      </basic-container>      <containerTitle title="补充信息"></containerTitle>      <basic-container>        <el-form :model="formTwo" ref="formTwo" label-width="100px" class="demo-ruleForm">          <el-row>            <el-col v-for="(item, index) in basicData.column" :span="item.span ? item.span : 6" :key="index">              <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">                <el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="formTwo[item.prop]"                  size="small" type="datetime" :disabled="item.disabled ? true : false || viewDisabled"                  placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" />                <el-date-picker v-else-if="item.type === 'date'" style="width: 100%;" v-model="formTwo[item.prop]"                  size="small" type="date" :disabled="viewDisabled" placeholder="选择日期" value-format="yyyy-MM-dd" />                <el-input type="textarea" v-else-if="(item.prop === 'remark')" v-model="formTwo[item.prop]"                  :disabled="viewDisabled" size="small" autocomplete="off" placeholder="请输入"></el-input>                <el-input type="age" v-else-if="item.prop === 'debitAmount'" v-model="formTwo[item.prop]"                  @change="debitChange" :disabled="item.disabled ? true : false || viewDisabled" size="small"                  autocomplete="off" placeholder="请输入">                  <template slot="append">元</template>                </el-input>                <el-input type="age" v-else-if="item.type === 'unit'" v-model="formTwo[item.prop]"                  :disabled="item.disabled ? true : false || viewDisabled" size="small" autocomplete="off"                  placeholder="请输入">                  <template slot="append">元</template>                </el-input>                <el-input type="age" v-else v-model="formTwo[item.prop]"                  :disabled="item.disabled ? true : false || viewDisabled" size="small" value="0" autocomplete="off"                  placeholder="请输入">                  <template                    v-if="item.prop === 'advanceAmount' || item.prop === 'settlmentAmount' || item.prop === 'balanceAmount'"                    slot="append">元</template>                </el-input>              </el-form-item>            </el-col>          </el-row>        </el-form>      </basic-container>      <containerTitle title="附件上传"></containerTitle>      <basic-container style="margin-bottom: 40px">        <avue-crud :option="upLoadOption" v-model="upLoadForm" :data="upLoadData" @row-save="upLoadSave"          @row-update="upLoadUpdate" @row-del="upLoadDel"></avue-crud>      </basic-container>    </div>    <messagePost v-if="messageVisble" ref="messagePost" @closeDialog="closeDialog"></messagePost>    <el-dialog title="导入服务项目" append-to-body class="el-dialogDeep" :visible.sync="serviceDialog" width="70%"      :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false">      <el-row style="height: 0;">        <el-col :span="5">          <div>            <el-scrollbar>              <basic-container>                <avue-tree :option="serviceTreeOption" @node-click="serviceNodeClick" />              </basic-container>            </el-scrollbar>          </div>        </el-col>        <el-col :span="19">          <basic-container>            <avue-crud ref="serviceCrud" :page.sync="servicePage" :search.sync="serviceSearch" :option="serviceOption"              :table-loading="serviceLoading" :data="serviceData" @refresh-change="serviceRefreshChange"              @selection-change="serviceSelectionChange" @search-change="serviceSearchChange" @on-load="serviceOnLoad">            </avue-crud>          </basic-container>        </el-col>      </el-row>      <span slot="footer" class="dialog-footer">        <el-button type="primary" @click="serviceConfirm()" :disabled="this.serviceSelectList.length == 0">导 入        </el-button>        <el-button @click="serviceDialog = false">取 消</el-button>      </span>    </el-dialog>    <el-dialog title="导入用户" :visible.sync="userDialog" class="el-dialogDeep" append-to-body width="80%">      <el-row style="margin-top: -5px;height: 0">        <el-col :span="5">          <div class="box">            <el-scrollbar>              <basic-container>                <avue-tree :option="userTreeOption" :data="userTreeData" @node-click="userNodeClick" />              </basic-container>            </el-scrollbar>          </div>        </el-col>        <el-col :span="19">          <basic-container>            <avue-crud ref="userCrud" :option="userOption" :data="userDataList" :table-loading="userLoading"              :page.sync="userPage" v-model="userForm" @search-change="userSearchChange" @search-reset="userSearchReset"              @refresh-change="userRefreshChange" @selection-change="userSelectionChange" @on-load="userOnLoad">            </avue-crud>          </basic-container>        </el-col>      </el-row>      <span slot="footer" class="dialog-footer">        <el-button @click="userDialog = false">取 消</el-button>        <el-button type="primary" :disabled="this.userSelection.length == 1 ? false : true" @click="userConfirm">确 定        </el-button>      </span>    </el-dialog>    <el-dialog title="流程" append-to-body class="el-dialogDeep" :visible.sync="processDialog" width="60%"      :close-on-click-modal="false" :destroy-on-close="true" :modal-append-to-body='false'      :close-on-press-escape="false" v-dialog-drag>      <examine-approve :itemId="itemId" :closeFun="dialogProcessClose">      </examine-approve>    </el-dialog>    <el-dialog title="结算" append-to-body class="el-dialogDeep" :visible.sync="accountDialog" width="25%"      :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false">      <el-form :model="accountFormData" ref="accountFormData">        <el-form-item label="账户名称" class="landConFrom-input" prop="accountName" :rules="rules">          <el-input v-model="accountFormData.accountName" style="width: 220px;" size="small" clearable            placeholder="请输入"></el-input>        </el-form-item>        <el-form-item label="结算日期" class="landConFrom-input" prop="payTime" :rules="rules">          <el-date-picker type="date" v-model="accountFormData.payTime" value-format="yyyy-MM-dd HH:mm:ss" size="small"            clearable placeholder="日期"></el-date-picker>        </el-form-item>      </el-form>      <span slot="footer" style="display: flex; justify-content: center">        <el-button @click.stop="accountDialog = false, accountFormData = {}" size="small">取 消</el-button>        <el-button type="primary" size="small" @click="closeAccount('accountFormData')">结算</el-button>      </span>    </el-dialog>    <el-dialog title="派工" append-to-body class="el-dialogDeep" :visible.sync="pgDialog" width="50%"      :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false">      <span>        <avue-crud :data="pgList" :option="pgOption"></avue-crud>      </span>      <span slot="footer" class="dialog-footer">        <el-button @click="pgDialog = false" size="small">取 消</el-button>        <el-button type="primary" size="small" @click="pgConfirm">派 工        </el-button>      </span>    </el-dialog>  </div></template><script>import option from "./configuration/detailsPage.json";import startOption from "./configuration/startDialog.json";import { projectDetail, editMianProject, settleAccounts, getSysNo, masterCheck, dispatch } from "@/api/workManagement/mainProject";//上传文件jsonimport upLoadOption from "../../exportTrade/purchaseContract/config/uploadList.json"//服务列表接口import { getServiceProjectList, getServiceTypeTree, } from "@/api/workManagement/serviceProject";import serviceOption from "./configuration/serviceDialogList.json";//用户组件import userOption from "./configuration/userList.json";import { getList } from "@/api/system/user";import { getDeptLazyTree } from "@/api/system/dept";//上传附件删除import { corpsbank } from "@/api/basicData/configuration"//事务import examineApprove from "@/components/examineApprove/index";//对象数组比较import { contrastObj, contrastList2 } from "@/util/contrastData";import _ from "lodash";import { getUserList } from "@/api/workManagement/mainProject";import optionAdd from "../receipt/configuration/settleAccountsDetailsADD.json";import optionReturn from "../receipt/configuration/settleAccountsDetailsReturn.json";import { getDeptTree } from "@/api/system/dept";import messagePost from "@/components/messageSend/main"import clientOption from "../performanceAnalysis/config/clientList.json";import { getGoodsDescList } from "@/api/standAlone/saleLeads";export default {  props: {    detailData: {      type: Object    }  },  components: {    examineApprove,    messagePost  },  data() {    return {      pgList: [],      pgDialog: false,      goodsDescList: [],      secondList: [],      frequencyList: [],      id: '',      loading: false,      form: {},      formTwo: {},      optionFrom: {},      account: {},      data: [],      dataList: [],      crudSelection: [],      corpAttnDic: [],      salesNameDic: [],      sourceBusinessDic: [],      buttonLoading: false,      messageVisble: false,      viewDisabled: false,      deptDicData: [],//任务部门数据      serviceDialog: false,//服务导入窗口      userDialog: false,//用户导入窗口      accountDialog: false,//结算窗口      //客户组件配置控制      UConfiguration: {        multipleChoices: false,        multiple: false,        disabled: false,        searchShow: true,        collapseTags: false,        placeholder: '请点击右边按钮选择',        dicData: []      },      detailsSelect: {},      //顶部from数据      option: {        menuBtn: false,        labelWidth: 100,        column: [          {            label: '项目名称',            prop: 'cname',            span: 12,            rules: [              {                required: true,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '客户名称',            prop: 'corpId',            span: 12,            rules: [              {                required: true,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '责任人',            prop: 'corpAttn',            span: 6,            rules: [              {                required: true,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '承揽人',            prop: 'salesName',            span: 6,            rules: [              {                required: true,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '业务来源',            prop: 'sourceBusiness',            span: 6,            rules: [              {                required: true,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '备注',            span: 24,            minRows: 6,            prop: 'remark'          }        ],      },      basicData: {        column: [          {            label: '合同金额',            prop: 'debitAmount',            rules: [              {                required: false,                message: ' ',                trigger: 'blur'              },              {                pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,                message: ' ',                trigger: 'blur'              },            ]          },          {            label: '首付金额',            prop: 'advanceAmount',            type: 'unit',            rules: [              {                pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '已收金额',            prop: 'settlmentAmount',            disabled: true,            type: 'unit',          },          {            label: '未收金额',            type: 'unit',            prop: 'balanceAmount',            disabled: true,          },          {            label: '总服务费',            prop: 'serviceCharge',            type: 'unit',            disabled: true,            rules: [              {                pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '总成本',            prop: 'matMoney',            type: 'unit',            disabled: true,            rules: [              {                pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,                message: ' ',                trigger: 'blur'              }            ]          },          {            label: '制单人',            prop: 'createUserName',            disabled: true          }, {            label: '制单日期',            prop: 'createTime',            type: 'datetime',            valueFormat: "yyyy-MM-dd HH:mm:ss",            format: "yyyy-MM-dd",            disabled: true          },          {            label: '电话',            prop: 'corpTel',          },          {            label: '收款方式',            prop: 'paymentType',            width: 120,          },          {            label: '开始日期',            prop: 'beginTime',            valueFormat: "yyyy-MM-dd HH:mm:ss",            format: "yyyy-MM-dd",            type: 'datetime',          },          {            label: '结束日期',            prop: 'endTime',            valueFormat: "yyyy-MM-dd HH:mm:ss",            format: "yyyy-MM-dd",            type: 'datetime',          }        ],      },      optionTable: {},      //结算      accountFormData: {},      rules: [{        required: true,        message: ' ',        trigger: 'blur'      }      ],      //上传文件      upLoadOption: upLoadOption,      upLoadData: [],      upLoadForm: {},      //服务窗口定义      serviceTreeOption: {        nodeKey: 'id',        lazy: true,        treeLoad: function (node, resolve) {          const parentId = node.level === 0 ? 0 : node.data.id;          getServiceTypeTree(parentId).then(res => {            resolve(              res.data.data.map(item => {                return {                  ...item,                  leaf: !item.hasChildren                };              })            );          });        },        addBtn: false,        menu: false,        size: 'small',        props: {          labelText: '标题',          label: 'title',          value: 'value',          children: 'children'        }      },      serviceOption: serviceOption,      serviceLoading: false,      serviceData: [],      servicePage: {        currentPage: 1,        total: 0,        pageSize: 10      },      serviceSearch: {},      serviceTreeDeptId: "",      serviceSelectList: [],      //用户窗口定义      userTreeOption: {        nodeKey: 'id',        lazy: true,        treeLoad: function (node, resolve) {          const parentId = (node.level === 0) ? 0 : node.data.id;          getDeptLazyTree(parentId).then(res => {            resolve(res.data.data.map(item => {              return {                ...item,                leaf: !item.hasChildren              }            }))          });        },        addBtn: false,        menu: false,        size: 'small',        props: {          labelText: '标题',          label: 'title',          value: 'value',          children: 'children'        }      },      userTreeData: [],      userOption: userOption,      userLoading: false,      userDataList: [],      userSelection: [],      userTreeDeptId: "",      userForm: {},      userPage: {        currentPage: 1,        total: 0,        pageSize: 10      },      itemId: '',      //请核窗口定义      processDialog: false,      pleaseCheckContact: startOption,      pleaseCheckLoading: false,      pleaseCheckData: [],      pleaseCheckPage: {        pageSize: 10,        currentPage: 1,        total: 0      },      activeName: "first",      tab1: true,      tab2: false,      tab3: false,      secondDisable: 0,      data_one: [],      data_two: [],      data_three: [],      //新旧数据比较      oldData: [],      oldUpLoadData: [],      oldForm: {},      oldFormTwo: {},      pgOption: {        border: true,        align: 'center',        menuAlign: 'center',        menu: false,        header: false,        height: 400,        column: [          {            label: '承做人',            prop: 'userName'          }, {            label: '金额',            prop: 'jine'          }, {            label: '开始日期',            prop: 'beginTime',            cell: true,            type: "date",            format: 'yyyy-MM-dd',            valueFormat: 'yyyy-MM-dd 00:00:00'          }        ]      },      pgIndex:0    };  },  async created() {    this.optionTable = await this.getColumnData(this.getColumnName(56), option);    getDeptTree("096359").then(res => {      this.optionTable.column.forEach(item => {        if (item.prop === "deptid") {          item.dicData = res.data.data;        }      })    })    //承揽人 责任人 默认20条数据    getUserList().then(res => {      res.data.data.map((item, index) => {        if (index <= 20) {          this.corpAttnDic.push(item)          this.salesNameDic.push(item)        }      })    })    if (this.detailData.id) {      this.id = this.detailData.id;//字符串转数字  超长用BigInt      projectDetail(this.id, "0,1,2,3,4,5").then(res => {        this.afterEcho(res.data.data)      })    } else if (this.detailData.data) {      getGoodsDescList().then(res => {        this.goodsDescList = res.data.data        let form = this.detailData.data        this.form.corpId = form.corpId        this.form.corpName = form.corpName        form.itemList.forEach(e => {          this.goodsDescList.forEach(item => {            if (e.spId == item.id) {              this.data.push({                strStatus: "录入",                pname: item.cname,                remarks: item.remarks,                price: item.price,                unit: item.unit,                secondDisable: this.secondDisable,                frequency: item.rate,                projectType: this.secondDisable,                $cellEdit: true              });            }          })        })      })    } else {      //责任人  承揽人 默认当前登录人      this.$set(this.formTwo, "corpAttn", this.$store.getters.userInfo.user_name)      this.$set(this.formTwo, "salesName", this.$store.getters.userInfo.user_name)      this.$set(this.formTwo, "debitAmount", 0)      this.$set(this.formTwo, "advanceAmount", 0)      this.$set(this.formTwo, "settlmentAmount", 0)      this.$set(this.formTwo, "balanceAmount", 0)      this.$set(this.formTwo, "createUserName", this.$store.getters.userInfo.user_name)      let date = new Date();      let strDate = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();      this.$set(this.formTwo, "createTime", strDate)      //备注格式      let remark = "收入:\n" +        "1、业务名称:\n" +        "2、费用明细:\n" +        "3、业务负责人:\n" +        "4、优惠合计:\n" +        "5、实际收费:\n" +        "6、付款人:\n" +        "7、收款时间:\n" +        "8、收款人:\n" +        "9、收款方式:\n" +        "10、备注/特别说明:";      this.$nextTick(() => {        this.$set(this.form, "remark", remark)      })    }    if (this.$route.query.itemId) {      this.id = this.$route.query.itemId      projectDetail(this.id, "0,1,2,3,4,5").then(res => {        this.afterEcho(res.data.data)      })    }    //字典值    this.getWorkDicts("source_Business").then(res => {      this.sourceBusinessDic = res.data.data;    })    this.getWorkDicts("frequency").then(res => {      this.frequencyList = res.data.data;      this.findObject(this.optionTable.column, "frequency").dicData = res.data.data      this.findObject(this.optionTable.column, "frequency").change = (data) => {        this.frequencyChange(data.row)      }    });    this.getWorkDicts("second").then(res => {      this.secondList = res.data.data;    });  },  mounted() {  },  methods: {    //明细切换tab    async handleClick(tab) {      if (tab.name == "first") {        this.tab1 = true;        this.tab2 = false;        this.tab3 = false;        if (this.secondDisable === 1) {          this.data_two = this.data        }        if (this.secondDisable === 2) {          this.data_three = this.data        }        this.secondDisable = 0        await this.switchTab("first")        this.data = this.data_one  //切换数据        getDeptTree("096359").then(res => {          this.optionTable.column.forEach(item => {            if (item.prop === "deptid") {              item.dicData = res.data.data;            }          })        })      } else if (tab.name == "second") {        this.tab1 = false;        this.tab2 = true;        this.tab3 = false;        if (this.secondDisable === 0) {          this.data_one = this.data        }        if (this.secondDisable === 2) {          this.data_three = this.data        }        this.secondDisable = 1        await this.switchTab("second")        this.data = this.data_two      } else if (tab.name == "three") {        this.tab1 = false;        this.tab2 = false;        this.tab3 = true;        if (this.secondDisable === 0) {          this.data_one = this.data        }        if (this.secondDisable === 1) {          this.data_two = this.data        }        this.secondDisable = 2        await this.switchTab("three")        this.data = this.data_three      }    },    switchTab(val) {  //换option      if (val === 'first') {        this.optionTable = option      } else if (val === 'second') {        this.optionTable = optionAdd      } else if (val === 'three') {        this.optionTable = optionReturn      }    },    //责任人 远程    corpAttnRemoteMethod(val) {      getUserList({ realName: val }).then(res => {        this.corpAttnDic = res.data.data      })    },    //承揽人 远程    salesNameRemoteMethod(val) {      getUserList({ realName: val }).then(res => {        this.salesNameDic = res.data.data      })    },    value(value, row) {      if (value) {        row.userid = value.id        row.deptid = value.deptId      }    },    //合计    totalChange(row, type) {      //明细列表金额合计      if (this.secondDisable === 0) {        this.data_one = this.data      }      let amountList = this.data_one.map(item => {        if (item.amount) {          return parseFloat(item.amount);        } else return 0      });      //明细列表服务费合计      let serviceChargeList = this.data.map(item => {        if (item.serviceCharge) {          return parseFloat(item.serviceCharge);        } else return 0      });      //明细列表成本合计      let matMoneyList = this.data.map(item => {        if (item.matMoney) {          return parseFloat(item.matMoney);        } else return 0      });      if (type === '金额') {        if (this.formTwo.debitAmount) {          if (this.formTwo.debitAmount < amountList.reduce((n, m) => n + m)) {            this.$message.error("明细列表合同金额不能大于总金额!")          }        }      }      // if(type==='服务'){      //   this.formTwo.serviceCharge = serviceChargeList.reduce((n,m) => n + m)      // }      // if(type==='代垫'){      //   this.formTwo.matMoney = matMoneyList.reduce((n,m) => n + m)      // }      if (row.serviceCharge && row.matMoney && row.otheramt && row.amount) {        if (row.amount < (parseFloat(row.serviceCharge) + parseFloat(row.matMoney) + parseFloat(row.otheramt))) {          this.$message.error("费用之和不能超过合计金额!")          row.serviceCharge = 0;          row.matMoney = 0;        }      }    },    //费用计算计算    costCount(row) {      if (this.activeName === 'first') {        if (row.serviceCharge && row.matMoney && row.otheramt) {          row.amount = parseFloat(row.serviceCharge) + parseFloat(row.matMoney) + parseFloat(row.otheramt)        }      } else {        if (row.serviceCharge && row.matMoney) {          row.amount = parseFloat(row.serviceCharge) + parseFloat(row.matMoney)        }      }    },    //删除列表后面的删除按钮触发触发(row, index, done)    rowDel(row, index) {      this.$confirm("确定将此明细删除?", {        confirmButtonText: "确定",        cancelButtonText: "取消",        type: "warning"      }).then(() => {        this.data.splice(index, 1)      });    },    // 合同金额    debitChange(val) {      if (val) {        if (!this.formTwo.settlmentAmount) {          this.$set(this.formTwo, "balanceAmount", val)        }      }    },    //打开结算窗口    beforeCloseAccount(row) {      if (this.verificationData()) {        this.account = row;        this.accountDialog = true;      }    },    dispatch(row, index) {      if (row.id) {        this.pgList = []        if (row.frequency == 4 && row.second) {          for (let i = 0; i < row.second; i++) {            this.pgList.push({              ...row,              beginTime: "",              jine: row.amount / row.second,              $cellEdit: true            })          }        } else {          this.pgList.push({            ...row,            beginTime: "",            jine: row.amount,            $cellEdit: true          })        }      }      this.pgIndex = index      this.pgDialog = true    },    pgConfirm() {      for (let i = 0; i < this.pgList.length; i++) {        if (!this.pgList[i].beginTime) {          return this.$message.error('请完善开始日期')        }      }      let projectItemDateList = []      this.pgList.forEach((e, index) => {        projectItemDateList.push({          beginTime: e.beginTime,          reminderDay: e.reminderDay        })      })      this.data[this.pgIndex].projectItemDateList = projectItemDateList      const params = {        ...this.form,        ...this.formTwo,        itemList:this.data,        filesList: this.upLoadData      }      dispatch(params).then(res => {        if (res.data.success) {          this.$message({            type: "success",            message: "操作成功!"          });          this.pgDialog = false;          this.getProjectDetail();        }      })    },    //结算    closeAccount(form) {      this.$refs[form].validate((valid) => {        if (valid) {          settleAccounts(this.account.id, 5,            this.accountFormData.accountName,            this.accountFormData.payTime).then(res => {              if (res.data.success) {                this.$message({                  type: "success",                  message: "操作成功!"                });                this.accountFormData = {},                  this.accountDialog = false;                this.getProjectDetail();              }            })        }      })    },    cancelCloseAccount(row) {      this.$confirm("确认取消结算此明细?", {        confirmButtonText: "确定",        cancelButtonText: "取消",        type: "warning"      }).then(() => {        settleAccounts(row.id, 6).then(res => {          if (res.data.success) {            this.$message({              type: "success",              message: "操作成功!"            });            this.getProjectDetail();          }        })      });    },    //请核    mainCheck() {      if (this.verificationData()) {        this.detailsCollection()        for (let i = 0; i < this.dataList.length; i++) {          if (this.dataList[i].strStatus !== "结算完成") {            return this.$message.error(`明细列表存在未结算数据,请检查!`);          }        }        masterCheck(this.form.id).then(res => {          if (res.data.success) {            this.$message.success("操作成功!")            this.getProjectDetail();          }        })      }      //    },    // 发送消息    postMessage() {      this.messageVisble = true      this.$nextTick(() => {        this.$refs.messagePost.init()      })    },    closeDialog() {      this.messageVisble = false    },    getProjectDetail() {      projectDetail(this.id, "0,1,2,3,4,5").then(res => {        this.afterEcho(res.data.data)      })    },    //新增 修改    editMainProject(type) {      this.$refs["form"].validate((valid) => {        if (valid) {          this.detailsCollection()          for (let i = 0; i < this.dataList.length; i++) {            if (this.dataList[i].deptid === (null || "")) {              return this.$message.error(`请输入明细列表第${i + 1}行的任务部门`);            }            if (this.dataList[i].beginTime === (null || "")) {              return this.$message.error(`请输入明细列表第${i + 1}行的开始日期`);            }            if (this.dataList[i].actualDate === (null || "")) {              return this.$message.error(`请输入明细列表第${i + 1}行的结束`);            }          }          this.buttonLoading = true          const params = {            ...this.form,            ...this.formTwo,            itemList: this.dataList,            filesList: this.upLoadData          }          editMianProject(params).then(res => {            if (res.data.success) {              this.id = res.data.data              this.$message.success("操作成功!")              projectDetail(res.data.data, "0,1,2,3,4,5").then(res => {                this.afterEcho(res.data.data)              })            }          }).finally(() => {            this.buttonLoading = false          })          if (type === true) {            this.$emit("goBack");          }        }      })    },    copyData() {      if (this.verificationData()) {        delete this.form.id        delete this.formTwo.id      }    },    createData() {      if (this.verificationData()) {        this.$confirm("确定创建新的单据吗?", "提示", {          confirmButtonText: "保存",          cancelButtonText: "取消",          type: "warning",        }).then(() => {          this.form = {}          this.oldForm = {}          this.formTwo = {}          this.oldFormTwo = {}          this.dataList = []          this.oldData = []          this.upLoadData = []          this.oldUpLoadData = []          this.$set(this.formTwo, "corpAttn", this.$store.getters.userInfo.user_name)          this.$set(this.formTwo, "salesName", this.$store.getters.userInfo.user_name)          this.$set(this.formTwo, "debitAmount", 0)          this.$set(this.formTwo, "advanceAmount", 0)          this.$set(this.formTwo, "settlmentAmount", 0)          this.$set(this.formTwo, "balanceAmount", 0)          this.$set(this.formTwo, "createUserName", this.$store.getters.userInfo.user_name)          let date = new Date();          let strDate = date.getFullYear() + "-" + (date.getsecond() + 1) + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();          this.$set(this.formTwo, "createTime", strDate)        })      }    },    //明细合集    detailsCollection() {      if (this.secondDisable === 0) {        this.data = this.data_one      }      if (this.secondDisable === 1) {        this.data = this.data_two      }      if (this.secondDisable === 2) {        this.data = this.data_three      }      this.dataList = []      this.dataList.push(...this.data_one, ...this.data_two, ...this.data_three)    },    afterEcho(data) {      this.form = data;      this.viewDisabled = this.form.status !== 0 ? true : false      this.option.column.forEach(item => {        if (item.prop == "cname") {          this.$set(item, "disabled", this.viewDisabled)        }      })      this.formTwo = Object.assign({}, data);      delete this.formTwo.cname;      delete this.formTwo.corpId;      delete this.formTwo.corpAttn;      delete this.formTwo.salesName;      delete this.formTwo.sourceBusiness;      delete this.formTwo.remark;      this.oldForm = Object.assign({}, data);      this.oldFormTwo = Object.assign({}, data);      if (data.itemList) {        this.dataList = data.itemList;        this.oldData = this.deepClone(data.itemList)        //根据状态区分三种明细        this.data_one = this.dataList.filter(item => item.projectType === 0)        this.data_two = this.dataList.filter(item => item.projectType === 1)        this.data_three = this.dataList.filter(item => item.projectType === 2)        //判断当前所处哪个明细下  给data赋值        if (this.secondDisable === 0) {          this.data = this.data_one        }        if (this.secondDisable === 1) {          this.data = this.data_two        }        if (this.secondDisable === 2) {          this.data = this.data_three        }      }      if (data.filesList) {        this.upLoadData = data.filesList        this.oldUpLoadData = this.deepClone(data.filesList)      }    },    verificationData() {      this.detailsCollection()      if (contrastObj(this.form, this.oldForm) || contrastObj(this.formTwo, this.oldFormTwo) || contrastList2(this.dataList, this.oldData)        || contrastList2(this.upLoadData, this.oldUpLoadData)      ) {        this.$confirm("数据发生变化,请先提交保存!", "提示", {          confirmButtonText: "保存",          cancelButtonText: "取消",          type: "warning",        }).then(() => {          this.editMainProject()        }).catch(() => {          return false        })      } else {        return true      }    },    //点击修改或保存时触发    rowCellTwo(row, index) {      this.$refs.crud.rowCell(row, index);    },    //选择时    selectionChange(row) {      this.crudSelection = row;    },    //新增修改时保存触发    rowSave(row, done, loading) {      done()    },    rowUpdate(row, index, done, loading) {      done(row)    },    searchChange(params, done) {      this.getList(this.page, params);      done();    },    sizeChange(val) {      this.page.pageSize = val;      this.getList();    },    currentChange(val) {      this.page.currentPage = val;      this.getList();    },    frequencyChange(row) {      row.second = null    },    //上传文件保存    upLoadSave(row, done, loading) {      this.upLoadData.push(row)      done()    },    //修改附件上传触发    upLoadUpdate(row, done) {      done(row);    },    //删除附件上传触发    upLoadDel(row, index,) {      this.$confirm("确定将选择数据删除?", {        confirmButtonText: "确定",        cancelButtonText: "取消",        type: "warning"      }).then(() => {        if (row.id) {          corpsbank(row.id).then(res => {            if (res.data.success) {              this.$message({                type: "success",                message: "操作成功!"              });              this.bankOfDepositData.splice(index, 1);            }          })        } else {          this.$message({            type: "success",            message: "操作成功!"          });          this.bankOfDepositData.splice(index, 1);        }      })    },    //服务窗口事件    serviceNodeClick(data) {      this.serviceTreeDeptId = data.id;      this.serviceOnLoad(this.servicePage);    },    serviceRefreshChange() {      this.serviceOnLoad(this.servicePage, this.serviceSearch)    },    serviceSearchChange(params, done) {      this.serviceOnLoad(this.servicePage, params)      done();    },    serviceSelectionChange(row) {      this.serviceSelectList = row;    },    serviceOnLoad(page, params = {}) {      this.serviceLoading = true;      getServiceProjectList(page.currentPage, page.pageSize, params, this.serviceTreeDeptId).then(res => {        this.serviceData = res.data.data.records        this.servicePage.total = res.data.data.total        this.serviceLoading = false      })    },    serviceConfirm() {      if (this.serviceSelectList.length != 0) {        this.serviceSelectList.forEach((item) => {          const params = {            strStatus: "录入",            pname: item.cname,            remarks: item.remarks,            price: item.price,            unit: item.unit,            secondDisable: this.secondDisable,            frequency: item.rate,            projectType: this.secondDisable          }          this.$refs.crud.rowCellAdd(params);          this.$refs.crud.rowCell(item, this.optionFrom.length - 1)        })      }      this.serviceSelectList = []      this.serviceDialog = false      this.$message({        type: "success",        message: "导入成功!"      });    },    //用户窗口事件    selectUser(row) {      this.userDialog = true      this.detailsSelect = row.$index;    },    userSearchChange(params, done) {      this.userOnLoad(this.userPage, params);      done()    },    userSearchReset() {    },    userRefreshChange() {      this.userOnLoad(this.userPage)    },    userSelectionChange(row) {      this.userSelection = row;    },    userOnLoad(page, params = {}) {      this.userLoading = true;      getList(page.currentPage, page.pageSize, params, this.userTreeDeptId).then(res => {        this.userDataList = res.data.data.records        this.userPage.total = res.data.data.total        this.userLoading = false;      });    },    userNodeClick(data) {      this.userTreeDeptId = data.id;      this.userOnLoad(this.userPage);    },    //确定    userConfirm() {      if (this.userSelection) {        this.data[this.detailsSelect].userid = this.userSelection[0].id;        this.$set(this.data[this.detailsSelect], 'userName', this.userSelection[0].realName)        this.userDialog = !this.userDialog      }    },    dialogProcessClose() {      this.processDialog = false      this.getProjectDetail()    },    //返回主营项目列表    backToList() {      this.detailsCollection()      if (contrastObj(this.form, this.oldForm) || contrastObj(this.formTwo, this.oldFormTwo) || contrastList2(this.dataList, this.oldData)        || contrastList2(this.upLoadData, this.oldUpLoadData)      ) {        this.$confirm("当前页面有未保存数据,是否保存数据?", "提示", {          confirmButtonText: "保存",          cancelButtonText: "取消",          type: "warning",        }).then(() => {          this.editMainProject(true)        }).catch(() => {          this.$emit("goBack");        })      } else {        this.$emit("goBack");      }    },    //列保存触发    async saveColumn() {      const inSave = await this.saveColumnData(        this.getColumnName(56),        this.optionTable      );      if (inSave) {        this.$message.success("保存成功");        //关闭窗口        this.$refs.crud.$refs.dialogColumn.columnBox = false;      }    },    async resetColumn() {      const inSave = await this.delColumnData(        this.getColumnName(56),        option      );      if (inSave) {        this.$message.success("重置成功");        this.optionTable = option;        //关闭窗口        this.$refs.crud.$refs.dialogColumn.columnBox = false;      }    },    //1.0版本注释内容    // operationDetailList(itemList){    //   this.data = itemList;    //   this.oldData = this.deepClone(itemList)    //   let status = [];    //   this.data.forEach(item =>{    //     item.status == 0 ? status.push(true) : status.push(false)    //   })    //   //如果 明细列表存在 请核之后的状态 禁止编辑一些输入框    //   if(status.findIndex(item => item == false) == 0){    //     this.basicData.column.forEach(item =>{    //       if(item.prop == "code" || item.prop == "cname" || item.prop == "corpId" || item.prop == "debitAmount"){    //         item.disabled = true    //         this.configuration.disabled = true    //       }    //     })    //   }else{    //     this.basicData.column.forEach(item =>{    //       if(item.prop == "code" || item.prop == "cname" || item.prop == "corpId" || item.prop == "debitAmount"){    //         item.disabled = false    //         this.configuration.disabled = false    //       }    //     })    //   }    // },    // openPleaseCheckDialog(){    //   this.processDialog = true;    //   this.itemId = this.crudSelection[0].id   //记得不能写死    // },    // //请核之前    // beforePleaseCheck(){    //   if(this.crudSelection){    //     let id = [];    //     let result = [];    //     this.crudSelection.forEach(item=>{    //       // 新录入状态下  才可提交审核    //       item.id ? id.push(true) : id.push(false) //如果没有id并且为新录入  提示保存    //       item.strStatus === "录入" ? result.push(true) : result.push(false) //判断所有的是否为录入状态    //     })    //     if(id.findIndex(item => item != true) == -1){    //       if(result.findIndex(item => item != true) == -1){    //         if(contrastObj(this.form,this.oldForm) || contrastList2(this.data,this.oldData)){  //判断是否改动过此页面    //           this.$confirm("您已改动此页面,请先保存之后在请核?", "提示", {    //             confirmButtonText: "保存",    //             cancelButtonText: "取消",    //             type: "warning",    //           }).then(() => {    //             this.editMainProject();    //           }).catch(()=>{    //             return    //           })    //         }else{    //           this.pleaseCheck()    //           // this.openPleaseCheckDialog();    //         }    //       }else{    //         this.$message({    //           type: "error",    //           message: "请核数据中存在已请核数据!"    //         });    //         return    //       }    //     }else{    //       this.$confirm("列表内存在新录入数据,是否先保存此数据?", {    //         confirmButtonText: "确定",    //         cancelButtonText: "取消",    //         type: "warning"    //       }).then(() => {    //         this.editMainProject();    //       })    //     }    //   }    // },    // //请核    // pleaseCheck(){    //   this.crudSelection.forEach(item =>{    //     updateItemStatus(this.data[item.$index].id,1).then(res =>{    //    //     })    //     this.$message({    //       type: "success",    //       message: "请核成功!"    //     });    //     //刷新列表    //     this.getProjectDetail();    //   })    // },  },  filters: {    frequencyFormat(val, list) {      let name;      list.forEach(e => {        if (e.dictKey == val) {          name = e.dictValue        }      })      return name;    }  },  watch: {    dataList: function (list) {    }  }};</script><style scoped lang="scss">.main-head {  position: fixed;  top: 105px;  width: 100%;  margin-left: -10px;  height: 62px;  background: #ffffff;  box-shadow: 0 4px 12px 0px rgba(232, 232, 235, 1);  z-index: 999;}.upper_right_button {  display: flex;  position: fixed;  right: 12px;  top: 47px;}.main-back {  cursor: pointer;  line-height: 62px;  font-size: 16px;  color: #323233;  font-weight: 400;}.required_fields {  color: #F56C6C;  display: inline-block;  width: 7%}.avue-tree {  overflow: hidden;  max-height: 660px;}::v-deep .el-form-item {  margin-bottom: 0;}::v-deep .el-form-item__content {  line-height: 32px;}.trading-form ::v-deep .el-form-item {  margin-bottom: 8px !important;}.landConFrom-input {  display: flex;  justify-content: center;}</style>
 |