salesContractEdit.vue 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513
  1. <template>
  2. <div class="container">
  3. <el-row>
  4. <el-col :span="12">
  5. <h2 class="bg-left title">修改合同信息</h2>
  6. </el-col>
  7. <el-col :span="12" class="bg-right">
  8. <el-button
  9. class="bg-bottom"
  10. type="primary"
  11. size="small"
  12. @click="returnsales()"
  13. >返回</el-button
  14. >
  15. </el-col>
  16. </el-row>
  17. <div class="wenzi">
  18. <h3>基本信息</h3>
  19. <p>
  20. &nbsp;&nbsp;注:基本信息和货物信息均为必填项,“*”
  21. 标记的条目提交后不可修改。
  22. </p>
  23. </div>
  24. <div class="center">
  25. <ws-form
  26. ref="deptBudgetList"
  27. :rules="ruleDeptBudget"
  28. :model="deptBudgetList"
  29. >
  30. <!--基本信息-->
  31. <ws-info-table>
  32. <!--合同编号-->
  33. <ws-form-item label="合同编号" span="1" prop="contractNo">
  34. <div class="unchanged">
  35. {{ deptBudgetList.contractNo }}
  36. </div>
  37. <span class="unchangeable">*</span>
  38. </ws-form-item>
  39. <!--运输方式-->
  40. <ws-form-item label="运输方式" span="1" prop="contractNo">
  41. <ws-input
  42. v-model="deptBudgetList.shippingType"
  43. placeholder="请输入运输方式"
  44. maxlength="100"
  45. size="small"
  46. />
  47. </ws-form-item>
  48. <!--买方-->
  49. <ws-form-item label="买方" span="1" prop="contractNo">
  50. <div class="unchanged">
  51. {{ deptBudgetList.buyer }}
  52. </div>
  53. <span class="unchangeable">*</span>
  54. </ws-form-item>
  55. <!--结算方式-->
  56. <ws-form-item label="结算方式" span="1" prop="contractNo">
  57. <ws-input
  58. v-model="deptBudgetList.settlementMethod"
  59. placeholder="请输入结算方式"
  60. maxlength="100"
  61. size="small"
  62. />
  63. </ws-form-item>
  64. <!--卖方-->
  65. <ws-form-item label="卖方" span="1" prop="contractNo">
  66. <div class="unchanged">
  67. {{ deptBudgetList.seller }}
  68. </div>
  69. <span class="unchangeable">*</span>
  70. </ws-form-item>
  71. <!--交货方式-->
  72. <ws-form-item label="交货方式" span="1" prop="contractNo">
  73. <div class="unchanged">
  74. {{deptBudgetList.deliverType}}
  75. </div>
  76. <span class="unchangeable">*</span>
  77. </ws-form-item>
  78. <!--买方电话-->
  79. <ws-form-item label="买方电话" span="1" prop="contractNo">
  80. <ws-input
  81. v-model="deptBudgetList.buyerPhone"
  82. placeholder="请输入买方电话"
  83. maxlength="100"
  84. size="small"
  85. />
  86. </ws-form-item>
  87. <!--包装方式-->
  88. <ws-form-item label="包装方式" span="1" prop="packingMethod">
  89. <ws-select
  90. v-model="deptBudgetList.packingMethod"
  91. placeholder=""
  92. class="typeselect"
  93. @change="selectpackingMethod"
  94. >
  95. <ws-option
  96. v-for="item in packtypeList"
  97. :key="item.constKey"
  98. :label="item.constValue"
  99. :value="item.constValue"
  100. />
  101. </ws-select>
  102. </ws-form-item>
  103. <!--卖方电话-->
  104. <ws-form-item label="卖方电话" span="1" prop="contractNo">
  105. <ws-input
  106. v-model="deptBudgetList.sellerPhone"
  107. placeholder="请输入卖房电话"
  108. maxlength="100"
  109. size="small"
  110. />
  111. </ws-form-item>
  112. <!--验收方式-->
  113. <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
  114. <el-select
  115. v-model="deptBudgetList.acceptanceMethod"
  116. placeholder="请选择验收方式"
  117. style="width: 100%"
  118. filterable
  119. @change="selectunitList"
  120. >
  121. <el-option
  122. v-for="(item, index) in unitList"
  123. :key="item.constValue"
  124. :label="item.constValue"
  125. :value="item.constValue"
  126. >
  127. <span class="unit-left" style="float: left">
  128. <span v-if="item.flag == 'delete'">
  129. {{ item.constValue }}</span
  130. >
  131. <!-- 新增文本框 -->
  132. <div
  133. style="width: 160px"
  134. v-if="item.flag !== 'delete'"
  135. @click.stop
  136. >
  137. <ws-input
  138. v-model="item.constValue"
  139. clearable
  140. maxlength="10"
  141. style="width: 100%"
  142. ></ws-input>
  143. </div>
  144. </span>
  145. <span style="float: right; color: #8492a6; font-size: 13px">
  146. <!-- 对号 -->
  147. <i
  148. class="el-icon-check"
  149. style="line-height: 29px; margin-left: 10px"
  150. v-if="item.flag !== 'delete'"
  151. @click.stop="saveClick(item, index)"
  152. ></i>
  153. <!-- 编辑 -->
  154. <i
  155. class="el-icon-edit"
  156. style="line-height: 29px; margin-left: 10px"
  157. v-if="item.flag == 'delete'"
  158. @click.stop="editClick(item, index)"
  159. ></i>
  160. <!-- 删除 -->
  161. <i
  162. class="el-icon-delete"
  163. style="line-height: 29px"
  164. @click.stop="deleteClick(item, index)"
  165. ></i>
  166. </span>
  167. </el-option>
  168. <!-- 新增按钮 -->
  169. <el-option value="" label="">
  170. <div
  171. style="
  172. text-align: right;
  173. border-top: 1px solid #dcdfe6;
  174. padding: 5px;
  175. "
  176. >
  177. <ws-button type="primary" @click.stop="addClick">{{
  178. $t('button.add')
  179. }}</ws-button>
  180. </div>
  181. </el-option>
  182. </el-select>
  183. </ws-form-item>
  184. <!--重量(吨)-->
  185. <ws-form-item label="重量(吨)" span="1" prop="contractNo">
  186. <ws-input
  187. v-model="deptBudgetList.weight"
  188. placeholder="请输入重量(吨)"
  189. maxlength="100"
  190. size="small"
  191. />
  192. </ws-form-item>
  193. <!--交货日期(起)-->
  194. <ws-form-item
  195. label="交货日期(起)"
  196. span="1"
  197. prop="deliveryDateStart"
  198. >
  199. <ws-date-picker
  200. v-model="deptBudgetList.deliveryDateStart"
  201. type="date"
  202. placeholder="请选择交货日期(起)"
  203. value-format="yyyy-MM-dd"
  204. />
  205. </ws-form-item>
  206. <!--溢短装(%)-->
  207. <ws-form-item label="溢短装(%)" span="1" prop="contractNo">
  208. <ws-input
  209. v-model="deptBudgetList.overShort"
  210. placeholder="请输入溢短装(%)"
  211. maxlength="100"
  212. size="small"
  213. />
  214. </ws-form-item>
  215. <!--交货日期(止)-->
  216. <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
  217. <ws-date-picker
  218. v-model="deptBudgetList.deliveryDateEnd"
  219. type="date"
  220. placeholder="请选择交货日期(止)"
  221. value-format="yyyy-MM-dd"
  222. />
  223. </ws-form-item>
  224. <!--合同单价(元/吨)-->
  225. <ws-form-item label="合同单价(元/吨)" span="1" prop="contractNo">
  226. <div class="unchanged">
  227. {{ deptBudgetList.unitContractPrice }}
  228. </div>
  229. <span class="unchangeable">*</span>
  230. </ws-form-item>
  231. <!--合同总价-->
  232. <ws-form-item label="合同总价" span="1" prop="contractNo">
  233. <ws-input
  234. v-model="deptBudgetList.totalContractPrice"
  235. placeholder="请输入合同总价"
  236. maxlength="100"
  237. size="small"
  238. />
  239. </ws-form-item>
  240. <!-- 货源所在地区 -->
  241. <ws-form-item label="货源所在地区" span="1" prop="packingMethod">
  242. <el-cascader
  243. :options="options_"
  244. v-model="selectedOptions"
  245. clearable
  246. size="large"
  247. placeholder="请选择货源所在地区"
  248. style="width: 200%"
  249. @change="handleChange"
  250. />
  251. </ws-form-item>
  252. <!-- 货源详细地址 -->
  253. <ws-form-item label="货源详细地址" span="1" prop="totalContractPrice">
  254. <ws-input
  255. v-model="deptBudgetList.totalContractPrice"
  256. maxlength="100"
  257. placeholder="请输入货源详细地址"
  258. size="small"
  259. />
  260. </ws-form-item>
  261. <!-- 交货地所在地区 -->
  262. <ws-form-item label="交货地所在地区" span="1" prop="packingMethod">
  263. <el-cascader
  264. :options="options_"
  265. v-model="selectedOptions"
  266. clearable
  267. size="large"
  268. placeholder="请选择交货地所在地区"
  269. style="width: 200%"
  270. @change="handleChange"
  271. />
  272. </ws-form-item>
  273. <!-- 交货地详细地址 -->
  274. <ws-form-item
  275. label="交货地详细地址"
  276. span="1"
  277. prop="totalContractPrice"
  278. >
  279. <ws-input
  280. v-model="deptBudgetList.totalContractPrice"
  281. maxlength="100"
  282. placeholder="请输入交货地详细地址"
  283. size="small"
  284. />
  285. </ws-form-item>
  286. <!--签订日期-->
  287. <ws-form-item label="签订日期" span="1" prop="signingDate">
  288. <ws-date-picker
  289. v-model="deptBudgetList.signingDate"
  290. type="date"
  291. placeholder="请选择合同签订日期"
  292. value-format="yyyy-MM-dd"
  293. />
  294. </ws-form-item>
  295. <!-- 最终实际交易量(吨) -->
  296. <ws-form-item
  297. label="最终实际交易量(吨)"
  298. span="1"
  299. prop="totalContractPrice"
  300. >
  301. <ws-input
  302. v-model="deptBudgetList.finalTradingVolume"
  303. maxlength="100"
  304. placeholder="请输入最终实际交易量"
  305. size="small"
  306. />
  307. </ws-form-item>
  308. </ws-info-table>
  309. </ws-form>
  310. </div>
  311. <!-- <base-card> -->
  312. <div class="wenzi">
  313. <h3>货物信息</h3>
  314. </div>
  315. <div class="center">
  316. <ws-form
  317. ref="deptBudgetList"
  318. :rules="ruleDeptBudget"
  319. :model="deptBudgetList"
  320. >
  321. <!--货物信息-->
  322. <ws-info-table>
  323. <!--货名-->
  324. <ws-form-item label="货名" span="1" prop="goodsName">
  325. <!-- <ws-select
  326. v-model="deptBudgetList.contractGoodsInfo.goodsName"
  327. placeholder=""
  328. class="typeselect"
  329. @change="selectpackingMethod"
  330. >
  331. <ws-option
  332. v-for="item in goodnameList"
  333. :key="item.constKey"
  334. :label="item.constValue"
  335. :value="item.constValue"
  336. />
  337. </ws-select> -->
  338. <div class="unchanged">
  339. {{ deptBudgetList.contractGoodsInfo.goodsName }}
  340. </div>
  341. <span class="unchangeable">*</span>
  342. </ws-form-item>
  343. <!--水分(%)<=-->
  344. <ws-form-item label="水分(%)" span="1" prop="contractNo">
  345. <ws-input
  346. v-model="deptBudgetList.contractGoodsInfo.waterContent"
  347. placeholder="请输入水分(%)"
  348. maxlength="100"
  349. size="small"
  350. />
  351. </ws-form-item>
  352. <!--品级-->
  353. <ws-form-item label="品级" span="1" prop="grade">
  354. <ws-select
  355. v-model="deptBudgetList.contractGoodsInfo.grade"
  356. placeholder=""
  357. class="typeselect"
  358. @change="selectgrade"
  359. >
  360. <ws-option
  361. v-for="item in gradeList"
  362. :key="item.constKey"
  363. :label="item.constValue"
  364. :value="item.constValue"
  365. />
  366. </ws-select>
  367. </ws-form-item>
  368. <!--杂质(%)<=-->
  369. <ws-form-item label="杂质(%)" span="1" prop="contractNo">
  370. <ws-input
  371. v-model="deptBudgetList.contractGoodsInfo.impurity"
  372. placeholder="请输入杂质(%)"
  373. maxlength="100"
  374. size="small"
  375. />
  376. </ws-form-item>
  377. <!--容量(克/升)>=-->
  378. <ws-form-item label="容量(克/升)" span="1" prop="contractNo">
  379. <ws-input
  380. v-model="deptBudgetList.contractGoodsInfo.bulkDensity"
  381. placeholder="请输入容量(克/升)"
  382. maxlength="100"
  383. size="small"
  384. />
  385. </ws-form-item>
  386. <!--霉变粒(%)<=-->
  387. <ws-form-item label="霉变粒(%)" span="1" prop="contractNo">
  388. <ws-input
  389. v-model="deptBudgetList.contractGoodsInfo.mildewGrain"
  390. placeholder="请输入霉变粒(%)"
  391. maxlength="100"
  392. size="small"
  393. />
  394. </ws-form-item>
  395. <!--热损伤(%)<=-->
  396. <ws-form-item label="热损伤(%)" span="1" prop="contractNo">
  397. <ws-input
  398. v-model="deptBudgetList.contractGoodsInfo.jiaorenli"
  399. placeholder="请输入热损伤(%)"
  400. maxlength="100"
  401. size="small"
  402. />
  403. </ws-form-item>
  404. <!--不完整粒(%)<=-->
  405. <ws-form-item label="不完整粒(%)" span="1" prop="contractNo">
  406. <ws-input
  407. v-model="deptBudgetList.contractGoodsInfo.imperfectGrain"
  408. placeholder="请输入不完整粒(%)"
  409. maxlength="100"
  410. size="small"
  411. />
  412. </ws-form-item>
  413. </ws-info-table>
  414. </ws-form>
  415. </div>
  416. <div class="wenzi">
  417. <h3>流程信息</h3>
  418. </div>
  419. <div class="center">
  420. <ws-form
  421. ref="deptBudgetList"
  422. :rules="ruleDeptBudget"
  423. :model="deptBudgetList"
  424. >
  425. <!--流程信息-->
  426. <ws-info-table>
  427. <!--合同收入(元)-->
  428. <ws-form-item label="合同收入(元)" span="1" prop="contractNo">
  429. <ws-input
  430. v-model="deptBudgetList.contractProcessInfo.goodsNameKey"
  431. placeholder="请输入合同收入(元)"
  432. maxlength="100"
  433. size="small"
  434. />
  435. </ws-form-item>
  436. <!--已开发票(元)-->
  437. <ws-form-item label="已开发票(元)" span="1" prop="contractNo">
  438. <ws-input
  439. v-model="deptBudgetList.contractProcessInfo.goodsName"
  440. placeholder="请输入已开发票(元))"
  441. maxlength="100"
  442. size="small"
  443. />
  444. </ws-form-item>
  445. <!--费用支出(元)-->
  446. <ws-form-item label="费用支出(元)" span="1" prop="contractNo">
  447. <ws-input
  448. v-model="deptBudgetList.contractProcessInfo.waterContent"
  449. placeholder="请输入费用支出(元)"
  450. maxlength="100"
  451. size="small"
  452. />
  453. </ws-form-item>
  454. <!--未开发票(元)-->
  455. <ws-form-item label="未开发票(元)" span="1" prop="contractNo">
  456. <ws-input
  457. v-model="deptBudgetList.contractProcessInfo.impurity"
  458. placeholder="请输入未开发票(元)"
  459. maxlength="100"
  460. size="small"
  461. />
  462. </ws-form-item>
  463. <!--未回款(元)-->
  464. <ws-form-item label="未回款(元)" span="1" prop="contractNo">
  465. <ws-input
  466. v-model="deptBudgetList.contractProcessInfo.mildewGrain"
  467. placeholder="请输入未回款(元)"
  468. maxlength="100"
  469. size="small"
  470. />
  471. </ws-form-item>
  472. <!--已完成发货量(吨)-->
  473. <ws-form-item label="已完成发货量(吨)" span="1" prop="contractNo">
  474. <ws-input
  475. v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
  476. placeholder="请输入已完成发货量(吨)"
  477. maxlength="100"
  478. size="small"
  479. />
  480. </ws-form-item>
  481. <!--双章原件回收情况-->
  482. <ws-form-item label="双章原件回收情况" span="1" prop="grade">
  483. <ws-select
  484. v-model="deptBudgetList.contractProcessInfo.grade"
  485. placeholder=""
  486. class="typeselect"
  487. @change="selectpackingMethod"
  488. >
  489. <ws-option
  490. v-for="item in ChapterTwoList"
  491. :key="item.constKey"
  492. :label="item.constValue"
  493. :value="item.constValue"
  494. />
  495. </ws-select>
  496. </ws-form-item>
  497. </ws-info-table>
  498. </ws-form>
  499. </div>
  500. <div class="wenzi">
  501. <h3>备注信息</h3>
  502. </div>
  503. <div class="center">
  504. <ws-form
  505. ref="deptBudgetList"
  506. :rules="ruleDeptBudget"
  507. :model="deptBudgetList"
  508. >
  509. <!--备注信息-->
  510. <ws-input
  511. v-model="deptBudgetList.remarks"
  512. type="textarea"
  513. row="3"
  514. placeholder="请输入备注信息,不超过200字"
  515. maxlength="200"
  516. />
  517. <ws-upload
  518. ref="upload"
  519. table-name="maintain_work_order"
  520. oss-key="mainPlan"
  521. :comp-id="compId"
  522. :appendix-ids="appendixIdsAdd"
  523. :vesselId="deptBudgetList.addressUrl"
  524. :size-limit="size"
  525. @uploadSuccess="uploadSuccess"
  526. @onChange="onChange"
  527. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
  528. />
  529. </ws-form>
  530. </div>
  531. <div style="text-align: right; padding: 10px" class="center">
  532. <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
  533. >提交</el-button
  534. >
  535. </div>
  536. </div>
  537. </template>
  538. <script>
  539. // import { getVesselOne } from '@/model/procurement/basic'
  540. // import { dayjs } from 'base-core-lib'
  541. import { regionData} from 'element-china-area-data'
  542. import WsUpload from '@/components/WsUpload'
  543. import {
  544. examineList,
  545. editInfo,
  546. packList,
  547. xiala,
  548. addxiala,
  549. editxiala,
  550. delxiala,
  551. } from '@/model/contarct/index'
  552. export default {
  553. name: 'viewSpareMoney',
  554. components: {
  555. WsUpload,
  556. },
  557. watch: {
  558. vesselId(val) {
  559. this.getVesselData()
  560. },
  561. isShow(val) {
  562. this.showType = val
  563. },
  564. },
  565. data() {
  566. return {
  567. //弹出框
  568. dialogViewSpareMoney: false,
  569. dialogApproveFormVisible: false,
  570. // 船舶类型
  571. monetaryKey: null,
  572. // 表格显示数据
  573. tableDate: [],
  574. // 是否显示
  575. showType: true,
  576. // 年
  577. year: '',
  578. // 提交类型
  579. submitType: true,
  580. options_:regionData,
  581. tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
  582. pickerBeginDateBefore: {
  583. disabledDate: (time) => {
  584. return time.getTime() > Date.now()
  585. },
  586. },
  587. // selectpackingMethod:{},
  588. selectunitList: {},
  589. //change:{},
  590. onChange: {},
  591. uploadSuccess: {},
  592. selectgrade: {},
  593. goodnameList: {},
  594. selectpackingMethod: {},
  595. unitList: {},
  596. packtypeList: [],
  597. compId: sessionStorage.getItem('ws-pf_compId'),
  598. appendixIdsAdd: '',
  599. size: 10,
  600. deptBudgetList: {
  601. contractGoodsInfo: {
  602. goodsName: '',
  603. },
  604. contractProcessInfo: {},
  605. },
  606. // selectpackingMethod:{},
  607. // change:{},
  608. ruleDeptBudget: {},
  609. trainingMethods: {},
  610. isEdited: false,
  611. registered: {},
  612. selectCrtDuty: {},
  613. dutyList: {},
  614. sexList: {},
  615. selectDuty: {},
  616. gradeList: {},
  617. ChapterTwoList: {},
  618. selectIntendedShip: {},
  619. interviewTypeList: {},
  620. }
  621. },
  622. activated() {
  623. //cg.viewBudget
  624. //cg.viewSpareMoney
  625. // this.getVesselData();
  626. this.loaddata()
  627. this.editInfo()
  628. this.showType = this.isShow
  629. // console.log(this.$route.params)
  630. this.showType = this.isShow
  631. },
  632. methods: {
  633. // 关闭 dialog时 处理文件url 初始化upload组件
  634. handleClose() {
  635. this.dialogViewSpareMoney = false
  636. },
  637. returnsales() {
  638. this.$router.push({ path: 'salesContract' })
  639. },
  640. loaddata() {
  641. // 数据
  642. examineList({ id: this.$route.params.id })
  643. .toPromise()
  644. .then((response) => {
  645. this.deptBudgetList = response
  646. })
  647. // 包装方式
  648. packList({ constId: 'CON1' })
  649. .toPromise()
  650. .then((response) => {
  651. this.packtypeList = response
  652. })
  653. // 验收方式
  654. this.getUnitList()
  655. // 货名
  656. packList({ constId: 'CON2' })
  657. .toPromise()
  658. .then((response) => {
  659. this.goodnameList = response
  660. })
  661. // 品级
  662. packList({ constId: 'CON3' })
  663. .toPromise()
  664. .then((response) => {
  665. this.gradeList = response
  666. })
  667. // 双章
  668. packList({ constId: 'CON4' })
  669. .toPromise()
  670. .then((response) => {
  671. this.ChapterTwoList = response
  672. })
  673. },
  674. getUnitList() {
  675. xiala({
  676. compId: sessionStorage.getItem('ws-pf_compId'),
  677. constCode: 'TYPEYAN',
  678. })
  679. .toPromise()
  680. .then((response) => {
  681. this.unitList = response
  682. let currItem
  683. this.unitList.forEach((item, index, arr) => {
  684. item.flag = 'delete'
  685. if (this.vModel == item.constKey) {
  686. currItem = item
  687. }
  688. })
  689. //
  690. if (currItem) {
  691. this.selectContract(currItem.constValue)
  692. }
  693. })
  694. },
  695. // 编辑
  696. editClick(item, index) {
  697. const map = JSON.parse(JSON.stringify(item))
  698. if (Object.is(item.id, 1)) {
  699. return
  700. }
  701. if (Object.is(this.unitList[index].flag, 'delete')) {
  702. map.flag = 'check'
  703. this.$set(this.unitList, index, map)
  704. } else {
  705. map.flag = 'delete'
  706. this.$set(this.unitList, index, map)
  707. }
  708. },
  709. // 删除
  710. deleteClick(item, index) {
  711. if (Object.is(item.constKey, 1)) {
  712. return
  713. }
  714. if (!item.constValue) {
  715. this.unitList.splice(index, 1)
  716. return
  717. }
  718. delxiala({ id: this.unitList[index].id })
  719. .toPromise()
  720. .then((response) => {
  721. this.getUnitList()
  722. this.pleaseChoose = ''
  723. })
  724. },
  725. saveClick(item, index) {
  726. // console.log(item)
  727. if (Object.is(item.id, 1)) {
  728. return
  729. }
  730. if (Object.is(this.unitList[index].flag, 'delete')) {
  731. this.$set(this.unitList, index, { flag: 'check' })
  732. } else {
  733. this.$set(this.unitList, index, { flag: 'delete' })
  734. }
  735. if (!item.constValue) {
  736. this.unitList.splice(index, 1)
  737. return
  738. }
  739. if (item.flag == 'add') {
  740. item.constKey = Math.random() * 20
  741. this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
  742. this.trainingMethods.constKey = item.constKey
  743. this.trainingMethods.constCode = 'TYPEYAN'
  744. this.trainingMethods.constValue = item.constValue
  745. this.trainingMethods.id = item.id
  746. addxiala(this.trainingMethods)
  747. .toPromise()
  748. .then((response) => {
  749. this.getUnitList()
  750. })
  751. } else if (item.flag == 'check') {
  752. this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
  753. this.trainingMethods.constKey = item.constKey
  754. this.trainingMethods.constCode = 'TYPEYAN'
  755. this.trainingMethods.constValue = item.constValue
  756. this.trainingMethods.id = item.id
  757. editxiala(this.trainingMethods)
  758. .toPromise()
  759. .then((response) => {
  760. this.getUnitList()
  761. })
  762. }
  763. },
  764. addClick() {
  765. // let [flag, constValue, constKey] = ['check', '', '']
  766. // let obj = { flag, constValue, constKey }
  767. // let objAdd = { flag: 'add', constValue: '新增项目', constKey: '' }
  768. // let result = this.unitList.filter((item, val, arr) => {
  769. // return item.id != '1'
  770. // })
  771. // result.push(obj)
  772. // result.push(objAdd)
  773. // this.unitList = result
  774. this.unitList.push({
  775. flag: 'add',
  776. constValue: '',
  777. constKey: '',
  778. })
  779. },
  780. submit() {
  781. if (!this.deptBudgetList.contractNo) {
  782. this.$message({
  783. message: '请输入合同编号',
  784. type: 'warning',
  785. })
  786. return
  787. }
  788. console.log(this.deptBudgetList.contractNo.length)
  789. if (
  790. this.deptBudgetList.contractNo.length < 6 ||
  791. this.deptBudgetList.contractNo.length > 20
  792. ) {
  793. this.$message({
  794. message: '合同编号长度不符合要求,请输入6到20个字符之内!',
  795. type: 'warning',
  796. })
  797. return
  798. }
  799. if (!this.deptBudgetList.shippingType) {
  800. this.$message({
  801. message: '请输入运输方式!',
  802. type: 'warning',
  803. })
  804. return
  805. }
  806. if (
  807. this.deptBudgetList.shippingType.length < 1 ||
  808. this.deptBudgetList.shippingType.length > 20
  809. ) {
  810. this.$message({
  811. message: '运输方式长度不符合要求,请输入1到20个字符之内!',
  812. type: 'warning',
  813. })
  814. return
  815. }
  816. if (!this.deptBudgetList.buyer) {
  817. this.$message({
  818. message: '请输入买方名称!',
  819. type: 'warning',
  820. })
  821. return
  822. }
  823. if (this.deptBudgetList.buyer.length > 30) {
  824. this.$message({
  825. message: '买方名称长度不符合要求,请输入30个字符之内!',
  826. type: 'warning',
  827. })
  828. return
  829. }
  830. if (!this.deptBudgetList.seller) {
  831. this.$message({
  832. message: '请输入卖方名称!',
  833. type: 'warning',
  834. })
  835. return
  836. }
  837. if (this.deptBudgetList.seller.length > 30) {
  838. this.$message({
  839. message: '卖方名称长度不符合要求,请输入30个字符之内!',
  840. type: 'warning',
  841. })
  842. return
  843. }
  844. if (!this.deptBudgetList.buyerPhone) {
  845. this.$message({
  846. message: '请输入买方电话!',
  847. type: 'warning',
  848. })
  849. return
  850. }
  851. if (isNaN(this.deptBudgetList.buyerPhone)) {
  852. this.$message({
  853. message: '输入买方电话有误!',
  854. type: 'warning',
  855. })
  856. return
  857. }
  858. if (
  859. this.deptBudgetList.buyerPhone.length < 7 ||
  860. this.deptBudgetList.buyerPhone.length > 20
  861. ) {
  862. this.$message({
  863. message: '买方电话长度不符合要求,请输入7到20个字符之内!',
  864. type: 'warning',
  865. })
  866. return
  867. }
  868. if (!this.deptBudgetList.sellerPhone) {
  869. this.$message({
  870. message: '请输入卖方电话!',
  871. type: 'warning',
  872. })
  873. return
  874. }
  875. if (isNaN(this.deptBudgetList.sellerPhone)) {
  876. this.$message({
  877. message: '输入卖方电话有误!',
  878. type: 'warning',
  879. })
  880. return
  881. }
  882. if (
  883. this.deptBudgetList.buyerPhone.length < 7 ||
  884. this.deptBudgetList.buyerPhone.length > 20
  885. ) {
  886. this.$message({
  887. message: '卖方电话长度不符合要求,请输入7到20个字符之内!',
  888. type: 'warning',
  889. })
  890. return
  891. }
  892. if (!this.deptBudgetList.settlementMethod) {
  893. this.$message({
  894. message: '请输入结算方式!',
  895. type: 'warning',
  896. })
  897. return
  898. }
  899. if (!this.deptBudgetList.sourceGoods) {
  900. this.$message({
  901. message: '请输入货源地!',
  902. type: 'warning',
  903. })
  904. return
  905. }
  906. if (!this.deptBudgetList.placeDelivery) {
  907. this.$message({
  908. message: '请输入交货地!',
  909. type: 'warning',
  910. })
  911. return
  912. }
  913. if (!this.deptBudgetList.weight) {
  914. this.$message({
  915. message: '请输入重量!',
  916. type: 'warning',
  917. })
  918. return
  919. }
  920. if (
  921. isNaN(this.deptBudgetList.weight) ||
  922. (String(this.deptBudgetList.weight).indexOf('.') != -1 &&
  923. String(this.deptBudgetList.weight).length -
  924. (String(this.deptBudgetList.weight).indexOf('.') + 1) >
  925. 3) ||
  926. this.deptBudgetList.weight < 0 ||
  927. this.deptBudgetList.weight > 200000
  928. ) {
  929. this.$message({
  930. message: '输入重量有误!',
  931. type: 'warning',
  932. })
  933. return
  934. }
  935. if (
  936. !this.deptBudgetList.overShort &&
  937. isNaN(this.deptBudgetList.overShort)
  938. ) {
  939. this.$message({
  940. message: '溢短装输入有误!',
  941. type: 'warning',
  942. })
  943. return
  944. }
  945. if (
  946. !this.deptBudgetList.unitContractPrice &&
  947. isNaN(this.deptBudgetList.unitContractPrice)
  948. ) {
  949. this.$message({
  950. message: '合同单价输入有误!',
  951. type: 'warning',
  952. })
  953. return
  954. }
  955. if (
  956. !this.deptBudgetList.totalContractPrice &&
  957. isNaN(this.deptBudgetList.totalContractPrice)
  958. ) {
  959. this.$message({
  960. message: '合同总价输入有误!',
  961. type: 'warning',
  962. })
  963. return
  964. }
  965. if (!this.deptBudgetList.deliveryDateStart) {
  966. this.$message({
  967. message: '请选择交货日期(起)',
  968. type: 'warning',
  969. })
  970. return
  971. }
  972. if (!this.deptBudgetList.deliveryDateEnd) {
  973. this.$message({
  974. message: '请选择交货日期(止)',
  975. type: 'warning',
  976. })
  977. return
  978. }
  979. //时间
  980. if (
  981. new Date(this.deptBudgetList.deliveryDateStart).getTime() >
  982. new Date(this.deptBudgetList.deliveryDateEnd).getTime()
  983. ) {
  984. this.$message({
  985. message: '交货日期(止)选择错误',
  986. type: 'warning',
  987. })
  988. return
  989. }
  990. if (!this.deptBudgetList.signingDate) {
  991. this.$message({
  992. message: '请选择签订日期',
  993. type: 'warning',
  994. })
  995. return
  996. }
  997. if (!this.deptBudgetList.contractGoodsInfo.goodsName) {
  998. this.$message({
  999. message: '请选择货名',
  1000. type: 'warning',
  1001. })
  1002. return
  1003. }
  1004. if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
  1005. this.$message({
  1006. message: '请选择水分',
  1007. type: 'warning',
  1008. })
  1009. return
  1010. }
  1011. if (!this.deptBudgetList.contractGoodsInfo.grade) {
  1012. this.$message({
  1013. message: '请选择品级',
  1014. type: 'warning',
  1015. })
  1016. return
  1017. }
  1018. if (
  1019. !this.deptBudgetList.contractGoodsInfo.impurity ||
  1020. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
  1021. -1 &&
  1022. String(this.deptBudgetList.contractGoodsInfo.impurity).length -
  1023. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf(
  1024. '.'
  1025. ) +
  1026. 1) >
  1027. 2)
  1028. ) {
  1029. this.$message({
  1030. message: '杂质输入错误',
  1031. type: 'warning',
  1032. })
  1033. return
  1034. }
  1035. if (
  1036. !this.deptBudgetList.contractGoodsInfo.bulkDensity ||
  1037. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  1038. '.'
  1039. ) != -1 &&
  1040. String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
  1041. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  1042. '.'
  1043. ) +
  1044. 1) >
  1045. 2)
  1046. ) {
  1047. this.$message({
  1048. message: '容重输入错误',
  1049. type: 'warning',
  1050. })
  1051. return
  1052. }
  1053. if (
  1054. !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
  1055. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  1056. '.'
  1057. ) != -1 &&
  1058. String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
  1059. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  1060. '.'
  1061. ) +
  1062. 1) >
  1063. 2)
  1064. ) {
  1065. this.$message({
  1066. message: '霉变粒输入错误',
  1067. type: 'warning',
  1068. })
  1069. return
  1070. }
  1071. if (
  1072. !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
  1073. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
  1074. -1 &&
  1075. String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
  1076. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
  1077. '.'
  1078. ) +
  1079. 1) >
  1080. 2)
  1081. ) {
  1082. this.$message({
  1083. message: '热损伤输入错误',
  1084. type: 'warning',
  1085. })
  1086. return
  1087. }
  1088. if (
  1089. !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
  1090. (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
  1091. '.'
  1092. ) != -1 &&
  1093. String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
  1094. (String(
  1095. this.deptBudgetList.contractGoodsInfo.imperfectGrain
  1096. ).indexOf('.') +
  1097. 1) >
  1098. 2)
  1099. ) {
  1100. this.$message({
  1101. message: '不完整粒输入错误',
  1102. type: 'warning',
  1103. })
  1104. return
  1105. }
  1106. if (
  1107. (!this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) |
  1108. (this.deptBudgetList.contractProcessInfo.goodsNameKey < 0) ||
  1109. (String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
  1110. '.'
  1111. ) != -1 &&
  1112. String(this.deptBudgetList.contractProcessInfo.goodsNameKey).length -
  1113. (String(
  1114. this.deptBudgetList.contractProcessInfo.goodsNameKey
  1115. ).indexOf('.') +
  1116. 1) >
  1117. 2)
  1118. ) {
  1119. this.$message({
  1120. message: '合同收入金额输入错误',
  1121. type: 'warning',
  1122. })
  1123. return
  1124. }
  1125. if (
  1126. (this.deptBudgetList.contractProcessInfo.waterContent > 10000000) |
  1127. (this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
  1128. (String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
  1129. '.'
  1130. ) != -1 &&
  1131. String(this.deptBudgetList.contractProcessInfo.waterContent).length -
  1132. (String(
  1133. this.deptBudgetList.contractProcessInfo.waterContent
  1134. ).indexOf('.') +
  1135. 1) >
  1136. 2)
  1137. ) {
  1138. this.$message({
  1139. message: '费用金额输入错误',
  1140. type: 'warning',
  1141. })
  1142. return
  1143. }
  1144. if (
  1145. (this.deptBudgetList.contractProcessInfo.goodsName > 1000000000) |
  1146. (this.deptBudgetList.contractProcessInfo.goodsName < 0) ||
  1147. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1148. '.'
  1149. ) != -1 &&
  1150. String(this.deptBudgetList.contractProcessInfo.goodsName).length -
  1151. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1152. '.'
  1153. ) +
  1154. 1) >
  1155. 2)
  1156. ) {
  1157. this.$message({
  1158. message: '已开发票金额输入错误',
  1159. type: 'warning',
  1160. })
  1161. return
  1162. }
  1163. if (
  1164. (this.deptBudgetList.contractProcessInfo.impurity > 1000000000) |
  1165. (this.deptBudgetList.contractProcessInfo.impurity < 0) ||
  1166. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1167. '.'
  1168. ) != -1 &&
  1169. String(this.deptBudgetList.contractProcessInfo.impurity).length -
  1170. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1171. '.'
  1172. ) +
  1173. 1) >
  1174. 2)
  1175. ) {
  1176. this.$message({
  1177. message: '未开发票金额输入错误',
  1178. type: 'warning',
  1179. })
  1180. return
  1181. }
  1182. if (
  1183. (this.deptBudgetList.contractProcessInfo.imperfectGrain > 200000) |
  1184. (this.deptBudgetList.contractProcessInfo.imperfectGrain < 0) ||
  1185. (String(this.deptBudgetList.contractProcessInfo.imperfectGrain).indexOf(
  1186. '.'
  1187. ) != -1 &&
  1188. String(this.deptBudgetList.contractProcessInfo.imperfectGrain)
  1189. .length -
  1190. (String(
  1191. this.deptBudgetList.contractProcessInfo.imperfectGrain
  1192. ).indexOf('.') +
  1193. 1) >
  1194. 2)
  1195. ) {
  1196. this.$message({
  1197. message: '已完成发运量输入错误',
  1198. type: 'warning',
  1199. })
  1200. return
  1201. }
  1202. if (
  1203. (!this.deptBudgetList.contractProcessInfo.mildewGrain > 1000000000) |
  1204. (this.deptBudgetList.contractProcessInfo.mildewGrain < 0) ||
  1205. (String(this.deptBudgetList.contractProcessInfo.mildewGrain).indexOf(
  1206. '.'
  1207. ) != -1 &&
  1208. String(this.deptBudgetList.contractProcessInfo.mildewGrain).length -
  1209. (String(
  1210. this.deptBudgetList.contractProcessInfo.mildewGrain
  1211. ).indexOf('.') +
  1212. 1) >
  1213. 2)
  1214. ) {
  1215. this.$message({
  1216. message: '未回款金额输入错误',
  1217. type: 'warning',
  1218. })
  1219. return
  1220. }
  1221. this.$refs.deptBudgetList.validate((valid) => {
  1222. if (valid) {
  1223. this.deptBudgetList.compId = this.compId
  1224. this.deptBudgetList.contractType = 1
  1225. editInfo(this.deptBudgetList)
  1226. .toPromise()
  1227. .then((response) => {
  1228. this.$message.success('编辑成功')
  1229. this.$router.push({ path: 'salesContract' })
  1230. })
  1231. } else {
  1232. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1233. return false
  1234. }
  1235. })
  1236. },
  1237. editInfo() {
  1238. editInfo({})
  1239. },
  1240. // getList(){}
  1241. },
  1242. }
  1243. </script>
  1244. <style lang="scss" scoped>
  1245. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1246. padding: 0 25px;
  1247. }
  1248. /deep/.ws-info-table .el-form-item {
  1249. border-right: 1px solid #cdd2dc;
  1250. border-bottom: 1px solid #cdd2dc;
  1251. }
  1252. .title {
  1253. position: relative;
  1254. }
  1255. .title::before {
  1256. content: '';
  1257. display: inline-block;
  1258. width: 5px;
  1259. height: 30px;
  1260. background: #5473e8;
  1261. position: absolute;
  1262. left: 0;
  1263. }
  1264. .el-button--primary {
  1265. background-color: #5878e8;
  1266. border-color: #5878e8;
  1267. }
  1268. .el-col {
  1269. background: #f6f7fc;
  1270. }
  1271. .readonly {
  1272. position: relative;
  1273. }
  1274. .readonly:after {
  1275. content: '*';
  1276. color: #ff2727;
  1277. position: absolute;
  1278. right: 8px;
  1279. z-index: 10;
  1280. top: 21%;
  1281. font-size: 20px;
  1282. }
  1283. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1284. padding: 0 25px;
  1285. border-left: 1px solid #cdd2dc;
  1286. background: #fafbfc;
  1287. }
  1288. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1289. width: 140px;
  1290. text-align: center;
  1291. background: #f0f2f6;
  1292. // border: 1px solid #cdd2dc;
  1293. }
  1294. .button-container {
  1295. display: flex;
  1296. flex-wrap: nowrap;
  1297. justify-content: space-between;
  1298. align-items: center;
  1299. background-color: #fff;
  1300. width: 100%;
  1301. height: 50px;
  1302. padding: 0 10px;
  1303. & > div {
  1304. margin-left: 10px;
  1305. display: flex;
  1306. flex-wrap: nowrap;
  1307. flex-direction: row;
  1308. & > span {
  1309. line-height: 50px;
  1310. }
  1311. }
  1312. /deep/.auditFlow-box {
  1313. position: unset;
  1314. margin-left: 10px;
  1315. &/deep/.auditFlow-icon {
  1316. width: auto;
  1317. padding-right: 30px;
  1318. }
  1319. &/deep/.auditFlow-main {
  1320. position: absolute;
  1321. }
  1322. }
  1323. }
  1324. .box-app {
  1325. display: inline-block;
  1326. margin-left: 30px;
  1327. line-height: 50px;
  1328. }
  1329. /deep/.el-dialog {
  1330. .el-form-item {
  1331. margin-bottom: 0 !important;
  1332. .el-input--medium {
  1333. textarea {
  1334. min-height: 100px !important;
  1335. }
  1336. }
  1337. }
  1338. }
  1339. .collapse-bottom {
  1340. margin-bottom: 20px;
  1341. }
  1342. .input-main .textarea .el-textarea__inner {
  1343. width: 100%;
  1344. z-index: 1;
  1345. }
  1346. .bg-left {
  1347. padding-left: 30px;
  1348. }
  1349. .bg-right {
  1350. padding: 10px;
  1351. text-align: right;
  1352. }
  1353. .bg-bottom {
  1354. margin: 6px 0px;
  1355. }
  1356. .wenzi {
  1357. width: 70%;
  1358. margin: 0 auto;
  1359. }
  1360. .wenzi h3 {
  1361. display: inline-block;
  1362. left: 30px;
  1363. }
  1364. .wenzi p {
  1365. display: inline-block;
  1366. }
  1367. .center {
  1368. width: 70%;
  1369. margin: 0 auto;
  1370. }
  1371. .el-form-item {
  1372. width: 50%;
  1373. }
  1374. .el-form-item__label {
  1375. text-align: center;
  1376. }
  1377. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  1378. /* height: 82px;*/
  1379. /*}*/
  1380. // 控制select为只读的时候显示样式
  1381. .hide-sel {
  1382. .el-input__inner {
  1383. border: 0px;
  1384. }
  1385. .el-icon-arrow-up {
  1386. display: none;
  1387. }
  1388. .el-textarea__inner {
  1389. background-color: #fff !important;
  1390. border: 0;
  1391. }
  1392. .el-date-editor {
  1393. i {
  1394. display: none;
  1395. }
  1396. }
  1397. .is-disabled {
  1398. .el-input__inner:hover {
  1399. background-color: #fff !important;
  1400. border: 0;
  1401. }
  1402. color: #606266;
  1403. .el-input__inner {
  1404. background-color: #fff !important;
  1405. border: 0;
  1406. color: #606266;
  1407. }
  1408. .el-textarea__inner {
  1409. background-color: #fff !important;
  1410. border: 0;
  1411. color: #606266;
  1412. }
  1413. }
  1414. }
  1415. // 控制select为只读的时候显示样式
  1416. /deep/.ws-class-table-col {
  1417. height: auto;
  1418. padding: 0px 2px;
  1419. /deep/.el-input__inner {
  1420. padding: 0px 2px;
  1421. }
  1422. }
  1423. /deep/.is-disabled {
  1424. .el-input__prefix,
  1425. .el-input__suffix {
  1426. display: none;
  1427. }
  1428. .el-input__inner {
  1429. background-color: #fff;
  1430. border-color: #fff !important;
  1431. color: #000 !important;
  1432. font-size: 14px;
  1433. cursor: text;
  1434. padding: 0 !important;
  1435. }
  1436. }
  1437. .winseaview-view {
  1438. padding: 0 0 20px;
  1439. }
  1440. .container {
  1441. overflow: scroll;
  1442. height: 93vh;
  1443. }
  1444. //*号
  1445. .unchangeable {
  1446. position: absolute;
  1447. width: 9px;
  1448. height: 22px;
  1449. font-size: 16px;
  1450. font-family: PingFangSC-Medium, PingFang SC;
  1451. font-weight: 500;
  1452. color: #ff2727;
  1453. line-height: 22px;
  1454. display: inline-block;
  1455. right: 14px;
  1456. }
  1457. /deep/.el-input,
  1458. /deep/.el-date-editor {
  1459. font-size: 13px;
  1460. }
  1461. /deep/.el-textarea {
  1462. width: 900px;
  1463. margin: 0px;
  1464. }
  1465. /deep/el-date-editor--date {
  1466. width: 200px;
  1467. }
  1468. .unchanged {
  1469. position: absolute;
  1470. left: 37px;
  1471. width: 102px;
  1472. height: 14px;
  1473. font-size: 14px;
  1474. font-weight: 400;
  1475. color: #afb5cb;
  1476. line-height: 14px;
  1477. }
  1478. /deep/.el-input--small .el-input__inner {
  1479. height: 32px;
  1480. line-height: 32px;
  1481. }
  1482. </style>