index.vue 27 KB

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