|
@@ -82,7 +82,7 @@
|
|
import pick from 'lodash.pick'
|
|
import pick from 'lodash.pick'
|
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
|
- import { putAction,postAction } from '@/api/manage'
|
|
+ import { putAction,postAction,getAction } from '@/api/manage'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'SyCottonYarnDetailModal',
|
|
name: 'SyCottonYarnDetailModal',
|
|
@@ -96,6 +96,7 @@
|
|
refKeys: ['syCottonYarnB', ],
|
|
refKeys: ['syCottonYarnB', ],
|
|
activeKey: 'syCottonYarnB',
|
|
activeKey: 'syCottonYarnB',
|
|
formState:{},
|
|
formState:{},
|
|
|
|
+ zhuId:'',
|
|
// 搬运装卸费用-棉纱-子表
|
|
// 搬运装卸费用-棉纱-子表
|
|
syCottonYarnBTable: {
|
|
syCottonYarnBTable: {
|
|
loading: false,
|
|
loading: false,
|
|
@@ -191,8 +192,42 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 获取表头信息
|
|
|
|
+ getHeaderList(id){
|
|
|
|
+ this.zhuId = id
|
|
|
|
+ getAction('/oa/syCottonYarn/queryById', {id:id}).then((res) => {
|
|
|
|
+ if(res.success){
|
|
|
|
+ var zhuId
|
|
|
|
+ this.formState=res.result //详情
|
|
|
|
+ zhuId = res.result.id
|
|
|
|
+ this.getTable(zhuId)
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.warning(res.message)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getTable(id){
|
|
|
|
+ getAction('/oa/syCottonYarn/querySyCottonYarnBByMainId', {id:id}).then((res) => {
|
|
|
|
+ if(res.success){
|
|
|
|
+ res.result.map(item =>{
|
|
|
|
+ if(item.orderDate !==''&& item.orderDate){
|
|
|
|
+ item.orderDate = moment(item.orderDate)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.syCottonYarnBTable.dataSource = res.result
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.warning(res.message)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
handelAutograph(record){
|
|
handelAutograph(record){
|
|
- record.jhyName = this.$store.getters.nickname
|
|
+ getAction('/oa/syCottonYarn/signPlan', {id:record.id}).then((res) => {
|
|
|
|
+ if(res.success){
|
|
|
|
+ this.getHeaderList(this.zhuId)
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.warning(res.message)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
|
|
},
|
|
},
|
|
//关闭
|
|
//关闭
|
|
@@ -200,7 +235,10 @@
|
|
this.syCottonYarnBTable.dataSource=[]
|
|
this.syCottonYarnBTable.dataSource=[]
|
|
this.formState = {}
|
|
this.formState = {}
|
|
this.visible = false
|
|
this.visible = false
|
|
|
|
+ this.zhuId = ''
|
|
|
|
+ this.$emit('close')
|
|
},
|
|
},
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|