acquisitionContractEdit.vue 45 KB

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