engin_form.vue 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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="12" :lg="8">
  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-col :xs="24" :sm="12" :lg="8">
  66. <el-form-item label="厂工程编码" prop="warehouse">
  67. <el-input v-model="mainForm.remark" placeholder="请输入厂工程编码"></el-input>
  68. </el-form-item>
  69. </el-col>
  70. <el-col :xs="24" :sm="12" :lg="8">
  71. <el-form-item label="工程登录类型" prop="warehouse">
  72. <el-input v-model="mainForm.remark" placeholder="请输入工程登录类型"></el-input>
  73. </el-form-item>
  74. </el-col>
  75. <el-col :xs="24" :sm="24" :lg="16">
  76. <el-form-item label="备注" prop="warehouse">
  77. <el-input v-model="mainForm.remark" placeholder="请输入备注"></el-input>
  78. </el-form-item>
  79. </el-col>
  80. <el-col :xs="24" :sm="12" :lg="8">
  81. <el-form-item label="业务员" prop="warehouse">
  82. <el-input v-model="mainForm.remark" placeholder="请输入业务员"></el-input>
  83. </el-form-item>
  84. </el-col>
  85. <el-col :xs="24" :sm="12" :lg="8">
  86. <el-form-item label="制单人" prop="warehouse">
  87. <el-input v-model="mainForm.remark" placeholder="请输入制单人"></el-input>
  88. </el-form-item>
  89. </el-col>
  90. <el-col :xs="24" :sm="12" :lg="8" style="height: 51px;">
  91. <el-form-item label="制单日期" prop="date">
  92. <el-date-picker
  93. v-model="mainForm.date"
  94. type="date"
  95. value-format="yyyy-MM-dd"
  96. style="width: 100%;"
  97. placeholder="选择日期">
  98. </el-date-picker>
  99. </el-form-item>
  100. </el-col>
  101. <el-col :xs="24" :sm="12" :lg="8" style="height: 51px;">
  102. <el-form-item label="合同有效期" prop="date">
  103. <el-date-picker
  104. v-model="mainForm.date"
  105. type="date"
  106. value-format="yyyy-MM-dd"
  107. style="width: 100%;"
  108. placeholder="选择日期">
  109. </el-date-picker>
  110. </el-form-item>
  111. </el-col>
  112. </el-row>
  113. </el-form>
  114. <div class="main-title">
  115. <div class="title">货品信息</div>
  116. <el-button type="primary" size="small" icon="el-icon-plus">添加货品</el-button>
  117. </div>
  118. <div class="table" style="margin-top: 20px">
  119. <el-table :data="detailData.kingDeeTransferItems" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  120. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  121. <el-table-column align="center" label="销售类型" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  122. <el-table-column align="center" label="产品编码" prop="model" min-width="160" show-overflow-tooltip></el-table-column>
  123. <el-table-column align="center" label="产品名称" prop="baseUnitId" min-width="160" show-overflow-tooltip></el-table-column>
  124. <el-table-column align="center" label="规格型号" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
  125. <el-table-column align="center" label="单位" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  126. <el-table-column align="center" label="单价" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  127. <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  128. <el-table-column align="center" label="订单金额" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  129. <el-table-column align="center" label="备注" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  130. <el-table-column align="center" label="税率" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  131. </el-table>
  132. </div>
  133. <div class="page-footer">
  134. <div class="footer" :class="classObj">
  135. <el-button type="primary" @click="clickSubmitForm">保 存</el-button>
  136. <el-button type="primary" @click="clickSubmitForm">提交审核</el-button>
  137. <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
  138. <el-button slot="reference">关 闭</el-button>
  139. </el-popconfirm>
  140. </div>
  141. </div>
  142. </div>
  143. </template>
  144. <script>
  145. import { getDetail } from "@/api/supply/engin";
  146. export default {
  147. name: 'EnginForm',
  148. componentName: 'EnginForm',
  149. props: ['listItem'],
  150. data() {
  151. return {
  152. detailData: {},
  153. mainForm: {
  154. },
  155. }
  156. },
  157. computed: {
  158. sidebar() {
  159. return this.$store.state.app.sidebar
  160. },
  161. classObj() {
  162. return {
  163. hideSidebar: !this.sidebar.opened,
  164. openSidebar: this.sidebar.opened
  165. }
  166. },
  167. },
  168. created() {
  169. this.getDetail();
  170. },
  171. methods: {
  172. // 返回列表
  173. goBack() {
  174. this.$emit('backListFormDetail');
  175. },
  176. // 获取详情
  177. getDetail() {
  178. getDetail({id: this.listItem.id}).then(res => {
  179. this.detailData = res.data;
  180. })
  181. },
  182. clickSubmitForm() {
  183. },
  184. }
  185. }
  186. </script>
  187. <style scoped lang="scss">
  188. .detail-container {
  189. width: 100%;
  190. height: 100%;
  191. }
  192. .main-title {
  193. display: flex;
  194. justify-content: space-between;
  195. align-items: center;
  196. margin-top: 20px;
  197. height: 60px;
  198. border-bottom: 1px solid #DCDFE6;
  199. margin-bottom: 20px;
  200. .title {
  201. font-size: 16px;
  202. font-weight: 600;
  203. padding-left: 10px;
  204. }
  205. }
  206. </style>