index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. <template>
  2. <div id="transferOrder">
  3. <div v-if="isList">
  4. <el-card>
  5. <el-form class="search_area" label-width="120px">
  6. <el-row :gutter="10">
  7. <el-col :span="1.5">
  8. <el-form-item label="调出库存组织">
  9. <el-select clearable size="mini" v-model="queryParams.deliveryInventoryOrg" @focus="chooseRefer('ORG_PARAM', true, '调出库存组织')" style="width: 200px">
  10. <el-option v-for="item in chuOrgOptions" :key="item.id" :label="item.name" :value="item.id" />
  11. </el-select>
  12. </el-form-item>
  13. </el-col>
  14. <el-col :span="1.5">
  15. <el-form-item label="单据日期">
  16. <el-date-picker
  17. style="width: 200px"
  18. size="mini"
  19. clearable
  20. value-format="yyyy-MM-dd"
  21. v-model="queryParams.billDate"
  22. type="date">
  23. </el-date-picker>
  24. </el-form-item>
  25. </el-col>
  26. <el-col :span="1.5">
  27. <el-form-item label="订单类型">
  28. <el-select v-model="queryParams.billType" size="mini" style="width: 200px" clearable>
  29. <el-option v-for="dict in dict.type.sys_allot_billtype" :key="dict.value" :label="dict.label" :value="dict.value">
  30. </el-option>
  31. </el-select>
  32. </el-form-item>
  33. </el-col>
  34. <el-col :span="1.5">
  35. <el-form-item label="调入库存组织">
  36. <el-select clearable size="mini" v-model="queryParams.storageInventoryOrg" @focus="chooseRefer('ORG_PARAM', true, '调入库存组织')" style="width: 200px">
  37. <el-option v-for="item in ruOrgOptions" :key="item.id" :label="item.name" :value="item.id" />
  38. </el-select>
  39. </el-form-item>
  40. </el-col>
  41. <el-col :span="1.5">
  42. <el-form-item label="单据号">
  43. <el-input
  44. v-model.trim="queryParams.code"
  45. size="mini"
  46. clearable
  47. style="width: 200px"
  48. />
  49. </el-form-item>
  50. </el-col>
  51. <el-col :span="1.5">
  52. <el-form-item label="" label-width="20px">
  53. <el-button type="primary" size="mini" icon="el-icon-search" plain @click="searchList">搜索</el-button>
  54. <el-button size="mini" icon="el-icon-refresh" plain @click="resetList">重置</el-button>
  55. </el-form-item>
  56. </el-col>
  57. </el-row>
  58. <!-- <CollapseTransition>
  59. <div v-show="expanded">
  60. <el-row :gutter="10">
  61. <el-col :span="1.5">
  62. <el-form-item label="物料编码">
  63. <el-input
  64. v-model="queryParams.code"
  65. size="mini"
  66. placeholder=""
  67. clearable
  68. style="width: 200px"
  69. />
  70. </el-form-item>
  71. </el-col>
  72. <el-col :span="1.5">
  73. <el-form-item label="调入库存组织">
  74. <el-input
  75. v-model="queryParams.storageInventoryOrg"
  76. size="mini"
  77. placeholder=""
  78. clearable
  79. style="width: 200px"
  80. />
  81. </el-form-item>
  82. </el-col>
  83. </el-row>
  84. </div>
  85. </CollapseTransition> -->
  86. </el-form>
  87. <!-- <el-divider class="lines"><i style="cursor: pointer;" :class="expanded?'el-icon-arrow-up':'el-icon-arrow-down'" @click="drop"></i></el-divider> -->
  88. <div class="btn_grooup">
  89. <el-button type="primary" size="mini" @click="addOrder">新增</el-button>
  90. </div>
  91. <el-table
  92. :data="tableList"
  93. fit
  94. show-summary
  95. highlight-current-row
  96. max-height="680"
  97. ref="multipleTable"
  98. @row-click="select"
  99. >
  100. <el-table-column show-overflow-tooltip label="调出库存" align="center" prop="deliveryInventoryOrgName" width="150px"/>
  101. <el-table-column show-overflow-tooltip label="订单类型" align="center" prop="billType" width="150px"/>
  102. <el-table-column show-overflow-tooltip label="单据号" align="center" prop="code" width="180px"/>
  103. <el-table-column show-overflow-tooltip label="单据日期" align="center" prop="billDate" width="150px"/>
  104. <el-table-column show-overflow-tooltip label="调拨方式" align="center" prop="allotType" width="150px">
  105. <template slot-scope="scope">
  106. <span>{{ scope.row.allotType == '2' ? '财务组织间调拨' : '财务组织内库存组织内调拨' }}</span>
  107. </template>
  108. </el-table-column>
  109. <el-table-column show-overflow-tooltip label="调拨出库单号" align="center" prop="deliveryCode" width="150px"/>
  110. <el-table-column show-overflow-tooltip label="调拨入库单号" align="center" prop="storageCode" width="150px"/>
  111. <el-table-column show-overflow-tooltip label="调拨入库组织" align="center" prop="storageInventoryOrgName" width="150px"/>
  112. <el-table-column show-overflow-tooltip label="调出业务员" align="center" prop="businessPersonalName" width="150px"/>
  113. <el-table-column show-overflow-tooltip label="调出部门" align="center" prop="deliveryDeptName" width="150px"/>
  114. <el-table-column show-overflow-tooltip label="币种" align="center" prop="currencyName"/>
  115. <el-table-column show-overflow-tooltip label="折本汇率" align="center" prop="rate"/>
  116. <el-table-column show-overflow-tooltip label="在途归属" align="center" prop="onRouteAffilliation" width="150px"/>
  117. <el-table-column show-overflow-tooltip label="总数量" align="center" prop="qty"/>
  118. <el-table-column show-overflow-tooltip label="结算路径" align="center" prop="accountPath" width="150px"/>
  119. <el-table-column show-overflow-tooltip label="客户" align="center" prop="customerName" width="150px"/>
  120. <el-table-column show-overflow-tooltip label="调出仓库" align="center" prop="deliveryWarehouseName" width="180px"/>
  121. <el-table-column show-overflow-tooltip label="调入仓库" align="center" prop="storageWarehouseName" width="150px"/>
  122. <el-table-column show-overflow-tooltip label="物流项目组" align="center" prop="materialProject" width="150px"/>
  123. <el-table-column show-overflow-tooltip label="利润中心" align="center" prop="liacenterName" width="150px"/>
  124. <!-- <el-table-column show-overflow-tooltip label="已同步WMS" align="center" prop="isSendWms" width="150px"/> -->
  125. <el-table-column show-overflow-tooltip label="备注" align="center" prop="remark" width="150px"/>
  126. <el-table-column show-overflow-tooltip label="单据状态" align="center" prop="status" width="150px"/>
  127. <el-table-column show-overflow-tooltip label="制单人" align="center" prop="createByName" width="150px"/>
  128. <el-table-column show-overflow-tooltip label="制单日期" align="center" prop="createTime" width="150px"/>
  129. <!-- <el-table-column show-overflow-tooltip label="审批人" align="center" prop="code" width="150px"/> -->
  130. <!-- <el-table-column show-overflow-tooltip label="审批日期" align="center" prop="code" width="150px"/> -->
  131. <el-table-column show-overflow-tooltip label="最后修改人" align="center" prop="updateByName" width="150px"/>
  132. <el-table-column show-overflow-tooltip label="最后修改时间" align="center" prop="updateTime" width="150px"/>
  133. <el-table-column
  134. fixed="right"
  135. label="操作"
  136. align="center"
  137. width="150"
  138. >
  139. <template slot-scope="scope">
  140. <el-button type="text" size="mini" @click="check(scope.row)">查看</el-button>
  141. <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="edit(scope.row)">编辑</el-button>
  142. <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="deleteids(scope.row)">删除</el-button>
  143. </template>
  144. </el-table-column>
  145. </el-table>
  146. <el-pagination
  147. background
  148. @size-change="handleSizeChange"
  149. @current-change="handleCurrentChange"
  150. :current-page="1"
  151. :page-sizes="[5, 10, 15, 20]"
  152. :page-size="100"
  153. layout="total, sizes, prev, pager, next, jumper"
  154. :total=total>
  155. </el-pagination>
  156. <el-tabs style="margin-top: 10px;">
  157. <el-tab-pane label="物料信息">
  158. <el-table
  159. :data="materialInfo"
  160. fit
  161. max-height="380"
  162. >
  163. <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowno"/>
  164. <el-table-column show-overflow-tooltip label="物料编码" align="center" prop="materialCode" width="150px"/>
  165. <el-table-column show-overflow-tooltip label="物料名称" align="center" prop="materialName" width="150px"/>
  166. <el-table-column show-overflow-tooltip label="调拨出库单号" align="center" prop="deliveryCode" width="150px"/>
  167. <el-table-column show-overflow-tooltip label="调拨入库单号" align="center" prop="storageCode" width="150px"/>
  168. <el-table-column show-overflow-tooltip label="规格" align="center" prop="specification"/>
  169. <el-table-column show-overflow-tooltip label="生产厂家/代理人" align="center" prop="manufacturer" width="150px"/>
  170. <el-table-column show-overflow-tooltip label="产地" align="center" prop="originPlace" width="150px"/>
  171. <el-table-column show-overflow-tooltip label="型号" align="center" prop="model" width="150px"/>
  172. <el-table-column show-overflow-tooltip label="单位" align="center" prop="unitName" width="150px"/>
  173. <!-- <el-table-column show-overflow-tooltip label="调出仓库" align="center" prop="deliveryWarehouseName"/> -->
  174. <el-table-column show-overflow-tooltip label="数量" align="center" prop="qty" width="150px"/>
  175. <el-table-column show-overflow-tooltip label="主单位" align="center" prop="mainUnit" width="150px"/>
  176. <el-table-column show-overflow-tooltip label="换算率" align="center" prop="equation" width="150px"/>
  177. <el-table-column show-overflow-tooltip label="主数量" align="center" prop="mainQty" width="150px"/>
  178. <el-table-column show-overflow-tooltip label="税率" align="center" prop="rate" width="150px"/>
  179. <!-- <el-table-column show-overflow-tooltip label="调入仓库" align="center" prop="storageWarehouseName"/> -->
  180. <el-table-column show-overflow-tooltip label="批次号" align="center" prop="patchNo" width="150px"/>
  181. <el-table-column show-overflow-tooltip label="产品批号" align="center" prop="producBatch" width="150px"/>
  182. <el-table-column show-overflow-tooltip label="生产日期" align="center" prop="manufactureDate" width="150px"/>
  183. <el-table-column show-overflow-tooltip label="有效期至/失效日期" align="center" prop="periodEndDate" width="150px"/>
  184. <el-table-column show-overflow-tooltip label="批准文号" align="center" prop="ratifyCode" width="150px"/>
  185. <el-table-column show-overflow-tooltip label="注册证号" align="center" prop="registration" width="150px"/>
  186. <el-table-column show-overflow-tooltip label="商品名" align="center" prop="productCode" width="150px"/>
  187. <el-table-column show-overflow-tooltip label="通用名" align="center" prop="commonCode" width="150px"/>
  188. <el-table-column show-overflow-tooltip label="剂型" align="center" prop="drug" width="150px"/>
  189. <el-table-column show-overflow-tooltip label="调入调出结算规则明细" align="center" prop="ruleDetail" width="150px"/>
  190. <el-table-column show-overflow-tooltip label="上市许可持有人" align="center" prop="marketingApprovalPersonal" width="150px"/>
  191. <el-table-column show-overflow-tooltip label="生产许可证号/经营许可证号/备案凭证号" align="center" prop="production" width="260px"/>
  192. <el-table-column show-overflow-tooltip label="pi码" align="center" prop="pi" width="150px"/>
  193. <!-- <el-table-column show-overflow-tooltip label="无税金额" align="center" prop="code"/> -->
  194. <!-- <el-table-column show-overflow-tooltip label="备注" align="center" prop="code"/> -->
  195. <el-table-column show-overflow-tooltip label="类别" align="center" prop="classify" width="150px"/>
  196. <el-table-column show-overflow-tooltip label="客户物料码" align="center" prop="customerLogistic" width="150px"/>
  197. <el-table-column show-overflow-tooltip label="客户物料名称" align="center" prop="customerLogisticName" width="150px"/>
  198. </el-table>
  199. </el-tab-pane>
  200. <el-tab-pane label="收发货信息">
  201. <el-table
  202. :data="receiveInfo"
  203. fit
  204. max-height="380"
  205. >
  206. <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowno"/>
  207. <el-table-column show-overflow-tooltip label="调拨出库单号" align="center" prop="deliveryCode" width="150px"/>
  208. <el-table-column show-overflow-tooltip label="调拨入库单号" align="center" prop="storageCode" width="150px"/>
  209. <el-table-column show-overflow-tooltip label="生产厂家/代理人" align="center" prop="manufacturer" width="150px"/>
  210. <el-table-column show-overflow-tooltip label="产地" align="center" prop="originPlace" width="150px"/>
  211. <el-table-column show-overflow-tooltip label="类别" align="center" prop="classify" width="150px"/>
  212. <el-table-column show-overflow-tooltip label="调出仓库" align="center" prop="deliveryWarehouseName" width="150px"/>
  213. <el-table-column show-overflow-tooltip label="调入仓库" align="center" prop="storageWarehouseName" width="150px"/>
  214. <!-- <el-table-column show-overflow-tooltip label="收货利润中心" align="center" prop="code"/>
  215. <el-table-column show-overflow-tooltip label="发货利润中心" align="center" prop="code"/> -->
  216. <el-table-column show-overflow-tooltip label="调入业务员" align="center" prop="businessPersonalName" width="150px"/>
  217. <el-table-column show-overflow-tooltip label="产品批号" align="center" prop="productBatch" width="150px"/>
  218. <el-table-column show-overflow-tooltip label="生产日期" align="center" prop="manufactureDate" width="150px"/>
  219. <el-table-column show-overflow-tooltip label="有效期至/失效日期" align="center" prop="periodEndDate" width="150px"/>
  220. <el-table-column show-overflow-tooltip label="批准文号" align="center" prop="ratifyCode" width="150px"/>
  221. <el-table-column show-overflow-tooltip label="注册证号" align="center" prop="registration" width="150px"/>
  222. <el-table-column show-overflow-tooltip label="商品名" align="center" prop="productCode" width="150px"/>
  223. <el-table-column show-overflow-tooltip label="通用名" align="center" prop="commonCode" width="150px"/>
  224. <el-table-column show-overflow-tooltip label="剂型" align="center" prop="drug" width="150px"/>
  225. <el-table-column show-overflow-tooltip label="收货客户" align="center" prop="customerName" width="150px"/>
  226. <el-table-column show-overflow-tooltip label="收货地址" align="center" prop="addressaddress" width="150px"/>
  227. <el-table-column show-overflow-tooltip label="收货地区" align="center" prop="area" width="150px"/>
  228. <el-table-column show-overflow-tooltip label="收货地点" align="center" prop="place" width="150px"/>
  229. <el-table-column show-overflow-tooltip label="计划发货日期" align="center" prop="deliveryDate" width="150px"/>
  230. <el-table-column show-overflow-tooltip label="计划到货日期" align="center" prop="strageDate" width="150px"/>
  231. <el-table-column show-overflow-tooltip label="运输方式" align="center" prop="transportation" width="150px"/>
  232. <el-table-column show-overflow-tooltip label="备注" align="center" prop="remark" width="150px"/>
  233. <el-table-column show-overflow-tooltip label="客户物料编码" align="center" prop="customerLogistic" width="150px"/>
  234. <el-table-column show-overflow-tooltip label="客户物料名称" align="center" prop="customerLogisticName" width="150px"/>
  235. </el-table>
  236. </el-tab-pane>
  237. <el-tab-pane label="价格费用">
  238. <el-table
  239. :data="priceList"
  240. fit
  241. max-height="380"
  242. >
  243. <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowno"/>
  244. <el-table-column show-overflow-tooltip label="调拨出库单号" align="center" prop="deliveryCode" width="150px"/>
  245. <el-table-column show-overflow-tooltip label="调拨入库单号" align="center" prop="storageCode" width="150px"/>
  246. <el-table-column show-overflow-tooltip label="生产厂家/代理人" align="center" prop="manufacturer" width="150px"/>
  247. <el-table-column show-overflow-tooltip label="产地" align="center" prop="originPlace" width="150px"/>
  248. <el-table-column show-overflow-tooltip label="类别" align="center" prop="classify" width="150px"/>
  249. <!-- <el-table-column show-overflow-tooltip label="税率" align="center" prop="code"/> -->
  250. <!-- <el-table-column show-overflow-tooltip label="无税单价" align="center" prop="code"/> -->
  251. <!-- <el-table-column show-overflow-tooltip label="含税单价" align="center" prop="code"/> -->
  252. <el-table-column show-overflow-tooltip label="产品批号" align="center" prop="productBatch" width="150px"/>
  253. <el-table-column show-overflow-tooltip label="生产日期" align="center" prop="manufactureDate" width="150px"/>
  254. <el-table-column show-overflow-tooltip label="有效期至/失效日期" align="center" prop="periodEndDate" width="150px"/>
  255. <el-table-column show-overflow-tooltip label="批准文号" align="center" prop="ratifyCode" width="150px"/>
  256. <el-table-column show-overflow-tooltip label="注册证号" align="center" prop="registration" width="150px"/>
  257. <el-table-column show-overflow-tooltip label="商品名" align="center" prop="productCode" width="150px"/>
  258. <el-table-column show-overflow-tooltip label="通用名" align="center" prop="commonCode" width="150px"/>
  259. <el-table-column show-overflow-tooltip label="剂型" align="center" prop="drug" width="150px"/>
  260. <!-- <el-table-column show-overflow-tooltip label="询价无税价" align="center" prop="code"/> -->
  261. <!-- <el-table-column show-overflow-tooltip label="询价含税价" align="center" prop="code"/> -->
  262. <!-- <el-table-column show-overflow-tooltip label="税额" align="center" prop="code"/> -->
  263. <!-- <el-table-column show-overflow-tooltip label="加价率" align="center" prop="code"/> -->
  264. <!-- <el-table-column show-overflow-tooltip label="无税金额" align="center" prop="code"/> -->
  265. <!-- <el-table-column show-overflow-tooltip label="价税合计" align="center" prop="code"/> -->
  266. <el-table-column show-overflow-tooltip label="客户物料码" align="center" prop="customerLogistic" width="150px"/>
  267. <el-table-column show-overflow-tooltip label="客户物料名称" align="center" prop="customerLogisticName" width="150px"/>
  268. </el-table>
  269. </el-tab-pane>
  270. <el-tab-pane label="执行结果">
  271. <el-table
  272. :data="resultList"
  273. fit
  274. max-height="380"
  275. >
  276. <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowno"/>
  277. <el-table-column show-overflow-tooltip label="调拨出库单号" align="center" prop="deliveryCode" width="150px"/>
  278. <el-table-column show-overflow-tooltip label="调拨入库单号" align="center" prop="storageCode" width="150px"/>
  279. <el-table-column show-overflow-tooltip label="生产厂家/代理人" align="center" prop="manufacturer" width="150px"/>
  280. <el-table-column show-overflow-tooltip label="产地" align="center" prop="originPlace" width="150px"/>
  281. <el-table-column show-overflow-tooltip label="类别" align="center" prop="classify" width="150px"/>
  282. <el-table-column show-overflow-tooltip label="产品批号" align="center" prop="productBatch" width="150px"/>
  283. <el-table-column show-overflow-tooltip label="生产日期" align="center" prop="manufactureDate" width="150px"/>
  284. <el-table-column show-overflow-tooltip label="有效期至/失效日期" align="center" prop="periodEndDate" width="150px"/>
  285. <el-table-column show-overflow-tooltip label="批准文号" align="center" prop="ratifyCode" width="150px"/>
  286. <el-table-column show-overflow-tooltip label="注册证号" align="center" prop="registration" width="150px"/>
  287. <el-table-column show-overflow-tooltip label="商品名" align="center" prop="productCode" width="150px"/>
  288. <el-table-column show-overflow-tooltip label="通用名" align="center" prop="commonCode" width="150px"/>
  289. <el-table-column show-overflow-tooltip label="剂型" align="center" prop="drug" width="150px"/>
  290. <!-- <el-table-column show-overflow-tooltip label="已调出主数量" align="center" prop="code"/>
  291. <el-table-column show-overflow-tooltip label="已调入主数量" align="center" prop="code"/> -->
  292. <!-- <el-table-column show-overflow-tooltip label="调拨在途主数量" align="center" prop="code"/> -->
  293. <!-- <el-table-column show-overflow-tooltip label="已发货主数量" align="center" prop="code"/> -->
  294. <!-- <el-table-column show-overflow-tooltip label="途损主数量" align="center" prop="code"/> -->
  295. <!-- <el-table-column show-overflow-tooltip label="累计退货主数量" align="center" prop="code"/> -->
  296. <!-- <el-table-column show-overflow-tooltip label="调出与调入已结算主数量" align="center" prop="code"/> -->
  297. <!-- <el-table-column show-overflow-tooltip label="调出与调入已结算金额" align="center" prop="code"/> -->
  298. <el-table-column show-overflow-tooltip label="客户物料码" align="center" prop="customerLogistic" width="150px"/>
  299. <el-table-column show-overflow-tooltip label="客户物料名称" align="center" prop="customerLogisticName" width="150px"/>
  300. </el-table>
  301. </el-tab-pane>
  302. </el-tabs>
  303. </el-card>
  304. </div>
  305. <Add v-model="isList" v-if="!isList" :pageStu="page" :disable="disable" :row="rowDetail" @refresh="getList"/>
  306. <Refers ref="refer" @doSubmit="selectionsToInput" :single="true"/>
  307. </div>
  308. </template>
  309. <script>
  310. import Add from './add.vue'
  311. import CollapseTransition from '@/components/MyCollapse/collapse.vue'
  312. import Refers from '@/components/Refers/refers.vue'
  313. import {getOrderList, delOrder} from '@/api/purchase/transferOrder.js'
  314. export default {
  315. name: 'transferOrder',
  316. dicts: ['sys_allot_billtype'],
  317. components: {
  318. Add,
  319. CollapseTransition,
  320. Refers
  321. },
  322. data() {
  323. return {
  324. expanded: false,
  325. // 页面配置
  326. isList: true,
  327. // 页面状态
  328. page: '',
  329. queryParams: {
  330. deliveryInventoryOrg: '',
  331. billDate: '',
  332. billType: '',
  333. storageInventoryOrg: '',
  334. code: '',
  335. pageNum: 1,
  336. pageSize: 5
  337. },
  338. referCondition: {
  339. type: '',
  340. isPage: true,
  341. title: '',
  342. },
  343. options: [{
  344. value: '1', label: '是',
  345. }, {
  346. value: '0', label: '否'
  347. }],
  348. chuOrgOptions: [],
  349. ruOrgOptions: [],
  350. tableList: [],
  351. total: 0,
  352. materialInfo: [],
  353. receiveInfo: [],
  354. priceList: [],
  355. resultList: [],
  356. rowDetail: {},
  357. disable: false,
  358. ids: []
  359. }
  360. },
  361. created() {
  362. this.getList(this.queryParams)
  363. },
  364. methods: {
  365. searchList() {
  366. this.getList(this.queryParams)
  367. },
  368. resetList() {
  369. this.queryParams = {
  370. deliveryInventoryOrg: '',
  371. billDate: '',
  372. billType: '',
  373. storageInventoryOrg: '',
  374. code: '',
  375. pageNum: 1,
  376. pageSize: 5
  377. }
  378. this.getList(this.queryParams)
  379. },
  380. getList(params){
  381. getOrderList(params).then(res => {
  382. if (res.code === 200) {
  383. this.tableList = res.rows
  384. this.total = res.total
  385. this.materialInfo = res.rows[0].stAllotMaterialList
  386. }
  387. })
  388. },
  389. addOrder() {
  390. this.isList = false
  391. this.page = 'add'
  392. this.disable = false
  393. },
  394. check(row) {
  395. this.isList = false
  396. this.page = 'check'
  397. this.rowDetail = row
  398. this.disable = true
  399. },
  400. edit(row) {
  401. this.isList = false
  402. this.page = 'edit'
  403. this.rowDetail = row
  404. this.disable = false
  405. },
  406. // 选中某行
  407. select(row) {
  408. console.log('选中', row)
  409. this.materialInfo = row.stAllotMaterialList
  410. },
  411. // 行内删除
  412. deleteids(row) {
  413. console.log('row', row)
  414. this.$modal.confirm('确认信息').then(() => {
  415. delOrder(row.id).then(res => {
  416. if (res.code === 200) {
  417. this.$modal.msgSuccess("删除成功");
  418. this.getList(this.queryParams)
  419. }
  420. })
  421. }).catch(() => {})
  422. },
  423. handleSizeChange(val) {
  424. console.log(`每页 ${val} 条`);
  425. this.queryParams.pageSize = val
  426. this.getList(this.queryParams)
  427. },
  428. handleCurrentChange(val) {
  429. console.log(`当前页: ${val}`);
  430. this.queryParams.pageNum = val
  431. this.getList(this.queryParams)
  432. },
  433. drop() {
  434. this.expanded = !this.expanded
  435. },
  436. chooseRefer(type, isPage, title) {
  437. this.referCondition.type = type
  438. this.referCondition.isPage = isPage
  439. this.referCondition.title = title
  440. this.$refs.refer.init(this.referCondition)
  441. },
  442. selectionsToInput(selection) {
  443. if (this.referCondition.title == '调出库存组织') {
  444. this.chuOrgOptions = selection
  445. this.queryParams.deliveryInventoryOrg = selection[0].id
  446. }
  447. if (this.referCondition.title == '调入库存组织') {
  448. this.ruOrgOptions = selection
  449. this.queryParams.storageInventoryOrg = selection[0].id
  450. }
  451. },
  452. }
  453. }
  454. </script>
  455. <style lang="scss" scoped>
  456. #transferOrder {
  457. height: calc(100vh - 84px);
  458. padding: 12px;
  459. box-sizing: border-box;
  460. overflow-y: scroll;
  461. }
  462. .btn_grooup {
  463. margin-bottom: 10px;
  464. display: flex;
  465. justify-content: flex-end;
  466. }
  467. .lines {
  468. margin-top: 0;
  469. }
  470. .el-pagination {
  471. margin-top: 10px;
  472. text-align: right;
  473. }
  474. </style>