displace_form.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <div class="detail-container">
  3. <el-page-header @back="goBack" :content="listItem ? '编辑':'新增'"></el-page-header>
  4. <div class="main-title">
  5. <div class="title">置换订单信息</div>
  6. </div>
  7. <el-form ref="mainForm" :model="mainForm" label-width="100px" size="small" label-position="left">
  8. <el-row :gutter="20">
  9. <el-col :xs="24" :sm="12" :lg="8">
  10. <el-form-item label="订单号" prop="warehouse">
  11. <el-input v-model="mainForm.remark" placeholder="请输入订单号"></el-input>
  12. </el-form-item>
  13. </el-col>
  14. <el-col :xs="24" :sm="12" :lg="8" style="height: 51px;">
  15. <el-form-item label="单据日期" prop="date">
  16. <el-date-picker
  17. v-model="mainForm.date"
  18. type="date"
  19. value-format="yyyy-MM-dd"
  20. style="width: 100%;"
  21. placeholder="选择日期">
  22. </el-date-picker>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :xs="24" :sm="12" :lg="8">
  26. <el-form-item label="品类" prop="warehouse">
  27. <el-input v-model="mainForm.remark" placeholder="请输入品类"></el-input>
  28. </el-form-item>
  29. </el-col>
  30. <el-col :xs="24" :sm="12" :lg="8">
  31. <el-form-item label="销售政策编号" prop="warehouse">
  32. <el-input v-model="mainForm.remark" placeholder="请输入销售政策编号"></el-input>
  33. </el-form-item>
  34. </el-col>
  35. <el-col :xs="24" :sm="12" :lg="8">
  36. <el-form-item label="销售政策" prop="warehouse">
  37. <el-input v-model="mainForm.remark" placeholder="请输入销售政策"></el-input>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :xs="24" :sm="12" :lg="8">
  41. <el-form-item label="销售政策说明" prop="warehouse">
  42. <el-input v-model="mainForm.remark" placeholder="请输入销售政策说明"></el-input>
  43. </el-form-item>
  44. </el-col>
  45. <el-col :xs="24" :sm="12" :lg="8">
  46. <el-form-item label="工程登录编码" prop="warehouse">
  47. <el-input v-model="mainForm.remark" placeholder="请输入工程登录编码"></el-input>
  48. </el-form-item>
  49. </el-col>
  50. <el-col :xs="24" :sm="12" :lg="8">
  51. <el-form-item label="附件" prop="warehouse">
  52. <el-input v-model="mainForm.remark" placeholder="请输入附件"></el-input>
  53. </el-form-item>
  54. </el-col>
  55. <el-col :xs="24" :sm="12" :lg="8">
  56. <el-form-item label="业务员" prop="warehouse">
  57. <el-input v-model="mainForm.remark" placeholder="请输入业务员"></el-input>
  58. </el-form-item>
  59. </el-col>
  60. <el-col :xs="24" :sm="24" :lg="24">
  61. <el-form-item label="备注" prop="warehouse">
  62. <el-input v-model="mainForm.remark" placeholder="请输入备注"></el-input>
  63. </el-form-item>
  64. </el-col>
  65. </el-row>
  66. </el-form>
  67. <div class="main-title">
  68. <div class="title">货品信息</div>
  69. <div>
  70. <el-button type="primary" size="small">检查库存</el-button>
  71. </div>
  72. </div>
  73. <div class="table" style="margin-top: 20px">
  74. <el-table :data="detailData.kingDeeTransferItems" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  75. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  76. <el-table-column align="center" label="销售类型" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
  77. <el-table-column align="center" label="产品编码" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  78. <el-table-column align="center" label="产品名称" prop="model" min-width="160" show-overflow-tooltip></el-table-column>
  79. <el-table-column align="center" label="规格型号" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
  80. <el-table-column align="center" label="单位" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  81. <el-table-column align="center" label="单价" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  82. <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  83. <el-table-column align="center" label="订单金额" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  84. <el-table-column align="center" label="返利使用比例" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  85. <el-table-column align="center" label="返利金额" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  86. <el-table-column align="center" label="格力折扣" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  87. <el-table-column align="center" label="现金钱包" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  88. <el-table-column align="center" label="实付金额" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  89. <el-table-column align="center" label="原订单数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  90. <el-table-column align="center" label="备注" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
  91. <el-table-column align="center" label="总仓库" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  92. <el-table-column align="center" label="仓库状态" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  93. </el-table>
  94. </div>
  95. <div class="page-footer">
  96. <div class="footer" :class="classObj">
  97. <el-button type="primary" @click="clickSubmitForm">保 存</el-button>
  98. <el-button type="primary" @click="clickSubmitForm">提交审核</el-button>
  99. <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
  100. <el-button slot="reference">关 闭</el-button>
  101. </el-popconfirm>
  102. </div>
  103. </div>
  104. </div>
  105. </template>
  106. <script>
  107. import { getDetail } from "@/api/supply/displace";
  108. export default {
  109. name: 'DisplaceForm',
  110. componentName: 'DisplaceForm',
  111. props: ['listItem'],
  112. data() {
  113. return {
  114. detailData: {},
  115. mainForm: {
  116. },
  117. }
  118. },
  119. computed: {
  120. sidebar() {
  121. return this.$store.state.app.sidebar
  122. },
  123. classObj() {
  124. return {
  125. hideSidebar: !this.sidebar.opened,
  126. openSidebar: this.sidebar.opened
  127. }
  128. },
  129. },
  130. created() {
  131. this.getDetail();
  132. },
  133. methods: {
  134. // 返回列表
  135. goBack() {
  136. this.$emit('backListFormDetail');
  137. },
  138. // 获取详情
  139. getDetail() {
  140. getDetail({id: this.listItem.id}).then(res => {
  141. this.detailData = res.data;
  142. })
  143. },
  144. clickSubmitForm() {
  145. },
  146. }
  147. }
  148. </script>
  149. <style scoped lang="scss">
  150. .detail-container {
  151. width: 100%;
  152. height: 100%;
  153. }
  154. .main-title {
  155. display: flex;
  156. justify-content: space-between;
  157. align-items: center;
  158. margin-top: 20px;
  159. height: 60px;
  160. border-bottom: 1px solid #DCDFE6;
  161. margin-bottom: 20px;
  162. .title {
  163. font-size: 16px;
  164. font-weight: 600;
  165. padding-left: 10px;
  166. }
  167. }
  168. </style>