tranManagementWarehouseInOutTaskAudit.vue 53 KB

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