作者 小范

20200623-trans

@@ -192,6 +192,7 @@ @@ -192,6 +192,7 @@
192 border 192 border
193 style="width: 100%;margin-bottom: 10px"> 193 style="width: 100%;margin-bottom: 10px">
194 <el-table-column 194 <el-table-column
  195 + fixed="left"
195 prop="name" 196 prop="name"
196 label="姓名"> 197 label="姓名">
197 </el-table-column> 198 </el-table-column>
@@ -216,6 +217,7 @@ @@ -216,6 +217,7 @@
216 label="职务"> 217 label="职务">
217 </el-table-column> 218 </el-table-column>
218 <el-table-column 219 <el-table-column
  220 + fixed="right"
219 prop="meno" 221 prop="meno"
220 label="备注"> 222 label="备注">
221 </el-table-column> 223 </el-table-column>
@@ -223,6 +225,20 @@ @@ -223,6 +225,20 @@
223 </el-row> 225 </el-row>
224 </el-dialog> 226 </el-dialog>
225 </el-row> 227 </el-row>
  228 + <!--对话提示框-->
  229 + <el-row>
  230 + <el-dialog
  231 + title="系统提示"
  232 + :visible.sync="centerDialogVisible"
  233 + width="30%"
  234 + center>
  235 + <span>{{msg}}</span>
  236 + <span slot="footer" class="dialog-footer">
  237 + <el-button @click="centerDialogVisible = false">取 消</el-button>
  238 + <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
  239 + </span>
  240 + </el-dialog>
  241 + </el-row>
226 242
227 </el-container> 243 </el-container>
228 </template> 244 </template>
@@ -245,7 +261,7 @@ @@ -245,7 +261,7 @@
245 261
246 </style> 262 </style>
247 <script> 263 <script>
248 - import {addBillPerson, editBill, selectBill, selectReturnMsg} from "../../api/transport"; 264 + import { addBillPerson, editBill, selectBill, selectReturnMsg} from "../../api/transport";
249 import loginUserInfo from "../../api/base"; 265 import loginUserInfo from "../../api/base";
250 export default { 266 export default {
251 data(){ 267 data(){
@@ -303,15 +319,35 @@ @@ -303,15 +319,35 @@
303 tableData2:[], 319 tableData2:[],
304 gridData:[], 320 gridData:[],
305 dialogTableVisible: false, 321 dialogTableVisible: false,
  322 + centerDialogVisible:false,
  323 + msg:undefined
306 } 324 }
307 }, 325 },
308 methods: { 326 methods: {
  327 + //添加机组人员按钮
309 showPerson(index,row){ 328 showPerson(index,row){
310 this.dialogTableVisibles=true; 329 this.dialogTableVisibles=true;
311 this.billperson.billsId=row.uuid; 330 this.billperson.billsId=row.uuid;
312 }, 331 },
  332 + //提交按钮
313 submitPerson(formName){ 333 submitPerson(formName){
314 - console.log(this.billperson.billsId) 334 + //console.log(this.billperson.billsId)
  335 + this.$refs[formName].validate((valid) => {
  336 + if (valid) {
  337 + addBillPerson(this.billperson).then(res=>{
  338 + let response=res.data;
  339 + if(response.code=='200'){
  340 + this.centerDialogVisible=true;
  341 + this.msg=response.msg;
  342 + }else{
  343 + this.msg=response.msg;
  344 + }
  345 + });
  346 + } else {
  347 + console.log('error submit!!');
  348 + return false;
  349 + }
  350 + });
315 }, 351 },
316 //查询回执列表 352 //查询回执列表
317 selectDetail(index,row){ 353 selectDetail(index,row){