|
@ -44,7 +44,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import { materialRequestByType,getDetailed,postCancel } from "@/api/wms-api" |
|
|
import { materialRequestByType,getDetailed,postCancel,postCompleteRequest } from "@/api/wms-api" |
|
|
import { tableMixins } from "@/mixins/TableMixins" |
|
|
import { tableMixins } from "@/mixins/TableMixins" |
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins" |
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins" |
|
|
import { drawerMixins } from "@/mixins/drawerMixins" |
|
|
import { drawerMixins } from "@/mixins/drawerMixins" |
|
@ -101,6 +101,13 @@ export default { |
|
|
name: "cancel", |
|
|
name: "cancel", |
|
|
size: 'mini' |
|
|
size: 'mini' |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
label: '完成', |
|
|
|
|
|
hide: () => { return this.hideButton([9])},//部分完成todo |
|
|
|
|
|
name: "complete", |
|
|
|
|
|
size: 'mini' |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -130,7 +137,30 @@ export default { |
|
|
this.Loading.appMainLoading = false |
|
|
this.Loading.appMainLoading = false |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} |
|
|
|
|
|
// 完成 |
|
|
|
|
|
else if(val == 'complete'){ |
|
|
|
|
|
this.$confirm('是否确定完成请求?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
distinguishCancelAndClose: true, |
|
|
|
|
|
closeOnClickModal: false, |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.Loading.appMainLoading = true |
|
|
|
|
|
postCompleteRequest(this.propsData.id, this.URL).then(res => { |
|
|
|
|
|
this.$successMsg('已完成请求') |
|
|
|
|
|
this.Loading.appMainLoading = false |
|
|
|
|
|
getDetailed(this.propsData.id, this.URL).then(res => { |
|
|
|
|
|
this.propsData = res |
|
|
|
|
|
}) |
|
|
|
|
|
this.paging(); |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
this.Loading.appMainLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
this.drawerbutton(val, this) |
|
|
this.drawerbutton(val, this) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|