sales_examine.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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="diy-table-1">
  8. <el-row :gutter="0">
  9. <el-col :span="8" class="item">
  10. <div class="label">出库单号</div>
  11. <div class="value">2022123233435342</div>
  12. </el-col>
  13. <el-col :span="8" class="item">
  14. <div class="label">单据日期</div>
  15. <div class="value">2022123233435342</div>
  16. </el-col>
  17. <el-col :span="8" class="item">
  18. <div class="label">单据状态</div>
  19. <div class="value">2022123233435342</div>
  20. </el-col>
  21. <el-col :span="8" class="item">
  22. <div class="label">仓库</div>
  23. <div class="value">万豪仓</div>
  24. </el-col>
  25. <el-col :span="8" class="item">
  26. <div class="label">发货单号</div>
  27. <div class="value">2022123233435342</div>
  28. </el-col>
  29. <el-col :span="8" class="item">
  30. <div class="label">经销商</div>
  31. <div class="value">广州格匠机电有限公司</div>
  32. </el-col>
  33. <el-col :xs="24" :sm="24" :lg="24" class="item">
  34. <div class="label">备注</div>
  35. <div class="value">2022123233435342</div>
  36. </el-col>
  37. </el-row>
  38. </div>
  39. <div class="main-title">
  40. <div class="title">货品信息</div>
  41. </div>
  42. <div class="diy-table-2">
  43. <div class="head">
  44. <el-row :gutter="20">
  45. <el-col :span="2">序号</el-col>
  46. <el-col :span="4">产品编号</el-col>
  47. <el-col :span="8">产品名称</el-col>
  48. <el-col :span="2">规格型号</el-col>
  49. <el-col :span="2">内机编码</el-col>
  50. <el-col :span="2">外机编码</el-col>
  51. <el-col :span="2">单位</el-col>
  52. <el-col :span="2">数量</el-col>
  53. </el-row>
  54. </div>
  55. <div class="body">
  56. <el-row v-for="(item, index) in goodsList" :key="item.goodsId" :gutter="20">
  57. <el-col :span="2">{{ index + 1 }}</el-col>
  58. <el-col :span="4">{{ item.goodsId || 0 }}</el-col>
  59. <el-col :span="8">{{ item.goodsName || 0 }}</el-col>
  60. <el-col :span="2">{{ item.salesUnit || 0 }}</el-col>
  61. <el-col :span="2">{{ item.price || 0 }}</el-col>
  62. <el-col :span="2">{{ item.saleQty || 0 }}</el-col>
  63. <el-col :span="2">{{ item.saleValue || 0 }}</el-col>
  64. <el-col :span="2">{{ item.saleValue || 0 }}</el-col>
  65. </el-row>
  66. </div>
  67. <div class="foot">
  68. <el-row :gutter="20">
  69. <el-col :span="24">合计</el-col>
  70. </el-row>
  71. </div>
  72. </div>
  73. <div class="main-title">
  74. <div class="title">审批记录</div>
  75. </div>
  76. <div class="diy-table-1">
  77. <el-row :gutter="0">
  78. <el-col :span="12" class="item">
  79. <div class="label">审批人</div>
  80. <div class="value">2022123233435342</div>
  81. </el-col>
  82. <el-col :span="12" class="item">
  83. <div class="label">审批结果</div>
  84. <div class="value">
  85. <el-radio-group v-model="examineForm.status">
  86. <el-radio :label="true">通过</el-radio>
  87. <el-radio :label="false">驳回</el-radio>
  88. </el-radio-group>
  89. </div>
  90. </el-col>
  91. <el-col :span="24" class="item">
  92. <div class="label">审批说明</div>
  93. <div class="value">
  94. <el-input v-model="examineForm.remark" placeholder="请输入内容"></el-input>
  95. </div>
  96. </el-col>
  97. </el-row>
  98. </div>
  99. <div class="page-footer">
  100. <div class="footer" :class="classObj">
  101. <el-button type="primary" @click="clickSubmitForm" :loading="formLoading">{{ formLoading ? '提交中 ...' : '提 交' }}</el-button>
  102. <el-popconfirm
  103. title="确定关闭吗?"
  104. @onConfirm="goBack"
  105. style="margin-left: 10px;"
  106. >
  107. <el-button slot="reference">关 闭</el-button>
  108. </el-popconfirm>
  109. </div>
  110. </div>
  111. </div>
  112. </template>
  113. <script>
  114. import { getList } from "@/api/supply/sales";
  115. export default {
  116. name: 'SalesDetail',
  117. componentName: 'SalesDetail',
  118. props: ['listItem'],
  119. data() {
  120. return {
  121. goodsList: [{
  122. goodsId: 1,
  123. }],
  124. formLoading: false,
  125. examineForm: {
  126. status: true,
  127. remark: '',
  128. }
  129. }
  130. },
  131. computed: {
  132. sidebar() {
  133. return this.$store.state.app.sidebar
  134. },
  135. classObj() {
  136. return {
  137. hideSidebar: !this.sidebar.opened,
  138. openSidebar: this.sidebar.opened
  139. }
  140. },
  141. },
  142. created() {
  143. },
  144. methods: {
  145. // 返回列表
  146. goBack() {
  147. this.$emit('backListFormExamine');
  148. },
  149. clickSubmitForm() {
  150. },
  151. }
  152. }
  153. </script>
  154. <style scoped lang="scss">
  155. .detail-container {
  156. width: 100%;
  157. height: 100%;
  158. }
  159. .main-title {
  160. display: flex;
  161. justify-content: space-between;
  162. align-items: center;
  163. margin-top: 30px;
  164. height: 60px;
  165. border-bottom: 1px solid #DCDFE6;
  166. margin-bottom: 20px;
  167. .title {
  168. font-size: 16px;
  169. font-weight: 600;
  170. padding-left: 10px;
  171. }
  172. }
  173. </style>