|
@@ -161,7 +161,7 @@
|
|
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
|
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
|
|
import {personList,subimtList} from '@api/oa/cd-personnel-files'
|
|
|
- import { putAction } from '@/api/manage'
|
|
|
+ import { putAction,getAction } from '@/api/manage'
|
|
|
|
|
|
export default {
|
|
|
name: 'SyCarryModal',
|
|
@@ -278,6 +278,33 @@
|
|
|
this.getOption()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取表头信息
|
|
|
+ getHeaderList(id){
|
|
|
+ getAction('/oa/syCarry/queryById', {id:id}).then((res) => {
|
|
|
+ if(res.success){
|
|
|
+ var zhuId = '' //主表id
|
|
|
+ this.formState=res.result //详情
|
|
|
+ zhuId = res.result.id
|
|
|
+ this.getTable(zhuId)
|
|
|
+ }else{
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getTable(id){
|
|
|
+ getAction('/oa/syCarry/querySyCarryBByMainId', {id:id}).then((res) => {
|
|
|
+ if(res.success){
|
|
|
+ res.result.map(item =>{
|
|
|
+ if(item.orderDate !==''&& item.orderDate){
|
|
|
+ item.orderDate = moment(item.orderDate)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.syCarryBTable.dataSource = res.result
|
|
|
+ }else{
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 计划员模糊查询
|
|
|
filterOption(input, option) {
|
|
|
return (
|
|
@@ -410,6 +437,7 @@
|
|
|
this.formState = {}
|
|
|
this.visible = false
|
|
|
this.defultMethods='add'
|
|
|
+ this.$emit('close')
|
|
|
},
|
|
|
// 价格改变
|
|
|
handleChangePrice(){
|