salesContractAdd.vue 64 KB

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