salesContractEdit.vue 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595
  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.deliverType1 }}
  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="selectedOptions1"
  266. clearable
  267. size="large"
  268. placeholder="请选择交货地所在地区"
  269. style="width: 200%"
  270. @change="handleChange1"
  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="goodsName">
  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, CodeToText, TextToCode } 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.loaddata()
  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. selectedOptions: [],
  582. selectedOptions1: [],
  583. tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
  584. pickerBeginDateBefore: {
  585. disabledDate: (time) => {
  586. return time.getTime() > Date.now()
  587. },
  588. },
  589. // selectpackingMethod:{},
  590. selectunitList: {},
  591. //change:{},
  592. onChange: {},
  593. uploadSuccess: {},
  594. selectgrade: {},
  595. goodnameList: {},
  596. selectpackingMethod: {},
  597. unitList: {},
  598. packtypeList: [],
  599. compId: sessionStorage.getItem('ws-pf_compId'),
  600. appendixIdsAdd: '',
  601. size: 10,
  602. deptBudgetList: {
  603. contractGoodsInfo: {
  604. goodsName: '',
  605. },
  606. contractProcessInfo: {},
  607. },
  608. // selectpackingMethod:{},
  609. // change:{},
  610. ruleDeptBudget: {},
  611. trainingMethods: {},
  612. isEdited: false,
  613. registered: {},
  614. selectCrtDuty: {},
  615. dutyList: {},
  616. sexList: {},
  617. selectDuty: {},
  618. gradeList: {},
  619. ChapterTwoList: {},
  620. selectIntendedShip: {},
  621. interviewTypeList: {},
  622. }
  623. },
  624. activated() {
  625. //cg.viewBudget
  626. //cg.viewSpareMoney
  627. // this.getVesselData();
  628. this.loaddata()
  629. this.editInfo()
  630. this.showType = this.isShow
  631. // console.log(this.$route.params)
  632. this.showType = this.isShow
  633. },
  634. methods: {
  635. // 关闭 dialog时 处理文件url 初始化upload组件
  636. handleClose() {
  637. this.dialogViewSpareMoney = false
  638. },
  639. returnsales() {
  640. this.deptBudgetList = {}
  641. this.$router.push({ path: 'salesContract' })
  642. },
  643. handleChange(value) {
  644. this.selectedOptions = value
  645. },
  646. handleChange1(value) {
  647. this.selectedOptions1 = value
  648. },
  649. loaddata() {
  650. // 数据
  651. examineList({ id: this.$route.query.id })
  652. .toPromise()
  653. .then((response) => {
  654. var tmp = []
  655. tmp[0] = TextToCode[response.sourceProvince].code
  656. tmp[1] = TextToCode[response.sourceProvince][response.sourceCity].code
  657. if (tmp[0] == 810000 || tmp[0] == 820000) {
  658. tmp[2] = null
  659. } else {
  660. tmp[2] =
  661. TextToCode[response.sourceProvince][response.sourceCity][
  662. response.sourceArea
  663. ].code
  664. }
  665. this.selectedOptions = tmp
  666. var tmp1 = []
  667. tmp1[0] = TextToCode[response.deliveryProvince].code
  668. tmp1[1] =
  669. TextToCode[response.deliveryProvince][response.deliveryCity].code
  670. if (tmp1[0] == 810000 || tmp1[0] == 820000) {
  671. tmp1[2] = null
  672. } else {
  673. tmp1[2] =
  674. TextToCode[response.deliveryProvince][response.deliveryCity][
  675. response.deliveryArea
  676. ].code
  677. }
  678. this.selectedOptions1 = tmp1
  679. this.deptBudgetList = response
  680. })
  681. // 包装方式
  682. packList({ constId: 'CON1' })
  683. .toPromise()
  684. .then((response) => {
  685. this.packtypeList = response
  686. })
  687. // 验收方式
  688. this.getUnitList()
  689. // 货名
  690. packList({ constId: 'CON2' })
  691. .toPromise()
  692. .then((response) => {
  693. this.goodnameList = response
  694. })
  695. // 品级
  696. packList({ constId: 'CON3' })
  697. .toPromise()
  698. .then((response) => {
  699. this.gradeList = response
  700. })
  701. // 双章
  702. packList({ constId: 'CON4' })
  703. .toPromise()
  704. .then((response) => {
  705. this.ChapterTwoList = response
  706. })
  707. },
  708. getUnitList() {
  709. xiala({
  710. compId: sessionStorage.getItem('ws-pf_compId'),
  711. constCode: 'TYPEYAN',
  712. })
  713. .toPromise()
  714. .then((response) => {
  715. if (this.deptBudgetList.deliverType == 1) {
  716. this.deptBudgetList.deliverType1 = '我方自提'
  717. } else if (this.deptBudgetList.deliverType == 2) {
  718. this.deptBudgetList.deliverType1 = '对方送货'
  719. }
  720. this.unitList = response
  721. let currItem
  722. this.unitList.forEach((item, index, arr) => {
  723. item.flag = 'delete'
  724. if (this.vModel == item.constKey) {
  725. currItem = item
  726. }
  727. })
  728. //
  729. if (currItem) {
  730. this.selectContract(currItem.constValue)
  731. }
  732. })
  733. },
  734. // 编辑
  735. editClick(item, index) {
  736. const map = JSON.parse(JSON.stringify(item))
  737. if (Object.is(item.id, 1)) {
  738. return
  739. }
  740. if (Object.is(this.unitList[index].flag, 'delete')) {
  741. map.flag = 'check'
  742. this.$set(this.unitList, index, map)
  743. } else {
  744. map.flag = 'delete'
  745. this.$set(this.unitList, index, map)
  746. }
  747. },
  748. // 删除
  749. deleteClick(item, index) {
  750. if (Object.is(item.constKey, 1)) {
  751. return
  752. }
  753. if (!item.constValue) {
  754. this.unitList.splice(index, 1)
  755. return
  756. }
  757. delxiala({ id: this.unitList[index].id })
  758. .toPromise()
  759. .then((response) => {
  760. this.getUnitList()
  761. this.pleaseChoose = ''
  762. })
  763. },
  764. saveClick(item, index) {
  765. // console.log(item)
  766. if (Object.is(item.id, 1)) {
  767. return
  768. }
  769. if (Object.is(this.unitList[index].flag, 'delete')) {
  770. this.$set(this.unitList, index, { flag: 'check' })
  771. } else {
  772. this.$set(this.unitList, index, { flag: 'delete' })
  773. }
  774. if (!item.constValue) {
  775. this.unitList.splice(index, 1)
  776. return
  777. }
  778. if (item.flag == 'add') {
  779. item.constKey = Math.random() * 20
  780. this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
  781. this.trainingMethods.constKey = item.constKey
  782. this.trainingMethods.constCode = 'TYPEYAN'
  783. this.trainingMethods.constValue = item.constValue
  784. this.trainingMethods.id = item.id
  785. addxiala(this.trainingMethods)
  786. .toPromise()
  787. .then((response) => {
  788. this.getUnitList()
  789. })
  790. } else if (item.flag == 'check') {
  791. this.trainingMethods.compId = sessionStorage.getItem('ws-pf_compId')
  792. this.trainingMethods.constKey = item.constKey
  793. this.trainingMethods.constCode = 'TYPEYAN'
  794. this.trainingMethods.constValue = item.constValue
  795. this.trainingMethods.id = item.id
  796. editxiala(this.trainingMethods)
  797. .toPromise()
  798. .then((response) => {
  799. this.getUnitList()
  800. })
  801. }
  802. },
  803. addClick() {
  804. // let [flag, constValue, constKey] = ['check', '', '']
  805. // let obj = { flag, constValue, constKey }
  806. // let objAdd = { flag: 'add', constValue: '新增项目', constKey: '' }
  807. // let result = this.unitList.filter((item, val, arr) => {
  808. // return item.id != '1'
  809. // })
  810. // result.push(obj)
  811. // result.push(objAdd)
  812. // this.unitList = result
  813. this.unitList.push({
  814. flag: 'add',
  815. constValue: '',
  816. constKey: '',
  817. })
  818. },
  819. submit() {
  820. if (!this.deptBudgetList.contractNo) {
  821. this.$message({
  822. message: '请输入合同编号',
  823. type: 'warning',
  824. })
  825. return
  826. }
  827. console.log(this.deptBudgetList.contractNo.length)
  828. if (
  829. this.deptBudgetList.contractNo.length < 6 ||
  830. this.deptBudgetList.contractNo.length > 20
  831. ) {
  832. this.$message({
  833. message: '合同编号长度不符合要求,请输入6到20个字符之内!',
  834. type: 'warning',
  835. })
  836. return
  837. }
  838. if (!this.deptBudgetList.shippingType) {
  839. this.$message({
  840. message: '请输入运输方式!',
  841. type: 'warning',
  842. })
  843. return
  844. }
  845. if (
  846. this.deptBudgetList.shippingType.length < 1 ||
  847. this.deptBudgetList.shippingType.length > 20
  848. ) {
  849. this.$message({
  850. message: '运输方式长度不符合要求,请输入1到20个字符之内!',
  851. type: 'warning',
  852. })
  853. return
  854. }
  855. if (!this.deptBudgetList.buyer) {
  856. this.$message({
  857. message: '请输入买方名称!',
  858. type: 'warning',
  859. })
  860. return
  861. }
  862. if (this.deptBudgetList.buyer.length > 30) {
  863. this.$message({
  864. message: '买方名称长度不符合要求,请输入30个字符之内!',
  865. type: 'warning',
  866. })
  867. return
  868. }
  869. if (!this.deptBudgetList.seller) {
  870. this.$message({
  871. message: '请输入卖方名称!',
  872. type: 'warning',
  873. })
  874. return
  875. }
  876. if (this.deptBudgetList.seller.length > 30) {
  877. this.$message({
  878. message: '卖方名称长度不符合要求,请输入30个字符之内!',
  879. type: 'warning',
  880. })
  881. return
  882. }
  883. if (!this.deptBudgetList.buyerPhone) {
  884. this.$message({
  885. message: '请输入买方电话!',
  886. type: 'warning',
  887. })
  888. return
  889. }
  890. if (isNaN(this.deptBudgetList.buyerPhone)) {
  891. this.$message({
  892. message: '输入买方电话有误!',
  893. type: 'warning',
  894. })
  895. return
  896. }
  897. if (
  898. this.deptBudgetList.buyerPhone.length < 7 ||
  899. this.deptBudgetList.buyerPhone.length > 20
  900. ) {
  901. this.$message({
  902. message: '买方电话长度不符合要求,请输入7到20个字符之内!',
  903. type: 'warning',
  904. })
  905. return
  906. }
  907. if (!this.deptBudgetList.sellerPhone) {
  908. this.$message({
  909. message: '请输入卖方电话!',
  910. type: 'warning',
  911. })
  912. return
  913. }
  914. if (isNaN(this.deptBudgetList.sellerPhone)) {
  915. this.$message({
  916. message: '输入卖方电话有误!',
  917. type: 'warning',
  918. })
  919. return
  920. }
  921. if (
  922. this.deptBudgetList.buyerPhone.length < 7 ||
  923. this.deptBudgetList.buyerPhone.length > 20
  924. ) {
  925. this.$message({
  926. message: '卖方电话长度不符合要求,请输入7到20个字符之内!',
  927. type: 'warning',
  928. })
  929. return
  930. }
  931. if (!this.deptBudgetList.settlementMethod) {
  932. this.$message({
  933. message: '请输入结算方式!',
  934. type: 'warning',
  935. })
  936. return
  937. }
  938. if (!this.deptBudgetList.sourceGoods) {
  939. this.$message({
  940. message: '请输入货源详细地址!',
  941. type: 'warning',
  942. })
  943. return
  944. }
  945. if (!this.deptBudgetList.placeDelivery) {
  946. this.$message({
  947. message: '请输入交货详细地址!',
  948. type: 'warning',
  949. })
  950. return
  951. }
  952. if (this.selectedOptions.length == 0) {
  953. this.$message({
  954. message: '请选择货源所在地区!',
  955. type: 'warning',
  956. })
  957. return
  958. }
  959. if (this.selectedOptions1.length == 0) {
  960. this.$message({
  961. message: '请选择交货所在地区!',
  962. type: 'warning',
  963. })
  964. return
  965. }
  966. if (!this.deptBudgetList.weight) {
  967. this.$message({
  968. message: '请输入重量!',
  969. type: 'warning',
  970. })
  971. return
  972. }
  973. if (
  974. isNaN(this.deptBudgetList.weight) ||
  975. (String(this.deptBudgetList.weight).indexOf('.') != -1 &&
  976. String(this.deptBudgetList.weight).length -
  977. (String(this.deptBudgetList.weight).indexOf('.') + 1) >
  978. 3) ||
  979. this.deptBudgetList.weight < 0 ||
  980. this.deptBudgetList.weight > 200000
  981. ) {
  982. this.$message({
  983. message: '输入重量有误!',
  984. type: 'warning',
  985. })
  986. return
  987. }
  988. if (
  989. !this.deptBudgetList.overShort &&
  990. isNaN(this.deptBudgetList.overShort)
  991. ) {
  992. this.$message({
  993. message: '溢短装输入有误!',
  994. type: 'warning',
  995. })
  996. return
  997. }
  998. if (
  999. !this.deptBudgetList.unitContractPrice &&
  1000. isNaN(this.deptBudgetList.unitContractPrice)
  1001. ) {
  1002. this.$message({
  1003. message: '合同单价输入有误!',
  1004. type: 'warning',
  1005. })
  1006. return
  1007. }
  1008. if (
  1009. !this.deptBudgetList.totalContractPrice &&
  1010. isNaN(this.deptBudgetList.totalContractPrice)
  1011. ) {
  1012. this.$message({
  1013. message: '合同总价输入有误!',
  1014. type: 'warning',
  1015. })
  1016. return
  1017. }
  1018. if (!this.deptBudgetList.deliveryDateStart) {
  1019. this.$message({
  1020. message: '请选择交货日期(起)',
  1021. type: 'warning',
  1022. })
  1023. return
  1024. }
  1025. if (!this.deptBudgetList.deliveryDateEnd) {
  1026. this.$message({
  1027. message: '请选择交货日期(止)',
  1028. type: 'warning',
  1029. })
  1030. return
  1031. }
  1032. //时间
  1033. if (
  1034. new Date(this.deptBudgetList.deliveryDateStart).getTime() >
  1035. new Date(this.deptBudgetList.deliveryDateEnd).getTime()
  1036. ) {
  1037. this.$message({
  1038. message: '交货日期(止)选择错误',
  1039. type: 'warning',
  1040. })
  1041. return
  1042. }
  1043. if (!this.deptBudgetList.signingDate) {
  1044. this.$message({
  1045. message: '请选择签订日期',
  1046. type: 'warning',
  1047. })
  1048. return
  1049. }
  1050. if (!this.deptBudgetList.contractGoodsInfo.goodsName) {
  1051. this.$message({
  1052. message: '请选择货名',
  1053. type: 'warning',
  1054. })
  1055. return
  1056. }
  1057. if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
  1058. this.$message({
  1059. message: '请选择水分',
  1060. type: 'warning',
  1061. })
  1062. return
  1063. }
  1064. if (!this.deptBudgetList.contractGoodsInfo.grade) {
  1065. this.$message({
  1066. message: '请选择品级',
  1067. type: 'warning',
  1068. })
  1069. return
  1070. }
  1071. if (
  1072. !this.deptBudgetList.contractGoodsInfo.impurity ||
  1073. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
  1074. -1 &&
  1075. String(this.deptBudgetList.contractGoodsInfo.impurity).length -
  1076. (String(this.deptBudgetList.contractGoodsInfo.impurity).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.bulkDensity ||
  1090. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  1091. '.'
  1092. ) != -1 &&
  1093. String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
  1094. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  1095. '.'
  1096. ) +
  1097. 1) >
  1098. 2)
  1099. ) {
  1100. this.$message({
  1101. message: '容重输入错误',
  1102. type: 'warning',
  1103. })
  1104. return
  1105. }
  1106. if (
  1107. !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
  1108. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  1109. '.'
  1110. ) != -1 &&
  1111. String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
  1112. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  1113. '.'
  1114. ) +
  1115. 1) >
  1116. 2)
  1117. ) {
  1118. this.$message({
  1119. message: '霉变粒输入错误',
  1120. type: 'warning',
  1121. })
  1122. return
  1123. }
  1124. if (
  1125. !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
  1126. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
  1127. -1 &&
  1128. String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
  1129. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
  1130. '.'
  1131. ) +
  1132. 1) >
  1133. 2)
  1134. ) {
  1135. this.$message({
  1136. message: '热损伤输入错误',
  1137. type: 'warning',
  1138. })
  1139. return
  1140. }
  1141. if (
  1142. !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
  1143. (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
  1144. '.'
  1145. ) != -1 &&
  1146. String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
  1147. (String(
  1148. this.deptBudgetList.contractGoodsInfo.imperfectGrain
  1149. ).indexOf('.') +
  1150. 1) >
  1151. 2)
  1152. ) {
  1153. this.$message({
  1154. message: '不完整粒输入错误',
  1155. type: 'warning',
  1156. })
  1157. return
  1158. }
  1159. if (
  1160. (!this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) |
  1161. (this.deptBudgetList.contractProcessInfo.goodsNameKey < 0) ||
  1162. (String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
  1163. '.'
  1164. ) != -1 &&
  1165. String(this.deptBudgetList.contractProcessInfo.goodsNameKey).length -
  1166. (String(
  1167. this.deptBudgetList.contractProcessInfo.goodsNameKey
  1168. ).indexOf('.') +
  1169. 1) >
  1170. 2)
  1171. ) {
  1172. this.$message({
  1173. message: '合同收入金额输入错误',
  1174. type: 'warning',
  1175. })
  1176. return
  1177. }
  1178. if (
  1179. (this.deptBudgetList.contractProcessInfo.waterContent > 10000000) |
  1180. (this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
  1181. (String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
  1182. '.'
  1183. ) != -1 &&
  1184. String(this.deptBudgetList.contractProcessInfo.waterContent).length -
  1185. (String(
  1186. this.deptBudgetList.contractProcessInfo.waterContent
  1187. ).indexOf('.') +
  1188. 1) >
  1189. 2)
  1190. ) {
  1191. this.$message({
  1192. message: '费用金额输入错误',
  1193. type: 'warning',
  1194. })
  1195. return
  1196. }
  1197. if (
  1198. (this.deptBudgetList.contractProcessInfo.goodsName > 1000000000) |
  1199. (this.deptBudgetList.contractProcessInfo.goodsName < 0) ||
  1200. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1201. '.'
  1202. ) != -1 &&
  1203. String(this.deptBudgetList.contractProcessInfo.goodsName).length -
  1204. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1205. '.'
  1206. ) +
  1207. 1) >
  1208. 2)
  1209. ) {
  1210. this.$message({
  1211. message: '已开发票金额输入错误',
  1212. type: 'warning',
  1213. })
  1214. return
  1215. }
  1216. if (
  1217. (this.deptBudgetList.contractProcessInfo.impurity > 1000000000) |
  1218. (this.deptBudgetList.contractProcessInfo.impurity < 0) ||
  1219. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1220. '.'
  1221. ) != -1 &&
  1222. String(this.deptBudgetList.contractProcessInfo.impurity).length -
  1223. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1224. '.'
  1225. ) +
  1226. 1) >
  1227. 2)
  1228. ) {
  1229. this.$message({
  1230. message: '未开发票金额输入错误',
  1231. type: 'warning',
  1232. })
  1233. return
  1234. }
  1235. if (
  1236. (this.deptBudgetList.contractProcessInfo.imperfectGrain > 200000) |
  1237. (this.deptBudgetList.contractProcessInfo.imperfectGrain < 0) ||
  1238. (String(this.deptBudgetList.contractProcessInfo.imperfectGrain).indexOf(
  1239. '.'
  1240. ) != -1 &&
  1241. String(this.deptBudgetList.contractProcessInfo.imperfectGrain)
  1242. .length -
  1243. (String(
  1244. this.deptBudgetList.contractProcessInfo.imperfectGrain
  1245. ).indexOf('.') +
  1246. 1) >
  1247. 2)
  1248. ) {
  1249. this.$message({
  1250. message: '已完成发运量输入错误',
  1251. type: 'warning',
  1252. })
  1253. return
  1254. }
  1255. if (
  1256. (!this.deptBudgetList.contractProcessInfo.mildewGrain > 1000000000) |
  1257. (this.deptBudgetList.contractProcessInfo.mildewGrain < 0) ||
  1258. (String(this.deptBudgetList.contractProcessInfo.mildewGrain).indexOf(
  1259. '.'
  1260. ) != -1 &&
  1261. String(this.deptBudgetList.contractProcessInfo.mildewGrain).length -
  1262. (String(
  1263. this.deptBudgetList.contractProcessInfo.mildewGrain
  1264. ).indexOf('.') +
  1265. 1) >
  1266. 2)
  1267. ) {
  1268. this.$message({
  1269. message: '未回款金额输入错误',
  1270. type: 'warning',
  1271. })
  1272. return
  1273. }
  1274. this.$refs.deptBudgetList.validate((valid) => {
  1275. if (valid) {
  1276. this.deptBudgetList.sourceProvince =
  1277. CodeToText[this.selectedOptions[0]]
  1278. this.deptBudgetList.sourceCity = CodeToText[this.selectedOptions[1]]
  1279. this.deptBudgetList.deliveryProvince =
  1280. CodeToText[this.selectedOptions1[0]]
  1281. this.deptBudgetList.deliveryCity =
  1282. CodeToText[this.selectedOptions1[1]]
  1283. this.deptBudgetList.compId = this.compId
  1284. this.deptBudgetList.contractType = 1
  1285. if (
  1286. this.deptBudgetList.deliveryProvince == '澳门特别行政区' ||
  1287. this.deptBudgetList.deliveryProvince == '澳门特别行政区'
  1288. ) {
  1289. this.deptBudgetList.deliveryArea = '特别行政区'
  1290. } else {
  1291. this.deptBudgetList.deliveryArea =
  1292. CodeToText[this.selectedOptions1[2]]
  1293. }
  1294. if (
  1295. this.deptBudgetList.sourceProvince == '澳门特别行政区' ||
  1296. this.deptBudgetList.sourceProvince == '澳门特别行政区'
  1297. ) {
  1298. this.deptBudgetList.sourceArea = '特别行政区'
  1299. } else {
  1300. this.deptBudgetList.sourceArea = CodeToText[this.selectedOptions[2]]
  1301. }
  1302. editInfo(this.deptBudgetList)
  1303. .toPromise()
  1304. .then((response) => {
  1305. this.$message.success('编辑成功')
  1306. this.deptBudgetList = {}
  1307. this.$router.push({ path: 'salesContract' })
  1308. })
  1309. } else {
  1310. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1311. return false
  1312. }
  1313. })
  1314. },
  1315. editInfo() {
  1316. editInfo({})
  1317. },
  1318. // getList(){}
  1319. },
  1320. }
  1321. </script>
  1322. <style lang="scss" scoped>
  1323. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1324. padding: 0 25px;
  1325. }
  1326. /deep/.ws-info-table .el-form-item {
  1327. border-right: 1px solid #cdd2dc;
  1328. border-bottom: 1px solid #cdd2dc;
  1329. }
  1330. .title {
  1331. position: relative;
  1332. }
  1333. .title::before {
  1334. content: '';
  1335. display: inline-block;
  1336. width: 5px;
  1337. height: 30px;
  1338. background: #5473e8;
  1339. position: absolute;
  1340. left: 0;
  1341. }
  1342. .el-button--primary {
  1343. background-color: #5878e8;
  1344. border-color: #5878e8;
  1345. }
  1346. .el-col {
  1347. background: #f6f7fc;
  1348. }
  1349. .readonly {
  1350. position: relative;
  1351. }
  1352. .readonly:after {
  1353. content: '*';
  1354. color: #ff2727;
  1355. position: absolute;
  1356. right: 8px;
  1357. z-index: 10;
  1358. top: 21%;
  1359. font-size: 20px;
  1360. }
  1361. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1362. padding: 0 25px;
  1363. border-left: 1px solid #cdd2dc;
  1364. background: #fafbfc;
  1365. }
  1366. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1367. width: 140px;
  1368. text-align: center;
  1369. background: #f0f2f6;
  1370. // border: 1px solid #cdd2dc;
  1371. }
  1372. .button-container {
  1373. display: flex;
  1374. flex-wrap: nowrap;
  1375. justify-content: space-between;
  1376. align-items: center;
  1377. background-color: #fff;
  1378. width: 100%;
  1379. height: 50px;
  1380. padding: 0 10px;
  1381. & > div {
  1382. margin-left: 10px;
  1383. display: flex;
  1384. flex-wrap: nowrap;
  1385. flex-direction: row;
  1386. & > span {
  1387. line-height: 50px;
  1388. }
  1389. }
  1390. /deep/.auditFlow-box {
  1391. position: unset;
  1392. margin-left: 10px;
  1393. &/deep/.auditFlow-icon {
  1394. width: auto;
  1395. padding-right: 30px;
  1396. }
  1397. &/deep/.auditFlow-main {
  1398. position: absolute;
  1399. }
  1400. }
  1401. }
  1402. .box-app {
  1403. display: inline-block;
  1404. margin-left: 30px;
  1405. line-height: 50px;
  1406. }
  1407. /deep/.el-dialog {
  1408. .el-form-item {
  1409. margin-bottom: 0 !important;
  1410. .el-input--medium {
  1411. textarea {
  1412. min-height: 100px !important;
  1413. }
  1414. }
  1415. }
  1416. }
  1417. .collapse-bottom {
  1418. margin-bottom: 20px;
  1419. }
  1420. .input-main .textarea .el-textarea__inner {
  1421. width: 100%;
  1422. z-index: 1;
  1423. }
  1424. .bg-left {
  1425. padding-left: 30px;
  1426. }
  1427. .bg-right {
  1428. padding: 10px;
  1429. text-align: right;
  1430. }
  1431. .bg-bottom {
  1432. margin: 6px 0px;
  1433. }
  1434. .wenzi {
  1435. width: 70%;
  1436. margin: 0 auto;
  1437. }
  1438. .wenzi h3 {
  1439. display: inline-block;
  1440. left: 30px;
  1441. }
  1442. .wenzi p {
  1443. display: inline-block;
  1444. }
  1445. .center {
  1446. width: 70%;
  1447. margin: 0 auto;
  1448. }
  1449. .el-form-item {
  1450. width: 50%;
  1451. }
  1452. .el-form-item__label {
  1453. text-align: center;
  1454. }
  1455. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  1456. /* height: 82px;*/
  1457. /*}*/
  1458. // 控制select为只读的时候显示样式
  1459. .hide-sel {
  1460. .el-input__inner {
  1461. border: 0px;
  1462. }
  1463. .el-icon-arrow-up {
  1464. display: none;
  1465. }
  1466. .el-textarea__inner {
  1467. background-color: #fff !important;
  1468. border: 0;
  1469. }
  1470. .el-date-editor {
  1471. i {
  1472. display: none;
  1473. }
  1474. }
  1475. .is-disabled {
  1476. .el-input__inner:hover {
  1477. background-color: #fff !important;
  1478. border: 0;
  1479. }
  1480. color: #606266;
  1481. .el-input__inner {
  1482. background-color: #fff !important;
  1483. border: 0;
  1484. color: #606266;
  1485. }
  1486. .el-textarea__inner {
  1487. background-color: #fff !important;
  1488. border: 0;
  1489. color: #606266;
  1490. }
  1491. }
  1492. }
  1493. // 控制select为只读的时候显示样式
  1494. /deep/.ws-class-table-col {
  1495. height: auto;
  1496. padding: 0px 2px;
  1497. /deep/.el-input__inner {
  1498. padding: 0px 2px;
  1499. }
  1500. }
  1501. /deep/.is-disabled {
  1502. .el-input__prefix,
  1503. .el-input__suffix {
  1504. display: none;
  1505. }
  1506. .el-input__inner {
  1507. background-color: #fff;
  1508. border-color: #fff !important;
  1509. color: #000 !important;
  1510. font-size: 14px;
  1511. cursor: text;
  1512. padding: 0 !important;
  1513. }
  1514. }
  1515. .winseaview-view {
  1516. padding: 0 0 20px;
  1517. }
  1518. .container {
  1519. overflow: scroll;
  1520. height: 93vh;
  1521. }
  1522. //*号
  1523. .unchangeable {
  1524. position: absolute;
  1525. width: 9px;
  1526. height: 22px;
  1527. font-size: 16px;
  1528. font-family: PingFangSC-Medium, PingFang SC;
  1529. font-weight: 500;
  1530. color: #ff2727;
  1531. line-height: 22px;
  1532. display: inline-block;
  1533. right: 14px;
  1534. }
  1535. /deep/.el-input,
  1536. /deep/.el-date-editor {
  1537. font-size: 13px;
  1538. }
  1539. /deep/.el-textarea {
  1540. width: 900px;
  1541. margin: 0px;
  1542. }
  1543. /deep/el-date-editor--date {
  1544. width: 200px;
  1545. }
  1546. .unchanged {
  1547. position: absolute;
  1548. left: 37px;
  1549. width: 102px;
  1550. height: 14px;
  1551. font-size: 14px;
  1552. font-weight: 400;
  1553. color: #afb5cb;
  1554. line-height: 14px;
  1555. }
  1556. /deep/.el-input--small .el-input__inner {
  1557. height: 32px;
  1558. line-height: 32px;
  1559. }
  1560. </style>