productionTotalOrderAdd.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. <template>
  2. <a-modal
  3. :title="title"
  4. width="95%"
  5. :visible="visible"
  6. :maskClosable="false"
  7. switchFullscreen
  8. @cancel="handleCancel"
  9. @ok='handleOk'
  10. >
  11. <template slot="footer">
  12. <a-button @click="handleCancel">关闭</a-button>
  13. <a-button type="primary" @click="handleOk" v-if="title!=='订单操作'">保存</a-button>
  14. </template>
  15. <a-card :bordered="false" class="top" style="margin-bottom:1%;margin-top:1%" :loading = 'loading'>
  16. <div class="table-page-search-wrapper">
  17. <a-form-model layout="inline" @keyup.enter.native="searchQuery" :model="form" :rules="rules" ref="form">
  18. <a-row :gutter="24">
  19. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  20. <a-form-model-item label="生产组织" prop='orgName' >
  21. <a-input-search placeholder="请选择" v-model="form.orgName" @search="onSearchProductionOrg" readOnly></a-input-search>
  22. </a-form-model-item>
  23. </a-col>
  24. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  25. <a-form-model-item label="单据号">
  26. <a-input placeholder="自动生成" v-model="form.orderCode" disabled></a-input>
  27. </a-form-model-item>
  28. </a-col>
  29. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  30. <a-form-model-item label="单据日期" prop='orderDate'>
  31. <a-date-picker showTime valueFormat="YYYY-MM-DD" format = "YYYY-MM-DD" v-model="form.orderDate" style="width:100%" />
  32. </a-form-model-item>
  33. </a-col>
  34. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  35. <a-form-model-item label="单据状态">
  36. <a-input placeholder="请输入" v-model="form.state" disabled></a-input>
  37. </a-form-model-item>
  38. </a-col>
  39. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  40. <a-form-model-item label="业务员">
  41. <a-input-search placeholder="请选择" v-model="form.salesperson" @search="onSearchPerson" readOnly ></a-input-search>
  42. </a-form-model-item>
  43. </a-col>
  44. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  45. <a-form-model-item label="计划部门">
  46. <a-input-search placeholder="请选择" v-model="form.planDept" @search="onSearchPlanDept" readOnly></a-input-search>
  47. </a-form-model-item>
  48. </a-col>
  49. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  50. <a-form-model-item label="项目名称" prop='projectName'>
  51. <a-input-search placeholder="请选择" v-model="form.projectName" @search="onSearchProject" readOnly></a-input-search>
  52. </a-form-model-item>
  53. </a-col>
  54. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  55. <a-form-model-item label="项目编码" prop='projectCode'>
  56. <a-input placeholder="请选择" v-model="form.projectCode" disabled></a-input>
  57. </a-form-model-item>
  58. </a-col>
  59. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  60. <a-form-model-item label="业务类型" prop='type'>
  61. <a-select v-model="form.type" style='width:100%' >
  62. <a-select-option value='工装'> 工装</a-select-option>
  63. <a-select-option value='家装'> 家装</a-select-option>
  64. </a-select>
  65. </a-form-model-item>
  66. </a-col>
  67. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  68. <a-form-model-item label="制单人">
  69. <a-input placeholder="自动" v-model="form.createBy" disabled></a-input>
  70. </a-form-model-item>
  71. </a-col>
  72. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  73. <a-form-model-item label="审核人">
  74. <a-input placeholder="自动" v-model="form.reviewer" disabled></a-input>
  75. </a-form-model-item>
  76. </a-col>
  77. <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="4">
  78. <a-form-model-item label="工单号" prop='workNo'>
  79. <a-input placeholder="请输入" v-model="form.workNo" ></a-input>
  80. </a-form-model-item>
  81. </a-col>
  82. <a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  83. <a-form-model-item label="备注" :labelCol="{offset: 1}" >
  84. <a-input placeholder="请输入" v-model="form.remarks"></a-input>
  85. </a-form-model-item>
  86. </a-col>
  87. </a-row>
  88. </a-form-model>
  89. </div>
  90. </a-card>
  91. <a-card :bordered="false" class="three" style="margin-bottom:1%" >
  92. <div class="table-operator">
  93. <a-button type="danger" size="small" :disabled="form.state!='开立'" @click="addList" >增行</a-button>
  94. <a-button size="small" @click="delectRow" :disabled="form.state!='开立'" >删行</a-button>
  95. <a-button size="small" @click="productWarehous" :disabled="activeKey!=='finishProduct'||defaultMethod=='add'||form.state=='开立'">成品入库</a-button>
  96. <a-button size="small" @click="materiaWarehous" :disabled="activeKey!=='material'||defaultMethod=='add'||form.state=='开立'">材料出库</a-button>
  97. <a-button size="small" @click="KSWarehousing" :disabled="activeKey!=='finishProduct'||defaultMethod=='add'||form.state=='开立'">框/扇入库</a-button>
  98. <a-button size="small" @click="KSOutbound" :disabled="activeKey!=='finishProduct'||defaultMethod=='add'||form.state=='开立'">框/扇出库</a-button>
  99. <a-button size="small" @click="sendOrReceive('in')" :disabled="activeKey!=='SurplusMaterials'||defaultMethod=='add'||form.state=='开立'">余料入库</a-button>
  100. <a-button size="small" @click="editNum()" :disabled="defaultMethod=='add'||form.state=='开立'">修改已执行数量</a-button>
  101. <!-- <a-button size="small" @click="sendOrReceive('out')" :disabled="activeKey!=='SurplusMaterials'||defaultMethod=='add'||form.state=='开立'">杂发</a-button> -->
  102. </div>
  103. <a-tabs v-model="activeKey" @change="handleChangeTabs">
  104. <a-tab-pane tab="成品明细" :key="refKeys[0]" :forceRender="true">
  105. <productDetails ref="productDetails" :title="title"></productDetails>
  106. </a-tab-pane>
  107. <a-tab-pane tab="材料明细" :key="refKeys[1]" :forceRender="true">
  108. <material ref="material" @clearn="clearnExecute" :title="title"></material>
  109. </a-tab-pane>
  110. <a-tab-pane tab="入库暂存" :key="refKeys[2]" :forceRender="true">
  111. <TemporaryStorage ref='TemporaryStorage'></TemporaryStorage>
  112. </a-tab-pane>
  113. <a-tab-pane tab="余料管理" :key="refKeys[3]" :forceRender="true">
  114. <SurplusMaterials ref='SurplusMaterials' @ok="close" :title="title"></SurplusMaterials>
  115. </a-tab-pane>
  116. </a-tabs>
  117. </a-card>
  118. <productWarehousModel ref="productWarehousModel" @ok="RefreshList('product')"></productWarehousModel>
  119. <KSOutbound ref="KSOutbound" @ok="RefreshList('out')"></KSOutbound>
  120. <KSWarehousing ref="KSWarehousing" @ok="RefreshList('ware')"></KSWarehousing>
  121. <materiaWaring ref="materiaWaring" @ok="RefreshMateriaList()"></materiaWaring>
  122. <organizationPopup ref="organizationPopup" @okData="okDataOrganization"></organizationPopup>
  123. <OperatorsPopup ref="OperatorsPopup" @okData="okDataOperators"></OperatorsPopup>
  124. <deparmentPopup ref="deparmentPopup" @okData="okDataDeparment"></deparmentPopup>
  125. <projectPopup ref="projectPopup" @okData="okData"></projectPopup>
  126. </a-modal>
  127. </template>
  128. <script>
  129. import alertModal from '../../../../plugins/modal'
  130. import { FormTypes } from '@/utils/JEditableTableUtil'
  131. import { JEditableTableModelMixin } from '@/mixins/JEditableTableModelMixin'
  132. import productDetails from './productDetails'
  133. import material from './material'
  134. import TemporaryStorage from './TemporaryStorage'
  135. import SurplusMaterials from './SurplusMaterials'
  136. import productWarehousModel from './productWarehousModel'
  137. import KSOutbound from './KSOutbound'
  138. import KSWarehousing from './KSWarehousing'
  139. import materiaWaring from './materiaWaring'
  140. import moment from "moment"
  141. import { httpAction ,getAction,postAction,putAction} from '@/api/manage'
  142. import organizationPopup from '../../Popup/organizationPopup.vue'
  143. import OperatorsPopup from '../../Popup/OperatorsPopup.vue'
  144. import deparmentPopup from '../../Popup/deparmentPopup.vue'
  145. import projectPopup from '../../Popup/projectPopup'
  146. export default {
  147. name: 'materialProcurementAdd',
  148. mixins: [JEditableTableModelMixin],
  149. components: {
  150. productDetails,
  151. material,
  152. TemporaryStorage,
  153. SurplusMaterials,
  154. organizationPopup,
  155. OperatorsPopup,
  156. deparmentPopup,
  157. projectPopup,
  158. productWarehousModel,
  159. KSOutbound,
  160. KSWarehousing,
  161. materiaWaring
  162. },
  163. data() {
  164. return {
  165. visible:false,
  166. form:{},
  167. execute:undefined,
  168. defaultMethod:'add',
  169. rules:{
  170. orgName: [
  171. { required: true, trigger: 'change' },
  172. ],
  173. orderDate:[
  174. { required: true, trigger: 'change' },
  175. ],
  176. projectName:[
  177. { required: true, trigger: 'change' },
  178. ],
  179. projectCode:[
  180. { required: true, trigger: 'change' },
  181. ],
  182. type:[
  183. { required: true, trigger: 'change' },
  184. ],
  185. workNo:[
  186. { required: true, trigger: 'change' },
  187. ],
  188. },
  189. dataSource:[],
  190. originalProductDeatil:[],//保存为增行钱的成品明细列表
  191. originalMaterial:[],//保存为增行钱的材料明细列表
  192. loading:false,
  193. // ipagination:{},
  194. selectedRowKeys:[],
  195. title:'新增',
  196. selectedRows:[],
  197. activeKey:'finishProduct',
  198. refKeys:['finishProduct','material','TemporaryStorage','SurplusMaterials'],
  199. }
  200. },
  201. created() {
  202. },
  203. methods: {
  204. handleCancel(){
  205. this.visible=false
  206. this.loading=false
  207. this.defaultMethod='add'
  208. this.activeKey='finishProduct',
  209. this.execute = ''
  210. this.dataSource = []
  211. this.form={ }
  212. this.selectedRowKeys = []
  213. this.selectedRows = []
  214. this.originalProductDeatil = []
  215. this.$refs.productDetails.form.dataSource =[]
  216. this.$refs.productDetails.planOrg=''
  217. this.originalMaterial = []
  218. this.$refs.material.form.dataSource = []
  219. this.$refs.material.planOrg=''
  220. this.$refs.TemporaryStorage.planOrg=[]
  221. this.$refs.TemporaryStorage.dataSource = []
  222. this.$refs.SurplusMaterials.form.dataSource = []
  223. this.$refs.SurplusMaterials.planOrg= ''
  224. this.$emit('ok')
  225. },
  226. handleOk(){
  227. this.$refs.form.validate(success => {
  228. if (success) {
  229. var arrValid = [true]
  230. if(this.$refs.productDetails.form.dataSource.length!==0){
  231. arrValid.push(this.$refs.productDetails.validateList())
  232. }
  233. if(this.$refs.material.form.dataSource.length!==0){
  234. arrValid.push(this.$refs.material.validateList())
  235. }
  236. if(this.$refs.SurplusMaterials.form.dataSource.length!==0){
  237. arrValid.push(this.$refs.SurplusMaterials.validateList())
  238. }
  239. if(arrValid.indexOf(false) == -1){
  240. var madeProductionOrdersPage = this.form
  241. madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.form.dataSource
  242. madeProductionOrdersPage.madeProductionOrdersMaterialList = this.$refs.material.form.dataSource
  243. madeProductionOrdersPage.madeProductionOrdersInList = this.$refs.TemporaryStorage.dataSource
  244. madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.SurplusMaterials.form.dataSource
  245. this.loading = true
  246. if(this.defaultMethod=='add'){
  247. alertModal.loading("执行中,请稍后!")
  248. postAction('/productionOrder/madeProductionOrders/add', madeProductionOrdersPage).then((res) => {
  249. alertModal.closeLoading();
  250. if (res.success) {
  251. this.$message.success('添加成功!');
  252. this.$emit('ok')
  253. this.handleCancel()
  254. } else {
  255. this.$message.error(res.message);
  256. }
  257. }).finally(() => {
  258. this.loading = false
  259. })
  260. }else{
  261. alertModal.loading("执行中,请稍后!")
  262. postAction('/productionOrder/madeProductionOrders/edit', madeProductionOrdersPage).then((res) => {
  263. alertModal.closeLoading();
  264. if (res.success) {
  265. this.$emit('ok')
  266. this.handleCancel()
  267. this.$message.success('编辑成功!');
  268. } else {
  269. this.$message.error(res.message);
  270. }
  271. }).finally(() => {
  272. this.loading = false
  273. })
  274. }
  275. }else{
  276. this.$message.warning('请检查子表必填项')
  277. }
  278. }
  279. })
  280. },
  281. //获取主表信息
  282. getMainData(id){
  283. getAction('/productionOrder/madeProductionOrders/queryById',{id:id}).then(res=>{
  284. if(res.success){
  285. this.form=res.result
  286. this.getProductData(this.form.id)
  287. this.getMaterialData(this.form.id)
  288. this.getTemporaryStorageData(this.form.id)
  289. this.getSurplusMaterialsData(this.form.id)
  290. }else{
  291. this.$message.error(res.message);
  292. }
  293. })
  294. },
  295. //获取子表信息
  296. getProductData(id){
  297. //成品明细
  298. this.originalProductDeatil = []//保存为增行钱的成品明细列表
  299. getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersFinishedByMainId',{id:id}).then(res=>{
  300. if(res.success){
  301. this.originalProductDeatil = Array.from(res.result)
  302. this.$refs.productDetails.form.dataSource =res.result
  303. this.$refs.productDetails.planOrg=this.form.pkOrg
  304. this.$refs.productDetails.form.dataSource.map((item,index)=>{
  305. item.rowNo =index+1
  306. })
  307. }else{
  308. this.$message.error(res.message);
  309. }
  310. })
  311. },
  312. //获取子表信息
  313. getMaterialData(id){
  314. //材料明细
  315. this.originalMaterial = []//保存为增行钱的材料明细列表
  316. getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersMaterialByMainId',{id:id}).then(res=>{
  317. if(res.success){
  318. this.originalMaterial = Array.from(res.result)
  319. this.$refs.material.form.dataSource =res.result
  320. this.$refs.material.planOrg=this.form.pkOrg
  321. this.$refs.material.form.dataSource.map((item,index)=>{
  322. item.rowNo =index+1
  323. })
  324. }else{
  325. this.$message.error(res.message);
  326. }
  327. })
  328. },
  329. //获取子表信息
  330. getTemporaryStorageData(id){
  331. //入库暂存
  332. getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersInByMainId',{id:id}).then(res=>{
  333. if(res.success){
  334. this.$refs.TemporaryStorage.planOrg=this.form.pkOrg
  335. this.$refs.TemporaryStorage.dataSource =res.result
  336. this.$refs.TemporaryStorage.dataSource.map((item,index)=>{
  337. item.rowNo =index+1
  338. })
  339. }else{
  340. this.$message.error(res.message);
  341. }
  342. })
  343. },
  344. //获取子表信息
  345. getSurplusMaterialsData(id){
  346. //余料管理
  347. getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersOutByMainId',{id:id}).then(res=>{
  348. if(res.success){
  349. this.$refs.SurplusMaterials.form.dataSource =res.result
  350. this.$refs.SurplusMaterials.planOrg=this.form.pkOrg
  351. this.$refs.SurplusMaterials.form.dataSource.map((item,index)=>{
  352. item.rowNo =index+1
  353. })
  354. }else{
  355. this.$message.error(res.message);
  356. }
  357. })
  358. },
  359. //查询生产组织
  360. onSearchProductionOrg(){
  361. this.$refs.organizationPopup.visible = true
  362. this.$refs.organizationPopup.getData()
  363. },
  364. //查询业务员
  365. onSearchPerson(){
  366. if(this.form.orgName&&this.form.orgName!==''){
  367. this.$refs.OperatorsPopup.visible = true
  368. this.$refs.OperatorsPopup.getData(this.form.pkOrg)
  369. }else{
  370. this.$message.warning('请选择生产组织!')
  371. }
  372. },
  373. //查询部门
  374. onSearchPlanDept(){
  375. if(this.form.orgName&&this.form.orgName!==''){
  376. this.$refs.deparmentPopup.visible = true
  377. this.$refs.deparmentPopup.getData(this.form.pkOrg)
  378. }else{
  379. this.$message.warning('请选择生产组织!')
  380. }
  381. },
  382. //选择项目
  383. okData(data){
  384. this.$set(this.form,'projectCode',data.Code)
  385. this.$set(this.form,'projectName',data.Name)
  386. this.$set(this.form,'project',data.ID)
  387. this.$refs.productDetails.form.dataSource.map((item,index)=>{
  388. item.projectCode = data.Code
  389. item.projectName = data.Name
  390. })
  391. this.$refs.material.form.dataSource.map((item,index)=>{
  392. item.projectCode = data.Code
  393. item.projectName = data.Name
  394. })
  395. this.$refs.SurplusMaterials.form.dataSource.map((item,index)=>{
  396. item.projectCode = data.Code
  397. item.projectName = data.Name
  398. })
  399. if(this.form.projectName&&this.form.projectName!==''){
  400. this.$refs.form.clearValidate(['projectName']);
  401. }
  402. if(this.form.projectCode&&this.form.projectCode!==''){
  403. this.$refs.form.clearValidate(['projectCode']);
  404. }
  405. },
  406. //查询生产组织
  407. onSearchProject(){
  408. if(this.form.orgName&&this.form.orgName!==''){
  409. this.$refs.projectPopup.visible = true
  410. this.$refs.projectPopup.getData(this.form.pkOrg)
  411. }else{
  412. this.$message.warning('请选择生产组织!')
  413. }
  414. },
  415. addList(){
  416. if(this.activeKey=='finishProduct'){
  417. this.$refs.productDetails.addList(this.form.projectCode,this.form.projectName)
  418. }else if(this.activeKey=='material'){
  419. this.$refs.material.addList(this.form.projectCode,this.form.projectName)
  420. }else if(this.activeKey=='SurplusMaterials'){
  421. this.$refs.SurplusMaterials.addList(this.form.projectCode,this.form.projectName)
  422. }
  423. },
  424. delectRow(){
  425. if(this.activeKey=='finishProduct'){
  426. this.$refs.productDetails.delectRow()
  427. }else if(this.activeKey=='material'){
  428. this.$refs.material.delectRow()
  429. }else if(this.activeKey=='SurplusMaterials'){
  430. this.$refs.SurplusMaterials.delectRow()
  431. }
  432. },
  433. clearnExecute(){
  434. this.execute = ''
  435. },
  436. //选择组织
  437. okDataOrganization(data){
  438. this.$set(this.form,'orgName',data.Name)
  439. this.$set(this.form,'orgCode',data.Code)
  440. this.$set(this.form,'pkOrg',data.ID)
  441. this.$refs.productDetails.planOrg=this.form.pkOrg
  442. this.$refs.material.planOrg=this.form.pkOrg
  443. this.$refs.SurplusMaterials.planOrg=this.form.pkOrg
  444. if(this.form.orgName&&this.form.orgName!==''){
  445. this.$refs.form.clearValidate(['orgName']);
  446. }
  447. },
  448. //选择业务员
  449. okDataOperators(data){
  450. this.$set(this.form,'salesperson',data.Name)
  451. this.$set(this.form,'salespersonId',data.ID)
  452. },
  453. //选择部门
  454. okDataDeparment(data){
  455. this.$set(this.form,'planDept',data.Name)
  456. this.$set(this.form,'planDeptId',data.ID)
  457. },
  458. //成品入库
  459. productWarehous(){
  460. this.$refs.productWarehousModel.visible = true
  461. this.$refs.productWarehousModel.form.dataSource = this.originalProductDeatil
  462. },
  463. //打开框/扇入库弹窗
  464. KSWarehousing(){
  465. this.$refs.KSWarehousing.visible = true
  466. this.$refs.KSWarehousing.form.dataSource = this.originalProductDeatil
  467. },
  468. //打开框/扇出库弹窗
  469. KSOutbound(){
  470. this.$refs.KSOutbound.visible = true
  471. this.$refs.KSOutbound.form.dataSource = this.originalProductDeatil
  472. },
  473. //打开材料出库弹窗
  474. materiaWarehous(){
  475. //材料明细
  476. this.originalMaterial = []//保存为增行钱的材料明细列表
  477. getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersMaterialByMainIdAndWh',{id:this.form.id}).then(res=>{
  478. if(res.success){
  479. this.originalMaterial = Array.from(res.result)
  480. this.$refs.material.form.dataSource =res.result
  481. this.$refs.material.planOrg=this.form.pkOrg
  482. this.$refs.material.form.dataSource.map((item,index)=>{
  483. item.rowNo =index+1
  484. })
  485. this.$refs.materiaWaring.visible = true
  486. this.$refs.materiaWaring.form.dataSource = this.originalMaterial
  487. }else{
  488. this.$message.error(res.message);
  489. }
  490. })
  491. },
  492. //成品入库,框/扇入库,框/扇出库执行完接口重新获取成品明细,和入库暂存列表
  493. RefreshList(data){
  494. this.getProductData(this.form.id)
  495. if(data!=='product'){
  496. this.getTemporaryStorageData(this.form.id)
  497. }
  498. },
  499. //触发杂发杂收接口
  500. sendOrReceive(data){
  501. this.$refs.SurplusMaterials.sendOrReceive(data)
  502. },
  503. //修改已执行数量
  504. editNum(){
  505. if(this.activeKey=='finishProduct'){
  506. if(this.$refs.productDetails.selectedRowKeys.length!==1){
  507. this.$message.warning('请勾选一条数据!')
  508. }else{
  509. this.$message.info('请修改已执行数量,鼠标移出后保存!')
  510. this.$refs.productDetails.editNum(this.$refs.productDetails.selectedRowKeys[0])
  511. }
  512. }else if(this.activeKey=='material'){
  513. if(this.$refs.material.selectedRowKeys.length!==1){
  514. this.$message.warning('请勾选一条数据!')
  515. }else{
  516. this.$message.info('请修改已执行数量,鼠标移出后保存!')
  517. this.$refs.material.editNum(this.$refs.material.selectedRowKeys[0])
  518. }
  519. }
  520. },
  521. //材料出库后重新获取材料明细列表
  522. RefreshMateriaList(){
  523. this.getMaterialData(this.form.id)
  524. },
  525. //杂发杂收接口执行结果
  526. close(data){
  527. if(data=='1'){
  528. this.handleCancel()
  529. }
  530. }
  531. }
  532. }
  533. </script>
  534. <style scoped lang="less">
  535. /* @import '~@assets/less/common.less' */
  536. /deep/.ant-input{
  537. height:29px;
  538. }
  539. /deep/.ant-select-selection--single {
  540. height: 29px;
  541. }
  542. /deep/.ant-select{
  543. font-size: 12px;
  544. }
  545. /deep/.ant-form label{
  546. font-size: 12px;
  547. }
  548. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  549. margin-bottom:9px
  550. }
  551. /deep/.moddle>.ant-card-body{
  552. padding-bottom:0px;
  553. padding-top: 12px;
  554. }
  555. /deep/.top>.ant-card-body{
  556. padding-bottom:0px;
  557. padding-top: 12px;
  558. }
  559. /deep/.ant-btn{
  560. height:28px
  561. }
  562. /deep/.ant-modal-body{
  563. padding-bottom: 0px;
  564. padding-top: 0px;
  565. }
  566. // /deep/.ant-modal-body{
  567. // background: #f0f2f5;
  568. // }
  569. /deep/.ant-modal-content{
  570. background: #f0f2f5;
  571. }
  572. /deep/.ant-card-body .table-operator {
  573. margin-bottom: 0px;
  574. }
  575. /deep/.three>.ant-card-body{
  576. padding-bottom:12px;
  577. padding-top: 12px;
  578. }
  579. /deep/.bottom>.ant-card-body{
  580. padding-bottom:0px;
  581. padding-top: 12px;
  582. }
  583. /deep/.ant-calendar-picker{
  584. min-width: 0px !important;
  585. }
  586. /deep/.sonItem {
  587. margin-bottom:0px !important
  588. }
  589. /deep/#sonList>.ant-spin-nested-loading>.ant-spin-container>.ant-table>.ant-table-content>.ant-table-scroll>.ant-table-body>.ant-table-fixed>.ant-table-tbody > tr > td {
  590. padding: 0px 8px !important;
  591. }
  592. /deep/.highlight-row {
  593. background-color: #E6F7FF;
  594. }
  595. // 表单校验隐藏提示文字
  596. /deep/.ant-form-explain{
  597. display:none
  598. }
  599. </style>