salesContractAdd.vue 65 KB

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