|
@@ -468,12 +468,13 @@
|
|
|
align:"center",
|
|
|
dataIndex: 'sync',
|
|
|
ellipsis: true
|
|
|
- },{
|
|
|
- title: '杂发同步',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'sync1',
|
|
|
- ellipsis: true
|
|
|
},
|
|
|
+ // {
|
|
|
+ // title: '杂发同步',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'sync1',
|
|
|
+ // ellipsis: true
|
|
|
+ // },
|
|
|
],
|
|
|
disableMixinCreated:'1',
|
|
|
rules:{
|
|
@@ -553,48 +554,48 @@
|
|
|
this.$set(recoerd,'rate',data.rate)
|
|
|
},
|
|
|
//杂发/杂收
|
|
|
- sendOrReceive(data){
|
|
|
- var idExistence = 'yes',
|
|
|
- idArr = []
|
|
|
- //判断有没有增行但没保存数据
|
|
|
- this.selectedRows.map(item=>{
|
|
|
- if(!item.id||item.id==''){
|
|
|
- idExistence = 'no'
|
|
|
- }else{
|
|
|
- idArr.push(item.id)
|
|
|
- }
|
|
|
- })
|
|
|
- if(this.selectedRowKeys.length==0){
|
|
|
- this.$message.warning('请选择余料管理')
|
|
|
- }else if(idExistence=='no'){
|
|
|
- this.$message.warning('请先保存余料管理')
|
|
|
- }else{
|
|
|
- let info = '是否确认生成杂收单?'
|
|
|
- if(data == 'out'){
|
|
|
- info = '是否确认生成杂发单?'
|
|
|
- }
|
|
|
- this.$confirm({
|
|
|
- title: '执行确认',
|
|
|
- content: info,
|
|
|
- onOk: ()=> {
|
|
|
- var ids = this.selectedRowKeys.toString()
|
|
|
- alertModal.loading("执行中,请稍后!")
|
|
|
- getAction('/productionOrder/madeProductionOrders/syncMadeProductionOrdersOutList', {ids:idArr.join(','),type:data}).then((res) => {
|
|
|
- alertModal.closeLoading();
|
|
|
- if (res.success) {
|
|
|
- this.$emit('ok','1')
|
|
|
- this.$message.success(res.message);
|
|
|
- } else {
|
|
|
- this.$emit('ok','2')
|
|
|
- this.$message.error(res.message);
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ // sendOrReceive(data){
|
|
|
+ // var idExistence = 'yes',
|
|
|
+ // idArr = []
|
|
|
+ // //判断有没有增行但没保存数据
|
|
|
+ // this.selectedRows.map(item=>{
|
|
|
+ // if(!item.id||item.id==''){
|
|
|
+ // idExistence = 'no'
|
|
|
+ // }else{
|
|
|
+ // idArr.push(item.id)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // if(this.selectedRowKeys.length==0){
|
|
|
+ // this.$message.warning('请选择余料管理')
|
|
|
+ // }else if(idExistence=='no'){
|
|
|
+ // this.$message.warning('请先保存余料管理')
|
|
|
+ // }else{
|
|
|
+ // let info = '是否确认生成杂收单?'
|
|
|
+ // if(data == 'out'){
|
|
|
+ // info = '是否确认生成杂发单?'
|
|
|
+ // }
|
|
|
+ // this.$confirm({
|
|
|
+ // title: '执行确认',
|
|
|
+ // content: info,
|
|
|
+ // onOk: ()=> {
|
|
|
+ // var ids = this.selectedRowKeys.toString()
|
|
|
+ // alertModal.loading("执行中,请稍后!")
|
|
|
+ // getAction('/productionOrder/madeProductionOrders/syncMadeProductionOrdersOutList', {ids:idArr.join(','),type:data}).then((res) => {
|
|
|
+ // alertModal.closeLoading();
|
|
|
+ // if (res.success) {
|
|
|
+ // this.$emit('ok','1')
|
|
|
+ // this.$message.success(res.message);
|
|
|
+ // } else {
|
|
|
+ // this.$emit('ok','2')
|
|
|
+ // this.$message.error(res.message);
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
|
|
|
- }
|
|
|
- }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
computed: {
|