purchaseContractAdd.vue 67 KB

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