tranManagementWarehouseInOutTaskAudit.vue 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388
  1. // 审核出入库任务
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left title">审核出入库任务</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">
  10. <img width="6" height="10" style="vertical-align: bottom; margin-right: 3px"
  11. src="../../../public/img/lujing.png" alt />返回
  12. </el-button>
  13. </el-col>
  14. </el-row>
  15. <div class="basicInformation">
  16. <div class="annu">
  17. <el-radio-group @change="tasktypechange" v-model="dataList.taskTypeKey"></el-radio-group>
  18. <div class="nav">
  19. <span class="ziti">
  20. 任务类型:
  21. <h1 class="ziti1" v-show="
  22. dataList.inOutType == '移库入库' ||
  23. dataList.inOutType == '移库出库'
  24. ">
  25. 移库任务
  26. </h1>
  27. <h1 class="ziti1" v-show="
  28. dataList.inOutType == '销售出库' ||
  29. dataList.inOutType == '暂存出库' ||
  30. dataList.inOutType == '贸易服务出库' ||
  31. dataList.inOutType == '采购出库'
  32. ">
  33. 出库任务
  34. </h1>
  35. <h1 class="ziti1" v-show="
  36. dataList.inOutType == '采购入库' ||
  37. dataList.inOutType == '暂存入库' ||
  38. dataList.inOutType == '贸易服务入库' ||
  39. dataList.inOutType == '退库'
  40. ">
  41. 入库任务
  42. </h1>
  43. </span>
  44. </div>
  45. </div>
  46. <div class="ding"></div>
  47. <div v-if="dataList.taskTypeKey != 2 && dataList.taskTypeKey != 4" class="center1">
  48. <img style="position: relative; top: 40px; left: 300px" width="19" height="19"
  49. src="../../../public/img/cangku.png" alt />
  50. <!--出库=-->
  51. <div class="small-title">
  52. <h3>出库任务({{ dataList.inOutTaskNo }})</h3>
  53. </div>
  54. <el-form ref="dataList" :model="dataList" label-width="140px">
  55. <!-- 仓库名 -->
  56. <el-form-item label="仓库名">
  57. <el-select disabled v-model="dataList.warehouseName" placeholder="请选择仓库名" class="typeselect"
  58. @change="selectwarehouseName" filterable clearable>
  59. <el-option v-for="item in warehouseNameList" :key="item.constKey" :label="item.warehouseName"
  60. :value="item.warehouseName" />
  61. </el-select>
  62. </el-form-item>
  63. <!-- 出库类型 -->
  64. <el-form-item label="出库类型">
  65. <el-select disabled v-model="dataList.inOutType" placeholder="请选择出库类型" class="typeselect"
  66. @change="selectstorageType" filterable clearable>
  67. <el-option v-for="item in storageType" :key="item.constKey" v-if="
  68. (dataList.taskTypeKey == 1 &&
  69. item.constValue != '移库出库') ||
  70. (dataList.taskTypeKey == 3 &&
  71. item.constValue == '移库出库') ||
  72. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  73. " :label="item.constValue" :value="item.constValue" />
  74. </el-select>
  75. </el-form-item>
  76. <!-- 合同编号 -->
  77. <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
  78. <el-select disabled @change="changecontract" v-model="dataList.contractNo" placeholder="请输入合同编号"
  79. class="typeselect" filterable clearable>
  80. <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
  81. :value="item.contractNo"></el-option>
  82. </el-select>
  83. </el-form-item>
  84. <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
  85. <el-select disabled @change="selectTaskNo" v-model="dataList.moveTaskNo" placeholder="请输入移库任务编号"
  86. class="typeselect" filterable clearable>
  87. <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
  88. :value="item.contractNo"></el-option>
  89. </el-select>
  90. </el-form-item>
  91. <!-- 货名 -->
  92. <el-form-item label="货名" class="huom">
  93. <el-select disabled v-model="dataList.goodsName" placeholder="货名" class="huom" @change="selectgoodsName"
  94. filterable clearable>
  95. <el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
  96. :value="item.constValue"></el-option>
  97. </el-select>
  98. </el-form-item>
  99. <!--重量(吨)-->
  100. <el-form-item label="重量(吨)">
  101. <el-input disabled v-model="dataList.weight" placeholder="请输入重量(吨)" maxlength="120" size="small"
  102. class="huom" />
  103. </el-form-item>
  104. <!-- 品级 -->
  105. <el-form-item label="品级">
  106. <el-select v-model="dataList.grade" placeholder class="typeselect" @change="selectpackingMethod" filterable
  107. clearable>
  108. <el-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
  109. :value="item.constValue" />
  110. </el-select>
  111. </el-form-item>
  112. <!--容重(克/升)>=-->
  113. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
  114. <el-input @input="bulkDensitychange" v-model="dataList.bulkDensity" placeholder="请输入容重" maxlength="120"
  115. size="small" class="huom" />
  116. </el-form-item>
  117. <!--水分(%)<=-->
  118. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
  119. <el-input @input="waterContentchange" v-model="dataList.waterContent" placeholder="请输入水分占比" maxlength="120"
  120. size="small" class="huom" />
  121. </el-form-item>
  122. <!--单价(元/吨)-->
  123. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
  124. <el-input @input="unitPricechange" v-model="dataList.unitPrice" placeholder="请输入单价" maxlength="120"
  125. size="small" class="huom" />
  126. </el-form-item>
  127. <!--预计出库日期-->
  128. <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
  129. <el-date-picker disabled v-model="dataList.predictDate" type="date" placeholder="请选择预计出库日期"
  130. value-format="yyyy-MM-dd" />
  131. </el-form-item>
  132. <!--预估运费(元/吨)-->
  133. <!-- <el-form-item label="预估运费(元/吨)" span="1">
  134. <el-input
  135. v-model="dataList.estimatedFreight"
  136. placeholder="请输入预估运费"
  137. maxlength="20"
  138. size="small"
  139. />
  140. </el-form-item> -->
  141. <!--收货人-->
  142. <el-form-item label="发货人">
  143. <el-select disabled v-model="dataList.agent" placeholder="请选择发货人" @change="selectstaff" filterable
  144. clearable>
  145. <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
  146. </el-select>
  147. </el-form-item>
  148. <!--业务描述=-->
  149. <el-form-item v-if="dataList.taskTypeKey != 3" label="业务描述" span="1">
  150. <el-input v-model="dataList.businessDescribe" placeholder="请输入业务描述,不超过150字" maxlength="150" size="large"
  151. class="yewu" />
  152. </el-form-item>
  153. <el-form-item label="仓位号(选填)" span="1">
  154. <el-select v-model="dataList.binNumber" placeholder="请输入仓位号" filterable clearable
  155. @change="binNumberChange1">
  156. <el-option v-for="(item, index) in binNumberList1" :Key="index" :label="item.binNumber"
  157. :value="item.binNumber">
  158. </el-option>
  159. </el-select>
  160. <!-- <el-input
  161. v-model="dataList.binNumber"
  162. placeholder="请输入仓位号"
  163. maxlength="150"
  164. size="large"
  165. class="yewu"
  166. /> -->
  167. </el-form-item>
  168. </el-form>
  169. </div>
  170. <div v-show="dataList.taskTypeKey != 1" class="center1">
  171. <img style="position: relative; top: 40px; left: 300px" width="19" height="19"
  172. src="../../../public/img/cangku.png" alt />
  173. <div class="small-title">
  174. <h3>
  175. 入库任务({{ dataList1.inOutTaskNo }})
  176. <span v-if="deletetask" style="color: red">已删除</span>
  177. </h3>
  178. </div>
  179. <el-form v-if="!deletetask" ref="form" :model="form" label-width="140px">
  180. <!-- 仓库名 -->
  181. <el-form-item label="仓库名" v-if="dataList1.inOutType == '移库入库'">
  182. <el-select disabled v-model="dataList1.warehouseName" placeholder="请选择仓库名" class="typeselect" filterable
  183. clearable>
  184. <el-option v-for="item in warehouseNameList" :key="item.constKey" :label="item.warehouseName"
  185. :value="item.warehouseName" />
  186. </el-select>
  187. </el-form-item>
  188. <!-- 出库类型 -->
  189. <el-form-item label="入库类型" v-if="dataList1.inOutType == '移库入库'">
  190. <el-select disabled v-model="dataList1.inOutType" placeholder="请选择入库类型" class="typeselect"
  191. @change="selectstorageType1" filterable clearable>
  192. <el-option v-for="item in storageType1" :key="item.constKey" v-if="
  193. (dataList1.taskTypeKey == 2 &&
  194. item.constValue != '移库入库') ||
  195. (dataList1.taskTypeKey == 3 &&
  196. item.constValue == '移库入库') ||
  197. (dataList1.taskTypeKey == 4 && item.constValue == '退库')
  198. " :label="item.constValue" :value="item.constValue" />
  199. </el-select>
  200. </el-form-item>
  201. <!-- 合同编号 -->
  202. <el-form-item v-if="dataList1.taskTypeKey != 3" label="合同编号">
  203. <el-select disabled @change="changecontract1" v-model="dataList1.contractNo" placeholder="请输入合同编号"
  204. class="typeselect" filterable clearable>
  205. <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
  206. :value="item.contractNo"></el-option>
  207. </el-select>
  208. </el-form-item>
  209. <el-form-item v-if="dataList1.taskTypeKey == 3" label="移库任务编号">
  210. <el-select disabled v-model="dataList1.moveTaskNo" placeholder="请输入移库任务编号" class="typeselect" filterable
  211. clearable>
  212. <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
  213. :value="item.contractNo"></el-option>
  214. </el-select>
  215. </el-form-item>
  216. <!-- 货名 -->
  217. <el-form-item label="货名" class="huom">
  218. <el-select disabled v-model="dataList1.goodsName" placeholder="货名" class="huom" @change="selectgoodsName1"
  219. filterable clearable>
  220. <el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
  221. :value="item.constValue"></el-option>
  222. </el-select>
  223. </el-form-item>
  224. <!--重量(吨)-->
  225. <el-form-item label="重量(吨)">
  226. <el-input @input="weightchange" v-model="dataList1.weight" placeholder="请输入重量(吨)" maxlength="120"
  227. size="small" class="huom" />
  228. </el-form-item>
  229. <!-- 品级 -->
  230. <el-form-item label="品级">
  231. <el-select :disabled="dataList.taskTypeKey == 3" v-model="dataList1.grade" placeholder class="typeselect"
  232. @change="selectpackingMethod1" filterable clearable>
  233. <el-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
  234. :value="item.constValue" />
  235. </el-select>
  236. </el-form-item>
  237. <!--容重(克/升)>=-->
  238. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
  239. <el-input @input="bulkDensitychange" :disabled="dataList.taskTypeKey == 3" v-model="dataList1.bulkDensity"
  240. placeholder="请输入容重" maxlength="120" size="small" class="huom" />
  241. </el-form-item>
  242. <!--水分(%)<=-->
  243. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
  244. <el-input @input="waterContentchange" :disabled="dataList.taskTypeKey == 3" v-model="dataList1.waterContent"
  245. placeholder="请输入水分占比" maxlength="120" size="small" class="huom" />
  246. </el-form-item>
  247. <!--单价(元/吨)-->
  248. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
  249. <el-input @input="unitPricechange" :disabled="dataList.taskTypeKey == 3" v-model="dataList1.unitPrice"
  250. placeholder="请输入单价" maxlength="120" size="small" class="huom" />
  251. </el-form-item>
  252. <!--预计出库日期-->
  253. <el-form-item label="预计入库日期" span="1" prop="predictDate" class="deliverydate">
  254. <el-date-picker disabled v-model="dataList1.predictDate" type="date" placeholder="请选择预计入库日期"
  255. value-format="yyyy-MM-dd" />
  256. </el-form-item>
  257. <!--预估运费(元/吨)-->
  258. <!-- <el-form-item label="预估运费(元/吨)" span="1">
  259. <el-input
  260. v-model="dataList1.estimatedFreight"
  261. placeholder="请输入预估运费"
  262. maxlength="20"
  263. size="small"
  264. />
  265. </el-form-item> -->
  266. <!--收货人-->
  267. <el-form-item label="收货人">
  268. <el-select disabled v-model="dataList1.agent" placeholder="请选择收货人" filterable @change="selectstaff1"
  269. filterable clearable>
  270. <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
  271. </el-select>
  272. </el-form-item>
  273. <!--业务描述=-->
  274. <el-form-item v-if="dataList.taskTypeKey != 4" label="业务描述">
  275. <el-input v-model="dataList1.businessDescribe" placeholder="请输入业务描述,不超过150字" maxlength="150" size="large" />
  276. </el-form-item>
  277. <el-form-item label="仓位号(选填)" span="1">
  278. <el-select v-model="dataList1.binNumber" placeholder="请输入仓位号" @change="binNumberChange" filterable
  279. clearable>
  280. <el-option v-for="(item, index) in binNumberList" :Key="index" :label="item.binNumber"
  281. :value="item.binNumber">
  282. </el-option>
  283. </el-select>
  284. <!-- <el-input
  285. v-model="dataList1.binNumber"
  286. placeholder="请输入仓位号"
  287. maxlength="150"
  288. size="large"
  289. class="yewu"
  290. /> -->
  291. </el-form-item>
  292. </el-form>
  293. </div>
  294. <div v-if="dataList.taskTypeKey == 4" class="center1">
  295. <!--出库=-->
  296. <div class="small-title">
  297. <img style="position: relative; top: 40px; left: -22px" width="19" height="19"
  298. src="../../../public/img/cangku.png" alt />
  299. <h3>出库任务({{ inOutTaskNo }})</h3>
  300. </div>
  301. <el-form ref="dataList" :model="dataList" label-width="140px">
  302. <!-- 仓库名 -->
  303. <el-form-item label="仓库名">
  304. <el-select disabled v-model="dataList.warehouseName" placeholder="请选择仓库名" class="typeselect" filterable
  305. clearable>
  306. <el-option v-for="item in warehouseNameList" :key="item.constKey" :label="item.warehouseName"
  307. :value="item.warehouseName" />
  308. </el-select>
  309. </el-form-item>
  310. <!-- 出库类型 -->
  311. <el-form-item label="出库类型">
  312. <el-select :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4" v-model="dataList.inOutType"
  313. placeholder="请选择出库类型" class="typeselect" @change="selectstorageType" filterable clearable>
  314. <el-option v-for="item in storageType" :key="item.constKey" v-if="
  315. (dataList.taskTypeKey == 1 &&
  316. item.constValue != '移库出库') ||
  317. (dataList.taskTypeKey == 3 &&
  318. item.constValue == '移库出库') ||
  319. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  320. " :label="item.constValue" :value="item.constValue" />
  321. </el-select>
  322. </el-form-item>
  323. <!-- 合同编号 -->
  324. <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
  325. <el-select disabled v-model="dataList.contractNo" placeholder="请输入合同编号" class="typeselect" filterable
  326. clearable>
  327. <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
  328. :value="item.contractNo"></el-option>
  329. </el-select>
  330. </el-form-item>
  331. <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
  332. <el-select @change="selectTaskNo" v-model="dataList.moveTaskNo" placeholder="请输入移库任务编号" class="typeselect"
  333. filterable clearable>
  334. <el-option v-for="item in contractNoList" :key="item.constKey" :label="item.contractNo"
  335. :value="item.contractNo"></el-option>
  336. </el-select>
  337. </el-form-item>
  338. <!-- 货名 -->
  339. <el-form-item label="货名" class="huom">
  340. <el-select disabled v-model="dataList.goodsName" placeholder="货名" class="huom" @change="selectgoodsName"
  341. filterable clearable>
  342. <el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
  343. :value="item.constValue"></el-option>
  344. </el-select>
  345. </el-form-item>
  346. <!--重量(吨)-->
  347. <el-form-item label="重量(吨)">
  348. <el-input disabled v-model="dataList.weight" placeholder="请输入重量(吨)" maxlength="120" size="small"
  349. class="huom" />
  350. </el-form-item>
  351. <!-- 品级 -->
  352. <el-form-item label="品级">
  353. <el-select disabled v-model="dataList.grade" placeholder class="typeselect" @change="selectpackingMethod"
  354. filterable clearable>
  355. <el-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
  356. :value="item.constValue" />
  357. </el-select>
  358. </el-form-item>
  359. <!--容重(克/升)>=-->
  360. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
  361. <el-input disabled v-model="dataList.bulkDensity" placeholder="请输入容重" maxlength="120" size="small"
  362. class="huom" />
  363. </el-form-item>
  364. <!--水分(%)<=-->
  365. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
  366. <el-input disabled v-model="dataList.waterContent" placeholder="请输入水分占比" maxlength="120" size="small"
  367. class="huom" />
  368. </el-form-item>
  369. <!--单价(元/吨)-->
  370. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
  371. <el-input disabled v-model="dataList.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
  372. class="huom" />
  373. </el-form-item>
  374. <!--预计出库日期-->
  375. <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
  376. <el-date-picker v-model="dataList.predictDate" type="date" placeholder="请选择预计出库日期"
  377. value-format="yyyy-MM-dd" />
  378. </el-form-item>
  379. <!--预估运费(元/吨)-->
  380. <!-- <el-form-item label="预估运费(元/吨)" span="1">
  381. <el-input
  382. v-model="dataList.estimatedFreight"
  383. placeholder="请输入预估运费"
  384. maxlength="20"
  385. size="small"
  386. />
  387. </el-form-item> -->
  388. <!--发货人-->
  389. <el-form-item label="发货人">
  390. <el-select v-model="dataList.agent" placeholder="请选择发货人" @change="selectstaff" filterable clearable>
  391. <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
  392. </el-select>
  393. </el-form-item>
  394. <!--业务描述=-->
  395. <el-form-item label="业务描述">
  396. <el-input v-model="dataList.businessDescribe" placeholder="请输入业务描述,不超过150字" maxlength="150" size="large" />
  397. </el-form-item>
  398. </el-form>
  399. </div>
  400. </div>
  401. <!-- 提交 -->
  402. <div style="text-align: right; padding: 10px" class="center">
  403. <el-button class="bg-bottom" type="primary" size="small" @click="reject()">驳回</el-button>
  404. <el-button class="bg-bottom" type="primary" size="small" @click="submit()">通过</el-button>
  405. </div>
  406. <el-table class="wenzi" :data="taskhistories" style="width: 80%" height="180">
  407. <el-table-column prop="operatorMajorRoleName" label="审核人"></el-table-column>
  408. <el-table-column prop="inOutTaskNo" label="审核结果">
  409. <template scope="scope">
  410. <span v-if="scope.row.approved">通过</span>
  411. <span v-if="!scope.row.approved">驳回</span>
  412. </template>
  413. </el-table-column>
  414. <el-table-column prop="createTime" label="审核时间"></el-table-column>
  415. <el-table-column prop="auditMind" label="审核意见"></el-table-column>
  416. </el-table>
  417. <WinseaContentModal v-model="outerVisible" title="驳回原因" @on-cancel="handleClose">
  418. <el-input type="textarea" :rows="2" maxlength="30" placeholder="请输入驳回原因,1~30个字" v-model="auditMind"></el-input>
  419. <div class="dialog-footer">
  420. <el-button @click="outerVisible = false">取 消</el-button>
  421. <el-button type="primary" @click="disableReasons">确定</el-button>
  422. </div>
  423. </WinseaContentModal>
  424. </div>
  425. </template>
  426. <script>
  427. import {
  428. getwarehousename,
  429. xialaNo,
  430. outexamine,
  431. getGoodsName,
  432. warehousetask,
  433. woekflowhandle,
  434. gettaskhistories,
  435. workflowcontent
  436. } from '@/model/tasksport/index'
  437. import {
  438. pullDown,
  439. getstaff
  440. } from '@/model/warehouse/index'
  441. import Pagination from '@/components/Pagination'
  442. import WsUpload from '@/components/WsUpload'
  443. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  444. import {
  445. dayjs,
  446. EventBus
  447. } from 'base-core-lib'
  448. import {
  449. mapGetters
  450. } from 'vuex'
  451. export default {
  452. name: 'viewSpareMoney',
  453. components: {
  454. WsUpload,
  455. Pagination,
  456. },
  457. watch: {
  458. // vesselId(val) {
  459. // this.getList()
  460. // },
  461. isShow(val) {
  462. this.showType = val
  463. },
  464. },
  465. computed: {
  466. ...mapGetters(['deptBudgetList']),
  467. },
  468. data() {
  469. return {
  470. //弹出框
  471. dialogViewSpareMoney: false,
  472. dialogApproveFormVisible: false,
  473. // 船舶类型
  474. monetaryKey: null,
  475. // 表格显示数据
  476. tableDate: [],
  477. // 是否显示
  478. showType: true,
  479. disabled: false,
  480. // 年
  481. year: '',
  482. disableReason: '',
  483. contractNoList: [],
  484. deptBudgetTotal: 0,
  485. readonly: true,
  486. currentPage: 1,
  487. pageSize: 10,
  488. searchType: 1,
  489. searchKeyWord: '',
  490. radio: '1',
  491. contractType: 2,
  492. startDate: null,
  493. endDate: null,
  494. taskhistories: [],
  495. goodnameList: [],
  496. checked: true,
  497. form: {},
  498. outerVisible: false,
  499. staffList: [],
  500. options: [],
  501. storageType: [],
  502. storageType1: [],
  503. outContractNo: [],
  504. // 提交类型
  505. submitType: true,
  506. status: [],
  507. auditMind: '',
  508. deletetask: false,
  509. warehouseNameList: [],
  510. warehouseNameList1: [],
  511. appendixIdsAdd: '',
  512. uploadSuccess: {},
  513. warehouseInOutDetail: {},
  514. onChange: {},
  515. deptBudgetList1: [],
  516. gradeList: [],
  517. Pricetype: true,
  518. rules: {
  519. netWeight: [{
  520. required: true,
  521. type: 'number',
  522. message: '请输入活动名称',
  523. trigger: 'blur',
  524. }, ],
  525. },
  526. size: 10,
  527. compId: localStorage.getItem('ws-pf_compId'),
  528. deptCircularPage: {},
  529. packtypeList: {},
  530. date: {
  531. year: dayjs().format('YYYY'),
  532. month: dayjs().format('MM'),
  533. },
  534. contractList: [],
  535. inOutTaskNo: '',
  536. inOutTaskNo1: '',
  537. dataList: {
  538. taskTypeKey: '1'
  539. },
  540. dataList1: {
  541. taskTypeKey: '1'
  542. },
  543. historyList: [],
  544. pickerBeginDateBefore: {
  545. disabledDate: (time) => {
  546. return time.getTime() > Date.now()
  547. },
  548. },
  549. binNumberList: [],
  550. binNumberList1: [],
  551. accessoryTFs: false,
  552. }
  553. },
  554. activated() {
  555. this.getList()
  556. },
  557. methods: {
  558. // 仓位号改变
  559. binNumberChange(e) {
  560. this.dataList1.binNumber = e
  561. },
  562. binNumberChange1(e) {
  563. this.dataList.binNumber = e
  564. },
  565. //返回按钮
  566. revert() {
  567. this.$router.go(-1)
  568. },
  569. returnsales() {
  570. this.$router.push({
  571. path: 'tranManagementWarehouseInOuttask'
  572. })
  573. },
  574. // 获取当前年月日
  575. getdate() {
  576. var date = new Date()
  577. var year = date.getFullYear() //获取完整的年份(4位)
  578. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  579. var datetime = date.getDate() //获取当前日(1-31)
  580. if (mouth < 10) {
  581. mouth = '0' + mouth
  582. }
  583. if (datetime < 10) {
  584. datetime = '0' + datetime
  585. }
  586. return year + '' + mouth + datetime
  587. },
  588. reject() {
  589. this.outerVisible = true
  590. },
  591. // 随机验证码
  592. verifyinit() {
  593. var arr = []
  594. for (var i = 48; i < 123; i++) {
  595. if (i > 57 && i < 65) continue
  596. if (i > 90) continue
  597. arr.push(String.fromCharCode(i))
  598. }
  599. arr.sort(function() {
  600. return Math.random() - 0.5
  601. })
  602. arr.length = 4
  603. return arr.join('')
  604. },
  605. MathRand() {
  606. var Num = ''
  607. for (var i = 0; i < 4; i++) {
  608. Num += Math.floor(Math.random() * 10)
  609. }
  610. return Num
  611. },
  612. selectTaskNo(e) {
  613. if (this.dataList.taskTypeKey == 3) {
  614. this.dataList1.moveTaskNo = e
  615. }
  616. },
  617. dataFilter(val) {
  618. // console.log(val,"名")
  619. this.deptBudgetList.staffList = val
  620. if (val) {
  621. //val存在
  622. this.options = this.staffList.filter((item) => {
  623. if (
  624. !!~item.staffName.indexOf(val) ||
  625. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  626. ) {
  627. return true
  628. }
  629. })
  630. } else {
  631. //val为空时,还原数组
  632. this.options = this.staffList
  633. }
  634. },
  635. weightchange(e) {
  636. if (this.dataList.taskTypeKey == 4) {
  637. this.$set(this.dataList, 'weight', e)
  638. }
  639. },
  640. bulkDensitychange(e) {
  641. if (this.dataList.taskTypeKey == 4) {
  642. this.$set(this.dataList, 'bulkDensity', e)
  643. } else if (this.dataList1.taskTypeKey == 3) {
  644. this.$set(this.dataList1, 'bulkDensity', e)
  645. }
  646. },
  647. waterContentchange(e) {
  648. if (this.dataList.taskTypeKey == 4) {
  649. this.$set(this.dataList, 'waterContent', e)
  650. } else if (this.dataList1.taskTypeKey == 3) {
  651. this.$set(this.dataList1, 'waterContent', e)
  652. }
  653. },
  654. unitPricechange(e) {
  655. if (this.dataList.taskTypeKey == 4) {
  656. this.$set(this.dataList, 'unitPrice', e)
  657. } else if (this.dataList1.taskTypeKey == 3) {
  658. this.$set(this.dataList1, 'unitPrice', e)
  659. }
  660. },
  661. changecontract(e) {
  662. if (this.dataList.taskTypeKey != 3) {
  663. for (let i = 0; i < this.contractNoList.length; i++) {
  664. if (this.contractNoList[i].contractNo == e) {
  665. getGoodsName({
  666. contractId: this.contractNoList[i].id,
  667. contractNo: this.contractNoList[i].contractNo,
  668. })
  669. .toPromise()
  670. .then((response) => {
  671. this.$set(this.dataList, 'goodsName', response.goodsName)
  672. this.$set(this.dataList, 'goodsNameKey', response.goodsNameKey)
  673. this.$set(this.dataList, 'grade', response.grade)
  674. this.$set(this.dataList, 'gradeKey', response.gradeKey)
  675. this.$set(this.dataList, 'waterContent', response.waterContent)
  676. this.$set(this.dataList, 'bulkDensity', response.bulkDensity)
  677. // this.$set(this.dataList, 'weight', response.weight)
  678. this.$set(
  679. this.dataList,
  680. 'unitPrice',
  681. response.unitContractPrice
  682. )
  683. })
  684. }
  685. }
  686. }
  687. },
  688. changecontract1(e) {
  689. if (this.dataList1.taskTypeKey != 3) {
  690. for (let i = 0; i < this.contractNoList.length; i++) {
  691. if (this.contractNoList[i].contractNo == e) {
  692. getGoodsName({
  693. contractId: this.contractNoList[i].id,
  694. contractNo: this.contractNoList[i].contractNo,
  695. })
  696. .toPromise()
  697. .then((response) => {
  698. this.$set(this.dataList1, 'goodsName', response.goodsName)
  699. this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
  700. this.$set(this.dataList1, 'grade', response.grade)
  701. this.$set(this.dataList1, 'gradeKey', response.gradeKey)
  702. this.$set(this.dataList1, 'waterContent', response.waterContent)
  703. this.$set(this.dataList1, 'bulkDensity', response.bulkDensity)
  704. this.$set(this.dataList1, 'weight', response.weight)
  705. this.$set(
  706. this.dataList1,
  707. 'unitPrice',
  708. response.unitContractPrice
  709. )
  710. })
  711. }
  712. }
  713. }
  714. },
  715. selectstaff(e) {
  716. for (var i = 0; i < this.staffList.length; i++) {
  717. if (this.staffList[i].staffName == e) {
  718. this.dataList.agentKey = this.staffList[i].staffId
  719. }
  720. }
  721. },
  722. selectstaff1(e) {
  723. for (var i = 0; i < this.staffList.length; i++) {
  724. if (this.staffList[i].staffName == e) {
  725. this.dataList1.agentKey = this.staffList[i].staffId
  726. }
  727. }
  728. },
  729. requestadd(list, status) {
  730. console.log(list)
  731. list.compId = localStorage.getItem('ws-pf_compId')
  732. // list.publisher =
  733. // localStorage.getItem('ws-pf_roleName') +
  734. // localStorage.getItem('ws-pf_staffName')
  735. warehousetask(list)
  736. .toPromise()
  737. .then((response) => {
  738. woekflowhandle({
  739. taskId: list.taskId,
  740. approved: true,
  741. auditMind: '34',
  742. needReapply: false,
  743. })
  744. .toPromise()
  745. .then((response) => {
  746. // workflowcontent({workflowId:list.workflowId,businessKey:list.id}).toPromise()
  747. // .then((response1) => {
  748. // console.log(response1)
  749. workflowcontent({
  750. workflowId: list.workflowId,
  751. businessKey: list.id,
  752. type: '出入库任务'
  753. }).toPromise()
  754. .then((response1) => {
  755. this.$message.success('审核成功')
  756. this.$router.push({
  757. path: 'tranManagementWarehouseInOuttask'
  758. })
  759. })
  760. // })
  761. })
  762. })
  763. },
  764. requestaudit(list, status) {
  765. list.compId = localStorage.getItem('ws-pf_compId')
  766. list.publisher =
  767. localStorage.getItem('ws-pf_roleName') +
  768. localStorage.getItem('ws-pf_staffName')
  769. warehousetask(list)
  770. .toPromise()
  771. .then((response) => {
  772. woekflowhandle({
  773. taskId: list.taskId,
  774. approved: false,
  775. auditMind: this.auditMind,
  776. needReapply: true,
  777. })
  778. .toPromise()
  779. .then((response) => {
  780. workflowcontent({
  781. workflowId: item.workflowId,
  782. businessKey: item.id,
  783. type: '出入库任务'
  784. }).toPromise()
  785. .then((response1) => {
  786. this.$message.success('驳回成功')
  787. this.$router.push({
  788. path: 'tranManagementWarehouseInOuttask'
  789. })
  790. })
  791. })
  792. })
  793. },
  794. //提交按钮
  795. submit() {
  796. this.dataList.inOutFlag = 1
  797. this.dataList1.inOutFlag = 2
  798. if (this.dataList.taskTypeKey == 1) {
  799. this.requestadd(this.dataList)
  800. } else if (this.dataList1.taskTypeKey == 2) {
  801. this.requestadd(this.dataList1)
  802. } else if (
  803. this.dataList.taskTypeKey == 3 ||
  804. this.dataList.taskTypeKey == 4
  805. ) {
  806. this.requestadd(this.dataList, 'repetition')
  807. if (!this.deletetask) {
  808. this.requestadd(this.dataList1, 'repetition')
  809. }
  810. }
  811. },
  812. disableReasons() {
  813. this.dataList.inOutFlag = 1
  814. this.dataList1.inOutFlag = 2
  815. if (!this.auditMind) {
  816. this.$message({
  817. message: '驳回原因不能为空!',
  818. type: 'warning',
  819. })
  820. return
  821. }
  822. if (this.dataList.taskTypeKey == 1) {
  823. this.requestaudit(this.dataList)
  824. } else if (this.dataList1.taskTypeKey == 2) {
  825. this.requestaudit(this.dataList1)
  826. } else if (
  827. this.dataList.taskTypeKey == 3 ||
  828. this.dataList.taskTypeKey == 4
  829. ) {
  830. this.requestaudit(this.dataList, 'repetition')
  831. if (!this.deletetask) {
  832. this.requestaudit(this.dataList1, 'repetition')
  833. }
  834. }
  835. },
  836. selectwarehouseName() {},
  837. tarechange(e) {
  838. if (this.dataList.grossWeight && this.dataList.tare) {
  839. this.dataList.netWeight = Number(
  840. this.dataList.grossWeight - this.dataList.tare
  841. )
  842. }
  843. },
  844. grossWeightchange(e) {
  845. if (this.dataList.grossWeight && this.dataList.tare) {
  846. this.dataList.netWeight = Number(
  847. this.dataList.grossWeight - this.dataList.tare
  848. )
  849. }
  850. },
  851. selectgoodsName(e) {
  852. for (var i = 0; i < this.goodnameList.length; i++) {
  853. if (this.goodnameList[i].constValue == e) {
  854. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  855. }
  856. }
  857. },
  858. selectgoodsName1(e) {
  859. for (var i = 0; i < this.goodnameList.length; i++) {
  860. if (this.goodnameList[i].constValue == e) {
  861. this.dataList1.goodsNameKey = this.goodnameList[i].constKey
  862. }
  863. }
  864. },
  865. selectpackingMethod(e) {
  866. for (var i = 0; i < this.gradeList.length; i++) {
  867. if (this.gradeList[i].constValue == e) {
  868. this.dataList.gradeKey = this.gradeList[i].constKey
  869. if (this.dataList.taskTypeKey == 3) {
  870. this.$set(this.dataList1, 'grade', e)
  871. this.$set(this.dataList1, 'gradeKey', this.gradeList[i].constKey)
  872. }
  873. }
  874. }
  875. },
  876. selectpackingMethod1(e) {
  877. for (var i = 0; i < this.gradeList.length; i++) {
  878. if (this.gradeList[i].constValue == e) {
  879. this.dataList1.packingMethodKey = this.gradeList[i].constKey
  880. if (this.dataList1.taskTypeKey == 4) {
  881. this.$set(this.dataList, 'grade', e)
  882. this.$set(this.dataList, 'gradeKey', this.gradeList[i].constKey)
  883. }
  884. }
  885. }
  886. },
  887. selectstorageType(e) {
  888. for (var i = 0; i < this.storageType.length; i++) {
  889. if (this.storageType[i].constValue == e) {
  890. this.dataList.inOutTypeKey = this.storageType[i].constKey
  891. }
  892. }
  893. },
  894. selectstorageType1(e) {
  895. for (var i = 0; i < this.storageType1.length; i++) {
  896. if (this.storageType1[i].constValue == e) {
  897. this.dataList1.inOutTypeKey = this.storageType1[i].constKey
  898. }
  899. }
  900. },
  901. handleClose() {
  902. this.accessoryTFs = false
  903. },
  904. handleSizeChange(val) {
  905. console.log(`每页 ${val} 条`)
  906. this.pageSize = val
  907. this.getList()
  908. },
  909. businessDescriptionchange(e) {
  910. console.log(e)
  911. },
  912. handleCurrentChange(val) {
  913. this.currentPage = val
  914. console.log(`当前页: ${val}`)
  915. this.getList()
  916. },
  917. tasknumber() {
  918. if (this.dataList.taskTypeKey == 1) {
  919. this.inOutTaskNo = 'CK' + this.getdate() + this.MathRand()
  920. } else if (this.dataList.taskTypeKey == 2) {
  921. this.inOutTaskNo1 = 'RK' + this.getdate() + this.MathRand()
  922. } else if (this.dataList.taskTypeKey == 3) {
  923. var random = this.getdate() + this.MathRand()
  924. this.inOutTaskNo = 'YKC' + random
  925. this.inOutTaskNo1 = 'YKR' + random
  926. } else if (this.dataList.taskTypeKey == 4) {
  927. var random = this.getdate() + this.MathRand()
  928. this.inOutTaskNo = 'TCC' + random
  929. this.inOutTaskNo1 = 'TCR' + random
  930. }
  931. },
  932. tasktypechange(e) {
  933. if (!this.$route.query.relevanceId) {
  934. this.tasknumber()
  935. }
  936. this.dataList1.taskTypeKey = e
  937. if (this.dataList.taskTypeKey == 1) {
  938. this.dataList.inOutType = '销售出库'
  939. this.dataList.inOutTypeKey = '1'
  940. }
  941. if (this.dataList1.taskTypeKey == 2) {
  942. this.dataList1.inOutType = '采购入库'
  943. this.dataList1.inOutTypeKey = '1'
  944. } else if (this.dataList1.taskTypeKey == 3) {
  945. this.disabled = true
  946. this.dataList1.inOutType = '移库入库'
  947. this.dataList1.inOutTypeKey = '3'
  948. this.dataList.inOutType = '移库出库'
  949. this.dataList.inOutTypeKey = '3'
  950. } else if (this.dataList1.taskTypeKey == 4) {
  951. this.disabled = true
  952. this.dataList1.inOutType = '退库'
  953. this.dataList1.inOutTypeKey = '6'
  954. this.dataList.inOutType = '销售出库'
  955. this.dataList.inOutTypeKey = '1'
  956. }
  957. },
  958. GetRandomNum(Min, Max) {
  959. var Range = Max - Min
  960. var Rand = Math.random()
  961. return Min + Math.round(Rand * Range)
  962. },
  963. getList() {
  964. gettaskhistories({
  965. businessKey: this.$route.query.businessKey,
  966. workflowId: this.$route.query.workflowId,
  967. })
  968. .toPromise()
  969. .then((response) => {
  970. this.taskhistories = response
  971. })
  972. if (this.$route.query.relevanceId) {
  973. outexamine({
  974. relevanceId: this.$route.query.relevanceId
  975. })
  976. .toPromise()
  977. .then((response) => {
  978. if (response.length > 1) {
  979. if (response[0].taskTypeKey == 3) {
  980. if (response[0].inOutType == '移库出库') {
  981. this.dataList = response[0]
  982. this.dataList1 = response[1]
  983. } else {
  984. this.dataList = response[1]
  985. this.dataList1 = response[0]
  986. }
  987. }
  988. } else {
  989. if (response[0].taskTypeKey == 3) {
  990. this.deletetask = true
  991. this.dataList1.inOutTaskNo =
  992. 'YKR' +
  993. response[0].inOutTaskNo.substr(
  994. response[0].inOutTaskNo.indexOf('C') + 1,
  995. response[0].inOutTaskNo.length
  996. )
  997. } else if (response[0].taskTypeKey == 2) {
  998. this.dataList1 = response[0]
  999. }
  1000. this.dataList = response[0]
  1001. }
  1002. })
  1003. } else {
  1004. this.tasknumber()
  1005. this.$set(this.dataList, 'inOutType', '销售出库')
  1006. this.$set(this.dataList, 'inOutTypeKey', '1')
  1007. this.$set(this.dataList, 'goodsName', '玉米')
  1008. this.$set(this.dataList, 'goodsNameKey', '1')
  1009. this.$set(this.dataList, 'grade', '一等品')
  1010. this.$set(this.dataList, 'gradeKey', '1')
  1011. this.$set(this.dataList1, 'goodsName', '玉米')
  1012. this.$set(this.dataList1, 'goodsNameKey', '1')
  1013. this.$set(this.dataList1, 'grade', '一等品')
  1014. this.$set(this.dataList1, 'gradeKey', '1')
  1015. }
  1016. // 货名
  1017. pullDown({
  1018. constId: 'CON2'
  1019. })
  1020. .toPromise()
  1021. .then((response) => {
  1022. this.goodnameList = response
  1023. })
  1024. // 品级
  1025. pullDown({
  1026. constId: 'CON3'
  1027. })
  1028. .toPromise()
  1029. .then((response) => {
  1030. this.gradeList = response
  1031. })
  1032. pullDown({
  1033. constId: 'CON6'
  1034. })
  1035. .toPromise()
  1036. .then((response) => {
  1037. this.storageType = response
  1038. })
  1039. pullDown({
  1040. constId: 'CON5'
  1041. })
  1042. .toPromise()
  1043. .then((response) => {
  1044. this.storageType1 = response
  1045. })
  1046. xialaNo({
  1047. compId: this.compId,
  1048. })
  1049. .toPromise()
  1050. .then((response) => {
  1051. this.contractNoList = response
  1052. for (let i = 0; i < this.contractNoList.length; i++) {
  1053. if (this.contractNoList[i].contractNo == this.dataList.contractNo) {
  1054. if (this.contractNoList[i].priceType == "随行就市") {
  1055. this.Pricetype = false
  1056. } else {
  1057. this.Pricetype = true
  1058. }
  1059. }
  1060. }
  1061. })
  1062. //仓库名
  1063. getwarehousename({
  1064. compId: this.compId,
  1065. warehouseType: 1,
  1066. })
  1067. .toPromise()
  1068. .then((response) => {
  1069. this.warehouseNameList = response
  1070. for (let i = 0; i < this.warehouseNameList.length; i++) {
  1071. if (
  1072. this.dataList.warehouseName ==
  1073. this.warehouseNameList[i].warehouseName
  1074. ) {
  1075. this.binNumberList1 = this.warehouseNameList[i].positionInfos
  1076. }
  1077. if (
  1078. this.dataList1.warehouseName ==
  1079. this.warehouseNameList[i].warehouseName
  1080. ) {
  1081. this.binNumberList = this.warehouseNameList[i].positionInfos
  1082. }
  1083. }
  1084. })
  1085. getwarehousename({
  1086. compId: this.compId,
  1087. warehouseType: 2,
  1088. })
  1089. .toPromise()
  1090. .then((response) => {
  1091. this.warehouseNameList1 = response
  1092. })
  1093. //经办人
  1094. getstaff({
  1095. compId: localStorage.getItem('ws-pf_compId')
  1096. })
  1097. .toPromise()
  1098. .then((response) => {
  1099. this.options = response
  1100. this.staffList = response
  1101. // this.agent = response
  1102. })
  1103. },
  1104. selecttaskType(e) {
  1105. for (var i = 0; i < this.taskTypeList.length; i++) {
  1106. if (this.taskTypeList[i].value == e) {
  1107. this.searchType = this.taskTypeList[i].type
  1108. }
  1109. }
  1110. },
  1111. fujian(row) {
  1112. if (
  1113. row.receiveAttachmentPath === null ||
  1114. row.receiveAttachmentPath === ''
  1115. ) {
  1116. EventBus.$emit(
  1117. 'warning',
  1118. this.$t('system.noticeCircular.NoInformation')
  1119. )
  1120. } else {
  1121. this.accessoryTFs = true
  1122. }
  1123. this.appendixIdss = row.receiveAttachmentPath
  1124. },
  1125. handleExamine(row) {
  1126. this.$router.push({
  1127. name: 'salesContractExamine',
  1128. query: {
  1129. id: row.id
  1130. },
  1131. })
  1132. },
  1133. // 关闭 dialog时 处理文件url 初始化upload组件
  1134. handleCloe() {
  1135. this.dialogViewSpareMoney = false
  1136. },
  1137. history(row) {
  1138. console.log(row)
  1139. billoperatehis({
  1140. id: row.id
  1141. })
  1142. .toPromise()
  1143. .then((response) => {
  1144. this.historyList = response
  1145. })
  1146. },
  1147. },
  1148. }
  1149. </script>
  1150. <style lang="scss" scoped>
  1151. /deep/.basicInformation {
  1152. .el-info-table {
  1153. border: none;
  1154. position: relative;
  1155. }
  1156. .el-form-item {
  1157. width: 33.3333%;
  1158. border: none;
  1159. margin: 0;
  1160. .el-form-item__label {
  1161. text-align: left;
  1162. font-size: 14px;
  1163. font-family: PingFangSC-Regular, PingFang SC;
  1164. font-weight: 400;
  1165. color: #8890b1;
  1166. }
  1167. .el-form-item__content {
  1168. padding-left: 0px;
  1169. padding-right: 10px;
  1170. // background: #fff;
  1171. white-space: nowrap;
  1172. height: 40px;
  1173. display: flex;
  1174. -webkit-box-align: center;
  1175. align-items: center;
  1176. text-align: left;
  1177. overflow: hidden;
  1178. }
  1179. }
  1180. }
  1181. /deep/.el-radio {
  1182. color: #606266;
  1183. font-weight: 500;
  1184. line-height: 1;
  1185. cursor: pointer;
  1186. white-space: nowrap;
  1187. outline: 0;
  1188. margin-right: 30px;
  1189. margin-top: 15px;
  1190. }
  1191. /deep/.el-radio__inner {
  1192. border: 1px solid #dcdfe6;
  1193. border-radius: 100%;
  1194. width: 14px;
  1195. height: 14px;
  1196. background-color: #fff;
  1197. cursor: pointer;
  1198. -webkit-box-sizing: border-box;
  1199. box-sizing: border-box;
  1200. margin-left: 100px;
  1201. }
  1202. /deep/.el-radio__input {
  1203. white-space: nowrap;
  1204. cursor: pointer;
  1205. outline: 0;
  1206. line-height: 1;
  1207. vertical-align: middle;
  1208. margin-top: -1px;
  1209. }
  1210. .title {
  1211. position: relative;
  1212. padding-left: 10px;
  1213. }
  1214. .title::before {
  1215. content: '';
  1216. display: inline-block;
  1217. width: 5px;
  1218. height: 30px;
  1219. background: #5473e8;
  1220. position: absolute;
  1221. left: 0;
  1222. }
  1223. .el-form {
  1224. padding: 0 15%;
  1225. display: flex;
  1226. flex-wrap: wrap;
  1227. margin-left: -50px;
  1228. margin-top: 15px;
  1229. width: 110%;
  1230. }
  1231. .el-button--primary {
  1232. background-color: #5878e8;
  1233. border-color: #5878e8;
  1234. }
  1235. .el-col {
  1236. background: #f6f7fc;
  1237. }
  1238. .bg-right {
  1239. text-align: right;
  1240. padding: 16px 20px;
  1241. }
  1242. .center {
  1243. height: 100px;
  1244. margin: 10px auto;
  1245. margin-right: 180px;
  1246. }
  1247. /deep/.el-form-item__label {
  1248. width: 160px;
  1249. }
  1250. .inspector {
  1251. width: 50%;
  1252. }
  1253. /deep/.el-form-item--small .el-form-item__label,
  1254. .el-form-item--small .el-form-item__content {
  1255. text-align: left;
  1256. }
  1257. /deep/.el-input--small {
  1258. font-size: 13px;
  1259. position: relative;
  1260. display: inline-block;
  1261. }
  1262. .center1 .small-title {
  1263. margin-left: 323px;
  1264. }
  1265. .center1 {
  1266. width: 90%;
  1267. margin: 0 auto;
  1268. margin-left: 10px;
  1269. margin-top: 25px;
  1270. }
  1271. /deep/.el-input--small .el-input__inner {
  1272. height: 32px;
  1273. line-height: 32px;
  1274. }
  1275. /deep/.el-select {
  1276. display: inline-block;
  1277. position: relative;
  1278. width: 100%;
  1279. }
  1280. .annu {
  1281. height: 81px;
  1282. background: #ffffff;
  1283. border-radius: 4px;
  1284. }
  1285. .basicInformation .el-form-item {
  1286. width: 50.3333%;
  1287. border: none;
  1288. margin: 0;
  1289. }
  1290. .huom {
  1291. width: 100%;
  1292. }
  1293. .el-form {
  1294. font-size: 14px;
  1295. font-family: PingFangSC-Regular, PingFang SC;
  1296. font-weight: 400;
  1297. color: #8890b1;
  1298. line-height: 16px;
  1299. margin-left: 130px;
  1300. }
  1301. .a {
  1302. margin-left: -32px;
  1303. }
  1304. .el-radio-group {
  1305. margin-left: 80px;
  1306. }
  1307. .ding {
  1308. height: 23px;
  1309. background: #e8ecf6;
  1310. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  1311. }
  1312. .ziti {
  1313. width: 72px;
  1314. height: 20px;
  1315. font-size: 14px;
  1316. font-family: PingFangSC-Regular, PingFang SC;
  1317. font-weight: 400;
  1318. color: #8890b1;
  1319. line-height: 20px;
  1320. margin-left: 310px;
  1321. /* margin-top: 112px; */
  1322. }
  1323. .ziti1 {
  1324. width: 100px;
  1325. font-size: 16px;
  1326. font-family: PingFangSC-Medium, PingFang SC;
  1327. font-weight: 500;
  1328. color: #262626;
  1329. line-height: 22px;
  1330. margin-left: 381px;
  1331. margin-top: -21px;
  1332. }
  1333. .winseaview-view {
  1334. padding: 0 0 20px;
  1335. }
  1336. .container {
  1337. overflow: scroll;
  1338. height: 93vh;
  1339. }
  1340. .nav {
  1341. width: 381px;
  1342. height: 20px;
  1343. }
  1344. .wenzi {
  1345. margin: 0 auto;
  1346. }
  1347. </style>