salesContractAdd.vue 41 KB

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