salesContractAdd.vue 65 KB

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