tranManagementWarehouseInOutTaskAudit.vue 53 KB

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