home_form.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152
  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" :rules="mainFormRules" label-width="110px" size="small" label-position="right">
  8. <el-row :gutter="20">
  9. <el-col :xs="24" :sm="12" :lg="8">
  10. <el-form-item label="工程订单" prop="orderNum">
  11. <el-input v-model="mainForm.orderNum" placeholder="系统自动生成" disabled></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="orderDate">
  16. <el-date-picker
  17. v-model="mainForm.orderDate"
  18. disabled
  19. type="date"
  20. value-format="yyyy-MM-dd"
  21. style="width: 100%;"
  22. placeholder="系统自动生成">
  23. </el-date-picker>
  24. </el-form-item>
  25. </el-col>
  26. <!-- <el-col :xs="24" :sm="12" :lg="8">
  27. <el-form-item label="产品大类" prop="type">
  28. <el-input v-model="mainForm.type" disabled v-if="listItem"></el-input>
  29. <el-select v-model="mainForm.type" placeholder="选择产品大类" style="width: 100%" disabled v-else>
  30. <el-option v-for="item in typeList" :key="item.dictCode" :label="item.dictValue" :value="item.dictCode"></el-option>
  31. </el-select>
  32. </el-form-item>
  33. </el-col> -->
  34. <el-col :xs="24" :sm="12" :lg="8">
  35. <el-form-item label="销售类型" prop="saleType">
  36. <el-select v-model="mainForm.saleType" placeholder="选择销售类型" style="width: 100%" clearable @change="changeSaleType">
  37. <el-option v-for="item in salesTypeList" :key="item.id" :label="item.saleName" :value="item.id"></el-option>
  38. </el-select>
  39. </el-form-item>
  40. </el-col>
  41. <el-col :xs="24" :sm="12" :lg="8">
  42. <el-form-item label="经销商编码" prop="jxsNum">
  43. <el-input v-model="mainForm.jxsNum" placeholder="请输入经销商编码" disabled></el-input>
  44. </el-form-item>
  45. </el-col>
  46. <el-col :xs="24" :sm="12" :lg="16">
  47. <el-form-item label="经销商名称" prop="jxsName">
  48. <el-input v-model="mainForm.jxsName" placeholder="请输入经销商名称" disabled></el-input>
  49. </el-form-item>
  50. </el-col>
  51. <el-col :xs="24" :sm="12" :lg="8">
  52. <el-form-item label="工程登录编号" prop="loginNum">
  53. <div style="display: flex;">
  54. <el-input v-model="mainForm.loginNum" placeholder="请引用工程登录" disabled></el-input>
  55. <el-button style="margin-left: 10px;" @click="openShareDetail">引用</el-button>
  56. </div>
  57. </el-form-item>
  58. </el-col>
  59. <el-col :xs="24" :sm="12" :lg="8">
  60. <el-form-item label="工程项目名称" prop="enginName">
  61. <el-input v-model="mainForm.enginName" placeholder="请输入工程项目名称" disabled></el-input>
  62. </el-form-item>
  63. </el-col>
  64. <el-col :xs="24" :sm="12" :lg="8">
  65. <el-form-item label="工程登录类型" prop="loginType">
  66. <el-input v-model="mainForm.loginType" placeholder="请输入工程登录类型" disabled></el-input>
  67. </el-form-item>
  68. </el-col>
  69. <el-col :xs="24" :sm="12" :lg="8">
  70. <el-form-item label="厂工程编码" prop="factoryNum">
  71. <el-input v-model="mainForm.factoryNum" placeholder="请输入厂工程编码"></el-input>
  72. </el-form-item>
  73. </el-col>
  74. <el-col :xs="24" :sm="12" :lg="8">
  75. <el-form-item label="使用单位" prop="company">
  76. <el-input v-model="mainForm.company" placeholder="请输入使用单位" disabled></el-input>
  77. </el-form-item>
  78. </el-col>
  79. <el-col :xs="24" :sm="12" :lg="8">
  80. <el-form-item label="业务员" prop="salesMan">
  81. <el-select v-model="mainForm.salesMan" placeholder="选择业务员" size="small" clearable style="width: 100%">
  82. <el-option
  83. v-for="item in outSalesmanList"
  84. :key="item.adminUserId"
  85. :label="item.nickName"
  86. :value="item.adminUserId">
  87. </el-option>
  88. </el-select>
  89. </el-form-item>
  90. </el-col>
  91. <el-col :xs="24" :sm="12" :lg="8">
  92. <el-form-item label="联系人" prop="contactMan">
  93. <el-input v-model="mainForm.contactMan" placeholder="请输入联系人" disabled></el-input>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :xs="24" :sm="12" :lg="8">
  97. <el-form-item label="固定电话" prop="tel">
  98. <el-input v-model="mainForm.tel" placeholder="请输入固定电话" disabled></el-input>
  99. </el-form-item>
  100. </el-col>
  101. <el-col :xs="24" :sm="12" :lg="8">
  102. <el-form-item label="移动电话" prop="phone">
  103. <el-input v-model="mainForm.phone" placeholder="请输入移动电话" disabled></el-input>
  104. </el-form-item>
  105. </el-col>
  106. <el-col :xs="24" :sm="24" :lg="24">
  107. <el-form-item label="安装地址" prop="address">
  108. <el-input v-model="mainForm.address" placeholder="请输入安装地址" disabled></el-input>
  109. </el-form-item>
  110. </el-col>
  111. <!-- <el-col :xs="24" :sm="24" :lg="24">
  112. <el-form-item label="格力内部备注" prop="greeRemark">
  113. <el-input v-model="mainForm.greeRemark" placeholder="请输入格力内部备注"></el-input>
  114. </el-form-item>
  115. </el-col>
  116. <el-col :xs="24" :sm="24" :lg="24">
  117. <el-form-item label="格力回复" prop="greeReply">
  118. <el-input v-model="mainForm.greeReply" placeholder="请输入格力回复"></el-input>
  119. </el-form-item>
  120. </el-col> -->
  121. <el-col :xs="24" :sm="24" :lg="24">
  122. <el-form-item label="备注" prop="remark">
  123. <el-input v-model="mainForm.remark" placeholder="请输入备注"></el-input>
  124. </el-form-item>
  125. </el-col>
  126. <el-col :xs="24" :sm="12" :lg="8">
  127. <el-form-item label="制单人" prop="createMan">
  128. <el-input v-model="mainForm.createMan" placeholder="请输入制单人" disabled></el-input>
  129. </el-form-item>
  130. </el-col>
  131. <el-col :xs="24" :sm="12" :lg="8" style="height: 51px;">
  132. <el-form-item label="制单日期" prop="createDate">
  133. <el-date-picker
  134. v-model="mainForm.createDate"
  135. disabled
  136. type="date"
  137. value-format="yyyy-MM-dd"
  138. style="width: 100%;"
  139. placeholder="选择日期">
  140. </el-date-picker>
  141. </el-form-item>
  142. </el-col>
  143. <el-col :xs="24" :sm="12" :lg="8">
  144. <el-form-item label="文件编号" prop="fileNum">
  145. <el-input v-model="mainForm.fileNum" placeholder="请输入文件编号"></el-input>
  146. </el-form-item>
  147. </el-col>
  148. </el-row>
  149. </el-form>
  150. <div class="main-title">
  151. <div class="title">货品信息</div>
  152. <div>
  153. <el-select v-model="warehouseValue" placeholder="请选择发货仓库" size="small" style="margin-right: 10px">
  154. <el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
  155. </el-select>
  156. <el-button type="primary" size="small" icon="el-icon-search" @click="checkStock">检查库存</el-button>
  157. <el-divider direction="vertical"></el-divider>
  158. <el-button type="primary" size="small" icon="el-icon-plus" @click="openDialog">添加货品</el-button>
  159. </div>
  160. </div>
  161. <div class="table" style="margin-top: 20px">
  162. <el-table :data="goodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  163. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  164. <el-table-column align="center" label="引用记录" prop="useRefCount" min-width="160" show-overflow-tooltip></el-table-column>
  165. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip></el-table-column>
  166. <el-table-column align="center" label="产品编码" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
  167. <el-table-column align="center" label="物料代码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
  168. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  169. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip>
  170. <template slot-scope="scope">
  171. <el-input v-model="scope.row.specification" size="small" v-if="listItem"></el-input>
  172. <div v-else>{{scope.row.specification}}</div>
  173. </template>
  174. </el-table-column>
  175. <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  176. <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip>
  177. <template slot-scope="scope">
  178. <el-input v-model="scope.row.price" size="small" type="number" v-if="listItem && !isDealer"></el-input>
  179. <div v-else>{{scope.row.price}}</div>
  180. </template>
  181. </el-table-column>
  182. <el-table-column align="center" label="工程登录数量" prop="enginNum" min-width="120" show-overflow-tooltip></el-table-column>
  183. <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip>
  184. <template slot-scope="scope">
  185. <el-input v-model="scope.row.qty" size="small" type="number"></el-input>
  186. </template>
  187. </el-table-column>
  188. <el-table-column align="center" label="订单金额" min-width="100" show-overflow-tooltip>
  189. <template slot-scope="scope">
  190. {{scope.row.price * scope.row.qty}}
  191. </template>
  192. </el-table-column>
  193. <el-table-column align="center" label="返利钱包" prop="customerWalletId2" min-width="160" show-overflow-tooltip>
  194. <template slot-scope="scope">
  195. <el-select v-model="scope.row.customerWalletId2" placeholder="选择返利类型" size="small" clearable @change="changeFlWallet(scope.$index)">
  196. <el-option
  197. v-for="item in scope.row.rebateWallets"
  198. :key="item.customerWalletId"
  199. :label="item.customerWalletName"
  200. :value="item.customerWalletId">
  201. </el-option>
  202. </el-select>
  203. </template>
  204. </el-table-column>
  205. <el-table-column align="center" label="返利金额" min-width="100" show-overflow-tooltip>
  206. <template slot-scope="scope">
  207. {{(scope.row.price * scope.row.qty * (scope.row.rebateRate * 100)) / 100}}
  208. </template>
  209. </el-table-column>
  210. <el-table-column align="center" label="格力折扣" min-width="100" show-overflow-tooltip>
  211. <template slot-scope="scope">
  212. {{scope.row.qty * scope.row.discAmount}}
  213. </template>
  214. </el-table-column>
  215. <el-table-column align="center" label="现金钱包" prop="customerWalletId" min-width="160" show-overflow-tooltip>
  216. <template slot-scope="scope">
  217. <el-select v-model="scope.row.customerWalletId" placeholder="选择现金钱包" size="small" clearable @change="changeXjWallet(scope.$index)">
  218. <el-option
  219. v-for="item in scope.row.wallets"
  220. :key="item.customerWalletId"
  221. :label="item.customerWalletName"
  222. :value="item.customerWalletId">
  223. </el-option>
  224. </el-select>
  225. </template>
  226. </el-table-column>
  227. <el-table-column align="center" label="实付金额" prop="qty" min-width="100" show-overflow-tooltip>
  228. <template slot-scope="scope">
  229. {{((scope.row.price * scope.row.qty) * 100 - ((scope.row.price * scope.row.qty * (scope.row.rebateRate * 100)) / 100) * 100 - ((scope.row.qty * (scope.row.discAmount * 100)) / 100) * 100) / 100}}
  230. </template>
  231. </el-table-column>
  232. <el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100">
  233. <template slot-scope="scope">
  234. <el-checkbox v-model="scope.row.isDirectTransfer"></el-checkbox>
  235. </template>
  236. </el-table-column>
  237. <el-table-column align="center" label="直调数量" prop="directTransferQty" min-width="100"></el-table-column>
  238. <el-table-column align="center" label="已发货数量" prop="hasSendQty" min-width="100" show-overflow-tooltip></el-table-column>
  239. <el-table-column align="center" label="已退数量" prop="retiredQty" min-width="100" show-overflow-tooltip></el-table-column>
  240. <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip>
  241. <template slot-scope="scope">
  242. <el-input v-model="scope.row.remark" size="small"></el-input>
  243. </template>
  244. </el-table-column>
  245. <el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
  246. <el-table-column align="center" label="总仓库" prop="status1" min-width="100" show-overflow-tooltip>
  247. <template slot-scope="scope">
  248. <div>{{ scope.row.status1 | status1Filter }}</div>
  249. </template>
  250. </el-table-column>
  251. <el-table-column align="center" label="仓库状态" prop="status2" min-width="100" show-overflow-tooltip>
  252. <template slot-scope="scope">
  253. <div>{{ status2Filter(scope.row) }}</div>
  254. </template>
  255. </el-table-column>
  256. <el-table-column align="center" label="业务员" prop="serviceId" min-width="160" show-overflow-tooltip>
  257. <template slot-scope="scope">
  258. <el-select v-model="scope.row.serviceId" placeholder="选择业务员" size="small" clearable disabled>
  259. <el-option
  260. v-for="item in salesmanList"
  261. :key="item.adminUserId"
  262. :label="item.nickName"
  263. :value="item.adminUserId">
  264. </el-option>
  265. </el-select>
  266. </template>
  267. </el-table-column>
  268. <el-table-column align="center" label="操作" width="100" fixed="right">
  269. <template slot-scope="scope">
  270. <el-button type="text" @click="deleteItem(scope.$index)">删除</el-button>
  271. </template>
  272. </el-table-column>
  273. </el-table>
  274. </div>
  275. <div class="page-footer">
  276. <div class="footer">
  277. <el-button type="primary" @click="clickSubmitForm(1)" :loading="formLoading">保 存</el-button>
  278. <el-button type="primary" @click="clickSubmitForm(2)" :loading="formLoading">提交审核</el-button>
  279. <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
  280. <el-button slot="reference">关 闭</el-button>
  281. </el-popconfirm>
  282. </div>
  283. </div>
  284. <!-- 工程登录列表 -->
  285. <el-dialog title="工程登录列表" :visible.sync="isShowDialog" width="70%" :close-on-click-modal="false">
  286. <el-form ref="screenForm" :model="screenForm" label-width="0" size="small" label-position="left">
  287. <el-row :gutter="20">
  288. <el-col :xs="24" :sm="12" :lg="6">
  289. <el-form-item prop="loginNum">
  290. <el-input v-model="screenForm.loginNum" placeholder="工程登录编号"></el-input>
  291. </el-form-item>
  292. </el-col>
  293. <el-col :xs="24" :sm="12" :lg="6">
  294. <el-form-item prop="enginName">
  295. <el-input v-model="screenForm.enginName" placeholder="工程项目"></el-input>
  296. </el-form-item>
  297. </el-col>
  298. <el-col :xs="24" :sm="12" :lg="6">
  299. <el-form-item prop="company">
  300. <el-input v-model="screenForm.company" placeholder="使用单位"></el-input>
  301. </el-form-item>
  302. </el-col>
  303. <el-col :xs="24" :sm="12" :lg="6" class="tr">
  304. <el-form-item label="">
  305. <el-button size="small" @click="resetScreenForm">清空</el-button>
  306. <el-button size="small" type="primary" @click="submitScreenForm">搜索</el-button>
  307. </el-form-item>
  308. </el-col>
  309. </el-row>
  310. </el-form>
  311. <div class="table" style="margin: 10px 0 20px;">
  312. <el-table
  313. v-loading="dialogTable_listLoading"
  314. :data="dialogTable_dataList"
  315. element-loading-text="Loading"
  316. tooltip-effect="dark"
  317. style="width: 100%"
  318. max-height="270">
  319. <el-table-column align="center" label="" width="100">
  320. <template slot-scope="scope">
  321. <el-button type="primary" size="small" @click="chooseItem(scope.row.recordNo, scope.row.userid)">选择</el-button>
  322. </template>
  323. </el-table-column>
  324. <el-table-column align="center" prop="checkTime" label="工程登录日期" show-overflow-tooltip></el-table-column>
  325. <el-table-column align="center" prop="recordNo" label="工程登录编号" show-overflow-tooltip></el-table-column>
  326. <el-table-column align="center" prop="projectName" label="工程项目" show-overflow-tooltip></el-table-column>
  327. <el-table-column align="center" prop="useUnit" label="使用单位" show-overflow-tooltip></el-table-column>
  328. <el-table-column align="center" prop="organizationName" label="经销商" show-overflow-tooltip></el-table-column>
  329. </el-table>
  330. </div>
  331. <div class="pagination clearfix">
  332. <div class="fr">
  333. <el-pagination
  334. @current-change="dialogTableCurrentChange"
  335. :current-page="dialogTable_currentPage"
  336. :page-size="dialogTable_pageSize"
  337. background
  338. layout="prev, pager, next"
  339. :total="dialogTable_listTotal">
  340. </el-pagination>
  341. </div>
  342. </div>
  343. <div slot="footer" class="dialog-footer">
  344. <el-button @click="isShowDialog = false">关 闭</el-button>
  345. </div>
  346. </el-dialog>
  347. <el-dialog title="添加产品" :visible.sync="isShowGoodsDialog" width="80%">
  348. <el-form ref="goodsScreenForm" :model="goodsScreenForm" size="small" label-position="left">
  349. <el-row :gutter="20">
  350. <el-col :xs="12" :sm="6" :lg="6">
  351. <el-form-item prop="proNum">
  352. <el-input v-model="goodsScreenForm.proNum" placeholder="请输入产品编码"></el-input>
  353. </el-form-item>
  354. </el-col>
  355. <el-col :xs="12" :sm="6" :lg="6">
  356. <el-form-item prop="proName">
  357. <el-input v-model="goodsScreenForm.proName" placeholder="请输入产品名称"></el-input>
  358. </el-form-item>
  359. </el-col>
  360. <el-col :xs="12" :sm="6" :lg="6">
  361. <el-form-item prop="proModel">
  362. <el-input v-model="goodsScreenForm.proModel" placeholder="请输入产品型号"></el-input>
  363. </el-form-item>
  364. </el-col>
  365. <el-col :xs="12" :sm="6" :lg="6">
  366. <el-form-item prop="price1" style="display: flex">
  367. <el-input v-model="goodsScreenForm.price1" placeholder="请输入价格" style="width: 46%"></el-input>
  368. <span> - </span>
  369. <el-input v-model="goodsScreenForm.price2" placeholder="请输入价格" style="width: 46%"></el-input>
  370. </el-form-item>
  371. </el-col>
  372. <el-col :xs="24" :sm="24" :lg="24" class="tr">
  373. <el-form-item label="">
  374. <el-button size="small" @click="resetGoodsScreenForm">清空</el-button>
  375. <el-button size="small" type="primary" @click="submitGoodsScreenForm">搜索</el-button>
  376. </el-form-item>
  377. </el-col>
  378. </el-row>
  379. </el-form>
  380. <div class="tables">
  381. <div class="table">
  382. <el-table :data="leftGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="leftSelectionChange">
  383. <el-table-column align="center" type="selection" width="55" :selectable='checkboxSelect'></el-table-column>
  384. <el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
  385. <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
  386. <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  387. <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip></el-table-column>
  388. </el-table>
  389. <div class="pagination clearfix" style="margin-top: 10px">
  390. <div class="fr">
  391. <el-pagination
  392. @current-change="handleTableCurrentChange"
  393. :current-page="currentPage"
  394. :page-size="10"
  395. background
  396. layout="prev, pager, next"
  397. :total="listTotal">
  398. </el-pagination>
  399. </div>
  400. </div>
  401. </div>
  402. <div class="buttons">
  403. <el-button size="small" type="primary" @click="addAllGoods">全部添加</el-button>
  404. <el-button size="small" type="primary" @click="addGoods">添&emsp;加</el-button>
  405. <el-button size="small" type="danger" @click="deleteGoods">删&emsp;除</el-button>
  406. <el-button size="small" type="danger" @click="deleteAllGoods">全部删除</el-button>
  407. </div>
  408. <div class="table">
  409. <el-table :data="rightGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="rightSelectionChange">
  410. <el-table-column align="center" type="selection" width="55"></el-table-column>
  411. <el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
  412. <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
  413. <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  414. <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip></el-table-column>
  415. </el-table>
  416. </div>
  417. </div>
  418. <span slot="footer" class="dialog-footer">
  419. <el-button @click="closeDialog">取 消</el-button>
  420. <el-button type="primary" @click="submitAddGoods">确 定</el-button>
  421. </span>
  422. </el-dialog>
  423. </div>
  424. </template>
  425. <script>
  426. import { getOrderDetail, getHomeLoginList, getHomeLoginDetail, getWarehouseList, addHome, editHome, submitHome, checkStock, getRetailProductList } from "@/api/supply/engin";
  427. import { getDictList, getTypeList, getSalesmanList } from '@/api/common'
  428. let that
  429. export default {
  430. name: 'HomeForm',
  431. componentName: 'HomeForm',
  432. props: ['listItem'],
  433. filters: {
  434. status1Filter(val) {
  435. let STOCK_ORDER_START = that.stockList.find(o => o.dictCode == 'STOCK_ORDER_START').dictValue;
  436. let STOCK_ORDER_END = that.stockList.find(o => o.dictCode == 'STOCK_ORDER_END').dictValue;
  437. let STOCK_ORDER_HAVE_START = that.stockList.find(o => o.dictCode == 'STOCK_ORDER_HAVE_START').dictValue;
  438. let STOCK_ORDER_HAVE_END = that.stockList.find(o => o.dictCode == 'STOCK_ORDER_HAVE_END').dictValue;
  439. let STOCK_ORDER_ALL_NUM = that.stockList.find(o => o.dictCode == 'STOCK_ORDER_ALL_NUM').dictValue;
  440. if (val === '' || val === null || val === undefined) return '未检查';
  441. else if (val === 0) return '无货';
  442. else if (val > STOCK_ORDER_START && val <= STOCK_ORDER_END) return val;
  443. else if (val >= STOCK_ORDER_HAVE_START && val <= STOCK_ORDER_HAVE_END) return '有货';
  444. else if (val > STOCK_ORDER_ALL_NUM) return '充足';
  445. },
  446. },
  447. data() {
  448. return {
  449. editId: '',
  450. mainForm: {
  451. orderNum: '',
  452. orderDate: '',
  453. type: '',
  454. jxsNum: '',
  455. jxsName: '',
  456. loginNum: '',
  457. enginName: '',
  458. loginType: '',
  459. factoryNum: '',
  460. company: '',
  461. saleType: '',
  462. contactMan: '',
  463. tel: '',
  464. phone: '',
  465. address: '',
  466. greeRemark: '',
  467. greeReply: '',
  468. remark: '',
  469. createMan: '',
  470. createDate: '',
  471. fileNum: '',
  472. loginUserId: '',
  473. salesMan: '',
  474. },
  475. mainFormRules: {
  476. // orderDate: [{ required: true, message: '请选择单据日期', trigger: 'change' }],
  477. jxsNum: [{ required: true, message: '请输入经销商编码', trigger: 'blur' }],
  478. jxsName: [{ required: true, message: '请输入经销商名称', trigger: 'blur' }],
  479. loginNum: [{ required: true, message: '请输入工程登录编号', trigger: 'blur' }],
  480. // enginName: [{ required: true, message: '请输入工程项目名称', trigger: 'blur' }],
  481. // loginType: [{ required: true, message: '请输入工程登录类型', trigger: 'blur' }],
  482. company: [{ required: true, message: '请输入使用单位', trigger: 'blur' }],
  483. saleType: [{ required: true, message: '请选择销售类型', trigger: 'change' }],
  484. // contactMan: [{ required: true, message: '请输入联系人', trigger: 'blur' }],
  485. // tel: [{ required: true, message: '请输入固定电话', trigger: 'blur' }],
  486. // phone: [{ required: true, message: '请输入移动电话', trigger: 'blur' }],
  487. address: [{ required: true, message: '请输入安装地址', trigger: 'blur' }],
  488. },
  489. salesTypeList: [],
  490. // typeList: [],
  491. stockList: [],
  492. goodsList: [],
  493. isShowDialog: false, // 工程登录列表 - 弹窗
  494. screenForm: {
  495. loginNum: '',
  496. enginName: '',
  497. company: '',
  498. },
  499. dialogTable_dataList: null, // 工程登录列表 - 列表数据
  500. dialogTable_listLoading: true, // 工程登录列表 - 列表加载loading
  501. dialogTable_currentPage: 1, // 工程登录列表 - 当前页码
  502. dialogTable_pageSize: 10, // 工程登录列表 - 每页数量
  503. dialogTable_listTotal: 0, // 工程登录列表 - 列表总数
  504. warehouseList: [],
  505. warehouseValue: '',
  506. isShowGoodsDialog: false,
  507. goodsScreenForm: {
  508. proNum: '',
  509. proName: '',
  510. proModel: '',
  511. price1: '',
  512. price2: '',
  513. },
  514. currentPage: 1,
  515. listTotal: 0,
  516. leftGoodsList: [],
  517. rightGoodsList: [],
  518. leftSelection: [],
  519. rightSelection: [],
  520. formLoading: false,
  521. isFirst: true,
  522. salesmanList: [],
  523. }
  524. },
  525. computed: {
  526. isDealer() {
  527. return JSON.parse(localStorage.getItem("supply_user")).isCustomer
  528. },
  529. outSalesmanList() {
  530. let list = [];
  531. if(this.goodsList && this.goodsList.length) {
  532. this.goodsList.forEach(item => {
  533. if(item.serviceId) {
  534. let obj = this.salesmanList.find(o => o.adminUserId == item.serviceId);
  535. list.push(obj);
  536. }
  537. })
  538. if(this.isFirst) {
  539. this.isFirst = false;
  540. }else {
  541. this.mainForm.salesMan = this.goodsList[0].serviceId;
  542. }
  543. }
  544. return list
  545. }
  546. },
  547. beforeCreate() {
  548. that = this;
  549. },
  550. async created() {
  551. await this.getSalesmanList();
  552. this.getDictList();
  553. this.getSalesTypeList();
  554. this.getWarehouseList();
  555. if(this.listItem) {
  556. this.editId = this.listItem.parentId;
  557. this.getDetail();
  558. }else {
  559. this.mainForm.jxsNum = JSON.parse(localStorage.getItem("supply_user")).customerNumber;
  560. this.mainForm.jxsName = JSON.parse(localStorage.getItem("supply_user")).customerName;
  561. this.mainForm.createMan = JSON.parse(localStorage.getItem("supply_user")).nickName;
  562. this.mainForm.createDate = this.getDate();
  563. }
  564. },
  565. methods: {
  566. // 返回列表
  567. goBack() {
  568. this.$emit('backListFormDetail');
  569. },
  570. getDate() {
  571. var date = new Date();
  572. var seperator1 = "-";
  573. var year = date.getFullYear();
  574. var month = date.getMonth() + 1;
  575. var strDate = date.getDate();
  576. if (month >= 1 && month <= 9) {
  577. month = "0" + month;
  578. }
  579. if (strDate >= 0 && strDate <= 9) {
  580. strDate = "0" + strDate;
  581. }
  582. var currentdate = year + seperator1 + month + seperator1 + strDate;
  583. return currentdate;
  584. },
  585. // 获取产品大类列表
  586. getDictList() {
  587. // getDictList({sysDictEnum: 'PRODUCT_TYPE'}).then(res => {
  588. // this.typeList = res.data;
  589. // })
  590. getDictList({sysDictEnum: 'STOCK_ORDER'}).then(res => {
  591. this.stockList = res.data;
  592. })
  593. },
  594. // 获取销售类型列表
  595. getSalesTypeList() {
  596. getTypeList({
  597. pageNum: 1,
  598. pageSize: -1
  599. }).then((res) => {
  600. this.salesTypeList = res.data.records;
  601. })
  602. },
  603. // 获取仓库列表
  604. getWarehouseList() {
  605. getWarehouseList({
  606. pageNum: 1,
  607. pageSize: -1
  608. }).then((res) => {
  609. this.warehouseList = res.data.records;
  610. })
  611. },
  612. async getSalesmanList() {
  613. const res = await getSalesmanList({
  614. pageNum: 1,
  615. pageSize: -1,
  616. isCustomer: 0,
  617. status: true,
  618. });
  619. this.salesmanList = res.data.records;
  620. },
  621. // 工程登录列表 - 获取列表
  622. getHomeLoginList() {
  623. getHomeLoginList({
  624. pageNum: this.dialogTable_currentPage,
  625. pageSize: this.dialogTable_pageSize,
  626. recordNo: this.screenForm.loginNum,
  627. projectName: this.screenForm.enginName,
  628. useUnit: this.screenForm.company,
  629. examineStatus: 'OK'
  630. }).then(res => {
  631. this.dialogTable_dataList = res.data.records;
  632. this.dialogTable_listTotal = res.data.total;
  633. this.dialogTable_listLoading = false;
  634. })
  635. },
  636. // 工程登录列表 - 打开弹窗
  637. openShareDetail() {
  638. if(!this.mainForm.saleType) {
  639. return this.$errorMsg('请先选择销售类型');
  640. }
  641. this.isShowDialog = true;
  642. this.dialogTable_currentPage = 1;
  643. this.getHomeLoginList();
  644. },
  645. // 工程登录列表 - 更改列表当前页
  646. dialogTableCurrentChange(val) {
  647. this.dialogTable_currentPage = val;
  648. this.getHomeLoginList();
  649. },
  650. // 提交筛选表单
  651. submitScreenForm() {
  652. this.dialogTable_currentPage = 1;
  653. this.getHomeLoginList();
  654. },
  655. // 重置筛选表单
  656. resetScreenForm() {
  657. this.$refs.screenForm.resetFields();
  658. this.dialogTable_currentPage = 1;
  659. this.getHomeLoginList();
  660. },
  661. // 选择工程登录
  662. chooseItem(id, uid) {
  663. getHomeLoginDetail({
  664. recordNo: id,
  665. saleTypeId: this.mainForm.saleType,
  666. userId: uid
  667. }).then(res => {
  668. this.isShowDialog = false;
  669. let data = res.data;
  670. this.mainForm.type = data.productCategory;
  671. this.mainForm.loginUserId = data.userid;
  672. // this.mainForm.saleType = '';
  673. this.mainForm.loginNum = data.recordNo;
  674. this.mainForm.enginName = data.projectName;
  675. this.mainForm.loginType = data.promiseStatus;
  676. this.mainForm.company = data.useUnit;
  677. this.mainForm.contactMan = data.buyUnitCallMen;
  678. this.mainForm.tel = data.buyUnitTel;
  679. this.mainForm.phone = data.buyUnitPhone;
  680. this.mainForm.address = data.installAddress;
  681. let saleTypeItem = this.salesTypeList.find(o => o.id == this.mainForm.saleType);
  682. this.goodsList = data.items.map(item => {
  683. return {
  684. useRefCount: item.useRefCount,
  685. saleTypeId: saleTypeItem.id,
  686. saleTypeCode: saleTypeItem.saleCode,
  687. saleTypeName: saleTypeItem.saleName,
  688. materialId: item.materialId,
  689. materialNumber: item.materialNumber,
  690. materialOldNumber: item.materialOldNumber,
  691. materialName: item.materialName,
  692. specification: item.machine,
  693. enginNum: item.num,
  694. enginPrice: item.price,
  695. enginTotality: item.totality,
  696. historyHasDeliverQty: item.hasDeliverQty,
  697. unit: item.unit,
  698. price: item.price,
  699. qty: item.num,
  700. customerWalletId2: '',
  701. rebateRate: '',
  702. discAmount: '',
  703. customerWalletId: '',
  704. isDirectTransfer: false,
  705. directTransferQty: '',
  706. hasSendQty: '',
  707. remark: item.discri,
  708. tax: '',
  709. status1: '',
  710. status2: '',
  711. rebateWallets: item.customerWalletList.filter(item => {
  712. return item.type === 'REBATE';
  713. }),
  714. wallets: item.customerWalletList.filter(item => {
  715. return item.type === 'COMMONLY';
  716. }),
  717. }
  718. })
  719. })
  720. },
  721. // 选择销售类型
  722. changeSaleType() {
  723. if(this.mainForm.loginNum) {
  724. this.chooseItem(this.mainForm.loginNum, this.mainForm.loginUserId);
  725. }
  726. },
  727. // 删除产品
  728. deleteItem(index) {
  729. this.goodsList.splice(index, 1);
  730. },
  731. // 修改返利钱包
  732. changeFlWallet(index) {
  733. if(this.goodsList[index].customerWalletId2) {
  734. let obj = this.goodsList[index].rebateWallets.find(o => o.customerWalletId == this.goodsList[index].customerWalletId2);
  735. this.goodsList[index].rebateRate = obj.rebateRate;
  736. this.goodsList[index].customerWalletName2 = obj.customerWalletName;
  737. }else {
  738. this.goodsList[index].rebateRate = '';
  739. this.goodsList[index].customerWalletName2 = '';
  740. }
  741. },
  742. // 修改现金钱包
  743. changeXjWallet(index) {
  744. if(this.goodsList[index].customerWalletId) {
  745. let obj = this.goodsList[index].wallets.find(o => o.customerWalletId == this.goodsList[index].customerWalletId);
  746. this.goodsList[index].customerWalletName = obj.customerWalletName;
  747. }else {
  748. this.goodsList[index].customerWalletName = '';
  749. }
  750. },
  751. // 获取详情
  752. getDetail() {
  753. getOrderDetail({id: this.editId}).then(res => {
  754. let data = res.data;
  755. this.mainForm.orderNum = data.enginOrderId;
  756. this.mainForm.orderDate = data.orderDate;
  757. this.mainForm.type = data.mainId;
  758. this.mainForm.jxsNum = data.customerNumber;
  759. this.mainForm.jxsName = data.customerName;
  760. this.mainForm.loginNum = data.refEnginRecordNo;
  761. this.mainForm.enginName = data.refProjectName;
  762. this.mainForm.loginType = data.refPromiseStatus;
  763. this.mainForm.factoryNum = data.refFactoryNo;
  764. this.mainForm.company = data.refUseUnit;
  765. this.mainForm.saleType = data.saleTypeId;
  766. this.mainForm.contactMan = data.refLinkman;
  767. this.mainForm.tel = data.refTel;
  768. this.mainForm.phone = data.refPhone;
  769. this.mainForm.address = data.refInstallAddress;
  770. this.mainForm.greeRemark = data.note2;
  771. this.mainForm.greeReply = data.note1;
  772. this.mainForm.remark = data.remark;
  773. this.mainForm.createMan = data.createName;
  774. this.mainForm.createDate = data.createTime;
  775. this.mainForm.fileNum = data.fileNo;
  776. this.mainForm.salesMan = data.serviceId;
  777. data.items.forEach(item => {
  778. item.status1 = '';
  779. item.status2 = '';
  780. item.rebateWallets = item.customerWalletList.filter(item => {
  781. return item.type === 'REBATE';
  782. });
  783. item.wallets = item.customerWalletList.filter(item => {
  784. return item.type === 'COMMONLY';
  785. });
  786. })
  787. this.goodsList = data.items;
  788. })
  789. },
  790. // 获取商品列表
  791. getGoodsList() {
  792. getRetailProductList({
  793. pageNum: this.currentPage,
  794. pageSize: 10,
  795. saleId: this.mainForm.saleType,
  796. materialCode: this.goodsScreenForm.proNum,
  797. materialName: this.goodsScreenForm.proName,
  798. specification: this.goodsScreenForm.proModel,
  799. price1: this.goodsScreenForm.price1,
  800. price2: this.goodsScreenForm.price2,
  801. }).then(res => {
  802. let oldGoodsList = this.goodsList;
  803. let newGoodsList = res.data.records;
  804. for(let i = 0; i < oldGoodsList.length; i++) {
  805. let oldItem = oldGoodsList[i]
  806. for(let j = 0; j < newGoodsList.length; j++) {
  807. let newItem = newGoodsList[j]
  808. if(newItem.id === oldItem.id){
  809. newGoodsList[j].selected = true;
  810. break;
  811. }
  812. }
  813. }
  814. res.data.records.forEach(item => {
  815. item.materialName = item.name;
  816. item.materialCode = item.number;
  817. item.saleTypeName = item.saleName;
  818. item.unit = item.baseUnit;
  819. item.price = item.batchPrice;
  820. item.tax = item.taxRate;
  821. item.isDirectTransfer = false;
  822. item.directTransferQty = '';
  823. item.status1 = '';
  824. item.status2 = '';
  825. item.rebateAmount = '';
  826. item.rebateRate = '';
  827. item.productPriceId = item.id;
  828. });
  829. this.leftGoodsList = res.data.records;
  830. this.listTotal = res.data.total;
  831. })
  832. },
  833. // 查询重复值并禁选
  834. checkboxSelect(row, rowIndex) {
  835. if (row.selected) {
  836. return false // 禁用
  837. }else{
  838. return true // 不禁用
  839. }
  840. },
  841. // 点击 选择商品
  842. openDialog() {
  843. if(!this.mainForm.saleType) {
  844. return this.$errorMsg('请先选择销售类型');
  845. }
  846. this.isShowGoodsDialog = true;
  847. this.getGoodsList();
  848. },
  849. // 提交筛选表单
  850. submitGoodsScreenForm() {
  851. this.currentPage = 1;
  852. this.getGoodsList();
  853. },
  854. // 重置筛选表单
  855. resetGoodsScreenForm() {
  856. this.$refs.goodsScreenForm.resetFields();
  857. this.currentPage = 1;
  858. this.getGoodsList();
  859. },
  860. // 更改列表当前页
  861. handleTableCurrentChange(val) {
  862. this.currentPage = val;
  863. this.getGoodsList();
  864. },
  865. // 关闭 弹窗
  866. closeDialog() {
  867. this.isShowGoodsDialog = false;
  868. },
  869. // 左侧列表选择
  870. leftSelectionChange(val) {
  871. this.leftSelection = val;
  872. },
  873. // 右侧列表选择
  874. rightSelectionChange(val) {
  875. this.rightSelection = val;
  876. },
  877. // 数组去重
  878. delRepeat(arr1, arr2) {
  879. let allArr = arr1.concat(arr2); // 两个数组对象合并
  880. let newArr = []; // 存放去重后数据的新数组
  881. for(let i=0; i<allArr.length; i++){ // 循环allArr数组对象的内容
  882. let flag = true; // 建立标记,判断数据是否重复,true为不重复
  883. for(let j=0; j<newArr.length; j++){ // 循环新数组的内容
  884. if(allArr[i].id == newArr[j].id){ // 让allArr数组对象的内容与新数组的内容作比较,相同的话,改变标记为false
  885. flag = false;
  886. }
  887. }
  888. if(flag){ // 判断是否重复
  889. newArr.push(allArr[i]); // 不重复的放入新数组。 新数组的内容会继续进行上边的循环。
  890. }
  891. }
  892. return newArr;
  893. },
  894. // 全部添加
  895. addAllGoods() {
  896. this.rightGoodsList = this.delRepeat(this.leftGoodsList, this.rightGoodsList);
  897. },
  898. // 添加
  899. addGoods() {
  900. this.rightGoodsList = this.delRepeat(this.leftSelection, this.rightGoodsList);
  901. },
  902. // 删除
  903. deleteGoods() {
  904. let rightGoodsList = this.rightGoodsList;
  905. let rightSelection = this.rightSelection;
  906. for(let i = 0; i < rightGoodsList.length; i++) {
  907. for(let j = 0; j < rightSelection.length; j++) {
  908. if(rightSelection[j].materialId == rightGoodsList[i].materialId){
  909. this.rightGoodsList.splice(i, 1);
  910. }
  911. }
  912. }
  913. },
  914. // 全部删除
  915. deleteAllGoods() {
  916. this.rightGoodsList = [];
  917. },
  918. // 确定 添加产品
  919. submitAddGoods() {
  920. // this.goodsList = this.delRepeat(this.rightGoodsList, this.goodsList);
  921. this.goodsList = this.goodsList.concat(this.rightGoodsList);
  922. this.isShowGoodsDialog = false;
  923. this.leftGoodsList = [];
  924. this.rightGoodsList = [];
  925. },
  926. // 检查库存
  927. checkStock() {
  928. if(!this.warehouseValue) {
  929. return this.$errorMsg('请选择仓库');
  930. }
  931. if(!this.goodsList) {
  932. return this.$errorMsg('请添加货品');
  933. }
  934. let ids = [];
  935. this.goodsList.forEach(item => {
  936. ids.push(item.materialId);
  937. })
  938. checkStock({
  939. correspondId: this.warehouseValue,
  940. materialId: ids.join(',')
  941. }).then(res => {
  942. if(res.data) {
  943. this.goodsList.forEach((item, index) => {
  944. item.status1 = res.data[index].allStockNum;
  945. item.status2 = res.data[index].stockNum;
  946. })
  947. }
  948. })
  949. },
  950. status2Filter(item) {
  951. if (item.status2 === '' || item.status2 === null || item.status2 === undefined) return '未检查';
  952. else if (item.status2 >= item.qty) return '可用';
  953. else return '短缺';
  954. },
  955. // 保存 / 提交审核
  956. clickSubmitForm(type) {
  957. this.$refs.mainForm.validate((valid) => {
  958. if (valid) {
  959. for(let i=0; i<this.goodsList.length; i++) {
  960. if(!this.goodsList[i].customerWalletId) {
  961. this.$errorMsg('请选择现金钱包');
  962. return;
  963. }
  964. }
  965. let goodsList = JSON.parse(JSON.stringify(this.goodsList));
  966. goodsList.forEach(item => {
  967. delete item.rebateWallets;
  968. delete item.wallets;
  969. })
  970. let saleTypeItem = this.salesTypeList.find(o => o.id == this.mainForm.saleType);
  971. let saleManItem = this.mainForm.salesMan ? this.mainForm.salesManthis.outSalesmanList.find(o => o.adminUserId == this.mainForm.salesMan) : '';
  972. let params = {
  973. enginOrderId: this.mainForm.orderNum,
  974. // orderDate: this.mainForm.orderDate,
  975. // mainId: this.mainForm.type || '',
  976. loginUserId: this.mainForm.loginUserId,
  977. refEnginRecordNo: this.mainForm.loginNum || '',
  978. refProjectName: this.mainForm.enginName || '',
  979. refPromiseStatus: this.mainForm.loginType || '',
  980. refFactoryNo: this.mainForm.factoryNum || '',
  981. refUseUnit: this.mainForm.company || '',
  982. refLinkman: this.mainForm.contactMan || '',
  983. refTel: this.mainForm.tel || '',
  984. refPhone: this.mainForm.phone || '',
  985. refInstallAddress: this.mainForm.address || '',
  986. saleTypeId: this.mainForm.saleType,
  987. saleTypeCode: saleTypeItem.saleCode,
  988. saleTypeName: saleTypeItem.saleName,
  989. note2: this.mainForm.greeRemark || '',
  990. note1: this.mainForm.greeReply || '',
  991. remark: this.mainForm.remark || '',
  992. fileNo: this.mainForm.fileNum || '',
  993. serviceId: this.mainForm.salesMan,
  994. serviceName: saleManItem.nickName,
  995. items: goodsList,
  996. }
  997. this.formLoading = true;
  998. if(type === 1) {
  999. if(this.listItem) {
  1000. editHome(params).then(res => {
  1001. this.$successMsg('编辑成功');
  1002. this.goBack();
  1003. this.$parent.getList();
  1004. }).finally(res => {
  1005. this.formLoading = false;
  1006. })
  1007. }else {
  1008. addHome(params).then(res => {
  1009. this.$successMsg('新增成功');
  1010. this.goBack();
  1011. this.$parent.getList();
  1012. }).finally(res => {
  1013. this.formLoading = false;
  1014. })
  1015. }
  1016. }else if(type === 2) {
  1017. submitHome(params).then(res => {
  1018. this.$successMsg('提交审核成功');
  1019. this.goBack();
  1020. this.$parent.getList();
  1021. }).finally(res => {
  1022. this.formLoading = false;
  1023. })
  1024. }
  1025. }
  1026. })
  1027. },
  1028. }
  1029. }
  1030. </script>
  1031. <style scoped lang="scss">
  1032. .detail-container {
  1033. width: 100%;
  1034. height: 100%;
  1035. }
  1036. .main-title {
  1037. display: flex;
  1038. justify-content: space-between;
  1039. align-items: center;
  1040. margin-top: 20px;
  1041. height: 60px;
  1042. border-bottom: 1px solid #DCDFE6;
  1043. margin-bottom: 20px;
  1044. .title {
  1045. font-size: 16px;
  1046. font-weight: 600;
  1047. padding-left: 10px;
  1048. }
  1049. }
  1050. .tables {
  1051. display: flex;
  1052. margin-top: 10px;
  1053. .table {
  1054. width: 45%;
  1055. }
  1056. .buttons {
  1057. display: flex;
  1058. flex-direction: column;
  1059. justify-content: center;
  1060. align-items: center;
  1061. padding: 0 10px;
  1062. button {
  1063. margin: 0;
  1064. margin-top: 10px;
  1065. }
  1066. }
  1067. }
  1068. ::v-deep input::-webkit-outer-spin-button,
  1069. ::v-deep input::-webkit-inner-spin-button {
  1070. -webkit-appearance: none;
  1071. }
  1072. ::v-deep input[type='number'] {
  1073. -moz-appearance: textfield;
  1074. }
  1075. </style>