applyTurn.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. <template>
  2. <div class="applyTurn_container">
  3. <div class="card_cont">
  4. <div class="info">
  5. <h3 class="tit">客户信息</h3>
  6. <ul class="info_list">
  7. <li>
  8. 客户名称:{{companyInfo.CompanyName}}
  9. </li>
  10. <li>
  11. 社会信用码:{{companyInfo.CreditCode}}
  12. </li>
  13. <li>
  14. 地址:{{companyInfo.Address}}
  15. </li>
  16. <li>
  17. 客户类型:{{companyInfo.CompanyType}}
  18. </li>
  19. <li>
  20. 客户状态:{{companyInfo.Status}}
  21. </li>
  22. <li>
  23. 客户来源:{{companyInfo.Source}}
  24. </li>
  25. <li>
  26. 行业:{{companyInfo.IndustryName}}
  27. </li>
  28. <li>
  29. 所属销售:{{companyInfo.SellerName}}
  30. </li>
  31. <li>
  32. 备注:{{companyInfo.Reasons}}
  33. </li>
  34. </ul>
  35. </div>
  36. </div>
  37. <!-- 合同列表 -->
  38. <div class="card_cont">
  39. <div class="apply_info">
  40. <h3 style="fontSize:16px;">申请信息</h3>
  41. <div class="info_cont">
  42. <span style="display:block;marginBottom:30px;color:#333;paddingLeft:10px;">申请内容:试用转正式</span>
  43. <el-form
  44. @submit.native.prevent
  45. inline
  46. :model="formData"
  47. :rules="formRule"
  48. hide-required-asterisk
  49. ref="formData"
  50. label-width="100px"
  51. class="demo-ruleForm">
  52. <el-form-item label="合同类型" prop="contract_type" style="width:100%" v-if="formData.contract_type">
  53. <el-radio style="margin-right:5px" v-model="formData.contract_type" :label="formData.contract_type"/>
  54. <el-tooltip
  55. style="cursor: pointer;"
  56. effect="dark"
  57. placement="top-start"
  58. v-if="formData.contract_type=='续约合同'||formData.contract_type=='新签合同'">
  59. <div slot="content" v-if="formData.contract_type=='续约合同'">
  60. 1、有正式转试用记录的客户,在申请转正时提交的合同<br>
  61. 2、所有客户在续约申请时提交的合同
  62. </div>
  63. <div slot="content" v-if="formData.contract_type=='新签合同'">
  64. 没有正式转试用记录的客户,在申请转正时提交的合同
  65. </div>
  66. <i class="el-icon-info"></i>
  67. </el-tooltip>
  68. </el-form-item>
  69. <el-form-item label="合同期限" prop="term" style="marginRight:60px;">
  70. <i style="color:#f00;fontSize:20px;position:absolute;left:-90px;top:10%;">*</i>
  71. <el-date-picker
  72. v-model="formData.term"
  73. type="daterange"
  74. range-separator="至"
  75. start-placeholder="开始日期"
  76. end-placeholder="结束日期"
  77. @change="dateChange"
  78. value-format="yyyy-MM-dd"
  79. style="width:400px;">
  80. </el-date-picker>
  81. </el-form-item>
  82. <el-form-item label="合同金额" prop="amount" style="marginRight:60px;">
  83. <i style="color:#f00;fontSize:20px;position:absolute;left:-90px;top:10%;">*</i>
  84. <el-input
  85. v-model.number="formData.amount"
  86. placeholder="请输入金额"
  87. style="width:400px"
  88. clearable></el-input>
  89. <span style="color:#666;">元</span>
  90. </el-form-item>
  91. <el-form-item label="付款方式" prop="payway" style="marginRight:60px;">
  92. <i style="color:#f00;fontSize:20px;position:absolute;left:-90px;top:10%;">*</i>
  93. <el-select v-model="formData.payway" placeholder="请选择付款方式" style="width:400px;" clearable>
  94. <el-option
  95. v-for="item in ['月付','季付','半年付','年付','两年付','三年付']"
  96. :key="item"
  97. :label="item"
  98. :value="item">
  99. </el-option>
  100. </el-select>
  101. </el-form-item>
  102. <el-form-item label="付款渠道" prop="payfrom">
  103. <i style="color:#f00;fontSize:20px;position:absolute;left:-90px;top:10%;">*</i>
  104. <el-input
  105. v-model="formData.payfrom"
  106. placeholder="填写代支付的渠道名称,没有可以填无"
  107. style="width:400px"
  108. clearable></el-input>
  109. </el-form-item>
  110. <el-form-item label="套餐类型" prop="setmeal" style="display:block;" :rules="{ required: true, message: '请选择套餐',trigger: 'change' }" v-if="companyInfo.CompanyType=='ficc' || isRoleType== 'ficc'">
  111. <i style="color:#f00;fontSize:20px;position:absolute;left:-90px;top:10%;">*</i>
  112. <el-radio-group v-model="formData.setmeal" @change="setmealChange">
  113. <el-radio :label="1">大套餐</el-radio>
  114. <el-radio :label="2">小套餐</el-radio>
  115. </el-radio-group>
  116. </el-form-item>
  117. <el-form-item class="textarea_item" style="width:97%;paddingLeft:26px;" prop="CheckList">
  118. <label style="display:block;marginBottom:10px;fontSize:16px;position:relative;color:#666;">
  119. <i style="color:#f00;fontSize:20px;position:absolute;left:-15px;top:10%;">*</i>
  120. 权限设置
  121. </label>
  122. <template v-if="companyInfo.CompanyType=='权益' ||isRoleType== '权益'">
  123. <raiPermissionbox v-for="item in authList" :key="item.ClassifyName" :data="item" :formData="formData"
  124. :hasNoChild="hasNoChild"></raiPermissionbox>
  125. </template>
  126. <ul class="menu_lists" style="width:100%" v-else>
  127. <li v-for="item in authList" :key="item.ClassifyName" class="menu_item">
  128. <el-checkbox v-if="item.ClassifyName !== '权益'" :indeterminate="item.isIndeterminate" v-model="item.checkAll" :disabled="item.ClassifyName === '宏观经济' || item.disabled" @change="handleCheckAll(item)" style="marginRight:30px;fontWeight:bold;minWidth:90px;">{{item.ClassifyName+':'}}</el-checkbox>
  129. <el-checkbox-group v-model="item.CheckList" @change="handleChecked(item)">
  130. <el-checkbox v-for="list in item.Items" :label="list.ChartPermissionId" :key="list.ChartPermissionId" class="list_item" :disabled="list.ChartPermissionId==1 || list.disabled">{{list.PermissionName}}</el-checkbox>
  131. </el-checkbox-group>
  132. </li>
  133. </ul>
  134. </el-form-item>
  135. <el-form-item prop="imglist" style="width:97%;paddingLeft:26px;" class="textarea_item">
  136. <label style="display:block;marginBottom:10px;fontSize:16px;position:relative;color:#666;">
  137. <i style="color:#f00;fontSize:20px;position:absolute;left:-15px;top:10%;">*</i>
  138. 上传合同附件<span style="fontSize:12px;color:#f00;">(建议上传盖章后的合同,支持png、jpg、pdf格式)</span>
  139. <input type="file" name="file" @change="fileSelected()" id="file" class="true-file" style="display:none;">
  140. <el-button type="primary" size="medium" @click.native="clickinput('')" style="marginLeft:20px;" :loading="uploadloading">点击上传</el-button>
  141. </label>
  142. <ul class="img_cont">
  143. <li v-for="(img,index) in formData.imglist" :key="img" class="img_item">
  144. <!-- <el-image :src="img" alt="" style="background:#aaa;width:240px;height:180px;" :preview-src-list="formData.imglist" :id="'img'+index"/> -->
  145. <pdf ref="pdf" :src="img" style="width:240px;height:180px;overflow:hidden" v-if="img.indexOf('.pdf')!=-1" @click.native="preview('img'+index,index,img)"></pdf>
  146. <el-image :src="img" alt="" style="background:#aaa;width:240px;height:180px;" :id="'img'+index" v-else @click.native="preview('img'+index,index,img)"/>
  147. <i class="el-icon-zoom-in" style="position:absolute;right:12px;top:12px;color:#fff;" @click="preview('img'+index,index,img)"></i>
  148. <span style="position:absolute;right:12px;bottom:12px;color:#409EFF;fontSize:16px;cursor:pointer;" @click.stop="clickinput(index+1)">重新上传</span>
  149. </li>
  150. </ul>
  151. </el-form-item>
  152. </el-form>
  153. </div>
  154. </div>
  155. <div class="bot_cont">
  156. <!-- <span style="color:#409EFF;fontSize:16px;cursor:pointer;" @click="addHandle">+添加合同信息</span> -->
  157. <div style="display:flex;justify-content:center;margin:80px 0 30px;">
  158. <el-button type="primary" style="width:80px;marginRight:24px;" @click="saveHandle">提交</el-button>
  159. <el-button type="primary" plain style="width:80px;" @click="cancelHandle">取消</el-button>
  160. </div>
  161. </div>
  162. <!-- 图片预览 -->
  163. <imgPreview
  164. :isShowToggle="isShowToggle"
  165. :isPreview="isPreviewimg"
  166. :arr="formData.imglist"
  167. :actIndex="preAct"
  168. @close="closePreview"
  169. @togglePre="togglePre"></imgPreview>
  170. </div>
  171. </div>
  172. </template>
  173. <script>
  174. import { customInterence } from '@/api/api.js'
  175. import imgPreview from '@/components/imgPreview.vue'
  176. import pdf from 'vue-pdf'
  177. import {CalculationDate} from '@/utils/CalculationDate'
  178. import JurisdictionCheck from '../compontents/jurisdictionCheck.vue';
  179. import raiPermissionbox from './components/raiPermissionbox'
  180. export default {
  181. name:'',
  182. components: {imgPreview,pdf ,JurisdictionCheck,raiPermissionbox},
  183. data () {
  184. return {
  185. companyInfo:JSON.parse(sessionStorage.getItem('companyInfo')) || {},//客户基本信息
  186. isRoleType:localStorage.getItem('RoleType'),
  187. formData:{
  188. contract_type:'',
  189. term:'',
  190. amount:'',
  191. payway:'',
  192. payfrom:'',
  193. imglist:[],//合同列表图片
  194. setmeal:'',
  195. qyBigServeCheck:0,
  196. },
  197. hasNoChild:false, // 医药、消费、科技、智造是否没有主客观
  198. authList:[],//权限列表
  199. formRule:{
  200. term:[
  201. { required: true, message: '合同期限不能为空', trigger: 'blur' },
  202. ],
  203. amount:[
  204. { required: true, message: '合同金额不能为空', trigger: 'blur' },
  205. { type: 'number', message: '合同金额必须为数字'}
  206. ],
  207. payway:[
  208. { required: true, message: '付款方式不能为空', trigger: 'blur' },
  209. ],
  210. payfrom:[
  211. { required: true, message: '付款渠道不能为空', trigger: 'blur' },
  212. ],
  213. imglist:[
  214. { required: true, message: '合同附件不能为空', trigger: 'blur' },
  215. ]
  216. },
  217. img_replace:'',//重新上传的img
  218. isPreviewimg:false,
  219. preAct:"",
  220. isShowToggle:false,//是否显示切换
  221. diff_time:'',
  222. equityCheckData:[], //权益复选框
  223. citiesEquity:[], //
  224. citiesListEquity:[], //
  225. citiesListpitchOn:[],
  226. };
  227. },
  228. methods: {
  229. /* 重新申请获取上次申请的合同信息并回显 */
  230. getLastContract() {
  231. customInterence.reapplyDetail({
  232. CompanyApprovalId:parseInt(this.companyInfo.CompanyApprovalId)
  233. }).then(res => {
  234. if(res.Ret === 200) {
  235. /* 处理日期 */
  236. let date_arr = [];
  237. date_arr.push(res.Data.Item.StartDate);
  238. date_arr.push(res.Data.Item.EndDate);
  239. this.formData = {
  240. contract_type:res.Data.Item.ContractType,
  241. term:date_arr,
  242. amount:res.Data.Item.Money,
  243. payway:res.Data.Item.PayMethod,
  244. payfrom:res.Data.Item.PayChannel,
  245. imglist:res.Data.Item.ImgUrl.split('#'),//合同列表图片
  246. setmeal:res.Data.Item.PackageType,
  247. qyBigServeCheck:res.Data.Item.RaiPackageType
  248. }
  249. let newArr = [];
  250. /* 处理权限列表 */
  251. if(this.companyInfo.CompanyType == '权益' || this.isRoleType== '权益') {
  252. res.Data.Item.PermissionList[0].Items.map(item => {
  253. item.disabled=item.isIndeterminate=false
  254. if(item.ChartPermissionId==22 && (!item.Child)) this.hasNoChild=true
  255. })
  256. /* 处理数据把复选框 拆分成三个*/
  257. res.Data.Item.PermissionList.length&&res.Data.Item.PermissionList.forEach(item => {
  258. let arr = item.Items.filter(key=> [22,21,20,19,23,30].includes(key.ChartPermissionId))
  259. let ItemsPrivate = item.Items.filter(key=> [29,31,20031,20032].includes(key.ChartPermissionId))
  260. let ItemsUp = item.Items.filter(key=> key.PermissionName.includes('升级'))
  261. let ItemsBig = item.Items.filter(key=> key.ChartPermissionId==0)
  262. let obj = {
  263. ...item,
  264. Items:arr,
  265. ItemsPrivate,
  266. ItemsUp,
  267. ItemsBig
  268. }
  269. newArr.push(obj)
  270. })
  271. } else {
  272. res.Data.Item.PermissionList.forEach(item => {
  273. let obj = {
  274. checkAll:item.CheckList&&item.CheckList.length===item.Items.length?true:false,
  275. isIndeterminate:item.CheckList&&item.CheckList.length>0 && item.CheckList.length<item.Items.length,
  276. ...item,
  277. }
  278. newArr.push(obj)
  279. })
  280. }
  281. this.authList = newArr;
  282. this.formData.setmeal == '1' && this.setmealChange()
  283. }}
  284. )},
  285. /* 获取基本权限信息 */
  286. getAuthBasic() {
  287. customInterence.authList().then(res => {
  288. let newArr = [];
  289. if(res.Ret === 200) {
  290. if(this.companyInfo.CompanyType == '权益' || this.isRoleType== '权益') {
  291. res.Data.List[0].Items.map(item => {
  292. item.disabled=item.isIndeterminate=false
  293. if(item.ChartPermissionId==22 && (!item.Child)) this.hasNoChild=true
  294. })
  295. /* 处理数据把复选框 拆分成三个*/
  296. res.Data.List.length&&res.Data.List.forEach(item => {
  297. let arr = item.Items.filter(key=> [22,21,20,19,23,30].includes(key.ChartPermissionId))
  298. let ItemsPrivate = item.Items.filter(key=> [29,31,20031,20032].includes(key.ChartPermissionId))
  299. let ItemsUp = item.Items.filter(key=> key.PermissionName.includes('升级'))
  300. let ItemsBig = item.Items.filter(key=> key.ChartPermissionId==0)
  301. let obj = {
  302. ...item,
  303. Items:arr,
  304. ItemsPrivate,
  305. ItemsUp,
  306. ItemsBig
  307. }
  308. newArr.push(obj)
  309. })
  310. }else {
  311. res.Data.List.length&&res.Data.List.forEach(item => {
  312. let obj = {
  313. checkAll:false,
  314. isIndeterminate:item.ClassifyName === '宏观经济'?true:false,
  315. ...item,
  316. }
  317. newArr.push(obj)
  318. })
  319. }
  320. this.authList = newArr;
  321. // console.log(this.authList,'this.authList');
  322. }
  323. })
  324. },
  325. /* 获取历史合同 */
  326. getDealList() {
  327. customInterence.historydeal({
  328. CompanyId: Number(this.companyInfo.CompanyId),
  329. CompanyType: this.companyInfo.CompanyType
  330. }).then(res => {
  331. if(res.Ret === 200) {
  332. this.formData.contract_type = res.Data.List ? '续约合同' :'新签合同';
  333. }
  334. })
  335. },
  336. /* 提交 */
  337. saveHandle() {
  338. this.$refs.formData.validate((valid) => {
  339. if (valid) {
  340. /* 处理权限列表 */
  341. let checkArr = [];
  342. let checkArrName = [];
  343. if(this.companyInfo.CompanyType==='权益' || this.isRoleType== '权益'){
  344. this.authList.forEach(item => {
  345. if(item.CheckList.length) {
  346. checkArr.push(item.CheckList)
  347. item.ItemsUp.forEach(key=>{
  348. if(item.CheckList.includes(key.ChartPermissionId)) {
  349. checkArrName.push(key.PermissionName)
  350. }
  351. })
  352. }
  353. })
  354. }else {
  355. this.authList.forEach(item => {
  356. if(item.CheckList.length) {
  357. checkArr.push(item.CheckList)
  358. }
  359. })
  360. }
  361. if(!checkArr.length && this.companyInfo.CompanyType === '权益') {
  362. this.$message.warning('请选择权限!');
  363. return
  364. }else {
  365. let PermissionIds = [... new Set(checkArr.flat(2))].join(',');
  366. let params = {
  367. CompanyId:Number(this.companyInfo.CompanyId),
  368. CompanyApprovalId:this.companyInfo.CompanyApprovalId?parseInt(this.companyInfo.CompanyApprovalId):0,
  369. ContractType:this.formData.contract_type,
  370. StartDate:this.formData.term[0],
  371. EndDate:this.formData.term[1],
  372. ImgUrl:this.formData.imglist.join('#'),
  373. Money:Number(this.formData.amount),
  374. PayChannel:this.formData.payfrom,
  375. PayMethod:this.formData.payway,
  376. PermissionIds,
  377. PackageType:this.formData.setmeal ? this.formData.setmeal : 0,
  378. PermissionNames:checkArrName.length? checkArrName.join(','):'',
  379. RaiPackageType:this.formData.qyBigServeCheck||0
  380. }
  381. // console.log(params);
  382. customInterence.applyTurn(params).then(res => {
  383. if(res.Ret === 200) {
  384. this.$message.success(res.Msg);
  385. //this.$router.go(-1);
  386. this.$router.push({path:`/${this.$route.meta.pathFrom}`})
  387. }
  388. })
  389. }
  390. }
  391. })
  392. },
  393. /* 取消 */
  394. cancelHandle() {
  395. //this.$router.go(-1);
  396. this.$router.push({path:`/${this.$route.meta.pathFrom}`})
  397. },
  398. /* 选择全选或取消全选 */
  399. handleCheckAll(item) {
  400. // 取到所有的子菜单id
  401. let ids = item.Items.map(item =>{
  402. return item.ChartPermissionId
  403. })
  404. item.CheckList = item.checkAll ? ids : [];
  405. item.isIndeterminate = false;
  406. },
  407. /* 复选框組选中时 */
  408. handleChecked(item) {
  409. let len = item.CheckList.length;
  410. item.checkAll = len === item.Items.length;
  411. item.isIndeterminate = len > 0 && len < item.Items.length;
  412. },
  413. /* 预览 */
  414. preview(id,index,img) {
  415. if(img.indexOf('.pdf') == -1) {
  416. this.preAct = index;
  417. /* 是否显示左右切换 */
  418. let bol = this.formData.imglist.some(item => {
  419. return item.indexOf('.pdf') != -1
  420. })
  421. // 有pdf或图片只有一张
  422. if(bol || this.formData.imglist.length<=1) {
  423. this.isShowToggle = false
  424. }else {
  425. this.isShowToggle = true
  426. }
  427. this.isPreviewimg = true;
  428. }else {
  429. window.open(img)
  430. }
  431. },
  432. clickinput(index){ //上传模拟点击
  433. this.img_replace = '';
  434. if(index) {
  435. this.img_replace = index;
  436. }
  437. $("#file").click();
  438. },
  439. fileSelected(){ //选择文件上传
  440. if( document.getElementById('file').files[0] ){
  441. let hostfile = document.getElementById('file').files[0];
  442. let size = Math.floor(hostfile.size / 1024 / 1024);
  443. if( size>200 ){
  444. this.$message.error('上传文件大小不能大于200M!');
  445. hostfile = {};
  446. return false
  447. }
  448. if( hostfile.name.toLowerCase().includes('.png') || hostfile.name.toLowerCase().includes('.jpg') || hostfile.name.toLowerCase().includes('.jpeg') || hostfile.name.toLowerCase().includes('.pdf') ){
  449. let form = new FormData();
  450. form.append('file',hostfile); //hostfile.name
  451. this.uploadloading=true;
  452. customInterence.upload(form).then((res) => {
  453. if( res.Ret === 200 ){
  454. /* 是替换还是新增 */
  455. if(this.img_replace) {
  456. this.formData.imglist.splice(this.img_replace-1,1,res.Data.ResourceUrl)
  457. }else {
  458. if(this.formData.imglist.length >= 4) {
  459. this.$message.warning('最多上传4张')
  460. }else {
  461. this.formData.imglist.push(res.Data.ResourceUrl)
  462. }
  463. }
  464. }
  465. this.uploadloading=false;
  466. $("#file").val('');
  467. hostfile = {};
  468. });
  469. }else{
  470. this.$message.error('上传文件格式不正确!');
  471. }
  472. }
  473. },
  474. closePreview() {
  475. this.isPreviewimg = false;
  476. },
  477. togglePre(type) {
  478. if(type==1) {
  479. this.preAct--;
  480. if(this.preAct < 0) {
  481. this.preAct = this.formData.imglist.length-1;
  482. }
  483. }else {
  484. this.preAct++;
  485. if(this.preAct > this.formData.imglist.length-1) {
  486. this.preAct = 0;
  487. }
  488. }
  489. },
  490. dateChange(e){
  491. if(parseInt((new Date() - new Date(this.formData.term[1]))/(1000*3600*24)) > 0) {
  492. this.$message.error('结束日期不能小于今天!')
  493. this.formData.term = []
  494. return
  495. }
  496. // console.log(new Date().getTime() - new Date(this.formData.term[0]).getTime());
  497. if(e){
  498. // this.diff_time = Number(
  499. // Number((
  500. // (new Date(this.formData.term[1]).getTime())
  501. // -(new Date(this.formData.term[0]).getTime())
  502. // )/(1000*60*60*24*365))
  503. // .toFixed(1).replace(/.0/,''));
  504. this.$alert(`你选择的合同期限是 ${CalculationDate(this.formData.term[0],this.formData.term[1])}`, '', {
  505. confirmButtonText: '确定'
  506. });
  507. }
  508. },
  509. //获取客户申请转正的合同类型接口
  510. getConstractType(){
  511. customInterence.applyTurnContractType({CompanyId:Number(this.companyInfo.CompanyId)}).then(res=>{
  512. if(res.Ret===200){
  513. this.formData.contract_type=res.Data.ContractType
  514. }
  515. })
  516. },
  517. //套餐的选择
  518. setmealChange(){
  519. if(this.formData.setmeal == '1'){
  520. this.authList.forEach(item => {
  521. if(item.ClassifyName != '市场策略') {
  522. item.Items.forEach(key => {
  523. item.CheckList.push(key.ChartPermissionId)
  524. key.Checked = true
  525. key.disabled = true
  526. })
  527. item.isIndeterminate = false
  528. item.checkAll = true
  529. item.disabled = true
  530. }
  531. })
  532. } else {
  533. this.authList.forEach(item => {
  534. if(item.ClassifyName == '宏观经济') {
  535. item.CheckList = [1]
  536. item.isIndeterminate = true
  537. item.Items[1].disabled=false
  538. }else {
  539. item.Items.forEach(key => {
  540. item.CheckList = []
  541. key.Checked = false
  542. key.disabled = false
  543. })
  544. item.isIndeterminate = false
  545. item.checkAll = false
  546. item.disabled = false
  547. }
  548. })
  549. this.$message.warning('请勾选品种')
  550. }
  551. }
  552. },
  553. created() {},
  554. mounted() {
  555. if(this.$route.query.isReapply) {
  556. this.getLastContract();
  557. }else {
  558. this.getAuthBasic();
  559. // this.getDealList();
  560. //修改为直接获取接口中数据
  561. this.getConstractType()
  562. }
  563. },
  564. }
  565. </script>
  566. <style lang='scss'>
  567. .applyTurn_container {
  568. min-width: 1570px;
  569. *{box-sizing: border-box;}
  570. /* reset */
  571. .el-form-item .el-checkbox-group {
  572. height: 40px;
  573. }
  574. .textarea_item .el-form-item__content {
  575. width: 100%;
  576. }
  577. /* */
  578. .card_cont {
  579. margin-bottom: 20px;
  580. border: 1px solid #ECECEC;
  581. padding: 30px;
  582. background: #fff;
  583. border-radius: 4px;
  584. box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  585. .info {
  586. margin-top: 10px;
  587. font-size: 16px;
  588. color: #666;
  589. .tit {
  590. color: #333;
  591. font-size: 16px;
  592. margin-bottom: 30px;
  593. }
  594. .info_list {
  595. display: flex;
  596. flex-wrap: wrap;
  597. padding-left: 50px;
  598. padding-bottom: 20px;
  599. li {
  600. margin-right: 113px;
  601. margin-bottom: 20px;
  602. min-width: 250px;
  603. }
  604. }
  605. }
  606. .apply_info {
  607. font-size: 16px;
  608. .info_cont {
  609. padding-left: 30px;
  610. margin-top: 30px;
  611. }
  612. }
  613. .menu_lists {
  614. padding: 40px 18px;
  615. border: 1px dashed #AAB4CC;
  616. border-radius: 4px;
  617. .menu_item {
  618. display: flex;
  619. // align-items: center;
  620. margin-bottom: 40px;
  621. &:last-child {
  622. margin-bottom: 0;
  623. }
  624. .list_item {
  625. margin-right: 30px;
  626. &:last-child {
  627. margin-right: 0;
  628. }
  629. }
  630. }
  631. }
  632. .img_cont {
  633. width: 100%;
  634. display: flex;
  635. flex-wrap: wrap;
  636. .img_item {
  637. position: relative;
  638. margin-right: 23px;
  639. &:last-child {
  640. margin-right: 0;
  641. }
  642. }
  643. }
  644. }
  645. }
  646. </style>