purchaseContractAdd.vue 64 KB

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