salesContractEdit.vue 45 KB

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