engin_examine.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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>
  9. <el-col :span="8" class="item">
  10. <div class="label">工程信息单号</div>
  11. <div class="value">{{detailData.enginInfoNo}}</div>
  12. </el-col>
  13. <el-col :span="8" class="item">
  14. <div class="label">订单日期</div>
  15. <div class="value">{{detailData.orderDate}}</div>
  16. </el-col>
  17. <el-col :span="8" class="item">
  18. <div class="label">单据状态</div>
  19. <div class="value">{{detailData.examineStatus | statusFilter}}</div>
  20. </el-col>
  21. <el-col :span="8" class="item">
  22. <div class="label">经销商编码</div>
  23. <div class="value">{{detailData.customerNumber}}</div>
  24. </el-col>
  25. <el-col :span="8" class="item">
  26. <div class="label">项目名称</div>
  27. <div class="value">
  28. <el-input v-model="detailData.projectName" placeholder="请输入项目名称"></el-input>
  29. </div>
  30. </el-col>
  31. <el-col :span="8" class="item">
  32. <div class="label">机型类别</div>
  33. <div class="value">
  34. <el-select v-model="detailData.machineType" placeholder="选择机型类别" size="small" clearable style="width: 100%">
  35. <el-option
  36. v-for="item in machineTypeList"
  37. :key="item.dictCode" :label="item.dictValue" :value="item.dictCode">
  38. </el-option>
  39. </el-select>
  40. </div>
  41. </el-col>
  42. <el-col :span="8" class="item">
  43. <div class="label">经销商名称</div>
  44. <div class="value">{{detailData.customerName}}</div>
  45. </el-col>
  46. <el-col :span="8" class="item">
  47. <div class="label">使用单位</div>
  48. <div class="value">
  49. <el-input v-model="detailData.useUnit" placeholder="请输入使用单位"></el-input>
  50. </div>
  51. </el-col>
  52. <el-col :span="8" class="item">
  53. <div class="label">安装地址</div>
  54. <div class="value">
  55. <el-input v-model="detailData.installAddress" placeholder="请输入安装地址"></el-input>
  56. </div>
  57. </el-col>
  58. <el-col :span="8" class="item">
  59. <div class="label">工程编号</div>
  60. <div class="value">
  61. <el-input v-model="detailData.projectNo" placeholder="请输入工程编号"></el-input>
  62. </div>
  63. </el-col>
  64. <el-col :span="8" class="item">
  65. <div class="label">厂工程编码</div>
  66. <div class="value">
  67. <el-input v-model="detailData.enginFactoryNo" placeholder="请输入厂工程编码"></el-input>
  68. </div>
  69. </el-col>
  70. <el-col :span="8" class="item">
  71. <div class="label">工程登录类型</div>
  72. <div class="value">
  73. <el-select v-model="detailData.enginSignType" placeholder="选择工程登录类型" size="small" clearable style="width: 100%">
  74. <el-option
  75. v-for="item in loginTypeList"
  76. :key="item.dictCode" :label="item.dictValue" :value="item.dictCode">
  77. </el-option>
  78. </el-select>
  79. </div>
  80. </el-col>
  81. <el-col :span="8" class="item">
  82. <div class="label">联系人</div>
  83. <div class="value">
  84. <el-input v-model="detailData.linkman" placeholder="请输入联系人"></el-input>
  85. </div>
  86. </el-col>
  87. <el-col :span="8" class="item">
  88. <div class="label">联系电话</div>
  89. <div class="value">
  90. <el-input v-model="detailData.phone" placeholder="请输入联系电话"></el-input>
  91. </div>
  92. </el-col>
  93. <el-col :span="8" class="item">
  94. <div class="label">固定电话</div>
  95. <div class="value">
  96. <el-input v-model="detailData.tel" placeholder="请输入固定电话"></el-input>
  97. </div>
  98. </el-col>
  99. <el-col :span="8" class="item">
  100. <div class="label">制单人</div>
  101. <div class="value">{{detailData.createBy}}</div>
  102. </el-col>
  103. <el-col :span="8" class="item">
  104. <div class="label">制单日期</div>
  105. <div class="value">{{detailData.createTime}}</div>
  106. </el-col>
  107. <el-col :span="8" class="item">
  108. <div class="label">合同有效期</div>
  109. <div class="value">
  110. <el-date-picker
  111. v-model="detailData.contractExpireDate"
  112. type="date"
  113. prefix-icon="none"
  114. value-format="yyyy-MM-dd"
  115. style="width: 100%;"
  116. placeholder="选择日期">
  117. </el-date-picker>
  118. </div>
  119. </el-col>
  120. <el-col :span="16" class="item">
  121. <div class="label">备注</div>
  122. <div class="value">
  123. <el-input v-model="detailData.remark" placeholder="请输入备注"></el-input>
  124. </div>
  125. </el-col>
  126. <el-col :span="8" class="item">
  127. <div class="label">业务员</div>
  128. <div class="value">
  129. <el-select v-model="detailData.serviceId" placeholder="选择业务员" size="small" filterable clearable style="width: 100%">
  130. <el-option
  131. v-for="item in salesmanList"
  132. :key="item.adminUserId"
  133. :label="item.nickName"
  134. :value="item.adminUserId">
  135. </el-option>
  136. </el-select>
  137. </div>
  138. </el-col>
  139. </el-row>
  140. </div>
  141. <div class="main-title">
  142. <div class="title">货品信息</div>
  143. <div>
  144. <el-button type="primary" size="small" icon="el-icon-plus" @click="openDialog">添加货品</el-button>
  145. </div>
  146. </div>
  147. <div class="table" style="margin-top: 20px">
  148. <el-table :data="goodsList" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  149. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  150. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip></el-table-column>
  151. <el-table-column align="center" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip></el-table-column>
  152. <el-table-column align="center" label="产品编码" prop="materialOldNumber" min-width="120" show-overflow-tooltip></el-table-column>
  153. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  154. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip>
  155. <template slot-scope="scope">
  156. <el-input v-model="scope.row.specification" size="small"></el-input>
  157. </template>
  158. </el-table-column>
  159. <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  160. <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip>
  161. <template slot-scope="scope">
  162. <el-input v-model="scope.row.price" size="small" type="number"></el-input>
  163. </template>
  164. </el-table-column>
  165. <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip>
  166. <template slot-scope="scope">
  167. <el-input v-model="scope.row.qty" size="small" type="number"></el-input>
  168. </template>
  169. </el-table-column>
  170. <el-table-column align="center" label="订单金额" min-width="100" show-overflow-tooltip>
  171. <template slot-scope="scope">
  172. {{(scope.row.price || 0) * (scope.row.qty || 0)}}
  173. </template>
  174. </el-table-column>
  175. <el-table-column align="center" label="备注" prop="remark" min-width="200" show-overflow-tooltip>
  176. <template slot-scope="scope">
  177. <el-input v-model="scope.row.remark" size="small"></el-input>
  178. </template>
  179. </el-table-column>
  180. <el-table-column align="center" label="税率" prop="taxRate" min-width="100" show-overflow-tooltip></el-table-column>
  181. <el-table-column align="center" label="操作" width="100" fixed="right">
  182. <template slot-scope="scope">
  183. <el-button type="text" @click="deleteItem(scope.$index)">删除</el-button>
  184. </template>
  185. </el-table-column>
  186. </el-table>
  187. </div>
  188. <div class="main-title">
  189. <div class="title">审批信息</div>
  190. </div>
  191. <div class="diy-table-1">
  192. <el-row :gutter="0">
  193. <el-col :span="12" class="item">
  194. <div class="label">审批人</div>
  195. <div class="value">{{userName}}</div>
  196. </el-col>
  197. <el-col :span="12" class="item">
  198. <div class="label">审批结果</div>
  199. <div class="value">
  200. <el-radio-group v-model="examineForm.examineResult">
  201. <el-radio :label="true">通过</el-radio>
  202. <el-radio :label="false">驳回</el-radio>
  203. </el-radio-group>
  204. </div>
  205. </el-col>
  206. <el-col :span="24" class="item">
  207. <div class="label">审批说明</div>
  208. <div class="value"><el-input v-model="examineForm.remark" placeholder="请输入内容"></el-input></div>
  209. </el-col>
  210. </el-row>
  211. </div>
  212. <div class="page-footer">
  213. <div class="footer">
  214. <el-button type="primary" @click="clickSubmitForm" :loading="formLoading">{{ formLoading ? '提交中 ...' : '提 交' }}</el-button>
  215. <el-popconfirm
  216. title="确定关闭吗?"
  217. @onConfirm="goBack"
  218. style="margin-left: 10px;"
  219. >
  220. <el-button slot="reference">关 闭</el-button>
  221. </el-popconfirm>
  222. </div>
  223. </div>
  224. <el-dialog title="添加产品" :visible.sync="isShowGoodsDialog" width="80%">
  225. <el-form ref="goodsScreenForm" :model="goodsScreenForm" size="small" label-position="left">
  226. <el-row :gutter="20">
  227. <el-col :xs="12" :sm="6" :lg="6">
  228. <el-form-item prop="salesType">
  229. <el-select v-model="goodsScreenForm.salesType" placeholder="选择销售类型" style="width: 100%" clearable>
  230. <el-option v-for="item in salesTypeList" :key="item.id" :label="item.saleName" :value="item.id"></el-option>
  231. </el-select>
  232. </el-form-item>
  233. </el-col>
  234. <el-col :xs="12" :sm="6" :lg="6">
  235. <el-form-item prop="proNum">
  236. <el-input v-model="goodsScreenForm.proNum" placeholder="请输入产品编码"></el-input>
  237. </el-form-item>
  238. </el-col>
  239. <el-col :xs="12" :sm="6" :lg="6">
  240. <el-form-item prop="proName">
  241. <el-input v-model="goodsScreenForm.proName" placeholder="请输入产品名称"></el-input>
  242. </el-form-item>
  243. </el-col>
  244. <el-col :xs="12" :sm="6" :lg="6">
  245. <el-form-item prop="proModel">
  246. <el-input v-model="goodsScreenForm.proModel" placeholder="请输入产品型号"></el-input>
  247. </el-form-item>
  248. </el-col>
  249. <el-col :xs="12" :sm="6" :lg="6">
  250. <el-form-item prop="price1" style="display: flex">
  251. <el-input v-model="goodsScreenForm.price1" placeholder="请输入价格" style="width: 46%"></el-input>
  252. <span> - </span>
  253. <el-input v-model="goodsScreenForm.price2" placeholder="请输入价格" style="width: 46%"></el-input>
  254. </el-form-item>
  255. </el-col>
  256. <el-col :xs="12" :sm="18" :lg="18" class="tr">
  257. <el-form-item label="">
  258. <el-button size="small" @click="resetGoodsScreenForm">清空</el-button>
  259. <el-button size="small" type="primary" @click="submitGoodsScreenForm">搜索</el-button>
  260. </el-form-item>
  261. </el-col>
  262. </el-row>
  263. </el-form>
  264. <div class="tables">
  265. <div class="table">
  266. <el-table :data="leftGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="leftSelectionChange">
  267. <el-table-column align="center" type="selection" width="55" :selectable='checkboxSelect'></el-table-column>
  268. <el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
  269. <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
  270. <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  271. <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip></el-table-column>
  272. </el-table>
  273. <div class="pagination clearfix" style="margin-top: 10px">
  274. <div class="fr">
  275. <el-pagination
  276. @current-change="handleTableCurrentChange"
  277. :current-page="currentPage"
  278. :page-size="10"
  279. background
  280. layout="prev, pager, next"
  281. :total="listTotal">
  282. </el-pagination>
  283. </div>
  284. </div>
  285. </div>
  286. <div class="buttons">
  287. <el-button size="small" type="primary" @click="addAllGoods">全部添加</el-button>
  288. <el-button size="small" type="primary" @click="addGoods">添&emsp;加</el-button>
  289. <el-button size="small" type="danger" @click="deleteGoods">删&emsp;除</el-button>
  290. <el-button size="small" type="danger" @click="deleteAllGoods">全部删除</el-button>
  291. </div>
  292. <div class="table">
  293. <el-table :data="rightGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="rightSelectionChange">
  294. <el-table-column align="center" type="selection" width="55"></el-table-column>
  295. <el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
  296. <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
  297. <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  298. <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip></el-table-column>
  299. </el-table>
  300. </div>
  301. </div>
  302. <span slot="footer" class="dialog-footer">
  303. <el-button @click="closeDialog">取 消</el-button>
  304. <el-button type="primary" @click="submitAddGoods">确 定</el-button>
  305. </span>
  306. </el-dialog>
  307. </div>
  308. </template>
  309. <script>
  310. import { getEnginDetail, getRetailProductList, examineEngin } from "@/api/supply/engin";
  311. import { getTypeList, getSalesmanList, getDictList } from "@/api/common";
  312. export default {
  313. name: 'EnginExamine',
  314. componentName: 'EnginExamine',
  315. props: ['listItem'],
  316. filters: {
  317. statusFilter(val) {
  318. const statusList = [
  319. { label: '已保存', value: 'SAVE' },
  320. { label: '待审核', value: 'WAIT' },
  321. { label: '审核通过', value: 'OK' },
  322. { label: '审核驳回', value: 'FAIL' },
  323. { label: '已关闭', value: 'CLOSE' },
  324. ];
  325. let obj = statusList.find(o => o.value == val);
  326. return obj ? obj.label : ''
  327. }
  328. },
  329. data() {
  330. return {
  331. detailData: {},
  332. goodsList: [],
  333. userName: JSON.parse(localStorage.getItem("supply_user")).nickName,
  334. formLoading: false,
  335. examineForm: {
  336. examineResult: true,
  337. remark: '',
  338. },
  339. salesTypeList: [],
  340. salesmanList: [],
  341. machineTypeList: [],
  342. loginTypeList: [],
  343. powerList: [],
  344. isShowGoodsDialog: false,
  345. goodsScreenForm: {
  346. proNum: '',
  347. proName: '',
  348. proModel: '',
  349. price1: '',
  350. price2: '',
  351. salesType: '',
  352. },
  353. currentPage: 1,
  354. listTotal: 0,
  355. leftGoodsList: [],
  356. rightGoodsList: [],
  357. leftSelection: [],
  358. rightSelection: [],
  359. }
  360. },
  361. created() {
  362. this.getDetail();
  363. this.getTypeList();
  364. this.getSalesmanList();
  365. this.getDictList();
  366. },
  367. methods: {
  368. // 返回列表
  369. goBack() {
  370. this.$emit('backListFormDetail');
  371. },
  372. // 获取详情
  373. getDetail() {
  374. getEnginDetail({id: this.listItem.enginInfoId}).then(res => {
  375. this.detailData = res.data;
  376. this.goodsList = res.data.items;
  377. })
  378. },
  379. // 获取销售类型列表
  380. getTypeList() {
  381. getTypeList({
  382. pageNum: 1,
  383. pageSize: -1,
  384. }).then((res) => {
  385. this.salesTypeList = res.data.records;
  386. });
  387. },
  388. getSalesmanList() {
  389. getSalesmanList({
  390. pageNum: 1,
  391. pageSize: -1,
  392. isCustomer: 0,
  393. status: true,
  394. }).then(res => {
  395. this.salesmanList = res.data.records;
  396. })
  397. },
  398. // 获取产品大类列表
  399. getDictList() {
  400. getDictList({sysDictEnum: 'MACHINE_TYPE'}).then(res => {
  401. this.machineTypeList = res.data;
  402. })
  403. getDictList({sysDictEnum: 'POWER_CATEGORY'}).then(res => {
  404. this.powerList = res.data;
  405. })
  406. getDictList({sysDictEnum: 'SIGN_TYPE'}).then(res => {
  407. this.loginTypeList = res.data;
  408. })
  409. },
  410. // 获取商品列表
  411. getGoodsList() {
  412. getRetailProductList({
  413. pageNum: this.currentPage,
  414. pageSize: 10,
  415. saleId: this.goodsScreenForm.salesType,
  416. materialCode: this.goodsScreenForm.proNum,
  417. materialName: this.goodsScreenForm.proName,
  418. specification: this.goodsScreenForm.proModel,
  419. price1: this.goodsScreenForm.price1,
  420. price2: this.goodsScreenForm.price2,
  421. }).then(res => {
  422. let oldGoodsList = this.goodsList;
  423. let newGoodsList = res.data.records;
  424. for(let i = 0; i < oldGoodsList.length; i++) {
  425. let oldItem = oldGoodsList[i]
  426. for(let j = 0; j < newGoodsList.length; j++) {
  427. let newItem = newGoodsList[j]
  428. if(newItem.id === oldItem.id){
  429. newGoodsList[j].selected = true;
  430. break;
  431. }
  432. }
  433. }
  434. res.data.records.forEach(item => {
  435. item.materialName = item.name;
  436. item.materialCode = item.number;
  437. item.saleTypeName = item.saleName;
  438. item.unit = item.baseUnit;
  439. item.price = item.batchPrice;
  440. item.tax = item.taxRate;
  441. item.isDirectTransfer = false;
  442. item.directTransferQty = '';
  443. item.status1 = '';
  444. item.status2 = '';
  445. item.rebateAmount = '';
  446. item.rebateRate = '';
  447. item.productPriceId = item.id;
  448. // item.customerWalletId = (item.wallets && item.wallets.length) ? item.wallets[0].customerWalletId : '';
  449. });
  450. this.leftGoodsList = res.data.records;
  451. this.listTotal = res.data.total;
  452. })
  453. },
  454. // 查询重复值并禁选
  455. checkboxSelect(row, rowIndex) {
  456. if (row.selected) {
  457. return false // 禁用
  458. }else{
  459. return true // 不禁用
  460. }
  461. },
  462. // 点击 选择商品
  463. openDialog() {
  464. this.isShowGoodsDialog = true;
  465. this.getGoodsList();
  466. },
  467. // 提交筛选表单
  468. submitGoodsScreenForm() {
  469. this.currentPage = 1;
  470. this.getGoodsList();
  471. },
  472. // 重置筛选表单
  473. resetGoodsScreenForm() {
  474. this.$refs.goodsScreenForm.resetFields();
  475. this.currentPage = 1;
  476. this.getGoodsList();
  477. },
  478. // 更改列表当前页
  479. handleTableCurrentChange(val) {
  480. this.currentPage = val;
  481. this.getGoodsList();
  482. },
  483. // 关闭 弹窗
  484. closeDialog() {
  485. this.isShowGoodsDialog = false;
  486. },
  487. // 左侧列表选择
  488. leftSelectionChange(val) {
  489. this.leftSelection = val;
  490. },
  491. // 右侧列表选择
  492. rightSelectionChange(val) {
  493. this.rightSelection = val;
  494. },
  495. // 数组去重
  496. delRepeat(arr1, arr2) {
  497. let allArr = arr1.concat(arr2); // 两个数组对象合并
  498. let newArr = []; // 存放去重后数据的新数组
  499. for(let i=0; i<allArr.length; i++){ // 循环allArr数组对象的内容
  500. let flag = true; // 建立标记,判断数据是否重复,true为不重复
  501. for(let j=0; j<newArr.length; j++){ // 循环新数组的内容
  502. if(allArr[i].id == newArr[j].id){ // 让allArr数组对象的内容与新数组的内容作比较,相同的话,改变标记为false
  503. flag = false;
  504. }
  505. }
  506. if(flag){ // 判断是否重复
  507. newArr.push(allArr[i]); // 不重复的放入新数组。 新数组的内容会继续进行上边的循环。
  508. }
  509. }
  510. return newArr;
  511. },
  512. // 全部添加
  513. addAllGoods() {
  514. this.rightGoodsList = this.delRepeat(this.leftGoodsList, this.rightGoodsList);
  515. },
  516. // 添加
  517. addGoods() {
  518. this.rightGoodsList = this.delRepeat(this.leftSelection, this.rightGoodsList);
  519. },
  520. // 删除
  521. deleteGoods() {
  522. let rightGoodsList = this.rightGoodsList;
  523. let rightSelection = this.rightSelection;
  524. for(let i = 0; i < rightGoodsList.length; i++) {
  525. for(let j = 0; j < rightSelection.length; j++) {
  526. if(rightSelection[j].materialId == rightGoodsList[i].materialId){
  527. this.rightGoodsList.splice(i, 1);
  528. }
  529. }
  530. }
  531. },
  532. // 全部删除
  533. deleteAllGoods() {
  534. this.rightGoodsList = [];
  535. },
  536. // 确定 添加产品
  537. submitAddGoods() {
  538. // this.goodsList = this.delRepeat(this.rightGoodsList, this.goodsList);
  539. this.goodsList = this.goodsList.concat(this.rightGoodsList);
  540. this.isShowGoodsDialog = false;
  541. this.leftGoodsList = [];
  542. this.rightGoodsList = [];
  543. },
  544. // 删除产品
  545. deleteItem(index) {
  546. this.goodsList.splice(index, 1);
  547. },
  548. clickSubmitForm() {
  549. if(!this.detailData.serviceId) {
  550. return this.$errorMsg('请选择业务员');
  551. }
  552. this.$confirm('此操作将审批订单, 是否继续?', '提示', {
  553. confirmButtonText: '确定',
  554. cancelButtonText: '取消',
  555. type: 'warning'
  556. }).then(() => {
  557. let saleManItem = this.salesmanList.find(o => o.adminUserId == this.detailData.serviceId);
  558. let params = JSON.parse(JSON.stringify(this.detailData));
  559. params.enginInfoId = this.listItem.enginInfoId;
  560. params.mainId = this.listItem.mainId;
  561. params.examineResult = this.examineForm.examineResult;
  562. params.examineNote = this.examineForm.remark;
  563. params.serviceName = saleManItem.nickName;
  564. params.items = this.goodsList;
  565. this.formLoading = true;
  566. examineEngin(params).then(res => {
  567. this.$successMsg('审批成功');
  568. this.goBack();
  569. this.$parent.getList();
  570. }).finally(res => {
  571. this.formLoading = false;
  572. })
  573. }).catch(() => {});
  574. },
  575. }
  576. }
  577. </script>
  578. <style scoped lang="scss">
  579. .detail-container {
  580. width: 100%;
  581. height: 100%;
  582. }
  583. .main-title {
  584. display: flex;
  585. justify-content: space-between;
  586. align-items: center;
  587. margin-top: 20px;
  588. height: 60px;
  589. border-bottom: 1px solid #DCDFE6;
  590. margin-bottom: 20px;
  591. .title {
  592. font-size: 16px;
  593. font-weight: 600;
  594. padding-left: 10px;
  595. }
  596. }
  597. .tables {
  598. display: flex;
  599. margin-top: 10px;
  600. .table {
  601. width: 45%;
  602. }
  603. .buttons {
  604. display: flex;
  605. flex-direction: column;
  606. justify-content: center;
  607. align-items: center;
  608. padding: 0 10px;
  609. button {
  610. margin: 0;
  611. margin-top: 10px;
  612. }
  613. }
  614. }
  615. ::v-deep input::-webkit-outer-spin-button,
  616. ::v-deep input::-webkit-inner-spin-button {
  617. -webkit-appearance: none;
  618. }
  619. ::v-deep input[type='number'] {
  620. -moz-appearance: textfield;
  621. }
  622. </style>