salesContractAdd.vue 70 KB

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