retail_detail.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. <template>
  2. <div class="detail-container">
  3. <el-page-header @back="goBack" content="详情"></el-page-header>
  4. <div class="main-title">
  5. <div class="title">提货进度</div>
  6. </div>
  7. <div class="progress-container">
  8. <el-progress :text-inside="true" :stroke-width="26" :percentage="detailData.thjd ? (detailData.thjd * 1000 / 10) : 0"></el-progress>
  9. </div>
  10. <div class="main-title">
  11. <div class="title">订单信息</div>
  12. </div>
  13. <div class="diy-table-1">
  14. <el-row>
  15. <el-col :span="8" class="item">
  16. <div class="label">订单号</div>
  17. <div class="value">{{detailData.id}}</div>
  18. </el-col>
  19. <el-col :span="8" class="item">
  20. <div class="label">订单日期</div>
  21. <div class="value">{{detailData.theTime | dateToDayFilter}}</div>
  22. </el-col>
  23. <el-col :span="8" class="item">
  24. <div class="label">单据状态</div>
  25. <div class="value">{{detailData.examineStatus | statusFilter}}</div>
  26. </el-col>
  27. <el-col :span="16" class="item">
  28. <div class="label">备注</div>
  29. <div class="value">{{detailData.remark}}</div>
  30. </el-col>
  31. <el-col :span="8" class="item">
  32. <div class="label">业务员</div>
  33. <div class="value">{{detailData.serviceName}}</div>
  34. </el-col>
  35. <el-col :span="8" class="item">
  36. <div class="label">制单人</div>
  37. <div class="value">{{detailData.createName}}</div>
  38. </el-col>
  39. <el-col :span="8" class="item">
  40. <div class="label">制单日期</div>
  41. <div class="value">{{detailData.createTime}}</div>
  42. </el-col>
  43. <el-col :span="8" class="item">
  44. <div class="label">审核人</div>
  45. <div class="value">{{detailData.examineName}}</div>
  46. </el-col>
  47. <el-col :span="8" class="item">
  48. <div class="label">审核日期</div>
  49. <div class="value">{{detailData.examineTime}}</div>
  50. </el-col>
  51. <el-col :span="8" class="item">
  52. <div class="label">关闭人</div>
  53. <div class="value">{{detailData.closeName}}</div>
  54. </el-col>
  55. <el-col :span="8" class="item">
  56. <div class="label">关闭日期</div>
  57. <div class="value">{{detailData.closeTime}}</div>
  58. </el-col>
  59. </el-row>
  60. </div>
  61. <div class="main-title">
  62. <div class="title">货品信息</div>
  63. </div>
  64. <div class="table" style="margin-top: 20px">
  65. <el-table
  66. :data="detailData.retailOrderItemList"
  67. element-loading-text="Loading"
  68. border
  69. fit
  70. highlight-current-row
  71. stripe
  72. max-height="400"
  73. show-summary
  74. :summary-method="$getSummaries">
  75. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  76. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
  77. <el-table-column align="center" label="产品编码" prop="materialCode" min-width="160" show-overflow-tooltip></el-table-column>
  78. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  79. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  80. <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  81. <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
  82. <template slot-scope="scope">
  83. {{ scope.row.price | numToFixed }}
  84. </template>
  85. </el-table-column>
  86. <el-table-column align="right" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  87. <el-table-column align="right" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip>
  88. <template slot-scope="scope">
  89. {{ scope.row.totalAmount | numToFixed }}
  90. </template>
  91. </el-table-column>
  92. <el-table-column align="center" label="返利类型" prop="customerWalletName2" min-width="140" show-overflow-tooltip></el-table-column>
  93. <el-table-column align="right" label="返利金额" prop="payRebateAmount" min-width="100" show-overflow-tooltip>
  94. <template slot-scope="scope">
  95. {{ scope.row.payRebateAmount | numToFixed }}
  96. </template>
  97. </el-table-column>
  98. <el-table-column align="right" label="格力折扣" prop="totalDiscAmount" min-width="100" show-overflow-tooltip>
  99. <template slot-scope="scope">
  100. {{ scope.row.totalDiscAmount | numToFixed }}
  101. </template>
  102. </el-table-column>
  103. <el-table-column align="center" label="现金钱包" prop="customerWalletName" min-width="140" show-overflow-tooltip></el-table-column>
  104. <el-table-column align="right" label="实付金额" prop="payAmount" min-width="100" show-overflow-tooltip>
  105. <template slot-scope="scope">
  106. {{ scope.row.payAmount | numToFixed }}
  107. </template>
  108. </el-table-column>
  109. <el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
  110. <template slot-scope="scope">
  111. {{scope.row.isDirectTransfer ? '是':'否'}}
  112. </template>
  113. </el-table-column>
  114. <el-table-column align="right" label="直调数量" prop="directTransferQty" min-width="100" show-overflow-tooltip></el-table-column>
  115. <el-table-column align="right" label="原订单数量" prop="oldQty" min-width="100" show-overflow-tooltip></el-table-column>
  116. <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
  117. <el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
  118. </el-table>
  119. </div>
  120. <div v-if="isExamine">
  121. <div class="main-title">
  122. <div class="title">审批记录</div>
  123. </div>
  124. <div class="diy-table-1">
  125. <el-row :gutter="0">
  126. <el-col :span="12" class="item">
  127. <div class="label">审批人</div>
  128. <div class="value">{{detailData.examineName}}</div>
  129. </el-col>
  130. <el-col :span="12" class="item">
  131. <div class="label">审批结果</div>
  132. <div class="value">{{detailData.examineStatus | statusFilter}}</div>
  133. </el-col>
  134. <el-col :span="24" class="item">
  135. <div class="label">审批说明</div>
  136. <div class="value">{{detailData.examineRemark}}</div>
  137. </el-col>
  138. </el-row>
  139. </div>
  140. </div>
  141. <div class="page-footer">
  142. <div class="footer" :class="classObj">
  143. <el-button type="primary" @click="openDirectDialog" :disabled="detailData.examineStatus !== 'OK'">提前开票</el-button>
  144. <el-button type="primary" @click="openDeliverDialog" :disabled="detailData.examineStatus !== 'OK' || detailData.directTransferStatus === true">直调发货</el-button>
  145. <el-button type="primary" @click="handleFinish" :disabled="detailData.examineStatus !== 'OK'">直调完成</el-button>
  146. <el-button @click="goBack">关 闭</el-button>
  147. </div>
  148. </div>
  149. <el-dialog title="直调发货" :visible.sync="isShowDeliverDialog" width="80%">
  150. <el-form ref="deliverForm" :model="deliverForm" :rules="deliverFormRules" label-width="80px" size="small" label-position="left">
  151. <el-row :gutter="20">
  152. <el-col :xs="8" :sm="8" :lg="8" style="height: 51px;">
  153. <el-form-item label="发货日期" prop="date">
  154. <el-date-picker
  155. v-model="deliverForm.date"
  156. type="date"
  157. value-format="yyyy-MM-dd"
  158. style="width: 100%;"
  159. placeholder="选择日期">
  160. </el-date-picker>
  161. </el-form-item>
  162. </el-col>
  163. <el-col :xs="8" :sm="8" :lg="8">
  164. <el-form-item label="选择仓位" prop="position">
  165. <el-select v-model="deliverForm.position" placeholder="请选择仓位" style="width: 100%" filterable>
  166. <el-option v-for="item in positionList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  167. </el-select>
  168. </el-form-item>
  169. </el-col>
  170. </el-row>
  171. </el-form>
  172. <div class="table" style="margin-top: 20px">
  173. <el-table :data="goodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  174. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  175. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
  176. <el-table-column align="center" label="产品编码" prop="materialCode" min-width="160" show-overflow-tooltip></el-table-column>
  177. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  178. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  179. <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  180. <el-table-column align="right" label="订单数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  181. <el-table-column align="right" label="发货数量" prop="hasSendQty" min-width="100" show-overflow-tooltip></el-table-column>
  182. <el-table-column align="right" label="直调数量" prop="adjustNum" min-width="100" show-overflow-tooltip>
  183. <template slot-scope="scope">
  184. <el-input v-model="scope.row.adjustNum" size="small" type="number" :disabled="!scope.row.isDirectTransfer"></el-input>
  185. </template>
  186. </el-table-column>
  187. <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
  188. <template slot-scope="scope">
  189. {{ scope.row.price | numToFixed }}
  190. </template>
  191. </el-table-column>
  192. <el-table-column align="right" label="金额" prop="totalAmount" min-width="100" show-overflow-tooltip>
  193. <template slot-scope="scope">
  194. {{ scope.row.totalAmount | numToFixed }}
  195. </template>
  196. </el-table-column>
  197. <el-table-column align="right" label="返利" prop="payRebateAmount" min-width="100" show-overflow-tooltip>
  198. <template slot-scope="scope">
  199. {{ scope.row.payRebateAmount | numToFixed }}
  200. </template>
  201. </el-table-column>
  202. <el-table-column align="right" label="实付金额" prop="payAmount" min-width="100" show-overflow-tooltip>
  203. <template slot-scope="scope">
  204. {{ scope.row.payAmount | numToFixed }}
  205. </template>
  206. </el-table-column>
  207. <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
  208. </el-table>
  209. </div>
  210. <span slot="footer" class="dialog-footer">
  211. <el-button @click="closeDeliverDialog">取 消</el-button>
  212. <el-button type="primary" @click="submitDeliverForm">确 定</el-button>
  213. </span>
  214. </el-dialog>
  215. <el-dialog title="直接调拨单(提前开票)" :visible.sync="isShowDirectDialog" width="80%">
  216. <el-form ref="directForm" :model="directForm" :rules="directFormRules" label-width="80px" size="small" label-position="left">
  217. <el-row :gutter="20">
  218. <el-col :xs="12" :sm="6" :lg="6">
  219. <el-form-item label="调出仓库" prop="warehouse1">
  220. <el-select v-model="directForm.warehouse1" placeholder="请选择调出仓库" style="width: 100%" filterable @change="changeWarehouse1">
  221. <el-option v-for="item in warehouseList1" :key="item.id" :label="item.name" :value="item.id"></el-option>
  222. </el-select>
  223. </el-form-item>
  224. </el-col>
  225. <el-col :xs="12" :sm="6" :lg="6">
  226. <el-form-item label="调出仓位" prop="position1">
  227. <el-select v-model="directForm.position1" placeholder="请调出仓位" style="width: 100%" filterable @change="changePosition1">
  228. <el-option v-for="item in positionList1" :key="item.id" :label="item.name" :value="item.id"></el-option>
  229. </el-select>
  230. </el-form-item>
  231. </el-col>
  232. <el-col :xs="12" :sm="6" :lg="6">
  233. <el-form-item label="调入仓库" prop="warehouse2">
  234. <el-select v-model="directForm.warehouse2" placeholder="请选择调入仓库" style="width: 100%" filterable @change="changeWarehouse2">
  235. <el-option v-for="item in warehouseList2" :key="item.id" :label="item.name" :value="item.id"></el-option>
  236. </el-select>
  237. </el-form-item>
  238. </el-col>
  239. <el-col :xs="12" :sm="6" :lg="6">
  240. <el-form-item label="调入仓位" prop="position2">
  241. <el-select v-model="directForm.position2" placeholder="请调入仓位" style="width: 100%" filterable @change="changePosition2">
  242. <el-option v-for="item in positionList2" :key="item.id" :label="item.name" :value="item.id"></el-option>
  243. </el-select>
  244. </el-form-item>
  245. </el-col>
  246. </el-row>
  247. </el-form>
  248. <div class="table" style="margin-top: 20px">
  249. <el-table :data="directGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  250. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  251. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
  252. <el-table-column align="center" label="产品编码" prop="materialCode" min-width="160" show-overflow-tooltip></el-table-column>
  253. <el-table-column align="center" label="物料代码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
  254. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  255. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  256. <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  257. <el-table-column align="center" label="数量" prop="refundableQty" min-width="100" show-overflow-tooltip></el-table-column>
  258. <el-table-column align="center" label="调出仓库" prop="warehouse1" min-width="100" show-overflow-tooltip></el-table-column>
  259. <el-table-column align="center" label="调出仓位" prop="position1" min-width="100" show-overflow-tooltip></el-table-column>
  260. <el-table-column align="center" label="调入仓库" prop="warehouse2" min-width="100" show-overflow-tooltip></el-table-column>
  261. <el-table-column align="center" label="调入仓位" prop="position2" min-width="100" show-overflow-tooltip></el-table-column>
  262. <el-table-column align="center" label="调出库存状态" prop="status1" min-width="110" show-overflow-tooltip></el-table-column>
  263. <el-table-column align="center" label="调入库存状态" prop="status2" min-width="110" show-overflow-tooltip></el-table-column>
  264. <el-table-column align="center" label="调出货主" min-width="100" show-overflow-tooltip>
  265. <template slot-scope="">弘格</template>
  266. </el-table-column>
  267. <el-table-column align="center" label="调入货主" min-width="100" show-overflow-tooltip>
  268. <template slot-="scope">弘格</template>
  269. </el-table-column>
  270. <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
  271. </el-table>
  272. </div>
  273. <span slot="footer" class="dialog-footer">
  274. <el-button @click="closeDirectDialog">取 消</el-button>
  275. <el-button type="primary" @click="submitDirectForm">确 定</el-button>
  276. </span>
  277. </el-dialog>
  278. </div>
  279. </template>
  280. <script>
  281. import { getDetail, getWarehouseList, adjustDeliver, finishData, directOrder, getPositionList } from "@/api/supply/retail";
  282. export default {
  283. name: 'RetailDetail',
  284. componentName: 'RetailDetail',
  285. props: ['listItem'],
  286. filters: {
  287. statusFilter(val) {
  288. const statusList = [
  289. { label: '已保存', value: 'SAVE' },
  290. { label: '待审核', value: 'WAIT' },
  291. { label: '审核通过', value: 'OK' },
  292. { label: '审核驳回', value: 'FAIL' },
  293. ];
  294. let obj = statusList.find(o => o.value == val);
  295. return obj ? obj.label : ''
  296. }
  297. },
  298. data() {
  299. return {
  300. detailData: {},
  301. isShowDeliverDialog: false,
  302. deliverForm: {
  303. date: '',
  304. position: '',
  305. },
  306. deliverFormRules: {
  307. date: [
  308. { required: true, message: '请选择发货日期', trigger: 'change' }
  309. ],
  310. position: [
  311. { required: true, message: '请选择虚拟仓位', trigger: 'change' }
  312. ],
  313. },
  314. positionList: [],
  315. goodsList: [],
  316. isShowDirectDialog: false,
  317. directForm: {
  318. warehouse1: '',
  319. position1: '',
  320. warehouse2: '',
  321. position2: '',
  322. },
  323. directFormRules: {
  324. warehouse1: [
  325. { required: true, message: '请选择调出仓库', trigger: 'change' }
  326. ],
  327. position1: [
  328. { required: true, message: '请选择调出仓位', trigger: 'change' }
  329. ],
  330. warehouse2: [
  331. { required: true, message: '请选择调入仓库', trigger: 'change' }
  332. ],
  333. position2: [
  334. { required: true, message: '请选择调入仓位', trigger: 'change' }
  335. ],
  336. },
  337. warehouseList1: [],
  338. warehouseList2: [],
  339. positionList1: [],
  340. positionList2: [],
  341. directGoodsList: [],
  342. }
  343. },
  344. computed: {
  345. sidebar() {
  346. return this.$store.state.app.sidebar
  347. },
  348. classObj() {
  349. return {
  350. hideSidebar: !this.sidebar.opened,
  351. openSidebar: this.sidebar.opened
  352. }
  353. },
  354. isExamine() {
  355. return this.detailData.examineStatus === 'OK' || this.detailData.examineStatus === 'FAIL'
  356. },
  357. },
  358. created() {
  359. this.getDetail();
  360. },
  361. methods: {
  362. // 返回列表
  363. goBack() {
  364. this.$emit('backListFormDetail');
  365. },
  366. // 获取详情
  367. getDetail() {
  368. getDetail({id: this.listItem.id}).then(res => {
  369. if(res.data.retailOrderItemList) {
  370. res.data.retailOrderItemList.forEach(item => {
  371. item.sums1 = ['directTransferQty', 'qty', 'refundableQty', 'oldQty'];
  372. item.sums2 = ['totalAmount', 'payAmount', 'price', 'payRebateAmount', 'discAmount', 'totalDiscAmount'];
  373. })
  374. }
  375. this.detailData = res.data;
  376. })
  377. },
  378. // 获取仓库列表
  379. getWarehouseList() {
  380. getWarehouseList({
  381. pageNum: 1,
  382. pageSize: -1,
  383. }).then(res => {
  384. this.warehouseList1 = res.data.records;
  385. this.warehouseList2 = res.data.records;
  386. })
  387. },
  388. // 获取虚拟仓位列表
  389. getPositionList() {
  390. getPositionList({
  391. pageNum: 1,
  392. pageSize: -1,
  393. stockType: 1
  394. }).then(res => {
  395. this.positionList = res.data.records;
  396. })
  397. },
  398. // 打开 直调发货
  399. openDeliverDialog() {
  400. this.isShowDeliverDialog = true;
  401. this.goodsList = this.detailData.retailOrderItemList;
  402. this.getPositionList();
  403. },
  404. // 关闭 直调发货
  405. closeDeliverDialog() {
  406. this.isShowDeliverDialog = false;
  407. },
  408. // 提交 直调发货
  409. submitDeliverForm() {
  410. this.$refs.deliverForm.validate((valid) => {
  411. if (valid) {
  412. for(let i=0; i<this.goodsList.length; i++) {
  413. if(!this.goodsList[i].adjustNum && this.goodsList[i].isDirectTransfer) {
  414. this.$errorMsg('请输入直调数量');
  415. return;
  416. }
  417. }
  418. let goodsList = this.goodsList.map((item) => {
  419. return {
  420. itemId: item.id,
  421. qty: item.adjustNum || 0,
  422. }
  423. });
  424. let params = {
  425. orderNo: this.listItem.id,
  426. orderDate: this.deliverForm.date + ' 00:00:00',
  427. stockId: this.deliverForm.position,
  428. directItems: goodsList
  429. }
  430. adjustDeliver(params).then(res => {
  431. this.$successMsg();
  432. this.isShowDeliverDialog = false;
  433. this.getDetail();
  434. })
  435. }
  436. })
  437. },
  438. // 直调完成
  439. handleFinish() {
  440. this.$confirm('此操作将直调完成, 是否继续?', '提示', {
  441. confirmButtonText: '确定',
  442. cancelButtonText: '取消',
  443. type: 'warning'
  444. }).then(() => {
  445. finishData({
  446. id: this.listItem.id
  447. }).then(res => {
  448. this.$successMsg();
  449. this.getDetail();
  450. })
  451. }).catch(() => {});
  452. },
  453. // 更改调出仓库
  454. changeWarehouse1() {
  455. this.directForm.position1 = '';
  456. let obj = this.warehouseList1.find(o => o.id == this.directForm.warehouse1);
  457. this.positionList1 = obj.kingDeeStocks;
  458. this.directGoodsList.forEach(item => {
  459. item.warehouse1 = obj.name;
  460. });
  461. },
  462. // 更改调入仓库
  463. changeWarehouse2() {
  464. this.directForm.position2 = '';
  465. let obj = this.warehouseList2.find(o => o.id == this.directForm.warehouse2);
  466. this.positionList2 = obj.kingDeeStocks;
  467. this.directGoodsList.forEach(item => {
  468. item.warehouse2 = obj.name;
  469. });
  470. },
  471. // 更改调出仓位
  472. changePosition1() {
  473. let obj = this.positionList1.find(o => o.id == this.directForm.position1);
  474. this.directGoodsList.forEach(item => {
  475. item.position1 = obj.name;
  476. item.status1 = obj.defStockStatusName;
  477. });
  478. },
  479. // 更改调入仓位
  480. changePosition2() {
  481. let obj = this.positionList2.find(o => o.id == this.directForm.position2);
  482. this.directGoodsList.forEach(item => {
  483. item.position2 = obj.name;
  484. item.status2 = obj.defStockStatusName;
  485. });
  486. },
  487. // 打开 提前开票
  488. openDirectDialog() {
  489. this.isShowDirectDialog = true;
  490. this.directGoodsList = this.detailData.retailOrderItemList;
  491. this.getWarehouseList();
  492. },
  493. // 关闭 提前开票
  494. closeDirectDialog() {
  495. this.isShowDirectDialog = false;
  496. },
  497. // 提交 提前开票
  498. submitDirectForm() {
  499. this.$refs.directForm.validate((valid) => {
  500. if (valid) {
  501. let warehouseItem1 = this.warehouseList1.find(o => o.id == this.directForm.warehouse1);
  502. let positionItem1 = this.positionList1.find(o => o.id == this.directForm.position1);
  503. let warehouseItem2 = this.warehouseList2.find(o => o.id == this.directForm.warehouse2);
  504. let positionItem2 = this.positionList2.find(o => o.id == this.directForm.position2);
  505. let params = {
  506. orderNo: this.detailData.id,
  507. orderType: 'RETAIL', // TRADE=商用 HOME=家用 RETAIL=零售单 RETAIL_POLICY 销售政策单
  508. correspondId: this.directForm.warehouse1,
  509. correspondName: warehouseItem1.name,
  510. stockId: this.directForm.position1,
  511. stockName: positionItem1.name,
  512. inCorrespondId: this.directForm.warehouse2,
  513. inCorrespondName: warehouseItem2.name,
  514. inStockId: this.directForm.position2,
  515. inStockName: positionItem2.name,
  516. }
  517. directOrder(params).then(res => {
  518. this.$successMsg();
  519. this.isShowDirectDialog = false;
  520. this.getDetail();
  521. })
  522. }
  523. })
  524. },
  525. }
  526. }
  527. </script>
  528. <style scoped lang="scss">
  529. .detail-container {
  530. width: 100%;
  531. height: 100%;
  532. }
  533. .main-title {
  534. display: flex;
  535. justify-content: space-between;
  536. align-items: center;
  537. margin-top: 20px;
  538. height: 60px;
  539. border-bottom: 1px solid #DCDFE6;
  540. margin-bottom: 20px;
  541. .title {
  542. font-size: 16px;
  543. font-weight: 600;
  544. padding-left: 10px;
  545. }
  546. }
  547. .progress-container {
  548. display: flex;
  549. .el-progress {
  550. width: 500px;
  551. }
  552. }
  553. </style>