salesContractAdd.vue 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917
  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.contractNo) {
  718. this.$message({
  719. message: '合同编号不能为空',
  720. type: 'warning',
  721. })
  722. return
  723. }
  724. if (
  725. this.deptBudgetList.contractNo.length < 6 ||
  726. this.deptBudgetList.contractNo.length > 50
  727. ) {
  728. this.$message({
  729. message: '合同编号长度不符合要求,请输入6到50个字符之内!',
  730. type: 'warning',
  731. })
  732. return
  733. }
  734. if (!this.deptBudgetList.shippingType) {
  735. this.$message({
  736. message: '运输方式不能为空',
  737. type: 'warning',
  738. })
  739. return
  740. }
  741. if (
  742. this.deptBudgetList.shippingType.length < 1 ||
  743. this.deptBudgetList.shippingType.length > 20
  744. ) {
  745. this.$message({
  746. message: '运输方式长度不符合要求,请输入1到20个字符之内!',
  747. type: 'warning',
  748. })
  749. return
  750. }
  751. if (!this.deptBudgetList.buyer) {
  752. this.$message({
  753. message: '买方名称不能为空',
  754. type: 'warning',
  755. })
  756. return
  757. }
  758. if (this.deptBudgetList.buyer.length > 30) {
  759. this.$message({
  760. message: '买方名称长度不符合要求,请输入30个字符之内!',
  761. type: 'warning',
  762. })
  763. return
  764. }
  765. if (!this.deptBudgetList.settlementMethod) {
  766. this.$message({
  767. message: '结算方式不能为空',
  768. type: 'warning',
  769. })
  770. return
  771. }
  772. if (
  773. this.deptBudgetList.settlementMethod.length < 1 ||
  774. this.deptBudgetList.settlementMethod.length > 20
  775. ) {
  776. this.$message({
  777. message: '结算方式长度不符合要求,请输入1到20个字符之内!',
  778. type: 'warning',
  779. })
  780. return
  781. }
  782. if (!this.deptBudgetList.seller) {
  783. this.$message({
  784. message: '请输入卖方名称!',
  785. type: 'warning',
  786. })
  787. return
  788. }
  789. if (this.deptBudgetList.seller.length > 30) {
  790. this.$message({
  791. message: '卖方名称长度不符合要求,请输入30个字符之内!',
  792. type: 'warning',
  793. })
  794. return
  795. }
  796. if (!this.deptBudgetList.buyerPhone) {
  797. this.$message({
  798. message: '请输入买方电话!',
  799. type: 'warning',
  800. })
  801. return
  802. }
  803. if (isNaN(this.deptBudgetList.buyerPhone)) {
  804. this.$message({
  805. message: '输入买方电话有误!',
  806. type: 'warning',
  807. })
  808. return
  809. }
  810. if (!this.deptBudgetList.sellerPhone) {
  811. this.$message({
  812. message: '请输入卖方电话!',
  813. type: 'warning',
  814. })
  815. return
  816. }
  817. if (isNaN(this.deptBudgetList.sellerPhone)) {
  818. this.$message({
  819. message: '输入卖方电话有误!',
  820. type: 'warning',
  821. })
  822. return
  823. }
  824. if(this.deptBudgetList.deliverType == '2'){
  825. if (!this.deptBudgetList.feedbackLeader){
  826. this.$message({
  827. message: '请选择收货反馈负责人',
  828. type: 'warning',
  829. })
  830. return
  831. }
  832. }
  833. if (!this.deptBudgetList.acceptanceMethod) {
  834. this.$message({
  835. message: '请选择验收方式',
  836. type: 'warning',
  837. })
  838. return
  839. }
  840. if (!this.deptBudgetList.weight) {
  841. this.$message({
  842. message: '请输入重量!',
  843. type: 'warning',
  844. })
  845. return
  846. }
  847. if (
  848. isNaN(this.deptBudgetList.weight) ||
  849. (String(this.deptBudgetList.weight).indexOf('.') != -1 &&
  850. String(this.deptBudgetList.weight).length -
  851. (String(this.deptBudgetList.weight).indexOf('.') + 1) >
  852. 3) ||
  853. this.deptBudgetList.weight < 0 ||
  854. this.deptBudgetList.weight > 200000
  855. ) {
  856. this.$message({
  857. message: '输入重量有误!',
  858. type: 'warning',
  859. })
  860. return
  861. }
  862. if (!this.deptBudgetList.deliveryDateStart) {
  863. this.$message({
  864. message: '请选择交货日期(起)',
  865. type: 'warning',
  866. })
  867. return
  868. }
  869. if (!this.deptBudgetList.overShort) {
  870. this.$message({
  871. message: '请输入溢短装!',
  872. type: 'warning',
  873. })
  874. return
  875. }
  876. if (
  877. isNaN(this.deptBudgetList.overShort) ||
  878. (String(this.deptBudgetList.overShort).indexOf('.') != -1 &&
  879. String(this.deptBudgetList.overShort).length -
  880. (String(this.deptBudgetList.overShort).indexOf('.') + 1) >
  881. 2) ||
  882. this.deptBudgetList.overShort < 0 ||
  883. this.deptBudgetList.overShort > 50
  884. ) {
  885. this.$message({
  886. message: '溢短装输入有误!',
  887. type: 'warning',
  888. })
  889. return
  890. }
  891. if (!this.deptBudgetList.deliveryDateEnd) {
  892. this.$message({
  893. message: '请选择交货日期(止)',
  894. type: 'warning',
  895. })
  896. return
  897. }
  898. //时间
  899. if (
  900. new Date(this.deptBudgetList.deliveryDateStart).getTime() >
  901. new Date(this.deptBudgetList.deliveryDateEnd).getTime()
  902. ) {
  903. this.$message({
  904. message: '交货日期(止)选择错误',
  905. type: 'warning',
  906. })
  907. return
  908. }
  909. if (!this.deptBudgetList.priceType) {
  910. this.$message({
  911. message: '请选择价格类型',
  912. type: 'warning',
  913. })
  914. return
  915. }
  916. if (this.deptBudgetList.priceType == '定价销售') {
  917. if (!this.deptBudgetList.unitContractPrice) {
  918. this.$message({
  919. message: '请输入合同单价!',
  920. type: 'warning',
  921. })
  922. return
  923. }
  924. if (
  925. isNaN(this.deptBudgetList.unitContractPrice) ||
  926. (String(this.deptBudgetList.unitContractPrice).indexOf('.') != -1 &&
  927. String(this.deptBudgetList.unitContractPrice).length -
  928. (String(this.deptBudgetList.unitContractPrice).indexOf('.') + 1) >
  929. 2) ||
  930. this.deptBudgetList.unitContractPrice <= 0 ||
  931. this.deptBudgetList.unitContractPrice > 10000
  932. ) {
  933. this.$message({
  934. message: '合同单价输入有误!',
  935. type: 'warning',
  936. })
  937. return
  938. }
  939. if (!this.deptBudgetList.totalContractPrice) {
  940. this.$message({
  941. message: '请输入合同总价!',
  942. type: 'warning',
  943. })
  944. return
  945. }
  946. if (
  947. isNaN(this.deptBudgetList.totalContractPrice) ||
  948. (String(this.deptBudgetList.totalContractPrice).indexOf('.') != -1 &&
  949. String(this.deptBudgetList.totalContractPrice).length -
  950. (String(this.deptBudgetList.totalContractPrice).indexOf('.') +
  951. 1) >
  952. 2) ||
  953. this.deptBudgetList.totalContractPrice <= 0 ||
  954. this.deptBudgetList.totalContractPrice > 1000000000
  955. ) {
  956. this.$message({
  957. message: '合同总价输入有误!',
  958. type: 'warning',
  959. })
  960. return
  961. }
  962. }
  963. if (!this.newSelectedOptions) {
  964. this.$message({
  965. message: '请选择货源所在地区!',
  966. type: 'warning',
  967. })
  968. return
  969. }
  970. if (!this.deptBudgetList.sourceGoods) {
  971. this.$message({
  972. message: '请输入货源详细地址!',
  973. type: 'warning',
  974. })
  975. return
  976. }
  977. if (!this.newSelectedOptions1) {
  978. this.$message({
  979. message: '请选择交货所在地区!',
  980. type: 'warning',
  981. })
  982. return
  983. }
  984. if (!this.deptBudgetList.placeDelivery) {
  985. this.$message({
  986. message: '请输入交货详细地址!',
  987. type: 'warning',
  988. })
  989. return
  990. }
  991. if (!this.deptBudgetList.signingDate) {
  992. this.$message({
  993. message: '请选择签订日期',
  994. type: 'warning',
  995. })
  996. return
  997. }
  998. if (
  999. isNaN(this.deptBudgetList.finalTradingVolume) ||
  1000. (String(this.deptBudgetList.finalTradingVolume).indexOf('.') != -1 &&
  1001. String(this.deptBudgetList.finalTradingVolume).length -
  1002. (String(this.deptBudgetList.finalTradingVolume).indexOf('.') + 1) >
  1003. 3) ||
  1004. this.deptBudgetList.finalTradingVolume < 0 ||
  1005. this.deptBudgetList.finalTradingVolume > 200000
  1006. ) {
  1007. this.$message({
  1008. message: '最终实际成交量有误!',
  1009. type: 'warning',
  1010. })
  1011. return
  1012. }
  1013. //货物信息
  1014. if (!this.deptBudgetList.contractGoodsInfo.goodsName) {
  1015. this.$message({
  1016. message: '请选择货名',
  1017. type: 'warning',
  1018. })
  1019. return
  1020. }
  1021. if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
  1022. this.$message({
  1023. message: '请输入水分',
  1024. type: 'warning',
  1025. })
  1026. return
  1027. }
  1028. if (
  1029. (this.deptBudgetList.contractGoodsInfo.waterContent &&
  1030. String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf(
  1031. '.'
  1032. ) != -1 &&
  1033. String(this.deptBudgetList.contractGoodsInfo.waterContent).length -
  1034. (String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf(
  1035. '.'
  1036. ) +
  1037. 1) >
  1038. 2) ||
  1039. this.deptBudgetList.contractGoodsInfo.waterContent > 40 ||
  1040. this.deptBudgetList.contractGoodsInfo.waterContent < 0
  1041. ) {
  1042. this.$message({
  1043. message: '水分输入错误',
  1044. type: 'warning',
  1045. })
  1046. return
  1047. }
  1048. if (!this.deptBudgetList.contractGoodsInfo.grade) {
  1049. this.$message({
  1050. message: '请选择品级',
  1051. type: 'warning',
  1052. })
  1053. return
  1054. }
  1055. if (!this.deptBudgetList.contractGoodsInfo.impurity) {
  1056. this.$message({
  1057. message: '请输入杂质',
  1058. type: 'warning',
  1059. })
  1060. return
  1061. }
  1062. if (
  1063. (this.deptBudgetList.contractGoodsInfo.impurity &&
  1064. String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
  1065. -1 &&
  1066. String(this.deptBudgetList.contractGoodsInfo.impurity).length -
  1067. (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf(
  1068. '.'
  1069. ) +
  1070. 1) >
  1071. 2) ||
  1072. this.deptBudgetList.contractGoodsInfo.impurity > 40 ||
  1073. this.deptBudgetList.contractGoodsInfo.impurity < 0
  1074. ) {
  1075. this.$message({
  1076. message: '杂质输入错误',
  1077. type: 'warning',
  1078. })
  1079. return
  1080. }
  1081. if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
  1082. this.$message({
  1083. message: '请输入容重',
  1084. type: 'warning',
  1085. })
  1086. return
  1087. }
  1088. if (
  1089. (this.deptBudgetList.contractGoodsInfo.bulkDensity &&
  1090. String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  1091. '.'
  1092. ) != -1 &&
  1093. String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
  1094. (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
  1095. '.'
  1096. ) +
  1097. 1) >
  1098. 2) ||
  1099. this.deptBudgetList.contractGoodsInfo.bulkDensity > 1000 ||
  1100. this.deptBudgetList.contractGoodsInfo.bulkDensity < 0
  1101. ) {
  1102. this.$message({
  1103. message: '容重输入错误',
  1104. type: 'warning',
  1105. })
  1106. return
  1107. }
  1108. if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
  1109. this.$message({
  1110. message: '请输入霉变粒',
  1111. type: 'warning',
  1112. })
  1113. return
  1114. }
  1115. if (
  1116. !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
  1117. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  1118. '.'
  1119. ) != -1 &&
  1120. String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
  1121. (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
  1122. '.'
  1123. ) +
  1124. 1) >
  1125. 2) ||
  1126. this.deptBudgetList.contractGoodsInfo.mildewGrain > 40 ||
  1127. this.deptBudgetList.contractGoodsInfo.mildewGrain < 0
  1128. ) {
  1129. this.$message({
  1130. message: '霉变粒输入错误',
  1131. type: 'warning',
  1132. })
  1133. return
  1134. }
  1135. if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
  1136. this.$message({
  1137. message: '请输入热损伤',
  1138. type: 'warning',
  1139. })
  1140. return
  1141. }
  1142. if (
  1143. !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
  1144. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
  1145. -1 &&
  1146. String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
  1147. (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
  1148. '.'
  1149. ) +
  1150. 1) >
  1151. 2) ||
  1152. this.deptBudgetList.contractGoodsInfo.jiaorenli > 40 ||
  1153. this.deptBudgetList.contractGoodsInfo.jiaorenli < 0
  1154. ) {
  1155. this.$message({
  1156. message: '热损伤输入错误',
  1157. type: 'warning',
  1158. })
  1159. return
  1160. }
  1161. if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
  1162. this.$message({
  1163. message: '请输入不完善粒',
  1164. type: 'warning',
  1165. })
  1166. return
  1167. }
  1168. if (
  1169. !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
  1170. (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
  1171. '.'
  1172. ) != -1 &&
  1173. String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
  1174. (String(
  1175. this.deptBudgetList.contractGoodsInfo.imperfectGrain
  1176. ).indexOf('.') +
  1177. 1) >
  1178. 2) ||
  1179. this.deptBudgetList.contractGoodsInfo.imperfectGrain > 40 ||
  1180. this.deptBudgetList.contractGoodsInfo.imperfectGrain < 0
  1181. ) {
  1182. this.$message({
  1183. message: '不完善粒输入错误',
  1184. type: 'warning',
  1185. })
  1186. return
  1187. }
  1188. if(this.deptBudgetList.contractProcessInfo.goodsNameKey ){
  1189. if (
  1190. !this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000 ||
  1191. this.deptBudgetList.contractProcessInfo.goodsNameKey < 100 ||
  1192. (String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
  1193. '.'
  1194. ) != -1 &&
  1195. String(this.deptBudgetList.contractProcessInfo.goodsNameKey).length -
  1196. (String(
  1197. this.deptBudgetList.contractProcessInfo.goodsNameKey
  1198. ).indexOf('.') +
  1199. 1) >
  1200. 2)
  1201. ) {
  1202. this.$message({
  1203. message: '合同收入金额输入错误',
  1204. type: 'warning',
  1205. })
  1206. return
  1207. }
  1208. }
  1209. if (
  1210. this.deptBudgetList.contractProcessInfo.waterContent > 10000000 ||
  1211. this.deptBudgetList.contractProcessInfo.waterContent < 0 ||
  1212. (String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
  1213. '.'
  1214. ) != -1 &&
  1215. String(this.deptBudgetList.contractProcessInfo.waterContent).length -
  1216. (String(
  1217. this.deptBudgetList.contractProcessInfo.waterContent
  1218. ).indexOf('.') +
  1219. 1) >
  1220. 2)
  1221. ) {
  1222. this.$message({
  1223. message: '费用支出输入错误',
  1224. type: 'warning',
  1225. })
  1226. return
  1227. }
  1228. if (
  1229. (this.deptBudgetList.contractProcessInfo.goodsName > 1000000000) |
  1230. (this.deptBudgetList.contractProcessInfo.goodsName < 0) ||
  1231. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1232. '.'
  1233. ) != -1 &&
  1234. String(this.deptBudgetList.contractProcessInfo.goodsName).length -
  1235. (String(this.deptBudgetList.contractProcessInfo.goodsName).indexOf(
  1236. '.'
  1237. ) +
  1238. 1) >
  1239. 2)
  1240. ) {
  1241. this.$message({
  1242. message: '已开发票金额输入错误',
  1243. type: 'warning',
  1244. })
  1245. return
  1246. }
  1247. if (
  1248. (this.deptBudgetList.contractProcessInfo.impurity > 1000000000) |
  1249. (this.deptBudgetList.contractProcessInfo.impurity < 0) ||
  1250. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1251. '.'
  1252. ) != -1 &&
  1253. String(this.deptBudgetList.contractProcessInfo.impurity).length -
  1254. (String(this.deptBudgetList.contractProcessInfo.impurity).indexOf(
  1255. '.'
  1256. ) +
  1257. 1) >
  1258. 2)
  1259. ) {
  1260. this.$message({
  1261. message: '未开发票金额输入错误',
  1262. type: 'warning',
  1263. })
  1264. return
  1265. }
  1266. if (
  1267. (!this.deptBudgetList.contractProcessInfo.mildewGrain > 1000000000) |
  1268. (this.deptBudgetList.contractProcessInfo.mildewGrain < 0) ||
  1269. (String(this.deptBudgetList.contractProcessInfo.mildewGrain).indexOf(
  1270. '.'
  1271. ) != -1 &&
  1272. String(this.deptBudgetList.contractProcessInfo.mildewGrain).length -
  1273. (String(
  1274. this.deptBudgetList.contractProcessInfo.mildewGrain
  1275. ).indexOf('.') +
  1276. 1) >
  1277. 2)
  1278. ) {
  1279. this.$message({
  1280. message: '未回款金额输入错误',
  1281. type: 'warning',
  1282. })
  1283. return
  1284. }
  1285. this.$refs.deptBudgetList.validate((valid) => {
  1286. if (valid) {
  1287. this.deptBudgetList.compId = this.compId
  1288. this.deptBudgetList.contractType = 1
  1289. this.deptBudgetList.goodsType = 1
  1290. addList(this.deptBudgetList)
  1291. .toPromise()
  1292. .then((response) => {
  1293. // 存储买方、卖方、买方电话、卖方电话
  1294. let _data = {
  1295. byer: this.deptBudgetList.buyer,
  1296. seller: this.deptBudgetList.seller,
  1297. buyerPhone: this.deptBudgetList.buyerPhone,
  1298. sellerPhone: this.deptBudgetList.sellerPhone
  1299. }
  1300. if (this.restaurants1.length <= 20) {
  1301. this.restaurants1 = this.restaurants1.filter(function(val) {
  1302. if (val.value != _data.byer) {
  1303. return val
  1304. }
  1305. })
  1306. this.restaurants1.unshift({
  1307. value: _data.byer
  1308. })
  1309. } else {
  1310. this.restaurants1.unshift({
  1311. value: _data.byer
  1312. }).pop({
  1313. value: _data.byer
  1314. })
  1315. }
  1316. localStorage.setItem('deptBudgetList_data1', JSON.stringify(this.restaurants1));
  1317. if (this.restaurants2.length <= 20) {
  1318. this.restaurants2 = this.restaurants2.filter(function(val) {
  1319. if (val.value != _data.seller) {
  1320. return val
  1321. }
  1322. })
  1323. this.restaurants2.unshift({
  1324. value: _data.seller
  1325. })
  1326. } else {
  1327. this.restaurants2.unshift({
  1328. value: _data.seller
  1329. }).pop({
  1330. value: _data.seller
  1331. })
  1332. }
  1333. localStorage.setItem('deptBudgetList_data2', JSON.stringify(this.restaurants2));
  1334. if (this.restaurants2.length <= 20) {
  1335. this.restaurants3 = this.restaurants3.filter(function(val) {
  1336. if (val.value != _data.buyerPhone) {
  1337. return val
  1338. }
  1339. })
  1340. this.restaurants3.unshift({
  1341. value: _data.buyerPhone
  1342. })
  1343. } else {
  1344. this.restaurants3.unshift({
  1345. value: _data.buyerPhone
  1346. }).pop({
  1347. value: _data.buyerPhone
  1348. })
  1349. }
  1350. localStorage.setItem('deptBudgetList_data3', JSON.stringify(this.restaurants3));
  1351. if (this.restaurants4.length <= 20) {
  1352. this.restaurants4 = this.restaurants3.filter(function(val) {
  1353. if (val.value != _data.sellerPhone) {
  1354. return val
  1355. }
  1356. })
  1357. this.restaurants4.unshift({
  1358. value: _data.sellerPhone
  1359. })
  1360. } else {
  1361. this.restaurants4.unshift({
  1362. value: _data.sellerPhone
  1363. }).pop({
  1364. value: _data.sellerPhone
  1365. })
  1366. }
  1367. localStorage.setItem('deptBudgetList_data4', JSON.stringify(this.restaurants4));
  1368. this.$message.success('添加成功')
  1369. this.deptBudgetList = {
  1370. deliverType: '1',
  1371. agreementType: '销售合同',
  1372. finalTradingVolume: 0,
  1373. totalContractPrice: 0,
  1374. contractGoodsInfo: {
  1375. goodsName: '',
  1376. },
  1377. contractProcessInfo: {},
  1378. }
  1379. this.$router.push({
  1380. path: 'salesContract',
  1381. })
  1382. })
  1383. } else {
  1384. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1385. return false
  1386. }
  1387. })
  1388. },
  1389. resetForm(deptBudgetList) {
  1390. this.$refs[deptBudgetList].resetFields()
  1391. },
  1392. saveClick(item, index) {
  1393. console.log(item)
  1394. if (Object.is(item.id, 1)) {
  1395. return
  1396. }
  1397. if (Object.is(this.unitList[index].flag, 'delete')) {
  1398. this.$set(this.unitList, index, {
  1399. flag: 'check',
  1400. })
  1401. } else {
  1402. this.$set(this.unitList, index, {
  1403. flag: 'delete',
  1404. })
  1405. }
  1406. if (!item.constValue) {
  1407. this.unitList.splice(index, 1)
  1408. return
  1409. }
  1410. if (item.flag == 'add') {
  1411. item.constKey = Math.random() * 20
  1412. this.trainingMethods.compId = localStorage.getItem('ws-pf_compId')
  1413. this.trainingMethods.constKey = item.constKey
  1414. this.trainingMethods.constCode = 'TYPEYAN'
  1415. this.trainingMethods.constValue = item.constValue
  1416. this.trainingMethods.id = item.id
  1417. addxiala(this.trainingMethods)
  1418. .toPromise()
  1419. .then((response) => {
  1420. this.getUnitList()
  1421. })
  1422. } else if (item.flag == 'check') {
  1423. this.trainingMethods.compId = localStorage.getItem('ws-pf_compId')
  1424. this.trainingMethods.constKey = item.constKey
  1425. this.trainingMethods.constCode = 'TYPEYAN'
  1426. this.trainingMethods.constValue = item.constValue
  1427. this.trainingMethods.id = item.id
  1428. editxiala(this.trainingMethods)
  1429. .toPromise()
  1430. .then((response) => {
  1431. this.getUnitList()
  1432. })
  1433. }
  1434. },
  1435. handleExamine() {},
  1436. approve() {},
  1437. addClick() {
  1438. this.unitList.push({
  1439. flag: 'add',
  1440. constValue: '',
  1441. constKey: '',
  1442. })
  1443. },
  1444. selectChapterTwo(e) {
  1445. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  1446. if (this.ChapterTwoList[i].constValue == e) {
  1447. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  1448. }
  1449. }
  1450. },
  1451. selectunitList(e) {
  1452. for (var i = 0; i < this.unitList.length; i++) {
  1453. if (this.unitList[i].constValue == e) {
  1454. this.deptBudgetList.packingMethodKey = this.unitList[i].constKey
  1455. }
  1456. }
  1457. },
  1458. selectgrade(e) {
  1459. for (var i = 0; i < this.gradeList.length; i++) {
  1460. if (this.gradeList[i].constValue == e) {
  1461. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  1462. this.deptBudgetList.contractGoodsInfo.gradeKey =
  1463. this.gradeList[i].constKey
  1464. }
  1465. }
  1466. },
  1467. selectgoodsName(e) {
  1468. for (var i = 0; i < this.goodnameList.length; i++) {
  1469. if (this.goodnameList[i].constValue == e) {
  1470. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  1471. this.deptBudgetList.contractGoodsInfo.goodsNameKey =
  1472. this.goodnameList[i].constKey
  1473. }
  1474. }
  1475. },
  1476. selectpackingMethod(e) {
  1477. for (var i = 0; i < this.packtypeList.length; i++) {
  1478. if (this.packtypeList[i].constValue == e) {
  1479. this.deptBudgetList.acceptanceMethodKey =
  1480. this.packtypeList[i].constKey
  1481. }
  1482. }
  1483. },
  1484. selectpriceType(e) {
  1485. if (e == '随行就市') {
  1486. this.deptBudgetList.deliverType = '1'
  1487. }
  1488. },
  1489. weightchange(e) {
  1490. this.deptBudgetList.finalTradingVolume = e
  1491. },
  1492. pricechange(e) {
  1493. this.deptBudgetList.totalContractPrice = e * this.deptBudgetList.weight
  1494. },
  1495. // 编辑
  1496. editClick(item, index) {
  1497. const map = JSON.parse(JSON.stringify(item))
  1498. if (Object.is(item.id, 1)) {
  1499. return
  1500. }
  1501. if (Object.is(this.unitList[index].flag, 'delete')) {
  1502. map.flag = 'check'
  1503. this.$set(this.unitList, index, map)
  1504. } else {
  1505. map.flag = 'delete'
  1506. this.$set(this.unitList, index, map)
  1507. }
  1508. },
  1509. // 删除
  1510. deleteClick(item, index) {
  1511. if (Object.is(item.constKey, 1)) {
  1512. return
  1513. }
  1514. if (!item.constValue) {
  1515. this.unitList.splice(index, 1)
  1516. return
  1517. }
  1518. delxiala({
  1519. id: this.unitList[index].id,
  1520. })
  1521. .toPromise()
  1522. .then((response) => {
  1523. this.getUnitList()
  1524. this.pleaseChoose = ''
  1525. })
  1526. },
  1527. },
  1528. }
  1529. </script>
  1530. <style lang="scss" scoped>
  1531. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1532. padding: 0 25px;
  1533. }
  1534. /deep/.ws-info-table .el-form-item {
  1535. border-right: 1px solid #cdd2dc;
  1536. border-bottom: 1px solid #cdd2dc;
  1537. }
  1538. .title {
  1539. position: relative;
  1540. }
  1541. .title::before {
  1542. content: '';
  1543. display: inline-block;
  1544. width: 5px;
  1545. height: 30px;
  1546. background: #5473e8;
  1547. position: absolute;
  1548. left: 0;
  1549. }
  1550. .el-button--primary {
  1551. background-color: #5878e8;
  1552. border-color: #5878e8;
  1553. }
  1554. .upload-demo {
  1555. margin-top: 10px;
  1556. }
  1557. .el-col {
  1558. background: #f6f7fc;
  1559. }
  1560. .readonly {
  1561. position: relative;
  1562. }
  1563. .readonly:after {
  1564. content: '*';
  1565. color: #ff2727;
  1566. position: absolute;
  1567. right: 8px;
  1568. z-index: 10;
  1569. top: 21%;
  1570. font-size: 20px;
  1571. }
  1572. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1573. padding: 0 25px;
  1574. border-left: 1px solid #cdd2dc;
  1575. background: #fafbfc;
  1576. }
  1577. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1578. width: 140px;
  1579. text-align: center;
  1580. background: #f0f2f6;
  1581. // border: 1px solid #cdd2dc;
  1582. }
  1583. .button-container {
  1584. display: flex;
  1585. flex-wrap: nowrap;
  1586. justify-content: space-between;
  1587. align-items: center;
  1588. background-color: #fff;
  1589. width: 100%;
  1590. height: 50px;
  1591. padding: 0 10px;
  1592. &>div {
  1593. margin-left: 10px;
  1594. display: flex;
  1595. flex-wrap: nowrap;
  1596. flex-direction: row;
  1597. &>span {
  1598. line-height: 50px;
  1599. }
  1600. }
  1601. /deep/.auditFlow-box {
  1602. position: unset;
  1603. margin-left: 10px;
  1604. &/deep/.auditFlow-icon {
  1605. width: auto;
  1606. padding-right: 30px;
  1607. }
  1608. &/deep/.auditFlow-main {
  1609. position: absolute;
  1610. }
  1611. }
  1612. }
  1613. .box-app {
  1614. display: inline-block;
  1615. float: left;
  1616. margin-left: 30px;
  1617. line-height: 50px;
  1618. }
  1619. /deep/.el-dialog {
  1620. .el-form-item {
  1621. margin-bottom: 0 !important;
  1622. .el-input--medium {
  1623. textarea {
  1624. min-height: 100px !important;
  1625. }
  1626. }
  1627. }
  1628. }
  1629. .collapse-bottom {
  1630. margin-bottom: 20px;
  1631. }
  1632. .input-main .textarea .el-textarea__inner {
  1633. width: 100%;
  1634. z-index: 1;
  1635. }
  1636. .bg-left {
  1637. padding-left: 30px;
  1638. }
  1639. .bg-right {
  1640. padding-right: 10px;
  1641. text-align: right;
  1642. }
  1643. .bg-bottom {
  1644. margin: 16px 0px;
  1645. }
  1646. .wenzi {
  1647. width: 70%;
  1648. margin: 0 auto;
  1649. }
  1650. .wenzi h3 {
  1651. display: inline-block;
  1652. left: 10px;
  1653. }
  1654. .wenzi p {
  1655. display: inline-block;
  1656. }
  1657. .center {
  1658. width: 70%;
  1659. margin: 0 auto;
  1660. }
  1661. .el-form-item {
  1662. width: 50%;
  1663. }
  1664. .el-form-item__label {
  1665. text-align: center;
  1666. }
  1667. .ce {
  1668. width: 70%;
  1669. margin: 0 auto;
  1670. }
  1671. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  1672. /* height: 82px;*/
  1673. /*}*/
  1674. // 控制select为只读的时候显示样式
  1675. .hide-sel {
  1676. .el-input__inner {
  1677. border: 0px;
  1678. }
  1679. .el-icon-arrow-up {
  1680. display: none;
  1681. }
  1682. .el-textarea__inner {
  1683. background-color: #fff !important;
  1684. border: 0;
  1685. }
  1686. .el-date-editor {
  1687. i {
  1688. display: none;
  1689. }
  1690. }
  1691. .is-disabled {
  1692. .el-input__inner:hover {
  1693. background-color: #fff !important;
  1694. border: 0;
  1695. }
  1696. color: #606266;
  1697. .el-input__inner {
  1698. background-color: #fff !important;
  1699. border: 0;
  1700. color: #606266;
  1701. }
  1702. .el-textarea__inner {
  1703. background-color: #fff !important;
  1704. border: 0;
  1705. color: #606266;
  1706. }
  1707. }
  1708. }
  1709. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1710. width: 130px;
  1711. }
  1712. //*号
  1713. .unchangeable {
  1714. position: absolute;
  1715. width: 9px;
  1716. height: 22px;
  1717. font-size: 16px;
  1718. font-family: PingFangSC-Medium, PingFang SC;
  1719. font-weight: 500;
  1720. color: #ff2727;
  1721. line-height: 22px;
  1722. display: inline-block;
  1723. right: 14px;
  1724. }
  1725. /deep/.el-input,
  1726. /deep/.el-date-editor {
  1727. font-size: 13px;
  1728. }
  1729. /deep/.el-textarea {
  1730. width: 101%;
  1731. margin: 0px;
  1732. }
  1733. /deep/el-date-editor--date {
  1734. width: 200px;
  1735. }
  1736. .unchanged {
  1737. position: absolute;
  1738. left: 37px;
  1739. width: 102px;
  1740. height: 14px;
  1741. font-size: 14px;
  1742. font-family: PingFangSC-Regular, PingFang SC;
  1743. font-weight: 400;
  1744. color: #afb5cb;
  1745. line-height: 14px;
  1746. }
  1747. /deep/.el-input--small .el-input__inner {
  1748. height: 32px;
  1749. line-height: 32px;
  1750. }
  1751. // 控制select为只读的时候显示样式
  1752. /deep/.ws-class-table-col {
  1753. height: auto;
  1754. padding: 0px 2px;
  1755. /deep/.el-input__inner {
  1756. padding: 0px 2px;
  1757. }
  1758. }
  1759. /deep/.is-disabled {
  1760. .el-input__prefix,
  1761. .el-input__suffix {
  1762. display: none;
  1763. }
  1764. .el-input__inner {
  1765. background-color: #fff;
  1766. border-color: #fff !important;
  1767. color: #000 !important;
  1768. font-size: 14px;
  1769. cursor: text;
  1770. padding: 0 !important;
  1771. }
  1772. }
  1773. .winseaview-view {
  1774. padding: 0 0 20px;
  1775. }
  1776. .container {
  1777. overflow: scroll;
  1778. height: 93vh;
  1779. }
  1780. .addressUrls {
  1781. width: 100%;
  1782. display: flex;
  1783. margin-top: 10px;
  1784. }
  1785. .addressUrls-item {
  1786. position: relative;
  1787. display: flex;
  1788. }
  1789. .icon-guanbi {
  1790. position: absolute;
  1791. right: 8px;
  1792. }
  1793. .addressUrl {
  1794. margin: 0px 10px;
  1795. border-radius: 3px;
  1796. }
  1797. //上传文件成功标识
  1798. /deep/.el-upload-list__item-status-label {
  1799. position: absolute;
  1800. right: 22px;
  1801. top: -1px;
  1802. line-height: inherit;
  1803. display: none;
  1804. }
  1805. .map {
  1806. position: fixed;
  1807. top: 0;
  1808. bottom: 0;
  1809. left: 0;
  1810. right: 0;
  1811. margin: auto;
  1812. width: 850px;
  1813. height: 400px;
  1814. background: gainsboro;
  1815. border-radius: 20px;
  1816. padding: 10px;
  1817. box-sizing: border-box;
  1818. z-index: 99;
  1819. }
  1820. .amap-container {
  1821. width: 100% !important;
  1822. }
  1823. .address-btn {
  1824. width: 100%;
  1825. text-align: left;
  1826. color:#000;
  1827. border:1px solid #ccc;
  1828. }
  1829. .inline-input {
  1830. width: 100%;
  1831. }
  1832. </style>