salesContractEdit.vue 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626
  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. <div class="unchanged">
  332. {{ deptBudgetList.contractGoodsInfo.goodsName }}
  333. </div>
  334. <span class="unchangeable">*</span>
  335. </ws-form-item>
  336. <!--水分(%)<=-->
  337. <ws-form-item label="水分(%)" span="1" prop="contractNo">
  338. <ws-input
  339. v-model="deptBudgetList.contractGoodsInfo.waterContent"
  340. placeholder="请输入水分(%)"
  341. maxlength="100"
  342. size="small"
  343. />
  344. </ws-form-item>
  345. <!--品级-->
  346. <ws-form-item label="品级" span="1" prop="grade">
  347. <div class="unchanged">
  348. {{ deptBudgetList.contractGoodsInfo.grade }}
  349. </div>
  350. <span class="unchangeable">*</span>
  351. </ws-form-item>
  352. <!--杂质(%)<=-->
  353. <ws-form-item label="杂质(%)" span="1" prop="contractNo">
  354. <ws-input
  355. v-model="deptBudgetList.contractGoodsInfo.impurity"
  356. placeholder="请输入杂质(%)"
  357. maxlength="100"
  358. size="small"
  359. />
  360. </ws-form-item>
  361. <!--容量(克/升)>=-->
  362. <ws-form-item label="容量(克/升)" span="1" prop="contractNo">
  363. <ws-input
  364. v-model="deptBudgetList.contractGoodsInfo.bulkDensity"
  365. placeholder="请输入容量(克/升)"
  366. maxlength="100"
  367. size="small"
  368. />
  369. </ws-form-item>
  370. <!--霉变粒(%)<=-->
  371. <ws-form-item label="霉变粒(%)" span="1" prop="contractNo">
  372. <ws-input
  373. v-model="deptBudgetList.contractGoodsInfo.mildewGrain"
  374. placeholder="请输入霉变粒(%)"
  375. maxlength="100"
  376. size="small"
  377. />
  378. </ws-form-item>
  379. <!--热损伤(%)<=-->
  380. <ws-form-item label="热损伤(%)" span="1" prop="contractNo">
  381. <ws-input
  382. v-model="deptBudgetList.contractGoodsInfo.jiaorenli"
  383. placeholder="请输入热损伤(%)"
  384. maxlength="100"
  385. size="small"
  386. />
  387. </ws-form-item>
  388. <!--不完整粒(%)<=-->
  389. <ws-form-item label="不完整粒(%)" span="1" prop="contractNo">
  390. <ws-input
  391. v-model="deptBudgetList.contractGoodsInfo.imperfectGrain"
  392. placeholder="请输入不完整粒(%)"
  393. maxlength="100"
  394. size="small"
  395. />
  396. </ws-form-item>
  397. </ws-info-table>
  398. </ws-form>
  399. </div>
  400. <div class="wenzi">
  401. <h3>流程信息</h3>
  402. </div>
  403. <div class="center">
  404. <ws-form
  405. ref="deptBudgetList"
  406. :rules="ruleDeptBudget"
  407. :model="deptBudgetList"
  408. >
  409. <!--流程信息-->
  410. <ws-info-table>
  411. <!--合同收入(元)-->
  412. <ws-form-item label="合同收入(元)" span="1" prop="contractNo">
  413. <ws-input
  414. v-model="deptBudgetList.contractProcessInfo.goodsNameKey"
  415. placeholder="请输入合同收入(元)"
  416. maxlength="100"
  417. size="small"
  418. />
  419. </ws-form-item>
  420. <!--已开发票(元)-->
  421. <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
  422. <ws-input
  423. v-model="deptBudgetList.contractProcessInfo.goodsName"
  424. placeholder="请输入已开发票(元))"
  425. maxlength="100"
  426. size="small"
  427. />
  428. </ws-form-item>
  429. <!--费用支出(元)-->
  430. <ws-form-item label="费用支出(元)" span="1" prop="contractNo">
  431. <ws-input
  432. v-model="deptBudgetList.contractProcessInfo.waterContent"
  433. placeholder="请输入费用支出(元)"
  434. maxlength="100"
  435. size="small"
  436. />
  437. </ws-form-item>
  438. <!--未开发票(元)-->
  439. <ws-form-item label="未开发票(元)" span="1" prop="contractNo">
  440. <ws-input
  441. v-model="deptBudgetList.contractProcessInfo.impurity"
  442. placeholder="请输入未开发票(元)"
  443. maxlength="100"
  444. size="small"
  445. />
  446. </ws-form-item>
  447. <!--未回款(元)-->
  448. <ws-form-item label="未回款(元)" span="1" prop="contractNo">
  449. <ws-input
  450. v-model="deptBudgetList.contractProcessInfo.mildewGrain"
  451. placeholder="请输入未回款(元)"
  452. maxlength="100"
  453. size="small"
  454. />
  455. </ws-form-item>
  456. <!--已完成发货量(吨)-->
  457. <!-- <ws-form-item label="已完成发货量(吨)" span="1" prop="contractNo">
  458. <ws-input
  459. v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
  460. placeholder="请输入已完成发货量(吨)"
  461. maxlength="100"
  462. size="small"
  463. />
  464. </ws-form-item> -->
  465. <!--双章原件回收情况-->
  466. <ws-form-item label="双章原件回收情况" span="1" prop="grade">
  467. <ws-select
  468. v-model="deptBudgetList.contractProcessInfo.grade"
  469. placeholder=""
  470. class="typeselect"
  471. @change="selectpackingMethod"
  472. >
  473. <ws-option
  474. v-for="item in ChapterTwoList"
  475. :key="item.constKey"
  476. :label="item.constValue"
  477. :value="item.constValue"
  478. />
  479. </ws-select>
  480. </ws-form-item>
  481. </ws-info-table>
  482. </ws-form>
  483. </div>
  484. <div class="wenzi">
  485. <h3>备注信息</h3>
  486. </div>
  487. <div class="center">
  488. <ws-form
  489. ref="deptBudgetList"
  490. :rules="ruleDeptBudget"
  491. :model="deptBudgetList"
  492. >
  493. <!--备注信息-->
  494. <ws-input
  495. v-model="deptBudgetList.remarks"
  496. type="textarea"
  497. row="3"
  498. placeholder="请输入备注信息,不超过200字"
  499. maxlength="200"
  500. />
  501. <el-upload
  502. class="upload-demo"
  503. action="https://www.zthymaoyi.com/upload/admin"
  504. :on-success="
  505. (res, file) => {
  506. uploadSuccessHandle(res)
  507. }
  508. "
  509. multiple
  510. :limit="3"
  511. :file-list="fileList"
  512. >
  513. <el-button size="small" type="primary">上传附件</el-button>
  514. <div slot="tip" class="el-upload__tip">
  515. 推荐格式.jpg, .jpeg, .png, .gif, .pdf, .doc, .zip, .rar,单个文件大小不超过10M
  516. </div>
  517. </el-upload>
  518. </ws-form>
  519. </div>
  520. <div style="text-align: right; padding: 10px" class="center">
  521. <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
  522. >提交</el-button
  523. >
  524. </div>
  525. </div>
  526. </template>
  527. <script>
  528. import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
  529. import WsUpload from '@/components/WsUpload'
  530. import {
  531. examineList,
  532. editInfo,
  533. packList,
  534. xiala,
  535. addxiala,
  536. editxiala,
  537. delxiala,
  538. } from '@/model/contarct/index'
  539. export default {
  540. name: 'viewSpareMoney',
  541. components: {
  542. WsUpload,
  543. },
  544. watch: {
  545. vesselId(val) {
  546. this.loaddata()
  547. },
  548. isShow(val) {
  549. this.showType = val
  550. },
  551. },
  552. data() {
  553. return {
  554. //弹出框
  555. dialogViewSpareMoney: false,
  556. dialogApproveFormVisible: false,
  557. // 船舶类型
  558. monetaryKey: null,
  559. // 表格显示数据
  560. tableDate: [],
  561. // 是否显示
  562. showType: true,
  563. // 年
  564. year: '',
  565. // 提交类型
  566. submitType: true,
  567. options_: regionData,
  568. selectedOptions: [],
  569. selectedOptions1: [],
  570. tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
  571. pickerBeginDateBefore: {
  572. disabledDate: (time) => {
  573. return time.getTime() > Date.now()
  574. },
  575. },
  576. // selectpackingMethod:{},
  577. selectunitList: {},
  578. //change:{},
  579. onChange: {},
  580. uploadSuccess: {},
  581. selectgrade: {},
  582. goodnameList: {},
  583. selectpackingMethod: {},
  584. unitList: {},
  585. packtypeList: [],
  586. compId: sessionStorage.getItem('ws-pf_compId'),
  587. appendixIdsAdd: '',
  588. size: 10,
  589. deptBudgetList: {
  590. contractGoodsInfo: {
  591. goodsName: '',
  592. },
  593. contractProcessInfo: {},
  594. },
  595. // selectpackingMethod:{},
  596. // change:{},
  597. ruleDeptBudget: {},
  598. trainingMethods: {},
  599. isEdited: false,
  600. registered: {},
  601. selectCrtDuty: {},
  602. dutyList: {},
  603. sexList: {},
  604. selectDuty: {},
  605. gradeList: {},
  606. ChapterTwoList: {},
  607. selectIntendedShip: {},
  608. interviewTypeList: {},
  609. addressUrl:'',
  610. addressUrls:[],
  611. fileList:[]
  612. }
  613. },
  614. activated() {
  615. //cg.viewBudget
  616. //cg.viewSpareMoney
  617. // this.getVesselData();
  618. this.loaddata()
  619. this.editInfo()
  620. this.showType = this.isShow
  621. // console.log(this.$route.params)
  622. this.showType = this.isShow
  623. },
  624. methods: {
  625. close(index) {
  626. this.addressUrls.splice(index, 1)
  627. },
  628. // 关闭 dialog时 处理文件url 初始化upload组件
  629. handleClose() {
  630. this.dialogViewSpareMoney = false
  631. },
  632. returnsales() {
  633. this.deptBudgetList = {}
  634. this.$router.push({ path: 'salesContract' })
  635. },
  636. handleChange(value) {
  637. this.selectedOptions = value
  638. },
  639. handleChange1(value) {
  640. this.selectedOptions1 = value
  641. },
  642. // 上传附件
  643. uploadSuccessHandle(e) {
  644. this.addressUrl += e.url+""
  645. this.addressUrls.push(this.addressUrl.split(","))
  646. },
  647. loaddata() {
  648. // 数据
  649. examineList({ id: this.$route.query.id })
  650. .toPromise()
  651. .then((response) => {
  652. var tmp = []
  653. tmp[0] = TextToCode[response.sourceProvince].code
  654. tmp[1] = TextToCode[response.sourceProvince][response.sourceCity].code
  655. if (tmp[0] == 810000 || tmp[0] == 820000) {
  656. tmp[2] = null
  657. } else {
  658. tmp[2] =
  659. TextToCode[response.sourceProvince][response.sourceCity][
  660. response.sourceArea
  661. ].code
  662. }
  663. this.selectedOptions = tmp
  664. var tmp1 = []
  665. tmp1[0] = TextToCode[response.deliveryProvince].code
  666. tmp1[1] =
  667. TextToCode[response.deliveryProvince][response.deliveryCity].code
  668. if (tmp1[0] == 810000 || tmp1[0] == 820000) {
  669. tmp1[2] = null
  670. } else {
  671. tmp1[2] =
  672. TextToCode[response.deliveryProvince][response.deliveryCity][
  673. response.deliveryArea
  674. ].code
  675. }
  676. this.selectedOptions1 = tmp1
  677. this.deptBudgetList = response
  678. if (this.deptBudgetList.deliverType == 1) {
  679. this.deptBudgetList.deliverType1 = '我方自提'
  680. } else if (this.deptBudgetList.deliverType == 2) {
  681. this.deptBudgetList.deliverType1 = '对方送货'
  682. }
  683. if(this.deptBudgetList.addressUrl != null){
  684. this.addressUrls = this.deptBudgetList.addressUrl.split(",")
  685. }
  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. this.unitList = response
  722. let currItem
  723. this.unitList.forEach((item, index, arr) => {
  724. item.flag = 'delete'
  725. if (this.vModel == item.constKey) {
  726. currItem = item
  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. this.deptBudgetList.addressUrl = this.addressUrls.toString()
  1303. editInfo(this.deptBudgetList)
  1304. .toPromise()
  1305. .then((response) => {
  1306. this.$message.success('编辑成功')
  1307. this.deptBudgetList = {}
  1308. this.$router.push({ path: 'salesContract' })
  1309. })
  1310. } else {
  1311. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1312. return false
  1313. }
  1314. })
  1315. },
  1316. editInfo() {
  1317. editInfo({})
  1318. },
  1319. // getList(){}
  1320. },
  1321. }
  1322. </script>
  1323. <style lang="scss" scoped>
  1324. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1325. padding: 0 25px;
  1326. }
  1327. /deep/.ws-info-table .el-form-item {
  1328. border-right: 1px solid #cdd2dc;
  1329. border-bottom: 1px solid #cdd2dc;
  1330. }
  1331. .title {
  1332. position: relative;
  1333. }
  1334. .title::before {
  1335. content: '';
  1336. display: inline-block;
  1337. width: 5px;
  1338. height: 30px;
  1339. background: #5473e8;
  1340. position: absolute;
  1341. left: 0;
  1342. }
  1343. .el-button--primary {
  1344. background-color: #5878e8;
  1345. border-color: #5878e8;
  1346. }
  1347. .el-col {
  1348. background: #f6f7fc;
  1349. }
  1350. .readonly {
  1351. position: relative;
  1352. }
  1353. .readonly:after {
  1354. content: '*';
  1355. color: #ff2727;
  1356. position: absolute;
  1357. right: 8px;
  1358. z-index: 10;
  1359. top: 21%;
  1360. font-size: 20px;
  1361. }
  1362. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1363. padding: 0 25px;
  1364. border-left: 1px solid #cdd2dc;
  1365. background: #fafbfc;
  1366. }
  1367. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1368. width: 140px;
  1369. text-align: center;
  1370. background: #f0f2f6;
  1371. // border: 1px solid #cdd2dc;
  1372. }
  1373. .button-container {
  1374. display: flex;
  1375. flex-wrap: nowrap;
  1376. justify-content: space-between;
  1377. align-items: center;
  1378. background-color: #fff;
  1379. width: 100%;
  1380. height: 50px;
  1381. padding: 0 10px;
  1382. & > div {
  1383. margin-left: 10px;
  1384. display: flex;
  1385. flex-wrap: nowrap;
  1386. flex-direction: row;
  1387. & > span {
  1388. line-height: 50px;
  1389. }
  1390. }
  1391. /deep/.auditFlow-box {
  1392. position: unset;
  1393. margin-left: 10px;
  1394. &/deep/.auditFlow-icon {
  1395. width: auto;
  1396. padding-right: 30px;
  1397. }
  1398. &/deep/.auditFlow-main {
  1399. position: absolute;
  1400. }
  1401. }
  1402. }
  1403. .box-app {
  1404. display: inline-block;
  1405. margin-left: 30px;
  1406. line-height: 50px;
  1407. }
  1408. /deep/.el-dialog {
  1409. .el-form-item {
  1410. margin-bottom: 0 !important;
  1411. .el-input--medium {
  1412. textarea {
  1413. min-height: 100px !important;
  1414. }
  1415. }
  1416. }
  1417. }
  1418. .collapse-bottom {
  1419. margin-bottom: 20px;
  1420. }
  1421. .input-main .textarea .el-textarea__inner {
  1422. width: 100%;
  1423. z-index: 1;
  1424. }
  1425. .bg-left {
  1426. padding-left: 30px;
  1427. }
  1428. .bg-right {
  1429. padding: 10px;
  1430. text-align: right;
  1431. }
  1432. .bg-bottom {
  1433. margin: 6px 0px;
  1434. }
  1435. .wenzi {
  1436. width: 70%;
  1437. margin: 0 auto;
  1438. }
  1439. .wenzi h3 {
  1440. display: inline-block;
  1441. left: 30px;
  1442. }
  1443. .wenzi p {
  1444. display: inline-block;
  1445. }
  1446. .center {
  1447. width: 70%;
  1448. margin: 0 auto;
  1449. }
  1450. .el-form-item {
  1451. width: 50%;
  1452. }
  1453. .el-form-item__label {
  1454. text-align: center;
  1455. }
  1456. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  1457. /* height: 82px;*/
  1458. /*}*/
  1459. // 控制select为只读的时候显示样式
  1460. .hide-sel {
  1461. .el-input__inner {
  1462. border: 0px;
  1463. }
  1464. .el-icon-arrow-up {
  1465. display: none;
  1466. }
  1467. .el-textarea__inner {
  1468. background-color: #fff !important;
  1469. border: 0;
  1470. }
  1471. .el-date-editor {
  1472. i {
  1473. display: none;
  1474. }
  1475. }
  1476. .is-disabled {
  1477. .el-input__inner:hover {
  1478. background-color: #fff !important;
  1479. border: 0;
  1480. }
  1481. color: #606266;
  1482. .el-input__inner {
  1483. background-color: #fff !important;
  1484. border: 0;
  1485. color: #606266;
  1486. }
  1487. .el-textarea__inner {
  1488. background-color: #fff !important;
  1489. border: 0;
  1490. color: #606266;
  1491. }
  1492. }
  1493. }
  1494. // 控制select为只读的时候显示样式
  1495. /deep/.ws-class-table-col {
  1496. height: auto;
  1497. padding: 0px 2px;
  1498. /deep/.el-input__inner {
  1499. padding: 0px 2px;
  1500. }
  1501. }
  1502. /deep/.is-disabled {
  1503. .el-input__prefix,
  1504. .el-input__suffix {
  1505. display: none;
  1506. }
  1507. .el-input__inner {
  1508. background-color: #fff;
  1509. border-color: #fff !important;
  1510. color: #000 !important;
  1511. font-size: 14px;
  1512. cursor: text;
  1513. padding: 0 !important;
  1514. }
  1515. }
  1516. .winseaview-view {
  1517. padding: 0 0 20px;
  1518. }
  1519. .container {
  1520. overflow: scroll;
  1521. height: 93vh;
  1522. }
  1523. //*号
  1524. .unchangeable {
  1525. position: absolute;
  1526. width: 9px;
  1527. height: 22px;
  1528. font-size: 16px;
  1529. font-family: PingFangSC-Medium, PingFang SC;
  1530. font-weight: 500;
  1531. color: #ff2727;
  1532. line-height: 22px;
  1533. display: inline-block;
  1534. right: 14px;
  1535. }
  1536. /deep/.el-input,
  1537. /deep/.el-date-editor {
  1538. font-size: 13px;
  1539. }
  1540. /deep/.el-textarea {
  1541. width: 101%;
  1542. margin: 0px;
  1543. }
  1544. /deep/el-date-editor--date {
  1545. width: 200px;
  1546. }
  1547. .unchanged {
  1548. position: absolute;
  1549. left: 37px;
  1550. width: 102px;
  1551. height: 14px;
  1552. font-size: 14px;
  1553. font-weight: 400;
  1554. color: #afb5cb;
  1555. line-height: 14px;
  1556. }
  1557. /deep/.el-input--small .el-input__inner {
  1558. height: 32px;
  1559. line-height: 32px;
  1560. }
  1561. /deep/.el-form-item.is-success .el-input__inner,
  1562. /deep/.el-cascader .el-input .el-input__inner,
  1563. /deep/.el-textarea__inner {
  1564. color: #8890b1;
  1565. }
  1566. .addressUrls {
  1567. width: 100%;
  1568. display: flex;
  1569. margin-top: 10px;
  1570. }
  1571. .addressUrls-item {
  1572. position: relative;
  1573. display: flex;
  1574. }
  1575. .icon-guanbi {
  1576. position: absolute;
  1577. right: 8px;
  1578. }
  1579. .addressUrl {
  1580. margin: 0px 10px;
  1581. border-radius: 3px;
  1582. }
  1583. //上传文件成功标识
  1584. /deep/.el-upload-list__item-status-label {
  1585. position: absolute;
  1586. right: 22px;
  1587. top: -1px;
  1588. line-height: inherit;
  1589. display: none;
  1590. }
  1591. </style>