作者 雷海东

月工时信息展示、验收传值更改

@@ -315,10 +315,10 @@ export const JeecgListMixin = { @@ -315,10 +315,10 @@ export const JeecgListMixin = {
315 }, 315 },
316 // 根据月份和姓名查看工序 316 // 根据月份和姓名查看工序
317 querygxone: function (record) { 317 querygxone: function (record) {
318 - console.log("月份:",record.salaryMonth)  
319 - console.log("姓名:",record.name) 318 + console.log("月份:",record.yanTime)
  319 + console.log("姓名:",record.undertaker)
320 this.$refs.modalForm.edit(record); 320 this.$refs.modalForm.edit(record);
321 - this.$refs.modalForm.queryGxOne(record.salaryMonth,record.name); 321 + this.$refs.modalForm.queryGxOne(record.yanTime,record.undertaker);
322 this.$refs.modalForm.title = "工序查看"; 322 this.$refs.modalForm.title = "工序查看";
323 this.$refs.modalForm.disableSubmit = true; 323 this.$refs.modalForm.disableSubmit = true;
324 }, 324 },
@@ -204,6 +204,8 @@ export default { @@ -204,6 +204,8 @@ export default {
204 } 204 }
205 return acc 205 return acc
206 }, []) 206 }, [])
  207 + console.log("recordsToUpdate:",recordsToUpdate)
  208 + if(recordsToUpdate.length>0){
207 updateYan(this.url.updateYan, recordsToUpdate) 209 updateYan(this.url.updateYan, recordsToUpdate)
208 .then((res) => { 210 .then((res) => {
209 if (res.success) { 211 if (res.success) {
@@ -216,6 +218,11 @@ export default { @@ -216,6 +218,11 @@ export default {
216 .finally(() => { 218 .finally(() => {
217 that.confirmLoading = false 219 that.confirmLoading = false
218 }) 220 })
  221 + }else{
  222 + this.confirmLoading = false
  223 + this.visible = false;
  224 + }
  225 +
219 } 226 }
220 }) 227 })
221 }, 228 },
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="姓名"> 8 <a-form-item label="姓名">
9 - <j-input placeholder="请输入姓名" v-model="queryParam.name"></j-input> 9 + <a-input placeholder="请输入姓名" v-model="queryParam.name"></a-input>
10 </a-form-item> 10 </a-form-item>
11 </a-col> 11 </a-col>
12 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 12 <a-col :xl="6" :lg="7" :md="8" :sm="24">
@@ -145,7 +145,7 @@ @@ -145,7 +145,7 @@
145 { 145 {
146 title:'月份', 146 title:'月份',
147 align:"center", 147 align:"center",
148 - dataIndex: 'salaryMonth', 148 + dataIndex: 'yanTime',
149 customRender:function (text) { 149 customRender:function (text) {
150 return !text?"":(text.length>10?text.substr(0,10):text) 150 return !text?"":(text.length>10?text.substr(0,10):text)
151 } 151 }
@@ -153,12 +153,12 @@ @@ -153,12 +153,12 @@
153 { 153 {
154 title:'姓名', 154 title:'姓名',
155 align:"center", 155 align:"center",
156 - dataIndex: 'name' 156 + dataIndex: 'undertaker'
157 }, 157 },
158 { 158 {
159 title:'月总工时', 159 title:'月总工时',
160 align:"center", 160 align:"center",
161 - dataIndex: 'workTime' 161 + dataIndex: 'workHours'
162 }, 162 },
163 { 163 {
164 title: '操作', 164 title: '操作',
@@ -170,11 +170,11 @@ @@ -170,11 +170,11 @@
170 } 170 }
171 ], 171 ],
172 url: { 172 url: {
173 - list: "/work_time/tblWorkTime/list",  
174 - delete: "/work_time/tblWorkTime/delete",  
175 - deleteBatch: "/work_time/tblWorkTime/deleteBatch",  
176 - exportXlsUrl: "/work_time/tblWorkTime/exportXls",  
177 - importExcelUrl: "work_time/tblWorkTime/importExcel", 173 + list: "/work_time/viewWorkTime/list",
  174 + delete: "/work_time/viewWorkTime/delete",
  175 + deleteBatch: "/work_time/viewWorkTime/deleteBatch",
  176 + exportXlsUrl: "/work_time/viewWorkTime/exportXls",
  177 + importExcelUrl: "/work_time/viewWorkTime/importExcel",
178 178
179 }, 179 },
180 dictOptions:{}, 180 dictOptions:{},
@@ -99,9 +99,9 @@ import { queryGxOne } from '../../../api/manage' @@ -99,9 +99,9 @@ import { queryGxOne } from '../../../api/manage'
99 validatorRules: { 99 validatorRules: {
100 }, 100 },
101 url: { 101 url: {
102 - add: "/work_time/tblWorkTime/add",  
103 - edit: "/work_time/tblWorkTime/edit",  
104 - queryById: "/work_time/tblWorkTime/queryById", 102 + add: "/work_time/viewWorkTime/add",
  103 + edit: "/work_time/viewWorkTime/edit",
  104 + queryById: "/work_time/viewWorkTime/queryById",
105 querygxone:"/production/tblProductionPlan/querygxone" 105 querygxone:"/production/tblProductionPlan/querygxone"
106 } 106 }
107 } 107 }
@@ -123,7 +123,7 @@ import { queryGxOne } from '../../../api/manage' @@ -123,7 +123,7 @@ import { queryGxOne } from '../../../api/manage'
123 this.model = Object.assign({}, record); 123 this.model = Object.assign({}, record);
124 this.visible = true; 124 this.visible = true;
125 }, 125 },
126 - queryGxOne(salaryMonth,name){ 126 + queryGxOne(yanTime,undertaker){
127 queryGxOne(this.url.querygxone,this.model).then((res) =>{ 127 queryGxOne(this.url.querygxone,this.model).then((res) =>{
128 this.res=res.result 128 this.res=res.result
129 }) 129 })
@@ -41,10 +41,10 @@ @@ -41,10 +41,10 @@
41 this.$refs.realForm.edit(record); 41 this.$refs.realForm.edit(record);
42 }) 42 })
43 }, 43 },
44 - queryGxOne (salaryMonth,name) { 44 + queryGxOne (yanTime,undertaker) {
45 this.visible=true 45 this.visible=true
46 this.$nextTick(()=>{ 46 this.$nextTick(()=>{
47 - this.$refs.realForm.queryGxOne(salaryMonth,name); 47 + this.$refs.realForm.queryGxOne(yanTime,undertaker);
48 }) 48 })
49 }, 49 },
50 close () { 50 close () {