salesContractAdd.vue 70 KB

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